@saasquatch/mint-components 1.16.0-8 → 2.0.0-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-3f91e5ab.js +11 -0
- package/dist/cjs/{GenericTableView-a9f4ba75.js → GenericTableView-a9845e80.js} +8 -8
- package/dist/cjs/IndirectTaxDetailsView-e5f70b8b.js +660 -0
- package/dist/cjs/{ShadowViewAddon-28865623.js → ShadowViewAddon-23b04c91.js} +1692 -1496
- package/dist/cjs/copy-text-view-51c8ee5d.js +122 -0
- package/dist/cjs/data-88adb95b.js +146 -0
- package/dist/cjs/{stencil-hooks.module-3a336b0f.js → dom-context-hooks.module-7fa676ae.js} +18 -18
- package/dist/cjs/{email-registration-view-55b378dc.js → email-registration-view-ace50780.js} +5 -3
- package/dist/cjs/{global-e31dc4f5.js → global-8bba5b3a.js} +11840 -11561
- package/dist/cjs/{index-a29c60ef.js → index-a43a63b4.js} +4 -0
- package/dist/cjs/{index.module-ee84433d.js → index.module-4f54e412.js} +191 -191
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{luxon-2926d85f.js → luxon-949beaf2.js} +2 -2
- package/dist/cjs/mint-components.cjs.js +5 -5
- package/dist/cjs/{mixins-f7e0377a.js → mixins-4761d472.js} +6 -6
- package/dist/cjs/{mockRewardData-7815f10f.js → mockRewardData-df37c8a3.js} +1 -1
- package/dist/cjs/parseStates-d1effc19.js +16 -0
- package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
- package/dist/cjs/{re-render-b324deab.js → re-render-d516138a.js} +4 -4
- package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js} +795 -2498
- package/dist/cjs/{sqm-base-registration-form-view-8a2c8763.js → sqm-base-registration-form-view-8847804c.js} +3 -3
- package/dist/cjs/{sqm-big-stat_43.cjs.entry.js → sqm-big-stat_46.cjs.entry.js} +1475 -382
- package/dist/cjs/{sqm-close-button-view-ea3fa23b.js → sqm-close-button-view-5e85ac51.js} +2 -2
- package/dist/cjs/sqm-close-button.cjs.entry.js +6 -6
- package/dist/cjs/sqm-code-verification.cjs.entry.js +352 -0
- package/dist/cjs/sqm-context-router.cjs.entry.js +11 -11
- package/dist/cjs/sqm-email-verification.cjs.entry.js +152 -28
- package/dist/cjs/sqm-empty_4.cjs.entry.js +58 -63
- 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-data-cell_5.cjs.entry.js +84 -0
- package/dist/cjs/{sqm-lead-checkbox-field-view-34d94919.js → sqm-lead-checkbox-field-view-340acad0.js} +2 -2
- package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-lead-input-field-view-89308aab.js → sqm-lead-input-field-view-06ed3632.js} +3 -3
- package/dist/cjs/sqm-lead-input-field.cjs.entry.js +10 -10
- package/dist/cjs/sqm-leaderboard-rank-view-6a1e63de.js +10 -0
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-logout-current-user-view-11d57c12.js → sqm-logout-current-user-view-b61c8bdf.js} +1 -1
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +6 -6
- package/dist/cjs/sqm-navigation-sidebar-item-view-4e88f774.js +56 -0
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +31 -8
- package/dist/cjs/{sqm-navigation-sidebar-view-17111896.js → sqm-navigation-sidebar-view-de90ef03.js} +18 -8
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +25 -9
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +97 -70
- 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-4f15143a.js → sqm-portal-container-view-07e4343f.js} +2 -2
- package/dist/cjs/{sqm-portal-email-verification-view-7ebb426a.js → sqm-portal-email-verification-view-5518eb0d.js} +4 -4
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +15 -15
- 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-761a4d8e.js → sqm-portal-login-view-bb50304c.js} +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-profile-view-33164798.js → sqm-portal-profile-view-615e6975.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-637a4bf4.js → sqm-portal-registration-form-view-5a96c2f5.js} +3 -3
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-portal-reset-password-view-fe602822.js → sqm-portal-reset-password-view-25eb2099.js} +3 -3
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +11 -11
- package/dist/cjs/{sqm-portal-verify-email-view-7b678f34.js → sqm-portal-verify-email-view-1c4e781f.js} +3 -3
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +12 -12
- package/dist/cjs/{sqm-qr-code-view-15dfc0b6.js → sqm-qr-code-view-4ccf89da.js} +4 -9
- package/dist/cjs/sqm-qr-code.cjs.entry.js +14 -26
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +131 -44
- 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 +85 -38
- package/dist/cjs/sqm-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-scroll.cjs.entry.js +21 -67
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +13741 -12408
- package/dist/cjs/sqm-tab.cjs.entry.js +5 -5
- package/dist/cjs/sqm-tabs.cjs.entry.js +28 -13
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1313 -0
- package/dist/cjs/sqm-text-span-view-7a61ae4c.js +63 -0
- package/dist/cjs/sqm-text-span.cjs.entry.js +7 -7
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +19 -11
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +25 -13
- package/dist/cjs/{useChildElements-1b35d945.js → useChildElements-966c9041.js} +5 -5
- package/dist/cjs/{useInstantAccessRegistration-0537e28e.js → useInstantAccessRegistration-08bcb487.js} +4 -4
- package/dist/cjs/{useLeadFormState-c83d2034.js → useLeadFormState-fd0445f9.js} +7 -7
- package/dist/cjs/{usePayoutStatus-c84a7d98.js → usePayoutStatus-fe32dd1a.js} +49 -17
- package/dist/cjs/{usePortalLogin-63d896d1.js → usePortalLogin-353f776a.js} +4 -4
- package/dist/cjs/{usePortalRegistrationForm-f25d89e7.js → usePortalRegistrationForm-75b647fe.js} +6 -6
- package/dist/cjs/{useReferralCodes-82e8797b.js → useReferralCodes-11cdf43b.js} +3 -3
- package/dist/cjs/{useReferralTable-7c3f9600.js → useReferralTable-90d4d6e9.js} +10 -10
- package/dist/cjs/{useRegistrationFormState-7b820f0c.js → useRegistrationFormState-bbee6e7b.js} +6 -6
- package/dist/cjs/{useVerificationEmail-95a82767.js → useVerificationEmail-9dd3997a.js} +6 -6
- package/dist/cjs/{utilities-78f5e169.js → utilities-9a0c5e91.js} +4 -4
- package/dist/cjs/{utils-6847bc06.js → utils-0d3ac0fb.js} +4 -0
- package/dist/cjs/utils-83d125fa.js +105 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/sqm-big-stat/BigStat.stories.js +13 -0
- package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +15 -8
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +171 -4
- package/dist/collection/components/sqm-big-stat/useBigStat.js +127 -8
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +14 -5
- package/dist/collection/components/sqm-brand/sqm-brand.js +12 -4
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +2 -0
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +7 -0
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +1 -0
- package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +4 -0
- 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 +170 -1
- package/dist/collection/components/sqm-coupon-code/useCouponCode.js +1 -0
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +14 -6
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +62 -3
- 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 +8 -16
- package/dist/collection/components/sqm-form-message/sqm-form-message.css +50 -11
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +5 -5
- package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +1 -0
- package/dist/collection/components/sqm-hero/Hero.stories.js +11 -0
- package/dist/collection/components/sqm-hero/sqm-hero-view.js +16 -8
- package/dist/collection/components/sqm-hero/sqm-hero.js +39 -4
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +7 -4
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +80 -0
- package/dist/collection/components/sqm-image/sqm-image.js +1 -0
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +4 -3
- 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 +2 -1
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +2 -1
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +2 -1
- 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 +6 -3
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +37 -0
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +60 -54
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +202 -36
- 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 +1 -0
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +2 -1
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +28 -3
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +2 -1
- package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu.js +1 -0
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +17 -7
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +85 -5
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +18 -7
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +233 -1
- package/dist/collection/components/sqm-navigation-sidebar-item/useNavigationSidebarItem.js +9 -1
- package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +3 -3
- package/dist/collection/components/sqm-pagination/sqm-pagination.js +43 -2
- 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 +8 -4
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +2 -1
- 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 +1 -8
- 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 +1 -0
- package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +5 -4
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +21 -13
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +103 -3
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +41 -36
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +102 -2
- package/dist/collection/components/sqm-portal-frame/usePortalFrame.js +4 -1
- package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +10 -5
- 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 +2 -1
- package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +1 -0
- 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 +1 -0
- package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +1 -0
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +1 -2
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +1 -0
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +1 -1
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +3 -1
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +12 -4
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +78 -3
- package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +1 -0
- package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +2 -7
- package/dist/collection/components/sqm-qr-code/sqm-qr-code.js +1 -0
- package/dist/collection/components/sqm-qr-code/useQRCode.js +1 -13
- package/dist/collection/components/sqm-radio-card/sqm-radio-card-view.js +9 -2
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +34 -31
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +81 -10
- package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +3 -0
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +170 -1
- package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +6 -0
- 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 +29 -1
- 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 +52 -17
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +62 -7
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +2 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +4 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +6 -3
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +6 -3
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +4 -2
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +4 -1
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +3 -10
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +19 -19
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +32 -6
- 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 +48 -49
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +83 -35
- 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 +6 -5
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +5 -4
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +56 -7
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +3 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +3 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +3 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +2 -1
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +8 -6
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +4 -2
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -1
- package/dist/collection/components/sqm-route/sqm-route.js +1 -0
- package/dist/collection/components/sqm-router/sqm-router.js +2 -0
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +23 -101
- package/dist/collection/components/sqm-share-button/ShareButton.stories.js +3 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +12 -24
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +57 -10
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +170 -1
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +25 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +173 -3
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +21 -9
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +112 -2
- package/dist/collection/components/sqm-stencilbook/BrandSelector.js +198 -0
- package/dist/collection/components/sqm-stencilbook/Themes.js +325 -33
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +81 -99
- package/dist/collection/components/sqm-table-row/sqm-table-row.js +2 -2
- package/dist/collection/components/sqm-tabs/Tabs.stories.js +7 -0
- package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +17 -2
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +30 -2
- package/dist/collection/components/sqm-task-card/DetailsView.js +8 -2
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +3 -2
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +138 -157
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +147 -4
- package/dist/collection/components/sqm-task-card/useTaskCard.js +10 -0
- package/dist/collection/components/sqm-text/Text.stories.js +12 -0
- package/dist/collection/components/sqm-text/sqm-text.js +101 -48
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +44 -43
- package/dist/collection/components/sqm-text-span/sqm-text-span.js +52 -2
- package/dist/collection/components/sqm-timeline/Timeline.stories.js +8 -1
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +45 -45
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +52 -0
- package/dist/collection/components/sqm-timeline/sqm-timeline.js +3 -1
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +2 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +12 -2
- 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 +138 -14
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +39 -7
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +45 -8
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +13 -8
- package/dist/collection/components/tax-and-cash/{sqm-tax-and-cash/data.js → data.js} +9 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +23 -73
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +11 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +5 -3
- 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 +21 -76
- 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 -4
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +59 -72
- 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 -4
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +24 -27
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +26 -1
- 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/sqm-payout-status-alert-view.js +59 -54
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +64 -13
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +44 -12
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/ErrorView.js +3 -27
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +130 -25
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +51 -20
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +113 -44
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +23 -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 +17 -3
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +183 -56
- 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 -5
- package/dist/collection/components/views/copy-text-view.js +65 -39
- package/dist/collection/components/views/email-registration-view.js +3 -1
- package/dist/collection/global/global.js +27 -12
- package/dist/collection/global/mixins.js +8 -8
- package/dist/collection/global/styles.js +334 -102
- package/dist/collection/global/styles.ts +434 -102
- package/dist/collection/insertfont.js +18 -0
- package/dist/collection/stories/PortalTemplates.stories.js +22 -30
- package/dist/collection/tables/GenericTableView.js +6 -6
- package/dist/collection/utils/parseStates.js +12 -0
- package/dist/collection/utils/utils.js +4 -0
- package/dist/esm/ErrorView-bbf0a042.js +9 -0
- package/dist/esm/{GenericTableView-7b9087af.js → GenericTableView-e43d310f.js} +8 -8
- package/dist/esm/IndirectTaxDetailsView-0a57b622.js +653 -0
- package/dist/esm/{ShadowViewAddon-f2176779.js → ShadowViewAddon-c0bd62f7.js} +1689 -1493
- package/dist/esm/copy-text-view-83b09456.js +120 -0
- package/dist/esm/data-807686c2.js +130 -0
- package/dist/esm/{stencil-hooks.module-4bc38af4.js → dom-context-hooks.module-63370afd.js} +13 -13
- package/dist/esm/{email-registration-view-a7818cf2.js → email-registration-view-1f587f8b.js} +5 -3
- package/dist/esm/{global-be1f9992.js → global-1099f20d.js} +11864 -11586
- package/dist/esm/{index-91e7729f.js → index-b3a06de8.js} +4 -0
- package/dist/esm/{index.module-89a79f66.js → index.module-c9811a48.js} +154 -154
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{luxon-8d51c92b.js → luxon-bbf75a9d.js} +1 -1
- package/dist/esm/mint-components.js +5 -5
- package/dist/esm/{mixins-83f90fa1.js → mixins-f750863a.js} +6 -6
- package/dist/esm/{mockRewardData-a3cdb832.js → mockRewardData-96a2d26d.js} +1 -1
- package/dist/esm/parseStates-ed75e224.js +14 -0
- package/dist/esm/raisins-plop-target.entry.js +1 -1
- package/dist/esm/{re-render-cc945f38.js → re-render-7e22fb0d.js} +2 -2
- package/dist/esm/{sqm-banking-info-form_17.entry.js → sqm-banking-info-form_10.entry.js} +651 -2347
- package/dist/esm/{sqm-base-registration-form-view-593d4ac3.js → sqm-base-registration-form-view-193f1721.js} +3 -3
- package/dist/esm/{sqm-big-stat_43.entry.js → sqm-big-stat_46.entry.js} +1371 -281
- package/dist/esm/{sqm-close-button-view-f9819751.js → sqm-close-button-view-2fa57229.js} +2 -2
- package/dist/esm/sqm-close-button.entry.js +5 -5
- package/dist/esm/sqm-code-verification.entry.js +348 -0
- package/dist/esm/sqm-context-router.entry.js +4 -4
- package/dist/esm/sqm-email-verification.entry.js +145 -21
- package/dist/esm/sqm-empty_4.entry.js +55 -60
- 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-data-cell_5.entry.js +76 -0
- package/dist/esm/{sqm-lead-checkbox-field-view-a8c1c78e.js → sqm-lead-checkbox-field-view-cbafee07.js} +2 -2
- package/dist/esm/sqm-lead-checkbox-field.entry.js +7 -7
- package/dist/esm/{sqm-lead-input-field-view-4ede5d7f.js → sqm-lead-input-field-view-f3775c28.js} +3 -3
- package/dist/esm/sqm-lead-input-field.entry.js +8 -8
- package/dist/esm/sqm-leaderboard-rank-view-18baae5b.js +8 -0
- package/dist/esm/sqm-leaderboard-rank.entry.js +6 -6
- package/dist/esm/{sqm-logout-current-user-view-8ef8180f.js → sqm-logout-current-user-view-f21e54e3.js} +1 -1
- package/dist/esm/sqm-logout-current-user.entry.js +5 -5
- package/dist/esm/sqm-navigation-sidebar-item-view-5a452423.js +54 -0
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +30 -7
- package/dist/esm/{sqm-navigation-sidebar-view-9d802b78.js → sqm-navigation-sidebar-view-0a2ec560.js} +18 -8
- package/dist/esm/sqm-navigation-sidebar.entry.js +22 -6
- package/dist/esm/sqm-pagination_3.entry.js +91 -64
- 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-1683ae32.js → sqm-portal-container-view-176e92e3.js} +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-35b4353b.js → sqm-portal-email-verification-view-7d86299c.js} +4 -4
- package/dist/esm/sqm-portal-email-verification.entry.js +7 -7
- 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-7e49609a.js → sqm-portal-login-view-7670cd86.js} +4 -4
- package/dist/esm/sqm-portal-logout.entry.js +3 -3
- package/dist/esm/{sqm-portal-profile-view-93003974.js → sqm-portal-profile-view-3ed13e4d.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-3c1f6000.js → sqm-portal-registration-form-view-8bdc3804.js} +3 -3
- package/dist/esm/sqm-portal-registration-form.entry.js +8 -8
- package/dist/esm/{sqm-portal-reset-password-view-54a8651f.js → sqm-portal-reset-password-view-abef7286.js} +3 -3
- package/dist/esm/sqm-portal-reset-password.entry.js +7 -7
- package/dist/esm/{sqm-portal-verify-email-view-b12cb894.js → sqm-portal-verify-email-view-33805220.js} +3 -3
- package/dist/esm/sqm-portal-verify-email.entry.js +7 -7
- package/dist/esm/{sqm-qr-code-view-f1d0763b.js → sqm-qr-code-view-ea505213.js} +4 -9
- package/dist/esm/sqm-qr-code.entry.js +8 -20
- package/dist/esm/sqm-referral-table_11.entry.js +120 -33
- 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 +73 -26
- package/dist/esm/sqm-route.entry.js +1 -1
- package/dist/esm/sqm-scroll.entry.js +20 -66
- package/dist/esm/sqm-stencilbook.entry.js +13818 -12485
- package/dist/esm/sqm-tab.entry.js +4 -4
- package/dist/esm/sqm-tabs.entry.js +25 -10
- package/dist/esm/sqm-tax-and-cash.entry.js +1309 -0
- package/dist/esm/sqm-text-span-view-4c17b8c9.js +61 -0
- package/dist/esm/sqm-text-span.entry.js +6 -6
- package/dist/esm/sqm-widget-verification-controller.entry.js +14 -6
- package/dist/esm/sqm-widget-verification.entry.js +22 -10
- package/dist/esm/{useChildElements-7945ae56.js → useChildElements-3d872cef.js} +2 -2
- package/dist/esm/{useInstantAccessRegistration-dc4ad9f2.js → useInstantAccessRegistration-dda1f52b.js} +3 -3
- package/dist/esm/{useLeadFormState-9016d812.js → useLeadFormState-c379e5d7.js} +4 -4
- package/dist/esm/{usePayoutStatus-f07bcf90.js → usePayoutStatus-42cc6a2c.js} +46 -14
- package/dist/esm/{usePortalLogin-ef647a50.js → usePortalLogin-95814943.js} +3 -3
- package/dist/esm/{usePortalRegistrationForm-4b35a357.js → usePortalRegistrationForm-1eb3cd72.js} +3 -3
- package/dist/esm/{useReferralCodes-8f75921a.js → useReferralCodes-c2e809cf.js} +2 -2
- package/dist/esm/{useReferralTable-b3876ed6.js → useReferralTable-909ccb28.js} +5 -5
- package/dist/esm/{useRegistrationFormState-d6f33135.js → useRegistrationFormState-24d594ea.js} +2 -2
- package/dist/esm/{useVerificationEmail-edc318cb.js → useVerificationEmail-55e0e98f.js} +2 -2
- package/dist/esm/{utilities-5b0ca040.js → utilities-72c07b09.js} +2 -2
- package/dist/esm/utils-6122971b.js +97 -0
- package/dist/esm/{utils-334c1e34.js → utils-84b4b092.js} +4 -0
- package/dist/esm-es5/ErrorView-bbf0a042.js +1 -0
- package/dist/esm-es5/GenericTableView-e43d310f.js +1 -0
- package/dist/esm-es5/IndirectTaxDetailsView-0a57b622.js +1 -0
- package/dist/esm-es5/ShadowViewAddon-c0bd62f7.js +1 -0
- package/dist/esm-es5/copy-text-view-83b09456.js +1 -0
- package/dist/esm-es5/data-807686c2.js +1 -0
- package/dist/esm-es5/dom-context-hooks.module-63370afd.js +53 -0
- package/dist/esm-es5/email-registration-view-1f587f8b.js +1 -0
- package/dist/esm-es5/{global-be1f9992.js → global-1099f20d.js} +5 -5
- package/dist/esm-es5/{index-91e7729f.js → index-b3a06de8.js} +1 -1
- package/dist/esm-es5/index.module-c9811a48.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/luxon-bbf75a9d.js +1 -0
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/mixins-f750863a.js +1 -0
- package/dist/esm-es5/{mockRewardData-a3cdb832.js → mockRewardData-96a2d26d.js} +1 -1
- package/dist/esm-es5/parseStates-ed75e224.js +1 -0
- package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
- package/dist/esm-es5/re-render-7e22fb0d.js +1 -0
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -0
- package/dist/esm-es5/{sqm-base-registration-form-view-593d4ac3.js → sqm-base-registration-form-view-193f1721.js} +1 -1
- package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -0
- package/dist/esm-es5/{sqm-close-button-view-f9819751.js → sqm-close-button-view-2fa57229.js} +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
- 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-data-cell_5.entry.js +1 -0
- package/dist/esm-es5/{sqm-lead-checkbox-field-view-a8c1c78e.js → sqm-lead-checkbox-field-view-cbafee07.js} +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-input-field-view-4ede5d7f.js → sqm-lead-input-field-view-f3775c28.js} +1 -1
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-18baae5b.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/{sqm-logout-current-user-view-8ef8180f.js → sqm-logout-current-user-view-f21e54e3.js} +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-5a452423.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-0a2ec560.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-1683ae32.js → sqm-portal-container-view-176e92e3.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-35b4353b.js → sqm-portal-email-verification-view-7d86299c.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.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-7670cd86.js +1 -0
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-93003974.js → sqm-portal-profile-view-3ed13e4d.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-3c1f6000.js → sqm-portal-registration-form-view-8bdc3804.js} +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-54a8651f.js → sqm-portal-reset-password-view-abef7286.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-b12cb894.js → sqm-portal-verify-email-view-33805220.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/{sqm-qr-code-view-f1d0763b.js → sqm-qr-code-view-ea505213.js} +1 -1
- package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-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-tax-and-cash.entry.js +1 -0
- package/dist/esm-es5/sqm-text-span-view-4c17b8c9.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/useChildElements-3d872cef.js +1 -0
- package/dist/esm-es5/useInstantAccessRegistration-dda1f52b.js +1 -0
- package/dist/esm-es5/useLeadFormState-c379e5d7.js +1 -0
- package/dist/esm-es5/usePayoutStatus-42cc6a2c.js +6 -0
- package/dist/esm-es5/usePortalLogin-95814943.js +1 -0
- package/dist/esm-es5/usePortalRegistrationForm-1eb3cd72.js +1 -0
- package/dist/esm-es5/useReferralCodes-c2e809cf.js +1 -0
- package/dist/esm-es5/useReferralTable-909ccb28.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-24d594ea.js +1 -0
- package/dist/esm-es5/useVerificationEmail-55e0e98f.js +1 -0
- package/dist/esm-es5/utilities-72c07b09.js +1 -0
- package/dist/esm-es5/utils-6122971b.js +1 -0
- package/dist/esm-es5/utils-84b4b092.js +1 -0
- package/dist/mint-components/global/styles.ts +434 -102
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-266a8b4d.js → p-00791abc.js} +1 -1
- package/dist/mint-components/p-0087ad39.system.js +1 -0
- package/dist/mint-components/{p-bbcd824a.js → p-00bc7211.js} +1 -1
- package/dist/mint-components/{p-50c902ca.system.entry.js → p-06f13966.system.entry.js} +1 -1
- package/dist/mint-components/{p-f940190a.js → p-07dc6d68.js} +1 -1
- package/dist/mint-components/{p-5bedb58c.js → p-08700497.js} +1 -1
- package/dist/mint-components/p-0935f9b7.system.js +1 -0
- package/dist/mint-components/p-0caad0db.entry.js +144 -0
- package/dist/mint-components/{p-48c69c2d.entry.js → p-0d21194c.entry.js} +1 -1
- package/dist/mint-components/p-0d71303d.js +1 -0
- package/dist/mint-components/p-0e532b53.entry.js +1 -0
- package/dist/mint-components/{p-f4a8ee29.system.entry.js → p-0ea4d6a1.system.entry.js} +1 -1
- package/dist/mint-components/p-0ec54f97.js +1 -0
- package/dist/mint-components/p-115dfc03.system.js +1 -0
- package/dist/mint-components/p-125a894f.js +1 -0
- package/dist/mint-components/p-1363c4ab.system.js +1 -0
- package/dist/mint-components/p-13e66b37.system.entry.js +1 -0
- package/dist/mint-components/p-13f3a647.js +1 -0
- package/dist/mint-components/p-14128c84.system.entry.js +1 -0
- package/dist/mint-components/p-171310d9.system.js +1 -0
- package/dist/mint-components/{p-dbc0e4f8.system.js → p-17a0f310.system.js} +1 -1
- package/dist/mint-components/{p-5c28406d.system.entry.js → p-1c6ef258.system.entry.js} +1 -1
- package/dist/mint-components/p-1cd0e1e9.system.js +1 -0
- package/dist/mint-components/p-204861a6.js +1 -0
- package/dist/mint-components/{p-b287833c.system.entry.js → p-22a9114f.system.entry.js} +1 -1
- package/dist/mint-components/p-2403c6e1.system.js +1 -0
- package/dist/mint-components/p-240bec23.js +1 -0
- package/dist/mint-components/p-2623b232.system.entry.js +1 -0
- package/dist/mint-components/{p-164a9103.system.entry.js → p-26a7051d.system.entry.js} +1 -1
- package/dist/mint-components/p-29398c98.entry.js +1 -0
- package/dist/mint-components/p-29ba2eaa.entry.js +1 -0
- package/dist/mint-components/{p-d07f3090.entry.js → p-29f0c87d.entry.js} +1 -1
- package/dist/mint-components/p-2ff72acc.entry.js +16 -0
- package/dist/mint-components/p-35081b0c.system.entry.js +1 -0
- package/dist/mint-components/{p-44891949.entry.js → p-386ec00c.entry.js} +1 -1
- package/dist/mint-components/{p-7a9290ba.js → p-3eba9036.js} +1 -1
- package/dist/mint-components/p-402984b3.system.entry.js +1 -0
- package/dist/mint-components/p-40752a0f.entry.js +1 -0
- package/dist/mint-components/{p-301ddcaa.system.entry.js → p-40c33b6a.system.entry.js} +1 -1
- package/dist/mint-components/{p-4b6dc0e5.entry.js → p-4204a6e3.entry.js} +1 -1
- package/dist/mint-components/p-4250b06d.entry.js +1 -0
- package/dist/mint-components/{p-6a8d9def.system.entry.js → p-42b62299.system.entry.js} +1 -1
- package/dist/mint-components/{p-ff8b8067.entry.js → p-4306a11d.entry.js} +1 -1
- package/dist/mint-components/{p-a2fde301.entry.js → p-433e7458.entry.js} +1 -1
- package/dist/mint-components/{p-9bfd9bed.system.entry.js → p-43d9c1c5.system.entry.js} +1 -1
- package/dist/mint-components/p-45c3ff6d.js +1 -0
- package/dist/mint-components/{p-938f64d9.js → p-460155de.js} +1 -1
- package/dist/mint-components/{p-10d17989.entry.js → p-47c83656.entry.js} +1 -1
- package/dist/mint-components/{p-c0f19490.js → p-49400aab.js} +2 -2
- package/dist/mint-components/p-4965dae4.system.js +1 -0
- package/dist/mint-components/p-49b20dae.js +1 -0
- package/dist/mint-components/p-4b9976cc.system.js +1 -0
- package/dist/mint-components/p-4c811d12.entry.js +13 -0
- package/dist/mint-components/{p-2f101bae.entry.js → p-4c9d80e4.entry.js} +1 -1
- package/dist/mint-components/p-4f5329a2.system.js +53 -0
- package/dist/mint-components/{p-00df0cac.js → p-4fed8672.js} +1 -1
- package/dist/mint-components/p-511c87ce.system.entry.js +1 -0
- package/dist/mint-components/p-513f5d80.js +1 -0
- package/dist/mint-components/{p-13ed8586.system.js → p-537a3894.system.js} +1 -1
- package/dist/mint-components/{p-9b6a0152.system.entry.js → p-55eaba8e.system.entry.js} +1 -1
- package/dist/mint-components/p-59b028db.system.js +1 -0
- package/dist/mint-components/p-5e145a54.system.entry.js +1 -0
- package/dist/mint-components/p-5ff2da11.js +1 -0
- package/dist/mint-components/{p-cd569259.system.js → p-60465a2d.system.js} +1 -1
- package/dist/mint-components/{p-fa37513e.system.entry.js → p-60ec0961.system.entry.js} +1 -1
- package/dist/mint-components/p-60f1cca2.system.js +1 -0
- package/dist/mint-components/p-61157c6a.entry.js +11 -0
- package/dist/mint-components/p-621f3e30.entry.js +1 -0
- package/dist/mint-components/p-625ca62f.entry.js +1 -0
- package/dist/mint-components/p-63e29387.js +42 -0
- package/dist/mint-components/{p-99ad7d56.system.js → p-64997b59.system.js} +1 -1
- package/dist/mint-components/{p-b75bb6e3.system.js → p-6578ea31.system.js} +1 -1
- package/dist/mint-components/{p-f0772618.system.entry.js → p-66cf70f7.system.entry.js} +1 -1
- package/dist/mint-components/{p-1a6b7d2a.entry.js → p-67aa0b2d.entry.js} +1 -1
- package/dist/mint-components/p-67ad2252.system.js +1 -0
- package/dist/mint-components/{p-91ab3da1.js → p-68043f30.js} +1 -1
- package/dist/mint-components/p-6b0f79d1.system.entry.js +1 -0
- package/dist/mint-components/{p-8175e85f.system.js → p-6c82d60c.system.js} +1 -1
- package/dist/mint-components/p-6d5bd95a.js +1 -0
- package/dist/mint-components/{p-9ec99ced.js → p-6dc742bc.js} +1 -1
- package/dist/mint-components/p-71271fbd.system.js +1 -0
- package/dist/mint-components/{p-6d9e52c7.system.js → p-7159c51c.system.js} +1 -1
- package/dist/mint-components/{p-05f29f64.js → p-71af93e3.js} +1 -1
- package/dist/mint-components/p-74f43a08.system.js +1 -0
- package/dist/mint-components/p-75b8fd75.entry.js +1 -0
- package/dist/mint-components/p-7602eb6a.entry.js +1 -0
- package/dist/mint-components/p-76d4ef41.entry.js +1 -0
- package/dist/mint-components/{p-6bb25c02.js → p-7837f69e.js} +18 -3
- package/dist/mint-components/{p-8362cb4c.system.entry.js → p-78c754de.system.entry.js} +1 -1
- package/dist/mint-components/{p-6ba44ca9.js → p-79a3344f.js} +1 -1
- package/dist/mint-components/p-7a268047.js +1 -0
- package/dist/mint-components/p-7b8232f8.system.js +6 -0
- package/dist/mint-components/p-7b8cd420.system.entry.js +1 -0
- package/dist/mint-components/p-7b8d29bb.entry.js +1 -0
- package/dist/mint-components/p-7bae9bb7.system.entry.js +1 -0
- package/dist/mint-components/p-7d735c9c.js +448 -0
- package/dist/mint-components/{p-f4a72903.system.entry.js → p-84d1041d.system.entry.js} +1 -1
- package/dist/mint-components/{p-7c2b9fe4.system.js → p-867b2baf.system.js} +1 -1
- package/dist/mint-components/p-8a6494c7.system.js +1 -0
- package/dist/mint-components/p-8c3c4e92.js +112 -0
- package/dist/mint-components/p-8caef004.js +1 -0
- package/dist/mint-components/{p-ae1ea5ac.system.js → p-8e28333b.system.js} +1 -1
- package/dist/mint-components/p-916a2045.system.entry.js +1 -0
- package/dist/mint-components/p-92a54b0c.entry.js +1 -0
- package/dist/mint-components/{p-c2fdd608.system.entry.js → p-9491f5fb.system.entry.js} +1 -1
- package/dist/mint-components/{p-a9f4ddb1.js → p-9580aac3.js} +1 -1
- package/dist/mint-components/p-967a9040.system.js +1 -0
- package/dist/mint-components/p-976ee669.js +1 -0
- package/dist/mint-components/p-978d06ab.entry.js +1 -0
- package/dist/mint-components/{p-6d2f5a1d.js → p-97dc6863.js} +2 -2
- package/dist/mint-components/{p-3f7b81b8.js → p-9c79ab08.js} +2 -2
- package/dist/mint-components/p-9e297104.entry.js +1 -0
- package/dist/mint-components/p-9eba8408.js +1 -0
- package/dist/mint-components/p-a0730259.entry.js +99 -0
- package/dist/mint-components/p-a38dd63f.system.entry.js +1 -0
- package/dist/mint-components/p-a44a912b.entry.js +1 -0
- package/dist/mint-components/{p-35b475bf.js → p-a45680fe.js} +1 -1
- package/dist/mint-components/p-a4e8eb33.entry.js +1 -0
- package/dist/mint-components/p-a513c1a6.js +1 -0
- package/dist/mint-components/p-a597b136.entry.js +1 -0
- package/dist/mint-components/{p-127e66c2.system.js → p-a6f4fb03.system.js} +1 -1
- package/dist/mint-components/{p-faba3198.entry.js → p-a7ee19dc.entry.js} +1 -1
- package/dist/mint-components/p-a8c86cd8.system.entry.js +1 -0
- package/dist/mint-components/p-a9ad7fb2.system.entry.js +1 -0
- package/dist/mint-components/{p-0d182dc1.system.js → p-aa08457e.system.js} +1 -1
- package/dist/mint-components/p-aa8c6332.js +1 -0
- package/dist/mint-components/{p-e8ffcc68.entry.js → p-ab018deb.entry.js} +2 -2
- package/dist/mint-components/p-ad4348c3.system.js +1 -0
- package/dist/mint-components/{p-f2d8d3d3.system.entry.js → p-af69ee79.system.entry.js} +1 -1
- package/dist/mint-components/p-b1eafaae.entry.js +25 -0
- package/dist/mint-components/p-b487cb00.system.entry.js +1 -0
- package/dist/mint-components/{p-36ffebd8.system.entry.js → p-b55002dc.system.entry.js} +1 -1
- package/dist/mint-components/{p-e5d0375e.system.js → p-b6911812.system.js} +1 -1
- package/dist/mint-components/p-b703c89f.system.entry.js +1 -0
- package/dist/mint-components/p-b8d3fb57.entry.js +273 -0
- package/dist/mint-components/p-bb452830.system.js +1 -0
- package/dist/mint-components/{p-5488fdd9.system.js → p-bb5d153f.system.js} +1 -1
- package/dist/mint-components/p-bcac83f0.system.js +1 -0
- package/dist/mint-components/p-bd093069.system.entry.js +1 -0
- package/dist/mint-components/p-be88596c.system.js +1 -0
- package/dist/mint-components/{p-2ae0e06a.entry.js → p-bfd77a07.entry.js} +1 -1
- package/dist/mint-components/p-c065057d.entry.js +17 -0
- package/dist/mint-components/p-c210374a.system.js +1 -0
- package/dist/mint-components/{p-d6831af5.js → p-c30ad421.js} +1 -1
- package/dist/mint-components/{p-96431b4f.system.entry.js → p-c3dce602.system.entry.js} +1 -1
- package/dist/mint-components/p-c531cc75.entry.js +1 -0
- package/dist/mint-components/p-c5fea579.system.entry.js +1 -0
- package/dist/mint-components/{p-527216de.system.js → p-c6fa4cc5.system.js} +1 -1
- package/dist/mint-components/p-c7c11325.js +1 -0
- package/dist/mint-components/p-c85f204b.system.js +1 -0
- package/dist/mint-components/{p-90fc6774.system.entry.js → p-c86f64ad.system.entry.js} +1 -1
- package/dist/mint-components/{p-95b88eb6.system.js → p-c994512c.system.js} +1 -1
- package/dist/mint-components/{p-0b4cac9f.system.entry.js → p-cb845a3a.system.entry.js} +1 -1
- package/dist/mint-components/{p-9386ad84.system.entry.js → p-cc8ca3ff.system.entry.js} +1 -1
- package/dist/mint-components/p-cf22cf56.entry.js +1 -0
- package/dist/mint-components/p-cf4e1709.entry.js +1 -0
- package/dist/mint-components/{p-0d2d0b6d.entry.js → p-d08bcd88.entry.js} +1 -1
- package/dist/mint-components/{p-a71b9154.system.js → p-d09d3b8f.system.js} +1 -1
- package/dist/mint-components/p-d399b343.system.entry.js +1 -0
- package/dist/mint-components/{p-8c0b7881.system.entry.js → p-d4edce6c.system.entry.js} +1 -1
- package/dist/mint-components/p-db1a0db1.js +1233 -0
- package/dist/mint-components/p-dcc50d90.entry.js +1 -0
- package/dist/mint-components/p-dd30354a.system.entry.js +1 -0
- package/dist/mint-components/{p-91959fbe.js → p-ddf3c05e.js} +1 -1
- package/dist/mint-components/{p-bdb7d451.system.js → p-e0a724dd.system.js} +21 -21
- package/dist/mint-components/{p-2d52e2d7.system.js → p-e174b704.system.js} +1 -1
- package/dist/mint-components/{p-4e526a94.js → p-e711d0e9.js} +1 -1
- package/dist/mint-components/{p-7f80a9d7.entry.js → p-ea063d99.entry.js} +1 -1
- package/dist/mint-components/p-eaeddfe2.system.js +1 -0
- package/dist/mint-components/p-eba70d67.system.entry.js +1 -0
- package/dist/mint-components/p-ecc84140.system.entry.js +1 -0
- package/dist/mint-components/p-ed16b35a.js +1 -0
- package/dist/mint-components/p-ee92a728.system.entry.js +1 -0
- package/dist/mint-components/{p-7dabdca6.system.entry.js → p-eea87fdc.system.entry.js} +1 -1
- package/dist/mint-components/{p-01dd541f.system.js → p-f0eae4e6.system.js} +1 -1
- package/dist/mint-components/p-f1dc581f.js +1 -0
- package/dist/mint-components/p-f1f6a13d.system.js +1 -0
- package/dist/mint-components/p-f370bddc.entry.js +13 -0
- package/dist/mint-components/{p-4e451f75.js → p-f5fff87e.js} +1 -1
- package/dist/mint-components/p-f6baa0c9.system.js +1 -0
- package/dist/mint-components/{p-284e4ed5.entry.js → p-f7c0877d.entry.js} +1 -1
- package/dist/mint-components/p-f860e7f1.entry.js +9 -0
- package/dist/mint-components/p-f9c7248e.js +1 -0
- package/dist/mint-components/{p-19bc3406.system.entry.js → p-fb2976fc.system.entry.js} +1 -1
- package/dist/mint-components/{p-59274a91.system.js → p-ff0e1564.system.js} +1 -1
- package/dist/types/components/sqm-big-stat/BigStat.stories.d.ts +2 -0
- package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +5 -0
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +47 -1
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +2 -0
- package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +1 -0
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code-view.d.ts +2 -0
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +43 -0
- package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +1 -0
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +4 -1
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +15 -0
- package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +0 -1
- package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +1 -0
- package/dist/types/components/sqm-hero/Hero.stories.d.ts +1 -0
- package/dist/types/components/sqm-hero/sqm-hero-view.d.ts +1 -0
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +9 -1
- package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +1 -0
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +20 -0
- package/dist/types/components/sqm-image/sqm-image.d.ts +1 -0
- package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +2 -1
- package/dist/types/components/sqm-invoice-table/columns/InvoiceTableColumn.d.ts +1 -0
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.d.ts +1 -0
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +1 -0
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.d.ts +1 -0
- package/dist/types/components/sqm-invoice-table/mockInvoiceData.d.ts +1 -0
- package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +3 -0
- package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +1 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +6 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +53 -11
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +6 -0
- package/dist/types/components/sqm-link-button/sqm-link-button.d.ts +1 -0
- package/dist/types/components/sqm-logout-current-user/sqm-logout-current-user.d.ts +1 -0
- 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 +1 -0
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.d.ts +1 -0
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +16 -0
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.d.ts +8 -0
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +57 -0
- package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +1 -0
- package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +9 -2
- 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 +2 -0
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +1 -0
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -0
- package/dist/types/components/sqm-portal-forgot-password/PortalForgotPassword.stories.d.ts +1 -0
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +5 -1
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +15 -0
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +3 -0
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +19 -0
- package/dist/types/components/sqm-portal-frame/usePortalFrame.d.ts +2 -1
- package/dist/types/components/sqm-portal-login/PortalLogin.stories.d.ts +1 -0
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +1 -0
- package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +1 -0
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +1 -0
- package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +1 -0
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +3 -1
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +3 -0
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +21 -3
- package/dist/types/components/sqm-program-menu/sqm-program-menu.d.ts +1 -0
- package/dist/types/components/sqm-qr-code/sqm-qr-code.d.ts +1 -0
- package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +5 -2
- package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +25 -2
- package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +1 -0
- package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +43 -0
- package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +1 -0
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +1 -0
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +7 -0
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +3 -0
- package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +2 -1
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +457 -437
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +10 -1
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +3 -2
- package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/mockTaxData.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +2 -0
- package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +1 -1
- package/dist/types/components/sqm-route/sqm-route.d.ts +1 -0
- package/dist/types/components/sqm-router/sqm-router.d.ts +2 -0
- package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +1 -8
- 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 +2 -1
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +19 -6
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +43 -0
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +2 -0
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +44 -1
- package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +3 -0
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +25 -0
- package/dist/types/components/sqm-stencilbook/BrandSelector.d.ts +9 -0
- package/dist/types/components/sqm-stencilbook/Themes.d.ts +6 -6
- package/dist/types/components/sqm-tabs/Tabs.stories.d.ts +1 -0
- package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +1 -0
- package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +10 -0
- package/dist/types/components/sqm-task-card/DetailsView.d.ts +6 -0
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +5 -0
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +33 -4
- package/dist/types/components/sqm-task-card/useTaskCard.d.ts +9 -0
- package/dist/types/components/sqm-text/Text.stories.d.ts +6 -0
- package/dist/types/components/sqm-text/sqm-text.d.ts +13 -0
- package/dist/types/components/sqm-text-span/sqm-text-span-view.d.ts +4 -2
- package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +14 -1
- package/dist/types/components/sqm-timeline/Timeline.stories.d.ts +1 -0
- package/dist/types/components/sqm-timeline/sqm-timeline-entry-view.d.ts +2 -0
- package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +14 -0
- package/dist/types/components/sqm-timeline/sqm-timeline.d.ts +3 -1
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +2 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -2
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +6 -2
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -1
- package/dist/types/components/tax-and-cash/{sqm-tax-and-cash/data.d.ts → data.d.ts} +9 -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 +4 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +4 -1
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +12 -3
- 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 +23 -6
- 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 +4 -2
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +16 -8
- 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 +5 -0
- package/dist/types/components.d.ts +1288 -120
- 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 +10 -2
- package/dist/types/insertfont.d.ts +1 -0
- package/dist/types/saasquatch.d.ts +142 -0
- package/dist/types/utils/parseStates.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +3 -2
- package/shoelace/assets/icons/twitter-x.svg +4 -0
- package/dist/cjs/ErrorView-b2fcf954.js +0 -35
- package/dist/cjs/copy-text-view-c85acaaa.js +0 -96
- package/dist/cjs/sqm-asset-card-view-21ddf04f.js +0 -51
- package/dist/cjs/sqm-asset-card.cjs.entry.js +0 -45
- package/dist/cjs/sqm-invoice-table-view-5c74607f.js +0 -2074
- package/dist/cjs/sqm-leaderboard-rank-view-d39a55d8.js +0 -10
- package/dist/cjs/sqm-navigation-sidebar-item-view-6f35d2ee.js +0 -45
- package/dist/cjs/sqm-portal-forgot-password-view-78f19ef9.js +0 -45
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +0 -127
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +0 -178
- package/dist/cjs/sqm-text-span-view-0aa82125.js +0 -62
- package/dist/collection/components/sqm-asset-card/AssetCard.stories.js +0 -29
- package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +0 -46
- package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +0 -107
- package/dist/collection/components/sqm-asset-card/useAssetCard.js +0 -9
- package/dist/esm/ErrorView-48e2b969.js +0 -33
- package/dist/esm/copy-text-view-782137ba.js +0 -94
- package/dist/esm/sqm-asset-card-view-fe5db3c0.js +0 -49
- package/dist/esm/sqm-asset-card.entry.js +0 -41
- package/dist/esm/sqm-invoice-table-view-3491dd80.js +0 -2058
- package/dist/esm/sqm-leaderboard-rank-view-753c8d4a.js +0 -8
- package/dist/esm/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -43
- package/dist/esm/sqm-portal-forgot-password-view-3d3182f1.js +0 -43
- package/dist/esm/sqm-portal-forgot-password.entry.js +0 -123
- package/dist/esm/sqm-referred-registration.entry.js +0 -174
- package/dist/esm/sqm-text-span-view-ca32495e.js +0 -60
- package/dist/esm-es5/ErrorView-48e2b969.js +0 -1
- package/dist/esm-es5/GenericTableView-7b9087af.js +0 -1
- package/dist/esm-es5/ShadowViewAddon-f2176779.js +0 -1
- package/dist/esm-es5/copy-text-view-782137ba.js +0 -1
- package/dist/esm-es5/email-registration-view-a7818cf2.js +0 -1
- package/dist/esm-es5/index.module-89a79f66.js +0 -1
- package/dist/esm-es5/luxon-8d51c92b.js +0 -1
- package/dist/esm-es5/mixins-83f90fa1.js +0 -1
- package/dist/esm-es5/re-render-cc945f38.js +0 -1
- package/dist/esm-es5/sqm-asset-card-view-fe5db3c0.js +0 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +0 -1
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +0 -1
- package/dist/esm-es5/sqm-big-stat_43.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-3491dd80.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-753c8d4a.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-9d802b78.js +0 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-3d3182f1.js +0 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-login-view-7e49609a.js +0 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +0 -1
- package/dist/esm-es5/sqm-text-span-view-ca32495e.js +0 -1
- package/dist/esm-es5/stencil-hooks.module-4bc38af4.js +0 -53
- package/dist/esm-es5/useChildElements-7945ae56.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-dc4ad9f2.js +0 -1
- package/dist/esm-es5/useLeadFormState-9016d812.js +0 -1
- package/dist/esm-es5/usePayoutStatus-f07bcf90.js +0 -6
- package/dist/esm-es5/usePortalLogin-ef647a50.js +0 -1
- package/dist/esm-es5/usePortalRegistrationForm-4b35a357.js +0 -1
- package/dist/esm-es5/useReferralCodes-8f75921a.js +0 -1
- package/dist/esm-es5/useReferralTable-b3876ed6.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-d6f33135.js +0 -1
- package/dist/esm-es5/useVerificationEmail-edc318cb.js +0 -1
- package/dist/esm-es5/utilities-5b0ca040.js +0 -1
- package/dist/esm-es5/utils-334c1e34.js +0 -1
- package/dist/mint-components/p-00ed4c2e.entry.js +0 -1
- package/dist/mint-components/p-01a851f7.system.entry.js +0 -1
- package/dist/mint-components/p-0309fdfa.entry.js +0 -1
- package/dist/mint-components/p-04a6e457.entry.js +0 -1
- package/dist/mint-components/p-0c78815e.system.entry.js +0 -1
- package/dist/mint-components/p-0c9debc1.system.js +0 -6
- package/dist/mint-components/p-0d939b73.system.js +0 -1
- package/dist/mint-components/p-0ebab63e.system.js +0 -1
- package/dist/mint-components/p-12bba567.entry.js +0 -1
- package/dist/mint-components/p-141bf5c1.system.entry.js +0 -1
- package/dist/mint-components/p-14a65f29.system.js +0 -1
- package/dist/mint-components/p-1513309d.entry.js +0 -1
- package/dist/mint-components/p-18425f38.system.entry.js +0 -1
- package/dist/mint-components/p-1870ab08.system.entry.js +0 -1
- package/dist/mint-components/p-19ccb4ce.js +0 -1
- package/dist/mint-components/p-1b3ab15a.system.entry.js +0 -1
- package/dist/mint-components/p-1d704c40.system.js +0 -1
- package/dist/mint-components/p-1fa9ed0d.system.entry.js +0 -1
- package/dist/mint-components/p-21620f81.system.entry.js +0 -1
- package/dist/mint-components/p-229f797b.js +0 -1
- package/dist/mint-components/p-24db5c70.js +0 -1
- package/dist/mint-components/p-267c8f8c.entry.js +0 -144
- package/dist/mint-components/p-275b4767.entry.js +0 -1
- package/dist/mint-components/p-2bbff88f.entry.js +0 -1
- package/dist/mint-components/p-2da21ba4.entry.js +0 -1
- package/dist/mint-components/p-2dca9e1a.system.js +0 -1
- package/dist/mint-components/p-31015791.js +0 -1
- package/dist/mint-components/p-33c96e14.entry.js +0 -16
- package/dist/mint-components/p-37996351.system.js +0 -1
- package/dist/mint-components/p-37a4452c.system.entry.js +0 -1
- package/dist/mint-components/p-380bfde1.entry.js +0 -1
- package/dist/mint-components/p-38e5c429.system.js +0 -1
- package/dist/mint-components/p-38fc919b.entry.js +0 -1
- package/dist/mint-components/p-3a62a7e2.system.js +0 -1
- package/dist/mint-components/p-3b90e01b.system.js +0 -1
- package/dist/mint-components/p-3db34d68.js +0 -1
- package/dist/mint-components/p-3f6e0197.system.entry.js +0 -1
- package/dist/mint-components/p-420554af.system.entry.js +0 -1
- package/dist/mint-components/p-42187319.system.entry.js +0 -1
- package/dist/mint-components/p-4428294b.entry.js +0 -1
- package/dist/mint-components/p-4794641c.system.js +0 -1
- package/dist/mint-components/p-48135f99.system.js +0 -53
- package/dist/mint-components/p-492b70db.system.js +0 -1
- package/dist/mint-components/p-49932f12.system.js +0 -1
- package/dist/mint-components/p-4e5af50c.js +0 -1
- package/dist/mint-components/p-53730ffe.entry.js +0 -17
- package/dist/mint-components/p-5cb7f9fc.system.entry.js +0 -1
- package/dist/mint-components/p-6055eb4c.system.js +0 -1
- package/dist/mint-components/p-626e9e84.js +0 -1
- package/dist/mint-components/p-6333265f.system.js +0 -1
- package/dist/mint-components/p-635d5ef2.system.js +0 -1
- package/dist/mint-components/p-63a75798.js +0 -1
- package/dist/mint-components/p-6427e963.entry.js +0 -1
- package/dist/mint-components/p-65069b66.js +0 -1248
- package/dist/mint-components/p-653f963f.entry.js +0 -13
- package/dist/mint-components/p-65ba9e94.entry.js +0 -1
- package/dist/mint-components/p-6b7a595f.system.js +0 -1
- package/dist/mint-components/p-6cd4f2b1.system.js +0 -1
- package/dist/mint-components/p-6eaf9c57.entry.js +0 -1
- package/dist/mint-components/p-775f3ded.entry.js +0 -1
- package/dist/mint-components/p-7846937e.entry.js +0 -13
- package/dist/mint-components/p-7893e7d1.entry.js +0 -9
- package/dist/mint-components/p-7ab21e4d.entry.js +0 -1
- package/dist/mint-components/p-7fe7e515.entry.js +0 -205
- package/dist/mint-components/p-837a0fdd.js +0 -1
- package/dist/mint-components/p-85671c3d.system.entry.js +0 -1
- package/dist/mint-components/p-8abfeff8.entry.js +0 -1
- package/dist/mint-components/p-8c23d1b8.js +0 -1
- package/dist/mint-components/p-8d9d04b7.system.entry.js +0 -1
- package/dist/mint-components/p-91521e9d.js +0 -1
- package/dist/mint-components/p-92816d1f.js +0 -1
- package/dist/mint-components/p-94a876b9.js +0 -1
- package/dist/mint-components/p-97d4d651.system.js +0 -1
- package/dist/mint-components/p-98698131.js +0 -1
- package/dist/mint-components/p-986d4c17.system.entry.js +0 -1
- package/dist/mint-components/p-9acb5038.js +0 -1
- package/dist/mint-components/p-9cf80e85.system.entry.js +0 -1
- package/dist/mint-components/p-aad32fb6.system.js +0 -1
- package/dist/mint-components/p-b207beeb.entry.js +0 -1
- package/dist/mint-components/p-b7d1469d.system.entry.js +0 -1
- package/dist/mint-components/p-b82e1935.system.entry.js +0 -1
- package/dist/mint-components/p-ba42732b.system.entry.js +0 -1
- package/dist/mint-components/p-bfc7cfc0.system.js +0 -1
- package/dist/mint-components/p-c060f770.system.entry.js +0 -1
- package/dist/mint-components/p-c1b074b6.js +0 -394
- package/dist/mint-components/p-c36506f6.system.entry.js +0 -1
- package/dist/mint-components/p-c9f1dde7.js +0 -1
- package/dist/mint-components/p-cb7bdbe4.entry.js +0 -1
- package/dist/mint-components/p-cbbfac66.entry.js +0 -25
- package/dist/mint-components/p-cd1d497f.system.js +0 -1
- package/dist/mint-components/p-cd651f81.js +0 -42
- package/dist/mint-components/p-d8ea88f9.entry.js +0 -273
- package/dist/mint-components/p-da7708a7.entry.js +0 -1
- package/dist/mint-components/p-dbcb5359.js +0 -1
- package/dist/mint-components/p-dcc81e90.entry.js +0 -1
- package/dist/mint-components/p-e07bc6c4.system.js +0 -1
- package/dist/mint-components/p-e5a5ae7f.system.entry.js +0 -1
- package/dist/mint-components/p-e6f50ffd.entry.js +0 -1
- package/dist/mint-components/p-e8e48982.js +0 -1
- package/dist/mint-components/p-f26aedcd.system.js +0 -1
- package/dist/mint-components/p-f56bedd5.js +0 -1
- package/dist/mint-components/p-f708da7b.js +0 -1
- package/dist/mint-components/p-f7c99803.system.js +0 -1
- package/dist/mint-components/p-f98a4354.js +0 -1
- package/dist/types/components/sqm-asset-card/AssetCard.stories.d.ts +0 -7
- package/dist/types/components/sqm-asset-card/sqm-asset-card-view.d.ts +0 -8
- package/dist/types/components/sqm-asset-card/sqm-asset-card.d.ts +0 -24
- package/dist/types/components/sqm-asset-card/useAssetCard.d.ts +0 -7
|
@@ -1,142 +1,22 @@
|
|
|
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,
|
|
1
|
+
import { h, r as registerInstance, c as Host, g as getElement } from './index-b3a06de8.js';
|
|
2
|
+
import { i as intl } from './global-1099f20d.js';
|
|
3
|
+
import { m as useRef, k as useState, f as useEffect, n as h$1, u as useMemo, b as browser, j as useReducer } from './dom-context-hooks.module-63370afd.js';
|
|
4
|
+
import { d as dist, _, L, J, t as Pn, F as Fn, x as $n, $ as $e, i as isDemo, p as En, u as useCallback, R as Rn, w as wn } from './index.module-c9811a48.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 } from './utils-84b4b092.js';
|
|
8
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
|
-
import
|
|
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 {
|
|
20
|
-
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-f07bcf90.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;
|
|
9
|
+
import './mixins-f750863a.js';
|
|
10
|
+
import { G as GenericTableView } from './GenericTableView-e43d310f.js';
|
|
11
|
+
import { u as useRerenderListener, a as useRequestRerender } from './re-render-7e22fb0d.js';
|
|
12
|
+
import { u as useChildElements } from './useChildElements-3d872cef.js';
|
|
13
|
+
import { l as luxon } from './luxon-bbf75a9d.js';
|
|
14
|
+
import { g as generateUserError } from './useReferralTable-909ccb28.js';
|
|
15
|
+
import { a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, A as ADDRESS_REGIONS } from './IndirectTaxDetailsView-0a57b622.js';
|
|
16
|
+
import { t as taxTypeToName, v as validTaxDocument, g as getCountryObj, L as LoadingView, f as formatErrorMessage, a as validateBillingField, o as objectIsFull } from './utils-6122971b.js';
|
|
17
|
+
import { i as FORM_STEPS, a as TAX_FORM_CONTEXT_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, T as TAX_CONTEXT_NAMESPACE, F as FINANCE_NETWORK_SETTINGS_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, d as COUNTRIES_QUERY_NAMESPACE, C as CURRENCIES_NAMESPACE } from './data-807686c2.js';
|
|
18
|
+
import { b as VERIFICATION_EVENT_KEY } from './keys-406491dc.js';
|
|
19
|
+
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-42cc6a2c.js';
|
|
140
20
|
|
|
141
21
|
function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
142
22
|
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;
|
|
@@ -680,45 +560,20 @@ const style = {
|
|
|
680
560
|
gap: "8px",
|
|
681
561
|
},
|
|
682
562
|
ErrorText: {
|
|
683
|
-
color: "var(--
|
|
563
|
+
color: "var(--sqm-danger-color-icon)",
|
|
684
564
|
marginTop: "10px",
|
|
685
565
|
},
|
|
686
566
|
PageDescriptionText: {
|
|
687
|
-
color: "var(--
|
|
567
|
+
color: "var(--sqm-text-subdued)",
|
|
688
568
|
fontSize: "var(--sl-font-size-medium)",
|
|
689
569
|
},
|
|
690
570
|
DescriptionText: {
|
|
691
|
-
color: "var(--
|
|
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
|
-
},
|
|
571
|
+
color: "var(--sqm-text-subdued)",
|
|
707
572
|
},
|
|
708
573
|
RadioContainer: {
|
|
709
574
|
display: "flex",
|
|
710
575
|
flexDirection: "column",
|
|
711
576
|
},
|
|
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
|
-
},
|
|
722
577
|
Checkbox: {
|
|
723
578
|
"&::part(control)": {
|
|
724
579
|
borderRadius: "50% !important",
|
|
@@ -730,8 +585,8 @@ const style = {
|
|
|
730
585
|
InputContainer: {
|
|
731
586
|
padding: "16px",
|
|
732
587
|
margin: "16px 0px 16px 0px",
|
|
733
|
-
borderTop: "1px solid var(--
|
|
734
|
-
borderBottom: "1px solid var(--
|
|
588
|
+
borderTop: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
589
|
+
borderBottom: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
735
590
|
display: "flex",
|
|
736
591
|
flexDirection: "column",
|
|
737
592
|
width: "100%",
|
|
@@ -753,37 +608,20 @@ const style = {
|
|
|
753
608
|
width: "16px",
|
|
754
609
|
height: "16px",
|
|
755
610
|
borderRadius: "50%",
|
|
756
|
-
background: "var(--
|
|
611
|
+
background: "var(--sqm-skeleton-background)",
|
|
757
612
|
},
|
|
758
613
|
SmallSkeleton: {
|
|
759
614
|
width: "100px",
|
|
760
615
|
height: "16px",
|
|
761
616
|
borderRadius: "50px",
|
|
762
|
-
background: "var(--
|
|
617
|
+
background: "var(--sqm-skeleton-background)",
|
|
763
618
|
},
|
|
764
619
|
LargeSkeleton: {
|
|
765
620
|
width: "100%",
|
|
766
621
|
maxWidth: "320px",
|
|
767
622
|
height: "40px",
|
|
768
623
|
borderRadius: "50px",
|
|
769
|
-
background: "var(--
|
|
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
|
-
},
|
|
624
|
+
background: "var(--sqm-skeleton-background)",
|
|
787
625
|
},
|
|
788
626
|
InfoWarningIcon: {
|
|
789
627
|
height: "26px",
|
|
@@ -829,20 +667,16 @@ const vanillaStyle = `
|
|
|
829
667
|
font-weight: 600
|
|
830
668
|
}
|
|
831
669
|
|
|
832
|
-
p {
|
|
833
|
-
line-height: 18px;
|
|
834
|
-
color: var(--sl-color-gray-800);
|
|
835
|
-
font-size: var(--sl-font-size-small);
|
|
836
|
-
}
|
|
837
|
-
|
|
838
670
|
/* this class is dynamically applied in controller */
|
|
839
671
|
.error-input::part(base) {
|
|
840
|
-
border:
|
|
841
|
-
border-
|
|
672
|
+
--sqm-input-border-color: var(--sqm-danger-color-border);
|
|
673
|
+
--sl-input-border-color: var(--sqm-danger-color-border);
|
|
674
|
+
--sl-input-border-color-hover: var(--sqm-danger-color-border);
|
|
675
|
+
--sl-input-border-color-focus: var(--sqm-danger-color-background);
|
|
842
676
|
}
|
|
843
677
|
|
|
844
678
|
.error-input::part(help-text) {
|
|
845
|
-
color: var(--
|
|
679
|
+
color: var(--sqm-danger-color-text);
|
|
846
680
|
}
|
|
847
681
|
|
|
848
682
|
`;
|
|
@@ -894,20 +728,16 @@ const BankingInfoFormView = (props) => {
|
|
|
894
728
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
895
729
|
h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
|
|
896
730
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
|
|
897
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("
|
|
898
|
-
h("
|
|
899
|
-
h("strong", null, text.error.generalTitle),
|
|
900
|
-
h("br", null),
|
|
731
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sqm-form-message", { type: "error" },
|
|
732
|
+
h("p", { part: "alert-title" }, text.error.generalTitle),
|
|
901
733
|
intl.formatMessage({
|
|
902
734
|
id: "generalDescription",
|
|
903
735
|
defaultMessage: text.error.generalDescription,
|
|
904
736
|
}, {
|
|
905
737
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
906
738
|
}))),
|
|
907
|
-
states.isPartner && !states.hideSteps && (h("
|
|
908
|
-
h("
|
|
909
|
-
h("strong", null, text.isPartnerAlertHeader),
|
|
910
|
-
h("br", null),
|
|
739
|
+
states.isPartner && !states.hideSteps && (h("sqm-form-message", { type: "info" },
|
|
740
|
+
h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
|
|
911
741
|
intl.formatMessage({
|
|
912
742
|
id: "isPartnerAlertDescription",
|
|
913
743
|
defaultMessage: text.isPartnerAlertDescription,
|
|
@@ -919,7 +749,7 @@ const BankingInfoFormView = (props) => {
|
|
|
919
749
|
h("p", { class: classes.DescriptionText }, text.paymentMethodSubtext))),
|
|
920
750
|
h("div", null,
|
|
921
751
|
h("div", { class: classes.CheckboxContainer }, states.loading && formState.paymentMethodChecked === undefined ? (getLoadingSkeleton(undefined)) : (h("div", { class: classes.RadioContainer },
|
|
922
|
-
states.hasPayPal && (h("sl-radio", { class: classes.Checkbox, exportparts: "
|
|
752
|
+
states.hasPayPal && (h("sl-radio", { class: classes.Checkbox, exportparts: "base: radio-base", checked: formState.paymentMethodChecked === "toBankAccount", onInput: () => callbacks.setPaymentMethodChecked("toBankAccount"), disabled: states.disabled, id: "toBankAccount", name: "/toBankAccount" }, text.directlyToBankAccount)),
|
|
923
753
|
formState.paymentMethodChecked === "toBankAccount" && (h("div", { class: classes.InputContainer, style: states.hideBanking ? { display: "none" } : {} }, states.loading
|
|
924
754
|
? getLoadingSkeleton("toBankAccount", slots.formInputsSlot.length + 3)
|
|
925
755
|
: [
|
|
@@ -927,7 +757,7 @@ const BankingInfoFormView = (props) => {
|
|
|
927
757
|
slots.paymentMethodSlot,
|
|
928
758
|
slots.formInputsSlot,
|
|
929
759
|
])),
|
|
930
|
-
states.hasPayPal && (h("sl-radio", { class: classes.Checkbox, exportparts: "
|
|
760
|
+
states.hasPayPal && (h("sl-radio", { class: classes.Checkbox, exportparts: "base: radio-base", checked: formState.paymentMethodChecked === "toPayPalAccount", onInput: () => callbacks.setPaymentMethodChecked("toPayPalAccount"), disabled: states.disabled, id: "toPayPalAccount", name: "/toPayPalAccount" }, intl.formatMessage({
|
|
931
761
|
id: "paypal-input-label",
|
|
932
762
|
defaultMessage: text.toPayPalAccount,
|
|
933
763
|
}, { feeCap: states.feeCap }))),
|
|
@@ -936,11 +766,11 @@ const BankingInfoFormView = (props) => {
|
|
|
936
766
|
: slots.paypalInputSlot)),
|
|
937
767
|
h("div", { style: { paddingTop: "24px", paddingBottom: "12px" } },
|
|
938
768
|
h("h4", null, text.paymentSchedule)),
|
|
939
|
-
h("sl-radio", { class: classes.Checkbox, exportparts: "
|
|
769
|
+
h("sl-radio", { class: classes.Checkbox, exportparts: "base: radio-base", checked: formState.paymentScheduleChecked === "BALANCE_THRESHOLD", onInput: () => callbacks.setPaymentScheduleChecked("BALANCE_THRESHOLD"), disabled: states.disabled, id: "paymentSchedulingType", name: "/paymentSchedulingType", value: "BALANCE_THRESHOLD" }, text.paymentScheduleBalanceThreshold),
|
|
940
770
|
formState.paymentScheduleChecked === "BALANCE_THRESHOLD" && (h("div", { class: classes.InputContainer, style: states.hideBalanceThreshold ? { display: "none" } : {} }, states.loading
|
|
941
771
|
? getLoadingSkeleton("toPayPalAccount")
|
|
942
772
|
: slots.paymentThresholdSelectSlot)),
|
|
943
|
-
h("sl-radio", { class: classes.Checkbox, exportparts: "
|
|
773
|
+
h("sl-radio", { class: classes.Checkbox, exportparts: "base: radio-base", checked: formState.paymentScheduleChecked === "FIXED_DAY", onInput: () => callbacks.setPaymentScheduleChecked("FIXED_DAY"), disabled: states.disabled, id: "paymentSchedulingType", name: "/paymentSchedulingType", value: "FIXED_DAY" }, text.paymentScheduleFixedDay),
|
|
944
774
|
formState.paymentScheduleChecked === "FIXED_DAY" && (h("div", { class: classes.InputContainer, style: states.hideFixedDay ? { display: "none" } : {} }, states.loading
|
|
945
775
|
? getLoadingSkeleton("toPayPalAccount")
|
|
946
776
|
: slots.paymentFixedDaySelectSlot))))),
|
|
@@ -948,7 +778,7 @@ const BankingInfoFormView = (props) => {
|
|
|
948
778
|
h("sl-button", Object.assign({ type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading }, (states.hideSteps
|
|
949
779
|
? { onClick: callbacks.onModalOpen }
|
|
950
780
|
: { submit: "submit" }), { exportparts: "base: primarybutton-base" }), text.continueButton),
|
|
951
|
-
!states.hideBackButton && (h("sl-button", { exportparts: "base: secondarybutton-base",
|
|
781
|
+
!states.hideBackButton && (h("sl-button", { exportparts: "base: secondarybutton-base", type: "secondary", onClick: callbacks.onBack }, text.backButton))))));
|
|
952
782
|
};
|
|
953
783
|
|
|
954
784
|
// Hardcoded in Impact backend
|
|
@@ -1070,6 +900,10 @@ function useBankingInfoForm(props) {
|
|
|
1070
900
|
const paymentMethodChecked = !hasPayPal
|
|
1071
901
|
? "toBankAccount"
|
|
1072
902
|
: _paymentMethodChecked;
|
|
903
|
+
useEffect(() => {
|
|
904
|
+
// reset redirect hash
|
|
905
|
+
window.location.hash = "";
|
|
906
|
+
}, []);
|
|
1073
907
|
useEffect(() => {
|
|
1074
908
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1075
909
|
if (!userData)
|
|
@@ -1195,8 +1029,6 @@ function useBankingInfoForm(props) {
|
|
|
1195
1029
|
}
|
|
1196
1030
|
// Fire form change event
|
|
1197
1031
|
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
1198
|
-
// reset redirect hash
|
|
1199
|
-
window.location.hash = "";
|
|
1200
1032
|
await refetch();
|
|
1201
1033
|
setStep("/dashboard");
|
|
1202
1034
|
}
|
|
@@ -1682,7 +1514,15 @@ const BankingInfoForm = class {
|
|
|
1682
1514
|
}, {
|
|
1683
1515
|
email: props.states.email,
|
|
1684
1516
|
});
|
|
1685
|
-
|
|
1517
|
+
const vanillaStyle = `
|
|
1518
|
+
sl-menu-item::part(base) {
|
|
1519
|
+
color: var(--sqm-input-color);
|
|
1520
|
+
}
|
|
1521
|
+
sl-menu-item::part(base):hover {
|
|
1522
|
+
background-color: var(--sqm-input-border-color-hover);
|
|
1523
|
+
}
|
|
1524
|
+
`;
|
|
1525
|
+
return (h(Host, null, h("style", { type: "text/css" }, styleString), h("style", { type: "text/css" }, vanillaStyle), props.states.isPartner && props.states.showVerification ? (h("sl-dialog", { class: sheet.classes.Dialog, open: true, "onSl-hide": props.callbacks.onVerificationHide, label: props.text.verifyEmailHeaderText }, h("sqm-code-verification", { verifyCodeHeaderText: verifyDescription, reverifyCodeHeaderText: verifyDescription, onVerification: props.callbacks.onVerification }))) : null, h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
|
|
1686
1526
|
formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
|
|
1687
1527
|
countryInputSlot: (h("sl-select", Object.assign({ label: props.text.bankLocationLabel, disabled: props.states.saveLoading, required: true, name: "/bankCountry", id: "bankCountry", value: props.states.formState.bankCountry || "", "onSl-select": (e) => { var _a, _b; return props.callbacks.setBankCountry((_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value); } }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.bankCountry) && {
|
|
1688
1528
|
class: "error-input",
|
|
@@ -1827,331 +1667,6 @@ function useDemoBankingInfoForm(props) {
|
|
|
1827
1667
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1828
1668
|
}
|
|
1829
1669
|
|
|
1830
|
-
const style$1 = {
|
|
1831
|
-
Wrapper: {
|
|
1832
|
-
display: "flex",
|
|
1833
|
-
flexDirection: "column",
|
|
1834
|
-
gap: "var(--sl-spacing-medium)",
|
|
1835
|
-
maxWidth: "550px",
|
|
1836
|
-
},
|
|
1837
|
-
HeaderContainer: {
|
|
1838
|
-
display: "flex",
|
|
1839
|
-
flexDirection: "column",
|
|
1840
|
-
},
|
|
1841
|
-
InputsContainer: {
|
|
1842
|
-
display: "flex",
|
|
1843
|
-
gap: "var(--sl-spacing-medium)",
|
|
1844
|
-
position: "relative",
|
|
1845
|
-
flexDirection: "column",
|
|
1846
|
-
},
|
|
1847
|
-
CodeInputContainer: {
|
|
1848
|
-
display: "flex",
|
|
1849
|
-
gap: "var(--sl-spacing-medium)",
|
|
1850
|
-
},
|
|
1851
|
-
CodeInput: {
|
|
1852
|
-
maxWidth: "40px",
|
|
1853
|
-
"&::part(input)": {
|
|
1854
|
-
margin: "0",
|
|
1855
|
-
padding: "0 var(--sl-input-spacing-small)",
|
|
1856
|
-
fontSize: "var(--sl-font-size-large)",
|
|
1857
|
-
},
|
|
1858
|
-
},
|
|
1859
|
-
CodeInputError: {
|
|
1860
|
-
...ErrorStyles,
|
|
1861
|
-
maxWidth: "40px",
|
|
1862
|
-
"&::part(input)": {
|
|
1863
|
-
margin: "0",
|
|
1864
|
-
padding: "0 var(--sl-input-spacing-small)",
|
|
1865
|
-
fontSize: "var(--sl-font-size-large)",
|
|
1866
|
-
},
|
|
1867
|
-
},
|
|
1868
|
-
ErrorText: {
|
|
1869
|
-
color: "var(--sl-color-danger-500)",
|
|
1870
|
-
fontSize: "var(--sl-font-size-small)",
|
|
1871
|
-
margin: "0",
|
|
1872
|
-
},
|
|
1873
|
-
ContinueButton: {
|
|
1874
|
-
width: "100%",
|
|
1875
|
-
maxWidth: "100px",
|
|
1876
|
-
},
|
|
1877
|
-
FooterContainer: {
|
|
1878
|
-
display: "flex",
|
|
1879
|
-
flexDirection: "column",
|
|
1880
|
-
},
|
|
1881
|
-
SkeletonOne: {
|
|
1882
|
-
width: "50%",
|
|
1883
|
-
height: "16px",
|
|
1884
|
-
},
|
|
1885
|
-
SkeletonTwo: {
|
|
1886
|
-
width: "30%",
|
|
1887
|
-
height: "34px",
|
|
1888
|
-
},
|
|
1889
|
-
SkeletonThree: {
|
|
1890
|
-
width: "15%",
|
|
1891
|
-
height: "24px",
|
|
1892
|
-
},
|
|
1893
|
-
};
|
|
1894
|
-
const vanillaStyle$1 = `
|
|
1895
|
-
:host {
|
|
1896
|
-
display: block;
|
|
1897
|
-
}
|
|
1898
|
-
:host([hidden]): {
|
|
1899
|
-
display: none;
|
|
1900
|
-
}
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
`;
|
|
1904
|
-
const sheet$1 = createStyleSheet(style$1);
|
|
1905
|
-
const styleString$1 = sheet$1.toString();
|
|
1906
|
-
function WidgetCodeVerificationView(props) {
|
|
1907
|
-
const { states, refs, callbacks, text } = props;
|
|
1908
|
-
const resendCodeText = intl.formatMessage({
|
|
1909
|
-
id: "resendCodeText",
|
|
1910
|
-
defaultMessage: text.resendCodeText,
|
|
1911
|
-
}, {
|
|
1912
|
-
resendCodeLink: (h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
|
|
1913
|
-
e.preventDefault();
|
|
1914
|
-
callbacks.resendEmail();
|
|
1915
|
-
} }, text.resendCodeLabel)),
|
|
1916
|
-
});
|
|
1917
|
-
const codeResentSuccessfully = intl.formatMessage({
|
|
1918
|
-
id: "codeResentSuccessfully",
|
|
1919
|
-
defaultMessage: text.codeResentSuccessfullyText,
|
|
1920
|
-
}, {
|
|
1921
|
-
email: states.email,
|
|
1922
|
-
});
|
|
1923
|
-
const inputClass = states.verifyFailed
|
|
1924
|
-
? sheet$1.classes.CodeInputError
|
|
1925
|
-
: sheet$1.classes.CodeInput;
|
|
1926
|
-
return (h("div", { part: "sqm-base" },
|
|
1927
|
-
h("style", { type: "text/css" },
|
|
1928
|
-
vanillaStyle$1,
|
|
1929
|
-
styleString$1),
|
|
1930
|
-
h("div", { class: sheet$1.classes.Wrapper },
|
|
1931
|
-
h("div", { class: sheet$1.classes.HeaderContainer },
|
|
1932
|
-
h(TextSpanView, { type: "p" }, intl.formatMessage({
|
|
1933
|
-
id: `emailHeaderText`,
|
|
1934
|
-
defaultMessage: states.verifyFailed
|
|
1935
|
-
? text.reverifyCodeHeaderText
|
|
1936
|
-
: text.verifyCodeHeaderText,
|
|
1937
|
-
}, { email: states.email }))),
|
|
1938
|
-
states.emailResent && (h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
|
|
1939
|
-
h("b", null, codeResentSuccessfully))),
|
|
1940
|
-
h("div", { class: sheet$1.classes.InputsContainer },
|
|
1941
|
-
h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
|
|
1942
|
-
h("sl-input", { class: inputClass, name: "code" }),
|
|
1943
|
-
h("sl-input", { class: inputClass, name: "code" }),
|
|
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
|
-
states.verifyFailed && (h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
|
|
1949
|
-
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)),
|
|
1950
|
-
h("div", { class: sheet$1.classes.FooterContainer },
|
|
1951
|
-
h(TextSpanView, { type: "p" }, resendCodeText)))));
|
|
1952
|
-
}
|
|
1953
|
-
|
|
1954
|
-
const VerifyEmailWithCodeMutation = dist.gql `
|
|
1955
|
-
mutation submitImpactPublisherEmail2FACode(
|
|
1956
|
-
$user: UserIdInput!
|
|
1957
|
-
$code: String!
|
|
1958
|
-
) {
|
|
1959
|
-
submitImpactPublisherEmail2FACode(user: $user, code: $code) {
|
|
1960
|
-
verifiedEmail
|
|
1961
|
-
accessKey
|
|
1962
|
-
}
|
|
1963
|
-
}
|
|
1964
|
-
`;
|
|
1965
|
-
function useWidgetCodeVerification(props) {
|
|
1966
|
-
const host = l();
|
|
1967
|
-
const [_, setShowCode] = Pn(SHOW_CODE_NAMESPACE);
|
|
1968
|
-
const email = Fn(VERIFICATION_EMAIL_NAMESPACE);
|
|
1969
|
-
const [emailSent, setEmailSent] = useState(false);
|
|
1970
|
-
const [emailResent, setEmailResent] = useState(false);
|
|
1971
|
-
const [codeRef, setCodeRef] = useState(null);
|
|
1972
|
-
const [validationError, setValidationError] = useState(false);
|
|
1973
|
-
const [emailError, setEmailError] = useState(false);
|
|
1974
|
-
const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail();
|
|
1975
|
-
useEffect(() => {
|
|
1976
|
-
if (!codeRef)
|
|
1977
|
-
return;
|
|
1978
|
-
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1979
|
-
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1980
|
-
codeElements.forEach((element, idx) => {
|
|
1981
|
-
element.addEventListener("focus", (e) => {
|
|
1982
|
-
e.target.select();
|
|
1983
|
-
});
|
|
1984
|
-
element.addEventListener("keydown", (e) => {
|
|
1985
|
-
if (e.key === "Backspace" && e.target.value === "") {
|
|
1986
|
-
codeElements[Math.max(0, idx - 1)].focus();
|
|
1987
|
-
}
|
|
1988
|
-
});
|
|
1989
|
-
element.addEventListener("input", (e) => {
|
|
1990
|
-
const input = e.data;
|
|
1991
|
-
if (!input)
|
|
1992
|
-
return;
|
|
1993
|
-
if (idx === codeElements.length - 1) {
|
|
1994
|
-
e.target.value = input.slice(0, 1);
|
|
1995
|
-
return;
|
|
1996
|
-
}
|
|
1997
|
-
if (input.length > 1) {
|
|
1998
|
-
const rest = input.slice(1);
|
|
1999
|
-
e.target.value = input.slice(0, 1);
|
|
2000
|
-
codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
|
|
2001
|
-
inputType: "insertFromPaste",
|
|
2002
|
-
data: rest,
|
|
2003
|
-
}));
|
|
2004
|
-
}
|
|
2005
|
-
codeElements[idx + 1].focus();
|
|
2006
|
-
});
|
|
2007
|
-
});
|
|
2008
|
-
}, [codeRef]);
|
|
2009
|
-
const reset = () => {
|
|
2010
|
-
setShowCode(false);
|
|
2011
|
-
setValidationError(false);
|
|
2012
|
-
};
|
|
2013
|
-
const resendEmail = async () => {
|
|
2014
|
-
// UI should only allow this to be called if initialized, but checking just in case
|
|
2015
|
-
if (!initialized)
|
|
2016
|
-
return;
|
|
2017
|
-
const result = await sendEmail();
|
|
2018
|
-
if (!result) {
|
|
2019
|
-
setEmailError(true);
|
|
2020
|
-
return;
|
|
2021
|
-
}
|
|
2022
|
-
if (emailSent)
|
|
2023
|
-
setEmailResent(true);
|
|
2024
|
-
setEmailSent(true);
|
|
2025
|
-
};
|
|
2026
|
-
const submitCode = async () => {
|
|
2027
|
-
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
2028
|
-
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
2029
|
-
if (codeElements.find((el) => !el.value)) {
|
|
2030
|
-
setValidationError(true);
|
|
2031
|
-
return;
|
|
2032
|
-
}
|
|
2033
|
-
let code = "";
|
|
2034
|
-
codeElements.forEach((element) => {
|
|
2035
|
-
code = `${code}${element.value}`;
|
|
2036
|
-
});
|
|
2037
|
-
// UI should only allow this to be called if initialized, but checking just in case
|
|
2038
|
-
if (!initialized)
|
|
2039
|
-
return;
|
|
2040
|
-
setValidationError(false);
|
|
2041
|
-
const res = await verifyEmail(code);
|
|
2042
|
-
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
2043
|
-
props.onVerification(res.accessKey);
|
|
2044
|
-
reset();
|
|
2045
|
-
}
|
|
2046
|
-
else {
|
|
2047
|
-
setValidationError(true);
|
|
2048
|
-
}
|
|
2049
|
-
};
|
|
2050
|
-
useEffect(() => {
|
|
2051
|
-
// Wait for mutations to be determined from user lookup
|
|
2052
|
-
if (!initialized)
|
|
2053
|
-
return;
|
|
2054
|
-
// email should already exist if user has completed email-verification
|
|
2055
|
-
if (!email)
|
|
2056
|
-
resendEmail();
|
|
2057
|
-
else
|
|
2058
|
-
setEmailSent(true);
|
|
2059
|
-
}, [initialized]);
|
|
2060
|
-
return {
|
|
2061
|
-
refs: {
|
|
2062
|
-
codeWrapperRef: setCodeRef,
|
|
2063
|
-
},
|
|
2064
|
-
states: {
|
|
2065
|
-
email: verificationEmail,
|
|
2066
|
-
emailResent,
|
|
2067
|
-
resendError: sendErrors || verifyErrors,
|
|
2068
|
-
initialiseLoading: !initialized,
|
|
2069
|
-
loading: sendLoading || verifyLoading,
|
|
2070
|
-
verifyFailed: !!validationError,
|
|
2071
|
-
},
|
|
2072
|
-
callbacks: {
|
|
2073
|
-
resendEmail,
|
|
2074
|
-
submitCode,
|
|
2075
|
-
},
|
|
2076
|
-
text: props.getTextProps(),
|
|
2077
|
-
};
|
|
2078
|
-
}
|
|
2079
|
-
|
|
2080
|
-
const WidgetCodeVerification = class {
|
|
2081
|
-
constructor(hostRef) {
|
|
2082
|
-
registerInstance(this, hostRef);
|
|
2083
|
-
/**
|
|
2084
|
-
* @uiName Verify code widget header text
|
|
2085
|
-
*/
|
|
2086
|
-
this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2087
|
-
/**
|
|
2088
|
-
* @uiName Reverify code widget header text
|
|
2089
|
-
*/
|
|
2090
|
-
this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2091
|
-
/**
|
|
2092
|
-
* Text displayed under verify button
|
|
2093
|
-
* @uiName Resend code text
|
|
2094
|
-
*/
|
|
2095
|
-
this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
2096
|
-
/**
|
|
2097
|
-
* The link that appears in the resend code link
|
|
2098
|
-
* @uiName Resend code label
|
|
2099
|
-
*/
|
|
2100
|
-
this.resendCodeLabel = "Resend code";
|
|
2101
|
-
/**
|
|
2102
|
-
* Link text displayed under verify button
|
|
2103
|
-
* @uiName Resend code text
|
|
2104
|
-
*/
|
|
2105
|
-
this.codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
2106
|
-
/**
|
|
2107
|
-
* Error text displayed under verification input
|
|
2108
|
-
* @uiName Invalid code text
|
|
2109
|
-
*/
|
|
2110
|
-
this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
2111
|
-
/**
|
|
2112
|
-
* @uiName Verify code button text
|
|
2113
|
-
*/
|
|
2114
|
-
this.verifyText = "Verify";
|
|
2115
|
-
/**
|
|
2116
|
-
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
2117
|
-
* @uiName Network error message
|
|
2118
|
-
*/
|
|
2119
|
-
this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
2120
|
-
h$1(this);
|
|
2121
|
-
}
|
|
2122
|
-
disconnectedCallback() { }
|
|
2123
|
-
getTextProps() {
|
|
2124
|
-
return getProps(this);
|
|
2125
|
-
}
|
|
2126
|
-
render() {
|
|
2127
|
-
const props = isDemo()
|
|
2128
|
-
? useDemoWidgetCodeVerification(this)
|
|
2129
|
-
: useWidgetCodeVerification(this);
|
|
2130
|
-
return h(WidgetCodeVerificationView, Object.assign({}, props));
|
|
2131
|
-
}
|
|
2132
|
-
};
|
|
2133
|
-
function useDemoWidgetCodeVerification(props) {
|
|
2134
|
-
const [emailResent, setEmailResent] = useState(false);
|
|
2135
|
-
const setVerifiedContext = En(VERIFICATION_PARENT_NAMESPACE);
|
|
2136
|
-
return cjs({
|
|
2137
|
-
states: {
|
|
2138
|
-
loading: false,
|
|
2139
|
-
email: "test@example.com",
|
|
2140
|
-
emailResent,
|
|
2141
|
-
resendError: false,
|
|
2142
|
-
verifyFailed: false,
|
|
2143
|
-
},
|
|
2144
|
-
refs: {
|
|
2145
|
-
codeWrapperRef: () => { },
|
|
2146
|
-
},
|
|
2147
|
-
callbacks: {
|
|
2148
|
-
resendEmail: async () => setEmailResent(true),
|
|
2149
|
-
submitCode: async () => setVerifiedContext(true),
|
|
2150
|
-
},
|
|
2151
|
-
text: props.getTextProps(),
|
|
2152
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2153
|
-
}
|
|
2154
|
-
|
|
2155
1670
|
const GET_TAX_DOCUMENT = dist.gql `
|
|
2156
1671
|
mutation createImpactPublisherTaxDocument(
|
|
2157
1672
|
$vars: CreateImpactPublisherTaxDocumentInput!
|
|
@@ -2252,8 +1767,6 @@ function useDocusignForm(props) {
|
|
|
2252
1767
|
throw new Error();
|
|
2253
1768
|
// Fire form change event
|
|
2254
1769
|
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
2255
|
-
// reset redirect hash
|
|
2256
|
-
window.location.hash = "";
|
|
2257
1770
|
setShowExitButton(true);
|
|
2258
1771
|
}
|
|
2259
1772
|
catch (e) {
|
|
@@ -2315,7 +1828,7 @@ function getDocumentType(p) {
|
|
|
2315
1828
|
return undefined;
|
|
2316
1829
|
}
|
|
2317
1830
|
|
|
2318
|
-
const style$
|
|
1831
|
+
const style$1 = {
|
|
2319
1832
|
DocusignStatusContainer: {
|
|
2320
1833
|
width: "100%",
|
|
2321
1834
|
minHeight: "600px",
|
|
@@ -2327,7 +1840,7 @@ const style$2 = {
|
|
|
2327
1840
|
gap: "10px",
|
|
2328
1841
|
margin: "auto",
|
|
2329
1842
|
textAlign: "center",
|
|
2330
|
-
border: "1px solid var(--
|
|
1843
|
+
border: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
2331
1844
|
justifyContent: "center",
|
|
2332
1845
|
},
|
|
2333
1846
|
MessageContainer: {
|
|
@@ -2342,47 +1855,47 @@ const style$2 = {
|
|
|
2342
1855
|
},
|
|
2343
1856
|
},
|
|
2344
1857
|
};
|
|
2345
|
-
const sheet$
|
|
2346
|
-
const styleString$
|
|
1858
|
+
const sheet$1 = createStyleSheet(style$1);
|
|
1859
|
+
const styleString$1 = sheet$1.toString();
|
|
2347
1860
|
const DocusignExpiredView = (props) => {
|
|
2348
|
-
const { classes } = sheet$
|
|
1861
|
+
const { classes } = sheet$1;
|
|
2349
1862
|
const { text } = props;
|
|
2350
1863
|
return (h("div", null,
|
|
2351
|
-
h("style", { type: "text/css" }, styleString$
|
|
1864
|
+
h("style", { type: "text/css" }, styleString$1),
|
|
2352
1865
|
h("div", { class: classes.DocusignStatusContainer },
|
|
2353
1866
|
h("sl-icon", { style: {
|
|
2354
1867
|
width: "50px",
|
|
2355
1868
|
height: "50px",
|
|
2356
|
-
color: "var(--
|
|
1869
|
+
color: "var(--sqm-text)",
|
|
2357
1870
|
}, name: "clock" }),
|
|
2358
1871
|
h("div", { class: classes.MessageContainer },
|
|
2359
1872
|
h("p", { style: { margin: "0" } }, text.docusignExpired)),
|
|
2360
1873
|
h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
2361
1874
|
};
|
|
2362
1875
|
const DocusignErrorView = (props) => {
|
|
2363
|
-
const { classes } = sheet$
|
|
1876
|
+
const { classes } = sheet$1;
|
|
2364
1877
|
const { text } = props;
|
|
2365
1878
|
return (h("div", null,
|
|
2366
|
-
h("style", { type: "text/css" }, styleString$
|
|
1879
|
+
h("style", { type: "text/css" }, styleString$1),
|
|
2367
1880
|
h("div", { class: classes.DocusignStatusContainer },
|
|
2368
1881
|
h("sl-icon", { style: {
|
|
2369
1882
|
width: "50px",
|
|
2370
1883
|
height: "50px",
|
|
2371
|
-
color: "var(--
|
|
1884
|
+
color: "var(--sqm-text)",
|
|
2372
1885
|
}, name: "exclamation-octagon" }),
|
|
2373
1886
|
h("div", { class: classes.MessageContainer },
|
|
2374
1887
|
h("p", { style: { margin: "0" } }, text.docusignError)),
|
|
2375
1888
|
h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
2376
1889
|
};
|
|
2377
1890
|
const DocusignLoadingView = () => {
|
|
2378
|
-
const { classes } = sheet$
|
|
1891
|
+
const { classes } = sheet$1;
|
|
2379
1892
|
return (h("div", null,
|
|
2380
|
-
h("style", { type: "text/css" }, styleString$
|
|
1893
|
+
h("style", { type: "text/css" }, styleString$1),
|
|
2381
1894
|
h("div", { class: classes.DocusignStatusContainer },
|
|
2382
1895
|
h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
2383
1896
|
};
|
|
2384
1897
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
2385
|
-
const { classes } = sheet$
|
|
1898
|
+
const { classes } = sheet$1;
|
|
2386
1899
|
const [iFrameHeight, setiFrameHeight] = useState("100%");
|
|
2387
1900
|
const allowedDomains = [
|
|
2388
1901
|
"referralsaasquatch.com",
|
|
@@ -2396,7 +1909,7 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
2396
1909
|
if (typeof e.data === "number") {
|
|
2397
1910
|
setiFrameHeight(e.data + "px");
|
|
2398
1911
|
}
|
|
2399
|
-
if (e.data === "Complyexchange Thank you page Load") {
|
|
1912
|
+
if (e.data === "Complyexchange Thank you page Load" && !states.loading) {
|
|
2400
1913
|
callbacks.completeDocument();
|
|
2401
1914
|
}
|
|
2402
1915
|
}, []);
|
|
@@ -2415,12 +1928,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
2415
1928
|
return h(DocusignExpiredView, { text: text });
|
|
2416
1929
|
// Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
|
|
2417
1930
|
return (h("div", { style: { height: iFrameHeight } },
|
|
2418
|
-
h("style", { type: "text/css" }, styleString$
|
|
1931
|
+
h("style", { type: "text/css" }, styleString$1),
|
|
2419
1932
|
h("div", { class: classes.IFrameContainer },
|
|
2420
1933
|
h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
2421
1934
|
};
|
|
2422
1935
|
|
|
2423
|
-
const style$
|
|
1936
|
+
const style$2 = {
|
|
2424
1937
|
ModalTitleContainer: {
|
|
2425
1938
|
display: "flex",
|
|
2426
1939
|
gap: "var(--sl-spacing-small)",
|
|
@@ -2457,7 +1970,7 @@ const style$3 = {
|
|
|
2457
1970
|
gap: "8px",
|
|
2458
1971
|
},
|
|
2459
1972
|
ErrorText: {
|
|
2460
|
-
color: "var(--
|
|
1973
|
+
color: "var(--sqm-danger-color-icon)",
|
|
2461
1974
|
marginTop: "10px",
|
|
2462
1975
|
},
|
|
2463
1976
|
DescriptionText: {
|
|
@@ -2466,65 +1979,17 @@ const style$3 = {
|
|
|
2466
1979
|
BoldText: {
|
|
2467
1980
|
fontWeight: "bold",
|
|
2468
1981
|
},
|
|
2469
|
-
|
|
2470
|
-
"
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
"
|
|
2474
|
-
|
|
2475
|
-
margin: "0px",
|
|
2476
|
-
},
|
|
1982
|
+
Container: {
|
|
1983
|
+
width: "100%",
|
|
1984
|
+
display: "flex",
|
|
1985
|
+
justifyContent: "flex-start",
|
|
1986
|
+
flexDirection: "column",
|
|
1987
|
+
gap: "16px",
|
|
2477
1988
|
},
|
|
2478
|
-
|
|
2479
|
-
"
|
|
2480
|
-
|
|
2481
|
-
|
|
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
|
-
},
|
|
2507
|
-
Container: {
|
|
2508
|
-
width: "100%",
|
|
2509
|
-
display: "flex",
|
|
2510
|
-
justifyContent: "flex-start",
|
|
2511
|
-
flexDirection: "column",
|
|
2512
|
-
gap: "16px",
|
|
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
|
-
},
|
|
2524
|
-
CheckboxWrapper: {
|
|
2525
|
-
display: "flex",
|
|
2526
|
-
justifyContent: "flex-start",
|
|
2527
|
-
flexDirection: "column",
|
|
1989
|
+
CheckboxWrapper: {
|
|
1990
|
+
display: "flex",
|
|
1991
|
+
justifyContent: "flex-start",
|
|
1992
|
+
flexDirection: "column",
|
|
2528
1993
|
},
|
|
2529
1994
|
InfoIcon: {
|
|
2530
1995
|
height: "24px",
|
|
@@ -2534,7 +1999,7 @@ const style$3 = {
|
|
|
2534
1999
|
fontSize: "var(--sl-font-size-small)",
|
|
2535
2000
|
},
|
|
2536
2001
|
PageDescriptionText: {
|
|
2537
|
-
color: "var(--
|
|
2002
|
+
color: "var(--sqm-text-subdued)",
|
|
2538
2003
|
fontSize: "var(--sl-font-size-medium)",
|
|
2539
2004
|
},
|
|
2540
2005
|
Dialog: {
|
|
@@ -2560,41 +2025,38 @@ const style$3 = {
|
|
|
2560
2025
|
},
|
|
2561
2026
|
DialogButton: { margin: "auto", width: "100%" },
|
|
2562
2027
|
};
|
|
2563
|
-
const sheet$
|
|
2564
|
-
const styleString$
|
|
2565
|
-
const vanillaStyle$
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
* {
|
|
2570
|
-
margin: 0;
|
|
2571
|
-
padding: 0;
|
|
2572
|
-
box-sizing: border-box;
|
|
2573
|
-
}
|
|
2028
|
+
const sheet$2 = createStyleSheet(style$2);
|
|
2029
|
+
const styleString$2 = sheet$2.toString();
|
|
2030
|
+
const vanillaStyle$1 = `
|
|
2031
|
+
:host{
|
|
2032
|
+
display: block;
|
|
2033
|
+
}
|
|
2574
2034
|
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2035
|
+
* {
|
|
2036
|
+
margin: 0;
|
|
2037
|
+
padding: 0;
|
|
2038
|
+
box-sizing: border-box;
|
|
2039
|
+
}
|
|
2580
2040
|
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2041
|
+
a {
|
|
2042
|
+
color: inherit;
|
|
2043
|
+
text-decoration: underline;
|
|
2044
|
+
cursor: pointer;
|
|
2045
|
+
}
|
|
2584
2046
|
|
|
2585
2047
|
|
|
2586
2048
|
`;
|
|
2587
2049
|
const DocusignFormView = (props) => {
|
|
2588
2050
|
var _a;
|
|
2589
2051
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
2590
|
-
const { classes } = sheet$
|
|
2052
|
+
const { classes } = sheet$2;
|
|
2591
2053
|
return (h("div", { class: classes.Container },
|
|
2592
2054
|
h("style", { type: "text/css" },
|
|
2593
|
-
styleString$
|
|
2594
|
-
vanillaStyle$
|
|
2595
|
-
h("sl-dialog", { class: sheet$
|
|
2055
|
+
styleString$2,
|
|
2056
|
+
vanillaStyle$1),
|
|
2057
|
+
h("sl-dialog", { class: sheet$2.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
|
|
2596
2058
|
h("div", { class: classes.ModalTitleContainer, slot: "label" },
|
|
2597
|
-
h("sl-icon", { name: "info-circle", style: { color: "var(--
|
|
2059
|
+
h("sl-icon", { name: "info-circle", style: { color: "var(--sqm-informative-color-icon)" } }),
|
|
2598
2060
|
h("h2", { style: { fontSize: "var(--sl-font-size-large)" } }, text.modalTitle)),
|
|
2599
2061
|
h("p", null, intl.formatMessage({
|
|
2600
2062
|
id: "modalText",
|
|
@@ -2602,7 +2064,7 @@ const DocusignFormView = (props) => {
|
|
|
2602
2064
|
}, {
|
|
2603
2065
|
br: h("br", null),
|
|
2604
2066
|
})),
|
|
2605
|
-
h("sl-button", { slot: "footer", type: "primary", class: sheet$
|
|
2067
|
+
h("sl-button", { slot: "footer", type: "primary", class: sheet$2.classes.DialogButton, onClick: callbacks.onModalClose, exportparts: "base: primarybutton-base" }, text.modalButtonText)),
|
|
2606
2068
|
h("div", { class: classes.TextContainer },
|
|
2607
2069
|
h("div", null,
|
|
2608
2070
|
!states.hideSteps && (h("p", null, intl.formatMessage({
|
|
@@ -2612,20 +2074,16 @@ const DocusignFormView = (props) => {
|
|
|
2612
2074
|
h("h3", null, text.taxForm),
|
|
2613
2075
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2614
2076
|
states.loadingError && (h("div", null,
|
|
2615
|
-
h("
|
|
2616
|
-
h("
|
|
2617
|
-
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2618
|
-
h("br", null),
|
|
2077
|
+
h("sqm-form-message", { type: "error" },
|
|
2078
|
+
h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
|
|
2619
2079
|
intl.formatMessage({
|
|
2620
2080
|
id: "loadingErrorAlertDescription",
|
|
2621
2081
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
2622
2082
|
}, {
|
|
2623
2083
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2624
2084
|
})))),
|
|
2625
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("
|
|
2626
|
-
h("
|
|
2627
|
-
h("strong", null, text.error.generalTitle),
|
|
2628
|
-
h("br", null),
|
|
2085
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sqm-form-message", { type: "error" },
|
|
2086
|
+
h("p", { part: "alert-title" }, text.error.generalTitle),
|
|
2629
2087
|
intl.formatMessage({
|
|
2630
2088
|
id: "generalDescription",
|
|
2631
2089
|
defaultMessage: text.error.generalDescription,
|
|
@@ -2685,7 +2143,7 @@ const DocusignForm = class {
|
|
|
2685
2143
|
* @uiName W-8 BEN-E tax form description
|
|
2686
2144
|
* @uiWidget textArea
|
|
2687
2145
|
*/
|
|
2688
|
-
this.taxFormDescriptionBusinessEntity = "Participants residing outside of the US
|
|
2146
|
+
this.taxFormDescriptionBusinessEntity = "Participants residing outside of the US working with a US Brand need to submit a {documentType} form.";
|
|
2689
2147
|
/**
|
|
2690
2148
|
* This appears inside the Docusign frame.
|
|
2691
2149
|
* @uiName Docusign session expired messag
|
|
@@ -2809,7 +2267,7 @@ function useDocusignFormDemo(props) {
|
|
|
2809
2267
|
return cjs({
|
|
2810
2268
|
text: props.getTextProps(),
|
|
2811
2269
|
states: {
|
|
2812
|
-
step: "
|
|
2270
|
+
step: "3",
|
|
2813
2271
|
disabled: false,
|
|
2814
2272
|
submitDisabled: false,
|
|
2815
2273
|
loading: false,
|
|
@@ -2845,7 +2303,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2845
2303
|
return (h("div", { style: {
|
|
2846
2304
|
width: "100%",
|
|
2847
2305
|
height: "600px",
|
|
2848
|
-
background: "
|
|
2306
|
+
background: "inherit",
|
|
2849
2307
|
display: "flex",
|
|
2850
2308
|
justifyContent: "center",
|
|
2851
2309
|
alignItems: "center",
|
|
@@ -2857,7 +2315,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2857
2315
|
} }, 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")))));
|
|
2858
2316
|
};
|
|
2859
2317
|
|
|
2860
|
-
const style$
|
|
2318
|
+
const style$3 = {
|
|
2861
2319
|
FormWrapper: {
|
|
2862
2320
|
display: "flex",
|
|
2863
2321
|
justifyContent: "flex-start",
|
|
@@ -2869,6 +2327,7 @@ const style$4 = {
|
|
|
2869
2327
|
justifyContent: "flex-start",
|
|
2870
2328
|
flexDirection: "column",
|
|
2871
2329
|
gap: "var(--sl-spacing-medium)",
|
|
2330
|
+
marginBottom: "16px",
|
|
2872
2331
|
"& sl-radio::part(base)": {
|
|
2873
2332
|
alignItems: "start",
|
|
2874
2333
|
},
|
|
@@ -2884,6 +2343,7 @@ const style$4 = {
|
|
|
2884
2343
|
flexDirection: "column",
|
|
2885
2344
|
gap: "var(--sl-spacing-xx-small)",
|
|
2886
2345
|
fontSize: "var(--sl-font-size-small)",
|
|
2346
|
+
color: "var(--sqm-text)",
|
|
2887
2347
|
},
|
|
2888
2348
|
TitleContainer: {
|
|
2889
2349
|
display: "flex",
|
|
@@ -2905,90 +2365,83 @@ const style$4 = {
|
|
|
2905
2365
|
gap: "8px",
|
|
2906
2366
|
},
|
|
2907
2367
|
ErrorText: {
|
|
2908
|
-
color: "var(--
|
|
2368
|
+
color: "var(--sqm-danger-color-text)",
|
|
2909
2369
|
marginTop: "10px",
|
|
2910
2370
|
},
|
|
2911
2371
|
DescriptionText: {
|
|
2912
|
-
color: "var(--
|
|
2372
|
+
color: "var(--sqm-text-subdued)",
|
|
2913
2373
|
},
|
|
2914
|
-
|
|
2915
|
-
"
|
|
2916
|
-
|
|
2917
|
-
},
|
|
2374
|
+
InfoWarningIcon: {
|
|
2375
|
+
height: "26px",
|
|
2376
|
+
width: "26px",
|
|
2918
2377
|
},
|
|
2919
|
-
|
|
2920
|
-
"
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
padding: "0 16px",
|
|
2924
|
-
},
|
|
2925
|
-
"& sl-icon::part(base)": {
|
|
2926
|
-
color: "var(--sl-color-danger-500)",
|
|
2927
|
-
},
|
|
2378
|
+
PageDescriptionText: {
|
|
2379
|
+
color: "var(--sqm-text-subdued)",
|
|
2380
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
2381
|
+
marginBottom: "var(--sl-spacing-small)",
|
|
2928
2382
|
},
|
|
2929
|
-
|
|
2383
|
+
PrimaryButton: {
|
|
2930
2384
|
"&::part(base)": {
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2385
|
+
background: "var(--sqm-primary-button-background)",
|
|
2386
|
+
color: "var(--sqm-primary-button-color)",
|
|
2387
|
+
borderColor: "var(--sqm-primary-button-color-border)",
|
|
2388
|
+
borderRadius: "var(--sqm-primary-button-radius)",
|
|
2934
2389
|
},
|
|
2935
|
-
"
|
|
2936
|
-
|
|
2390
|
+
"&::part(base):hover": {
|
|
2391
|
+
backgroundColor: "var(--sqm-primary-button-background-hover)",
|
|
2392
|
+
borderColor: "var(--sqm-primary-button-border-color-hover)",
|
|
2393
|
+
color: "var(--sqm-primary-button-color-hover)",
|
|
2937
2394
|
},
|
|
2938
2395
|
},
|
|
2939
|
-
|
|
2940
|
-
marginTop: "var(--sl-spacing-large)",
|
|
2396
|
+
SecondaryButton: {
|
|
2941
2397
|
"&::part(base)": {
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
padding: "var(--sl-spacing-small)",
|
|
2950
|
-
whiteSpace: "nowrap",
|
|
2398
|
+
background: "var(--sqm-secondary-button-background)",
|
|
2399
|
+
color: "var(--sqm-secondary-button-color)",
|
|
2400
|
+
borderColor: "var(--sqm-secondary-button-color-border)",
|
|
2401
|
+
borderRadius: "var(--sqm-secondary-button-radius)",
|
|
2402
|
+
width: "max-content",
|
|
2403
|
+
display: "flex",
|
|
2404
|
+
margin: "auto",
|
|
2951
2405
|
},
|
|
2952
|
-
"
|
|
2953
|
-
|
|
2406
|
+
"&::part(base):hover": {
|
|
2407
|
+
backgroundColor: "var(--sqm-secondary-button-background-hover)",
|
|
2408
|
+
color: "var(--sqm-secondary-button-color-hover)",
|
|
2409
|
+
borderColor: "var(--sqm-secondary-button-border-color-hover)",
|
|
2954
2410
|
},
|
|
2955
2411
|
},
|
|
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
|
-
},
|
|
2965
2412
|
};
|
|
2966
|
-
const sheet$
|
|
2967
|
-
const styleString$
|
|
2968
|
-
const vanillaStyle$
|
|
2413
|
+
const sheet$3 = createStyleSheet(style$3);
|
|
2414
|
+
const styleString$3 = sheet$3.toString();
|
|
2415
|
+
const vanillaStyle$2 = `
|
|
2969
2416
|
:host{
|
|
2970
2417
|
display: block;
|
|
2971
2418
|
}
|
|
2419
|
+
|
|
2420
|
+
hr {
|
|
2421
|
+
border: var(--sqm-border-thickness, 1px) solid var(--sqm-border-color);
|
|
2422
|
+
}
|
|
2423
|
+
|
|
2424
|
+
a {
|
|
2425
|
+
color: inherit;
|
|
2426
|
+
text-decoration: underline;
|
|
2427
|
+
cursor: pointer;
|
|
2428
|
+
}
|
|
2429
|
+
|
|
2972
2430
|
* {
|
|
2973
2431
|
margin: 0;
|
|
2974
2432
|
padding: 0;
|
|
2975
2433
|
box-sizing: border-box;
|
|
2976
2434
|
}
|
|
2977
2435
|
|
|
2978
|
-
p {
|
|
2979
|
-
line-height: 18px;
|
|
2980
|
-
color: var(--sl-color-gray-800);
|
|
2981
|
-
font-size: var(--sl-font-size-small);
|
|
2982
|
-
}
|
|
2983
2436
|
`;
|
|
2984
2437
|
const IndirectTaxFormView = (props) => {
|
|
2985
2438
|
var _a;
|
|
2986
2439
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2987
|
-
const { classes } = sheet$
|
|
2440
|
+
const { classes } = sheet$3;
|
|
2988
2441
|
return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2989
2442
|
h("style", { type: "text/css" },
|
|
2990
|
-
styleString$
|
|
2991
|
-
vanillaStyle$
|
|
2443
|
+
styleString$3,
|
|
2444
|
+
vanillaStyle$2),
|
|
2992
2445
|
h("div", { class: classes.TextContainer },
|
|
2993
2446
|
h("div", null,
|
|
2994
2447
|
!states.hideSteps && (h("p", null,
|
|
@@ -3001,30 +2454,24 @@ const IndirectTaxFormView = (props) => {
|
|
|
3001
2454
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
3002
2455
|
h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
3003
2456
|
states.loadingError && (h("div", null,
|
|
3004
|
-
h("
|
|
3005
|
-
h("
|
|
3006
|
-
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
3007
|
-
h("br", null),
|
|
2457
|
+
h("sqm-form-message", { type: "error" },
|
|
2458
|
+
h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
|
|
3008
2459
|
intl.formatMessage({
|
|
3009
2460
|
id: "loadingErrorAlertDescription",
|
|
3010
2461
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
3011
2462
|
}, {
|
|
3012
2463
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3013
2464
|
})))),
|
|
3014
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("
|
|
3015
|
-
h("
|
|
3016
|
-
h("strong", null, text.error.generalTitle),
|
|
3017
|
-
h("br", null),
|
|
2465
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sqm-form-message", { type: "error" },
|
|
2466
|
+
h("p", { part: "alert-title" }, text.error.generalTitle),
|
|
3018
2467
|
intl.formatMessage({
|
|
3019
2468
|
id: "generalDescription",
|
|
3020
2469
|
defaultMessage: text.error.generalDescription,
|
|
3021
2470
|
}, {
|
|
3022
2471
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3023
2472
|
}))),
|
|
3024
|
-
states.isPartner && (h("
|
|
3025
|
-
h("
|
|
3026
|
-
h("strong", null, text.isPartnerAlertHeader),
|
|
3027
|
-
h("br", null),
|
|
2473
|
+
states.isPartner && (h("sqm-form-message", { type: "info" },
|
|
2474
|
+
h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
|
|
3028
2475
|
intl.formatMessage({
|
|
3029
2476
|
id: "isPartnerAlertDescription",
|
|
3030
2477
|
defaultMessage: text.isPartnerAlertDescription,
|
|
@@ -3045,17 +2492,15 @@ const IndirectTaxFormView = (props) => {
|
|
|
3045
2492
|
text.otherRegion,
|
|
3046
2493
|
h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
|
|
3047
2494
|
slots.registeredInDifferentCountryDetailsSlot)),
|
|
3048
|
-
h("
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3055
|
-
})),
|
|
2495
|
+
h("sqm-form-message", { type: "info" }, intl.formatMessage({
|
|
2496
|
+
id: "cannotChangeInfoAlert",
|
|
2497
|
+
defaultMessage: text.cannotChangeInfoAlert,
|
|
2498
|
+
}, {
|
|
2499
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2500
|
+
})),
|
|
3056
2501
|
h("div", { class: classes.BtnContainer },
|
|
3057
|
-
h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
3058
|
-
h("sl-button", { class: classes.
|
|
2502
|
+
h("sl-button", { class: classes.PrimaryButton, type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
2503
|
+
h("sl-button", { class: classes.SecondaryButton, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
3059
2504
|
};
|
|
3060
2505
|
|
|
3061
2506
|
const CONNECT_PARTNER = dist.gql `
|
|
@@ -3114,6 +2559,10 @@ function useIndirectTaxForm(props) {
|
|
|
3114
2559
|
const [filteredCountries, setFilteredCountries] = useState(_countries || []);
|
|
3115
2560
|
const [option, setOption] = useState("notRegistered");
|
|
3116
2561
|
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;
|
|
2562
|
+
useEffect(() => {
|
|
2563
|
+
// reset redirect hash
|
|
2564
|
+
window.location.hash = "";
|
|
2565
|
+
}, []);
|
|
3117
2566
|
useEffect(() => {
|
|
3118
2567
|
var _a;
|
|
3119
2568
|
if (!((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxCountryCode))
|
|
@@ -3224,8 +2673,6 @@ function useIndirectTaxForm(props) {
|
|
|
3224
2673
|
const hasValidCurrentDocument = validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
3225
2674
|
// Fire form change event
|
|
3226
2675
|
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
3227
|
-
// reset redirect hash
|
|
3228
|
-
window.location.hash = "";
|
|
3229
2676
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
3230
2677
|
!hasValidCurrentDocument) {
|
|
3231
2678
|
// Go to docusign form
|
|
@@ -3502,7 +2949,7 @@ const IndirectTaxForm = class {
|
|
|
3502
2949
|
};
|
|
3503
2950
|
function useDemoIndirectTaxForm(props) {
|
|
3504
2951
|
const setStep = En(TAX_CONTEXT_NAMESPACE);
|
|
3505
|
-
const [option, setOption] = useState(
|
|
2952
|
+
const [option, setOption] = useState("otherRegion");
|
|
3506
2953
|
const [demoFormState, setDemoFormState] = useState({});
|
|
3507
2954
|
return cjs({
|
|
3508
2955
|
states: {
|
|
@@ -3583,6 +3030,26 @@ function useDemoIndirectTaxForm(props) {
|
|
|
3583
3030
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
3584
3031
|
}
|
|
3585
3032
|
|
|
3033
|
+
const mockInvoiceData = (count = 4) => {
|
|
3034
|
+
const data = [...Array(count)].map(() => getMockData());
|
|
3035
|
+
return { data };
|
|
3036
|
+
};
|
|
3037
|
+
const getMockData = () => {
|
|
3038
|
+
const today = luxon.DateTime.now();
|
|
3039
|
+
const invoiceId = Math.random().toString(36).slice(2, 12);
|
|
3040
|
+
const earnings = Math.floor(Math.random() * 100) + 1;
|
|
3041
|
+
const indirectTax = Math.round(earnings * 0.2);
|
|
3042
|
+
return {
|
|
3043
|
+
downloadUrl: "https://example.com",
|
|
3044
|
+
dateCreated: today.toMillis(),
|
|
3045
|
+
invoiceId,
|
|
3046
|
+
program: "my-program",
|
|
3047
|
+
earnings: `$${earnings}.00`,
|
|
3048
|
+
indirectTax: `$${indirectTax}.00`,
|
|
3049
|
+
netEarnings: `$${earnings - indirectTax}.00`,
|
|
3050
|
+
};
|
|
3051
|
+
};
|
|
3052
|
+
|
|
3586
3053
|
const debug = browser("sq:useInvoiceTable");
|
|
3587
3054
|
const CSS_NAMESPACE = "sqm-invoice-table";
|
|
3588
3055
|
const GET_INVOICES = dist.gql `
|
|
@@ -3731,26 +3198,6 @@ async function tryMethod(c, callback) {
|
|
|
3731
3198
|
}
|
|
3732
3199
|
}
|
|
3733
3200
|
|
|
3734
|
-
const mockInvoiceData = (count = 4) => {
|
|
3735
|
-
const data = [...Array(count)].map(() => getMockData());
|
|
3736
|
-
return { data };
|
|
3737
|
-
};
|
|
3738
|
-
const getMockData = () => {
|
|
3739
|
-
const today = luxon.DateTime.now();
|
|
3740
|
-
const invoiceId = Math.random().toString(36).slice(2, 12);
|
|
3741
|
-
const earnings = Math.floor(Math.random() * 100) + 1;
|
|
3742
|
-
const indirectTax = Math.round(earnings * 0.2);
|
|
3743
|
-
return {
|
|
3744
|
-
downloadUrl: "https://example.com",
|
|
3745
|
-
dateCreated: today.toMillis(),
|
|
3746
|
-
invoiceId,
|
|
3747
|
-
program: "my-program",
|
|
3748
|
-
earnings: `$${earnings}.00`,
|
|
3749
|
-
indirectTax: `$${indirectTax}.00`,
|
|
3750
|
-
netEarnings: `$${earnings - indirectTax}.00`,
|
|
3751
|
-
};
|
|
3752
|
-
};
|
|
3753
|
-
|
|
3754
3201
|
const InvoiceTable = class {
|
|
3755
3202
|
constructor(hostRef) {
|
|
3756
3203
|
registerInstance(this, hostRef);
|
|
@@ -3896,18 +3343,6 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3896
3343
|
return demoProps;
|
|
3897
3344
|
}
|
|
3898
3345
|
|
|
3899
|
-
const InvoiceTableDataCell = class {
|
|
3900
|
-
constructor(hostRef) {
|
|
3901
|
-
registerInstance(this, hostRef);
|
|
3902
|
-
this.ignored = true;
|
|
3903
|
-
h$1(this);
|
|
3904
|
-
}
|
|
3905
|
-
disconnectedCallback() { }
|
|
3906
|
-
render() {
|
|
3907
|
-
return this.data;
|
|
3908
|
-
}
|
|
3909
|
-
};
|
|
3910
|
-
|
|
3911
3346
|
const InvoiceTableDataColumn = class {
|
|
3912
3347
|
constructor(hostRef) {
|
|
3913
3348
|
registerInstance(this, hostRef);
|
|
@@ -3926,23 +3361,6 @@ const InvoiceTableDataColumn = class {
|
|
|
3926
3361
|
}
|
|
3927
3362
|
};
|
|
3928
3363
|
|
|
3929
|
-
const RewardTableDateCell = class {
|
|
3930
|
-
constructor(hostRef) {
|
|
3931
|
-
registerInstance(this, hostRef);
|
|
3932
|
-
this.ignored = true;
|
|
3933
|
-
this.locale = "en";
|
|
3934
|
-
h$1(this);
|
|
3935
|
-
}
|
|
3936
|
-
disconnectedCallback() { }
|
|
3937
|
-
render() {
|
|
3938
|
-
var _a, _b;
|
|
3939
|
-
const date = !this.date
|
|
3940
|
-
? "-"
|
|
3941
|
-
: (_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);
|
|
3942
|
-
return date;
|
|
3943
|
-
}
|
|
3944
|
-
};
|
|
3945
|
-
|
|
3946
3364
|
const InvoiceTableDateColumn = class {
|
|
3947
3365
|
constructor(hostRef) {
|
|
3948
3366
|
registerInstance(this, hostRef);
|
|
@@ -3961,21 +3379,6 @@ const InvoiceTableDateColumn = class {
|
|
|
3961
3379
|
}
|
|
3962
3380
|
};
|
|
3963
3381
|
|
|
3964
|
-
const InvoiceTableDownloadCell = class {
|
|
3965
|
-
constructor(hostRef) {
|
|
3966
|
-
registerInstance(this, hostRef);
|
|
3967
|
-
this.ignored = true;
|
|
3968
|
-
h$1(this);
|
|
3969
|
-
}
|
|
3970
|
-
disconnectedCallback() { }
|
|
3971
|
-
render() {
|
|
3972
|
-
const vanillaStyle = `svg:hover, svg:hover * {
|
|
3973
|
-
cursor: pointer;
|
|
3974
|
-
}`;
|
|
3975
|
-
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" }))))));
|
|
3976
|
-
}
|
|
3977
|
-
};
|
|
3978
|
-
|
|
3979
3382
|
const InvoiceTableGenericColumn = class {
|
|
3980
3383
|
constructor(hostRef) {
|
|
3981
3384
|
registerInstance(this, hostRef);
|
|
@@ -3998,17 +3401,17 @@ const PayPalIcon = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", width:
|
|
|
3998
3401
|
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" }),
|
|
3999
3402
|
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" })));
|
|
4000
3403
|
|
|
4001
|
-
const style$
|
|
3404
|
+
const style$4 = {
|
|
4002
3405
|
CardContainer: {
|
|
4003
3406
|
display: "grid",
|
|
4004
3407
|
gridTemplateColumns: "1fr",
|
|
4005
3408
|
gridGap: "var(--sl-spacing-large)",
|
|
4006
|
-
background: "
|
|
3409
|
+
background: "inherit",
|
|
4007
3410
|
boxShadow: "0px 2px 4px rgba(28, 28, 33, 0.12)",
|
|
4008
|
-
borderRadius: "
|
|
3411
|
+
borderRadius: "var(--sqm-border-radius-normal)",
|
|
4009
3412
|
padding: "var(--sl-spacing-large)",
|
|
4010
3413
|
minHeight: "150px",
|
|
4011
|
-
border: "1px solid var(--
|
|
3414
|
+
border: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
4012
3415
|
maxWidth: "450px",
|
|
4013
3416
|
},
|
|
4014
3417
|
StatusContainer: {
|
|
@@ -4018,7 +3421,7 @@ const style$5 = {
|
|
|
4018
3421
|
},
|
|
4019
3422
|
MainCurrencyLabel: {
|
|
4020
3423
|
fontWeight: "var(--sl-font-weight-normal)",
|
|
4021
|
-
color: "var(--
|
|
3424
|
+
color: "var(--sqm-text-subdued)",
|
|
4022
3425
|
},
|
|
4023
3426
|
MainCurrency: {
|
|
4024
3427
|
margin: 0,
|
|
@@ -4027,12 +3430,12 @@ const style$5 = {
|
|
|
4027
3430
|
},
|
|
4028
3431
|
SubduedRegularText: {
|
|
4029
3432
|
fontSize: "var(--sl-font-size-small)",
|
|
4030
|
-
color: "var(--
|
|
3433
|
+
color: "var(--sqm-text-subdued)",
|
|
4031
3434
|
margin: 0,
|
|
4032
3435
|
width: "auto",
|
|
4033
3436
|
},
|
|
4034
3437
|
PaypalEmail: {
|
|
4035
|
-
borderRight: "1px solid var(--
|
|
3438
|
+
borderRight: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
4036
3439
|
paddingRight: "var(--sl-spacing-small)",
|
|
4037
3440
|
"@media (max-width: 499px)": {
|
|
4038
3441
|
borderRight: "none",
|
|
@@ -4040,7 +3443,7 @@ const style$5 = {
|
|
|
4040
3443
|
},
|
|
4041
3444
|
},
|
|
4042
3445
|
PaypalDetailsContainer: {
|
|
4043
|
-
color: "var(--
|
|
3446
|
+
color: "var(--sqm-text-subdued)",
|
|
4044
3447
|
display: "flex",
|
|
4045
3448
|
gap: "var(--sl-spacing-small)",
|
|
4046
3449
|
justifyContent: "flex-start",
|
|
@@ -4061,7 +3464,7 @@ const style$5 = {
|
|
|
4061
3464
|
},
|
|
4062
3465
|
},
|
|
4063
3466
|
AccountDetailsContainer: {
|
|
4064
|
-
color: "var(--
|
|
3467
|
+
color: "var(--sqm-text-subdued)",
|
|
4065
3468
|
display: "flex",
|
|
4066
3469
|
gap: "var(--sl-spacing-small)",
|
|
4067
3470
|
justifyContent: "flex-start",
|
|
@@ -4074,7 +3477,7 @@ const style$5 = {
|
|
|
4074
3477
|
gap: "var(--sl-spacing-xx-small) var(--sl-spacing-small)",
|
|
4075
3478
|
paddingTop: "var(--sq-spacing-xx-small)",
|
|
4076
3479
|
"& > :not(:last-child)": {
|
|
4077
|
-
borderRight: "1px solid var(--
|
|
3480
|
+
borderRight: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
4078
3481
|
},
|
|
4079
3482
|
"& > :nth-child(3)": {
|
|
4080
3483
|
border: "none",
|
|
@@ -4091,7 +3494,7 @@ const style$5 = {
|
|
|
4091
3494
|
},
|
|
4092
3495
|
W9Container: {
|
|
4093
3496
|
paddingTop: "var(--sl-spacing-large)",
|
|
4094
|
-
borderTop: "1px solid var(--
|
|
3497
|
+
borderTop: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
4095
3498
|
},
|
|
4096
3499
|
SkeletonOne: {
|
|
4097
3500
|
width: "25%",
|
|
@@ -4105,25 +3508,21 @@ const style$5 = {
|
|
|
4105
3508
|
width: "50%",
|
|
4106
3509
|
height: "34px",
|
|
4107
3510
|
},
|
|
4108
|
-
|
|
3511
|
+
SuccessBadge: {
|
|
4109
3512
|
"&::part(base)": {
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
"& sl-icon": {
|
|
4115
|
-
margin: 0,
|
|
4116
|
-
},
|
|
4117
|
-
"& sl-icon::part(base)": {
|
|
4118
|
-
color: "var(--sl-color-warning-500)",
|
|
4119
|
-
margin: 0,
|
|
3513
|
+
textAlign: "center",
|
|
3514
|
+
whiteSpace: "pre-line",
|
|
3515
|
+
background: "var(--sqm-success-color-icon)",
|
|
3516
|
+
color: "var(--sl-color-white)",
|
|
4120
3517
|
},
|
|
4121
3518
|
},
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
3519
|
+
PrimaryBadge: {
|
|
3520
|
+
"&::part(base)": {
|
|
3521
|
+
textAlign: "center",
|
|
3522
|
+
whiteSpace: "pre-line",
|
|
3523
|
+
background: "var(--sqm-informative-color-icon)",
|
|
3524
|
+
color: "var(--sl-color-white)",
|
|
3525
|
+
},
|
|
4127
3526
|
},
|
|
4128
3527
|
Container: {
|
|
4129
3528
|
display: "flex",
|
|
@@ -4132,7 +3531,7 @@ const style$5 = {
|
|
|
4132
3531
|
},
|
|
4133
3532
|
};
|
|
4134
3533
|
function PayoutDetailsCardView(props) {
|
|
4135
|
-
const sheet = createStyleSheet(style$
|
|
3534
|
+
const sheet = createStyleSheet(style$4);
|
|
4136
3535
|
const styleString = sheet.toString();
|
|
4137
3536
|
const { classes } = sheet;
|
|
4138
3537
|
const { states, text } = props;
|
|
@@ -4146,13 +3545,14 @@ function PayoutDetailsCardView(props) {
|
|
|
4146
3545
|
};
|
|
4147
3546
|
const renderStatusBadge = (status, statusBadgeText) => {
|
|
4148
3547
|
const badgeType = status === "nextPayout" ? "success" : "primary";
|
|
3548
|
+
const badgeClass = badgeType === "success" ? classes.SuccessBadge : classes.PrimaryBadge;
|
|
4149
3549
|
const statusText = intl.formatMessage({
|
|
4150
3550
|
id: "badgeText",
|
|
4151
3551
|
defaultMessage: statusBadgeText,
|
|
4152
3552
|
}, {
|
|
4153
3553
|
badgeText: status,
|
|
4154
3554
|
});
|
|
4155
|
-
return (h("sl-badge", { pill: true,
|
|
3555
|
+
return (h("sl-badge", { pill: true, class: badgeClass }, statusText));
|
|
4156
3556
|
};
|
|
4157
3557
|
const thresholdText = intl.formatMessage({
|
|
4158
3558
|
id: "thresholdText",
|
|
@@ -4192,1408 +3592,118 @@ function usePayoutDetailsCard(props) {
|
|
|
4192
3592
|
return currentDay === 1
|
|
4193
3593
|
? luxon.DateTime.now().toFormat("LLL dd, yyyy")
|
|
4194
3594
|
: luxon.DateTime.now()
|
|
4195
|
-
.plus({ month: 1 })
|
|
4196
|
-
.startOf("month")
|
|
4197
|
-
.toFormat("LLL dd, yyyy");
|
|
4198
|
-
}
|
|
4199
|
-
else if (paymentDay === "15") {
|
|
4200
|
-
return currentDay <= 15
|
|
4201
|
-
? luxon.DateTime.now()
|
|
4202
|
-
.plus({ day: 15 - currentDay })
|
|
4203
|
-
.toFormat("LLL dd, yyyy")
|
|
4204
|
-
: luxon.DateTime.now()
|
|
4205
|
-
.plus({ month: 1 })
|
|
4206
|
-
.startOf("month")
|
|
4207
|
-
.plus({ day: 14 })
|
|
4208
|
-
.toFormat("LLL dd, yyyy");
|
|
4209
|
-
}
|
|
4210
|
-
else {
|
|
4211
|
-
intl.formatMessage({
|
|
4212
|
-
id: `nextPayoutBalance`,
|
|
4213
|
-
defaultMessage: props.thresholdPayoutText,
|
|
4214
|
-
}, {
|
|
4215
|
-
thresholdBalance: (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold,
|
|
4216
|
-
});
|
|
4217
|
-
}
|
|
4218
|
-
}
|
|
4219
|
-
const paymentDay = getPayoutDetailedStatusText((_c = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _c === void 0 ? void 0 : _c.paymentDay);
|
|
4220
|
-
const isPayoutToday = luxon.DateTime.now().toFormat("LLL dd, yyyy") === paymentDay;
|
|
4221
|
-
return {
|
|
4222
|
-
states: {
|
|
4223
|
-
loading,
|
|
4224
|
-
thresholdBalance: ((_d = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _d === void 0 ? void 0 : _d.paymentThreshold) ? `${publisher === null || publisher === void 0 ? void 0 : publisher.currency}${(_e = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _e === void 0 ? void 0 : _e.paymentThreshold}`
|
|
4225
|
-
: undefined,
|
|
4226
|
-
balance: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _f === void 0 ? void 0 : _f.balance,
|
|
4227
|
-
badgeStatus: ((_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentSchedulingType) !== "FIXED_DAY"
|
|
4228
|
-
? "thresholdPayout"
|
|
4229
|
-
: isPayoutToday
|
|
4230
|
-
? "payoutToday"
|
|
4231
|
-
: "nextPayout",
|
|
4232
|
-
payoutType: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paymentMethod,
|
|
4233
|
-
error: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _j === void 0 ? void 0 : _j.hold,
|
|
4234
|
-
paypalEmailAddress: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.paypalEmailAddress,
|
|
4235
|
-
cardNumberPreview: (_l = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _l === void 0 ? void 0 : _l.bankAccountNumber,
|
|
4236
|
-
nextPayoutDate: paymentDay,
|
|
4237
|
-
},
|
|
4238
|
-
text: props.getTextProps(),
|
|
4239
|
-
};
|
|
4240
|
-
}
|
|
4241
|
-
|
|
4242
|
-
const PayoutDetailsCard = class {
|
|
4243
|
-
constructor(hostRef) {
|
|
4244
|
-
registerInstance(this, hostRef);
|
|
4245
|
-
/**
|
|
4246
|
-
* Badge text indicating payout status
|
|
4247
|
-
* @uiName Payout badge status text
|
|
4248
|
-
*/
|
|
4249
|
-
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
4250
|
-
/**
|
|
4251
|
-
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
4252
|
-
* @uiName Payout schedule by threshold text
|
|
4253
|
-
*/
|
|
4254
|
-
this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
4255
|
-
/**
|
|
4256
|
-
* Shown before the participant’s bank account information.
|
|
4257
|
-
* @uiName Bank account field label
|
|
4258
|
-
*/
|
|
4259
|
-
this.accountText = "Account";
|
|
4260
|
-
/**
|
|
4261
|
-
* Text displayed for existing publishers that do not have saved banking information.
|
|
4262
|
-
* @uiName Payout missing information subtext
|
|
4263
|
-
*/
|
|
4264
|
-
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
4265
|
-
h$1(this);
|
|
4266
|
-
}
|
|
4267
|
-
disconnectedCallback() { }
|
|
4268
|
-
getTextProps() {
|
|
4269
|
-
const props = getProps(this);
|
|
4270
|
-
return {
|
|
4271
|
-
...props,
|
|
4272
|
-
};
|
|
4273
|
-
}
|
|
4274
|
-
render() {
|
|
4275
|
-
const props = isDemo()
|
|
4276
|
-
? useDemoPayoutDetailsCard(this)
|
|
4277
|
-
: usePayoutDetailsCard(this);
|
|
4278
|
-
return (h(Host, null, h(PayoutDetailsCardView, { text: props.text, states: props.states })));
|
|
4279
|
-
}
|
|
4280
|
-
};
|
|
4281
|
-
function useDemoPayoutDetailsCard(props) {
|
|
4282
|
-
return cjs({
|
|
4283
|
-
states: {
|
|
4284
|
-
loading: false,
|
|
4285
|
-
error: false,
|
|
4286
|
-
thresholdBalance: "$50",
|
|
4287
|
-
mainCurrency: { currencyText: "USD", amountText: "100.00" },
|
|
4288
|
-
badgeStatus: "nextPayout",
|
|
4289
|
-
payoutType: "BANK_TRANSFER",
|
|
4290
|
-
nextPayoutDate: "March 14, 2024",
|
|
4291
|
-
paypalEmailAddress: "joesmith@example.com",
|
|
4292
|
-
otherCurrencies: false,
|
|
4293
|
-
hasW9Pending: false,
|
|
4294
|
-
hasDatePending: true,
|
|
4295
|
-
cardNumberPreview: "XX2381",
|
|
4296
|
-
balance: "20.00 USD",
|
|
4297
|
-
},
|
|
4298
|
-
text: props.getTextProps(),
|
|
4299
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4300
|
-
}
|
|
4301
|
-
|
|
4302
|
-
const TableCell = class {
|
|
4303
|
-
constructor(hostRef) {
|
|
4304
|
-
registerInstance(this, hostRef);
|
|
4305
|
-
/** @uiName Column span */
|
|
4306
|
-
this.colspan = 1;
|
|
4307
|
-
/** @uiName Padding */
|
|
4308
|
-
this.padding = "15px 10px";
|
|
4309
|
-
}
|
|
4310
|
-
render() {
|
|
4311
|
-
return (h(Host, { style: { display: "contents" } }, h("td", { colSpan: this.colspan, style: { padding: this.padding } }, h("slot", null))));
|
|
4312
|
-
}
|
|
4313
|
-
};
|
|
4314
|
-
|
|
4315
|
-
const TableRow = class {
|
|
4316
|
-
constructor(hostRef) {
|
|
4317
|
-
registerInstance(this, hostRef);
|
|
4318
|
-
/**
|
|
4319
|
-
* @uiName Border
|
|
4320
|
-
*/
|
|
4321
|
-
this.border = "1px solid #EAEAEA";
|
|
4322
|
-
}
|
|
4323
|
-
render() {
|
|
4324
|
-
return (h(Host, { style: { display: "contents" } }, h("tr", { style: { border: this.border } }, h("slot", null))));
|
|
4325
|
-
}
|
|
4326
|
-
};
|
|
4327
|
-
|
|
4328
|
-
function getCurrentStep(user) {
|
|
4329
|
-
var _a, _b;
|
|
4330
|
-
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
4331
|
-
return "/1";
|
|
4332
|
-
}
|
|
4333
|
-
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount, } = user.impactConnection.publisher;
|
|
4334
|
-
// If they do have a required document, look at current document
|
|
4335
|
-
if (requiredTaxDocumentType && !currentTaxDocument) {
|
|
4336
|
-
// Specific to custom CASH setting,
|
|
4337
|
-
if (payoutsAccount.hold &&
|
|
4338
|
-
payoutsAccount.holdReasons.includes("NO_W9_DOCUMENT"))
|
|
4339
|
-
return "/dashboard";
|
|
4340
|
-
return "/3";
|
|
4341
|
-
}
|
|
4342
|
-
if (!withdrawalSettings && brandedSignup)
|
|
4343
|
-
return "/4";
|
|
4344
|
-
return "/dashboard";
|
|
4345
|
-
}
|
|
4346
|
-
function useTaxAndCash() {
|
|
4347
|
-
var _a, _b, _c, _d, _e;
|
|
4348
|
-
const host = _();
|
|
4349
|
-
const user = J();
|
|
4350
|
-
const locale = L();
|
|
4351
|
-
// State for current step of form
|
|
4352
|
-
const [step, setStep] = In({
|
|
4353
|
-
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4354
|
-
initialValue: "/loading",
|
|
4355
|
-
});
|
|
4356
|
-
// State for when to hide steps, or override certain actions
|
|
4357
|
-
const [context, _setContext] = In({
|
|
4358
|
-
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
4359
|
-
initialValue: {},
|
|
4360
|
-
});
|
|
4361
|
-
// State to carry user form information into step 2
|
|
4362
|
-
const [userFormContext, _setUserFormContext] = In({
|
|
4363
|
-
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
4364
|
-
initialValue: {
|
|
4365
|
-
firstName: undefined,
|
|
4366
|
-
lastName: undefined,
|
|
4367
|
-
email: undefined,
|
|
4368
|
-
countryCode: undefined,
|
|
4369
|
-
currency: undefined,
|
|
4370
|
-
},
|
|
4371
|
-
});
|
|
4372
|
-
const [_currenciesContext, setCurrenciesContext] = In({
|
|
4373
|
-
namespace: CURRENCIES_NAMESPACE,
|
|
4374
|
-
initialValue: [],
|
|
4375
|
-
});
|
|
4376
|
-
const [_countriesContext, _setCountriesContext] = In({
|
|
4377
|
-
namespace: COUNTRIES_NAMESPACE,
|
|
4378
|
-
initialValue: [],
|
|
4379
|
-
});
|
|
4380
|
-
const [_sortedCountriesContext, setSortedCountriesContext] = In({
|
|
4381
|
-
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
4382
|
-
initialValue: [],
|
|
4383
|
-
});
|
|
4384
|
-
const { data, errors } = Sn({
|
|
4385
|
-
namespace: USER_QUERY_NAMESPACE,
|
|
4386
|
-
query: GET_USER,
|
|
4387
|
-
skip: !user,
|
|
4388
|
-
options: {
|
|
4389
|
-
batch: false,
|
|
4390
|
-
},
|
|
4391
|
-
});
|
|
4392
|
-
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) ||
|
|
4393
|
-
userFormContext.countryCode;
|
|
4394
|
-
Sn({
|
|
4395
|
-
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
4396
|
-
query: GET_COUNTRIES,
|
|
4397
|
-
skip: !user,
|
|
4398
|
-
});
|
|
4399
|
-
const { data: financeNetworkData, refetch } = Sn({
|
|
4400
|
-
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
4401
|
-
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
4402
|
-
skip: !user,
|
|
4403
|
-
variables: {
|
|
4404
|
-
filter: getFinanceNetworkFilter(),
|
|
4405
|
-
},
|
|
4406
|
-
});
|
|
4407
|
-
const { data: currenciesData } = Sn({
|
|
4408
|
-
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
4409
|
-
query: GET_CURRENCIES,
|
|
4410
|
-
skip: !user,
|
|
4411
|
-
variables: {
|
|
4412
|
-
locale,
|
|
4413
|
-
},
|
|
4414
|
-
});
|
|
4415
|
-
const supportedCurrencies = useMemo(() => {
|
|
4416
|
-
var _a, _b;
|
|
4417
|
-
// Filter out any currencies not supported by finance network settings
|
|
4418
|
-
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) => {
|
|
4419
|
-
var _a, _b;
|
|
4420
|
-
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);
|
|
4421
|
-
// Currency not in supported list
|
|
4422
|
-
if (!currency)
|
|
4423
|
-
return agg;
|
|
4424
|
-
// Currency already added to list
|
|
4425
|
-
if (agg.find((currency) => currency.currencyCode === settings.currency))
|
|
4426
|
-
return agg;
|
|
4427
|
-
// Currency not supported by selected country
|
|
4428
|
-
if (userFormContext.countryCode &&
|
|
4429
|
-
settings.countryCode !== countryCode)
|
|
4430
|
-
return agg;
|
|
4431
|
-
return [...agg, currency];
|
|
4432
|
-
}, []);
|
|
4433
|
-
return allValidCurrencies;
|
|
4434
|
-
}, [financeNetworkData, countryCode]);
|
|
4435
|
-
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
4436
|
-
const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
|
|
4437
|
-
const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
|
|
4438
|
-
// filter out any duplicate countries and null countryCode
|
|
4439
|
-
const availableCountries = useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
|
|
4440
|
-
const _topCountries = ["CA", "GB", "US"];
|
|
4441
|
-
const sortedCountries = useMemo(() => Array.from(availableCountries)
|
|
4442
|
-
.map((countryCode) => getCountryObj({ countryCode, locale: intlLocale }))
|
|
4443
|
-
.sort(sortByName)
|
|
4444
|
-
.reduce((prev, countryObj) => {
|
|
4445
|
-
if (_topCountries.includes(countryObj.countryCode))
|
|
4446
|
-
return [countryObj, ...prev];
|
|
4447
|
-
return [...prev, countryObj];
|
|
4448
|
-
}, []), [availableCountries]);
|
|
4449
|
-
useEffect(() => {
|
|
4450
|
-
if (sortedCountries)
|
|
4451
|
-
setSortedCountriesContext(sortedCountries);
|
|
4452
|
-
}, [sortedCountries]);
|
|
4453
|
-
useEffect(() => {
|
|
4454
|
-
if (supportedCurrencies)
|
|
4455
|
-
setCurrenciesContext(supportedCurrencies);
|
|
4456
|
-
}, [supportedCurrencies]);
|
|
4457
|
-
useEffect(() => {
|
|
4458
|
-
if (errors) {
|
|
4459
|
-
setStep("/error");
|
|
4460
|
-
return;
|
|
4461
|
-
}
|
|
4462
|
-
if (!host || !user)
|
|
4463
|
-
return;
|
|
4464
|
-
if (data) {
|
|
4465
|
-
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
4466
|
-
if (!user || step !== "/loading")
|
|
4467
|
-
return;
|
|
4468
|
-
const currentStep = getCurrentStep(user);
|
|
4469
|
-
setStep(currentStep);
|
|
4470
|
-
}
|
|
4471
|
-
}, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
|
|
4472
|
-
function getFinanceNetworkFilter() {
|
|
4473
|
-
var _a, _b, _c;
|
|
4474
|
-
if (step === "/1")
|
|
4475
|
-
return {};
|
|
4476
|
-
if (step === "/4")
|
|
4477
|
-
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 };
|
|
4478
|
-
if (countryCode)
|
|
4479
|
-
return {
|
|
4480
|
-
countryCode_eq: countryCode,
|
|
4481
|
-
};
|
|
4482
|
-
return {};
|
|
4483
|
-
}
|
|
4484
|
-
return {
|
|
4485
|
-
step,
|
|
4486
|
-
setStep,
|
|
4487
|
-
context,
|
|
4488
|
-
namespace: Mn(TAX_CONTEXT_NAMESPACE),
|
|
4489
|
-
loading: step === "/loading",
|
|
4490
|
-
};
|
|
4491
|
-
}
|
|
4492
|
-
|
|
4493
|
-
const TaxAndCashMonolith = class {
|
|
4494
|
-
constructor(hostRef) {
|
|
4495
|
-
registerInstance(this, hostRef);
|
|
4496
|
-
/*---------------------------------------------------------------------------------
|
|
4497
|
-
!IMPORTANT!: Make sure to also change the prop names in the respective component
|
|
4498
|
-
-----------------------------------------------------------------------------------*/
|
|
4499
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4500
|
-
STEP 1 PROPS:
|
|
4501
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4502
|
-
/**
|
|
4503
|
-
* @uiName First name field label
|
|
4504
|
-
* @uiGroup Step 1 Properties
|
|
4505
|
-
*/
|
|
4506
|
-
this.step1_firstName = "First name";
|
|
4507
|
-
/**
|
|
4508
|
-
* @uiName Last name field label
|
|
4509
|
-
* @uiGroup Step 1 Properties
|
|
4510
|
-
*/
|
|
4511
|
-
this.step1_lastName = "Last name";
|
|
4512
|
-
/**
|
|
4513
|
-
* @uiName Email field label
|
|
4514
|
-
* @uiGroup Step 1 Properties
|
|
4515
|
-
*/
|
|
4516
|
-
this.step1_email = "Email";
|
|
4517
|
-
/**
|
|
4518
|
-
* @uiName Country field label
|
|
4519
|
-
* @uiGroup Step 1 Properties
|
|
4520
|
-
*/
|
|
4521
|
-
this.step1_country = "Country";
|
|
4522
|
-
/**
|
|
4523
|
-
* @uiName Phone number field label
|
|
4524
|
-
* @uiGroup Step 1 Properties
|
|
4525
|
-
*/
|
|
4526
|
-
this.step1_phoneNumber = "Phone number";
|
|
4527
|
-
/**
|
|
4528
|
-
* @uiName Address field label
|
|
4529
|
-
* @uiGroup Step 1 Properties
|
|
4530
|
-
*/
|
|
4531
|
-
this.step1_address = "Address";
|
|
4532
|
-
/**
|
|
4533
|
-
* @uiName City field label
|
|
4534
|
-
* @uiGroup Step 1 Properties
|
|
4535
|
-
*/
|
|
4536
|
-
this.step1_city = "City";
|
|
4537
|
-
/**
|
|
4538
|
-
* @uiName State field label for states
|
|
4539
|
-
* @uiGroup Step 1 Properties
|
|
4540
|
-
*/
|
|
4541
|
-
this.step1_state = "State";
|
|
4542
|
-
/**
|
|
4543
|
-
* @uiName State field label for provinces
|
|
4544
|
-
* @uiGroup Step 1 Properties
|
|
4545
|
-
*/
|
|
4546
|
-
this.step1_province = "Province";
|
|
4547
|
-
/**
|
|
4548
|
-
* @uiName State field label for regions
|
|
4549
|
-
* @uiGroup Step 1 Properties
|
|
4550
|
-
*/
|
|
4551
|
-
this.step1_region = "Region";
|
|
4552
|
-
/**
|
|
4553
|
-
* @uiName Postal code field label
|
|
4554
|
-
* @uiGroup Step 1 Properties
|
|
4555
|
-
*/
|
|
4556
|
-
this.step1_postalCode = "Postal code";
|
|
4557
|
-
/**
|
|
4558
|
-
* @uiName Currency field label
|
|
4559
|
-
* @uiGroup Step 1 Properties
|
|
4560
|
-
*/
|
|
4561
|
-
this.step1_currency = "Currency";
|
|
4562
|
-
/**
|
|
4563
|
-
* @uiName Currency field help text
|
|
4564
|
-
* @uiGroup Step 1 Properties
|
|
4565
|
-
*/
|
|
4566
|
-
this.step1_currencyHelpText = "Choose your preferred payout currency";
|
|
4567
|
-
/**
|
|
4568
|
-
* Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
|
|
4569
|
-
* @uiName Terms and conditions checkbox
|
|
4570
|
-
* @uiGroup Step 1 Properties
|
|
4571
|
-
*/
|
|
4572
|
-
this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
|
|
4573
|
-
/**
|
|
4574
|
-
* @uiName Step 1 title
|
|
4575
|
-
* @uiGroup Step 1 Properties
|
|
4576
|
-
*/
|
|
4577
|
-
this.step1_personalInformation = "Personal Information";
|
|
4578
|
-
/**
|
|
4579
|
-
* The link text that appears in the terms and conditions checkbox
|
|
4580
|
-
* @uiName Terms and conditions text
|
|
4581
|
-
* @uiGroup Step 1 Properties
|
|
4582
|
-
* @uiWidget textArea
|
|
4583
|
-
*/
|
|
4584
|
-
this.step1_termsAndConditionsLabel = "terms and conditions";
|
|
4585
|
-
/**
|
|
4586
|
-
* The link that appears in the terms and conditions checkbox
|
|
4587
|
-
* @uiName Terms and conditions link
|
|
4588
|
-
* @uiGroup Step 1 Properties
|
|
4589
|
-
*/
|
|
4590
|
-
this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
4591
|
-
/**
|
|
4592
|
-
* Placeholder text displayed in the currency search dropdown
|
|
4593
|
-
* @uiName Currency field placeholder text
|
|
4594
|
-
* @uiGroup Step 1 Properties
|
|
4595
|
-
*/
|
|
4596
|
-
this.step1_searchForCurrencyText = "Search for currency..";
|
|
4597
|
-
/**
|
|
4598
|
-
|
|
4599
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4600
|
-
STEP 2 PROPS:
|
|
4601
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4602
|
-
/**
|
|
4603
|
-
* @uiName Step 2 title
|
|
4604
|
-
* @uiGroup Step 2 Properties
|
|
4605
|
-
*/
|
|
4606
|
-
this.step2_indirectTax = "Indirect Tax";
|
|
4607
|
-
/**
|
|
4608
|
-
* Displayed under the title of this step.
|
|
4609
|
-
* @uiName Step 2 description
|
|
4610
|
-
* @uiGroup Step 2 Properties
|
|
4611
|
-
* @uiWidget textArea
|
|
4612
|
-
*/
|
|
4613
|
-
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.";
|
|
4614
|
-
/**
|
|
4615
|
-
* Displayed with indirect tax registration options.
|
|
4616
|
-
* @uiName Indirect tax details section title
|
|
4617
|
-
* @uiGroup Step 2 Properties
|
|
4618
|
-
*/
|
|
4619
|
-
this.step2_indirectTaxDetails = "Indirect tax details";
|
|
4620
|
-
/**
|
|
4621
|
-
* @uiName Registered for indirect tax option
|
|
4622
|
-
* @uiGroup Step 2 Properties
|
|
4623
|
-
* @uiWidget textArea
|
|
4624
|
-
*
|
|
4625
|
-
*/
|
|
4626
|
-
this.step2_otherRegion = "Registered for indirect tax";
|
|
4627
|
-
/**
|
|
4628
|
-
* Selecting this option will display fields to enter indirect tax details.
|
|
4629
|
-
* @uiName Registered for indirect tax option description
|
|
4630
|
-
* @uiGroup Step 2 Properties
|
|
4631
|
-
*/
|
|
4632
|
-
this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
|
|
4633
|
-
/**
|
|
4634
|
-
* @uiName Not registered for indirect tax option
|
|
4635
|
-
* @uiGroup Step 2 Properties
|
|
4636
|
-
* @uiWidget textArea
|
|
4637
|
-
*/
|
|
4638
|
-
this.step2_notRegistered = "Not registered for indirect tax";
|
|
4639
|
-
/**
|
|
4640
|
-
* Participants based in the US are considered not registered.
|
|
4641
|
-
* @uiName Not registered for indirect tax option description
|
|
4642
|
-
* @uiGroup Step 2 Properties
|
|
4643
|
-
*/
|
|
4644
|
-
this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
|
|
4645
|
-
/**
|
|
4646
|
-
* @uiName Region of indirect tax field label
|
|
4647
|
-
* @uiGroup Step 2 Properties
|
|
4648
|
-
*/
|
|
4649
|
-
this.step2_selectedRegion = "Country / region of indirect tax";
|
|
4650
|
-
/**
|
|
4651
|
-
* @uiName Indirect tax number field label
|
|
4652
|
-
* @uiGroup Step 2 Properties
|
|
4653
|
-
*/
|
|
4654
|
-
this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
|
|
4655
|
-
/**
|
|
4656
|
-
* @uiName Province field label
|
|
4657
|
-
* @uiGroup Step 2 Properties
|
|
4658
|
-
*/
|
|
4659
|
-
this.step2_province = "Province";
|
|
4660
|
-
/**
|
|
4661
|
-
* @uiName Missing indirect tax number error message
|
|
4662
|
-
* @uiGroup Step 2 Properties
|
|
4663
|
-
*/
|
|
4664
|
-
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";
|
|
4665
|
-
/**
|
|
4666
|
-
* Displayed to participants registered for QST.
|
|
4667
|
-
* @uiName QST number field label
|
|
4668
|
-
* @uiGroup Step 2 Properties
|
|
4669
|
-
*/
|
|
4670
|
-
this.step2_qstNumber = "QST number";
|
|
4671
|
-
/**
|
|
4672
|
-
* Displayed to participants registered for indirect tax in Quebec, Canada.
|
|
4673
|
-
* @uiName QST tax checkbox
|
|
4674
|
-
* @uiGroup Step 2 Properties
|
|
4675
|
-
*/
|
|
4676
|
-
this.step2_isRegisteredQST = "I am registered for QST Tax";
|
|
4677
|
-
/**
|
|
4678
|
-
* Displayed to participants registered for indirect tax in Spain.
|
|
4679
|
-
* @uiName Spain income tax checkbox
|
|
4680
|
-
* @uiGroup Step 2 Properties
|
|
4681
|
-
* @uiWidget textArea
|
|
4682
|
-
*/
|
|
4683
|
-
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.";
|
|
4684
|
-
/**
|
|
4685
|
-
* Displayed to participants registered in Spain.
|
|
4686
|
-
* @uiName Sub-region of indirect tax field label
|
|
4687
|
-
* @uiGroup Step 2 Properties
|
|
4688
|
-
*/
|
|
4689
|
-
this.step2_subRegion = "Sub-region";
|
|
4690
|
-
/**
|
|
4691
|
-
* @uiName Income tax field label
|
|
4692
|
-
* @uiGroup Step 2 Properties
|
|
4693
|
-
*/
|
|
4694
|
-
this.step2_subRegionTaxNumberLabel = "Income Tax Number";
|
|
4695
|
-
/**
|
|
4696
|
-
* Communicate that after this step, only Support can change personal and indirect tax information.
|
|
4697
|
-
* @uiName Submission confirmation alert
|
|
4698
|
-
* @uiGroup Step 2 Properties
|
|
4699
|
-
* @uiWidget textArea
|
|
4700
|
-
*/
|
|
4701
|
-
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.";
|
|
4702
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4703
|
-
STEP 3 PROPS:
|
|
4704
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4705
|
-
/**
|
|
4706
|
-
* @uiName Step 3 title
|
|
4707
|
-
* @uiGroup Step 3 Properties
|
|
4708
|
-
*/
|
|
4709
|
-
this.step3_taxForm = "Tax form";
|
|
4710
|
-
/**
|
|
4711
|
-
* Display the type of tax form that the participant must submit.
|
|
4712
|
-
* @uiName Tax form name
|
|
4713
|
-
* @uiGroup Step 3 Properties
|
|
4714
|
-
*/
|
|
4715
|
-
this.step3_taxFormLabel = "{documentType} Tax Form";
|
|
4716
|
-
/**
|
|
4717
|
-
* @uiName Participant type field label
|
|
4718
|
-
* @uiGroup Step 3 Properties
|
|
4719
|
-
*/
|
|
4720
|
-
this.step3_participantType = "Participant type";
|
|
4721
|
-
/**
|
|
4722
|
-
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4723
|
-
* @uiName Business representative participant type label
|
|
4724
|
-
* @uiGroup Step 3 Properties
|
|
4725
|
-
*/
|
|
4726
|
-
this.step3_businessEntity = "I represent a business";
|
|
4727
|
-
/**
|
|
4728
|
-
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4729
|
-
* @uiName Individual participant type label
|
|
4730
|
-
* @uiGroup Step 3 Properties
|
|
4731
|
-
*/
|
|
4732
|
-
this.step3_individualParticipant = "I am an individual participant";
|
|
4733
|
-
/**
|
|
4734
|
-
* Displayed at the top of the page to participants based in the US.
|
|
4735
|
-
* @uiName W-9 tax form description
|
|
4736
|
-
* @uiGroup Step 3 Properties
|
|
4737
|
-
* @uiWidget textArea
|
|
4738
|
-
*/
|
|
4739
|
-
this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
|
|
4740
|
-
/**
|
|
4741
|
-
* Displayed at the top of the page to individuals joining a US program who reside outside the country.
|
|
4742
|
-
* @uiName W-8 BEN tax form description
|
|
4743
|
-
* @uiGroup Step 3 Properties
|
|
4744
|
-
* @uiWidget textArea
|
|
4745
|
-
*/
|
|
4746
|
-
this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
|
|
4747
|
-
/**
|
|
4748
|
-
* Displayed at the top of the page to participants representing a business.
|
|
4749
|
-
* @uiName W-8 BEN-E tax form description
|
|
4750
|
-
* @uiGroup Step 3 Properties
|
|
4751
|
-
* @uiWidget textArea
|
|
4752
|
-
*/
|
|
4753
|
-
this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";
|
|
4754
|
-
/**
|
|
4755
|
-
* This appears inside the Docusign frame.
|
|
4756
|
-
* @uiName Docusign session expired message
|
|
4757
|
-
* @uiGroup Step 3 Properties
|
|
4758
|
-
* @uiWidget textArea
|
|
4759
|
-
*/
|
|
4760
|
-
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.";
|
|
4761
|
-
/**
|
|
4762
|
-
* Remind participants their session will time out after 20 minutes of inactivity.
|
|
4763
|
-
* @uiName Docusign timed session message
|
|
4764
|
-
* @uiGroup Step 3 Properties
|
|
4765
|
-
* @uiWidget textArea
|
|
4766
|
-
*/
|
|
4767
|
-
this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
|
|
4768
|
-
/**
|
|
4769
|
-
* This appears inside the Docusign frame.
|
|
4770
|
-
* @uiName Docusign form error message
|
|
4771
|
-
* @uiGroup Step 3 Properties
|
|
4772
|
-
* @uiWidget textArea
|
|
4773
|
-
*/
|
|
4774
|
-
this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
|
|
4775
|
-
/**
|
|
4776
|
-
* @uiName Refresh page button label
|
|
4777
|
-
* @uiGroup Step 3 Properties
|
|
4778
|
-
*/
|
|
4779
|
-
this.step3_refreshButton = "Refresh Page";
|
|
4780
|
-
/**
|
|
4781
|
-
* @uiName Exit button text
|
|
4782
|
-
* @uiGroup Step 3 Properties
|
|
4783
|
-
*/
|
|
4784
|
-
this.step3_exitButton = "Exit";
|
|
4785
|
-
/**
|
|
4786
|
-
* @uiName Information modal title
|
|
4787
|
-
* @uiGroup Step 3 Properties
|
|
4788
|
-
*/
|
|
4789
|
-
this.step3_modalTitle = "Important Note";
|
|
4790
|
-
/**
|
|
4791
|
-
* @uiName Information modal description text
|
|
4792
|
-
* @uiGroup Step 3 Properties
|
|
4793
|
-
*/
|
|
4794
|
-
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.";
|
|
4795
|
-
/**
|
|
4796
|
-
* @uiName Information modal button text
|
|
4797
|
-
* @uiGroup Step 3 Properties
|
|
4798
|
-
*/
|
|
4799
|
-
this.step3_modalButtonText = "I understand";
|
|
4800
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4801
|
-
STEP 4 PROPS:
|
|
4802
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4803
|
-
/**
|
|
4804
|
-
* @uiName Step 4 title
|
|
4805
|
-
* @uiGroup Step 4 Properties
|
|
4806
|
-
*/
|
|
4807
|
-
this.step4_taxAndPayouts = "Payouts";
|
|
4808
|
-
/**
|
|
4809
|
-
* @uiName Direct to bank payout option
|
|
4810
|
-
* @uiGroup Step 4 Properties
|
|
4811
|
-
*/
|
|
4812
|
-
this.step4_directlyToBankAccount = "Directly to my bank account";
|
|
4813
|
-
/**
|
|
4814
|
-
* @uiName PayPal payout option
|
|
4815
|
-
* @uiGroup Step 4 Properties
|
|
4816
|
-
*/
|
|
4817
|
-
this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
|
|
4818
|
-
/**
|
|
4819
|
-
* @uiName Threshold balance payment schedule option
|
|
4820
|
-
* @uiGroup Step 4 Properties
|
|
4821
|
-
*/
|
|
4822
|
-
this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
|
|
4823
|
-
/**
|
|
4824
|
-
* @uiName Fixed day payment schedule option
|
|
4825
|
-
* @uiGroup Step 4 Properties
|
|
4826
|
-
*/
|
|
4827
|
-
this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
|
|
4828
|
-
/**
|
|
4829
|
-
* Let the participant choose what day of the month they’ll get paid
|
|
4830
|
-
* @uiName Payment day field label
|
|
4831
|
-
* @uiGroup Step 4 Properties
|
|
4832
|
-
*/
|
|
4833
|
-
this.step4_paymentDaySelectLabel = "Payment Day";
|
|
4834
|
-
/**
|
|
4835
|
-
* Participant use this field to select the balance at which they want to be paid
|
|
4836
|
-
* @uiName Payment threshold field label
|
|
4837
|
-
* @uiGroup Step 4 Properties
|
|
4838
|
-
*/
|
|
4839
|
-
this.step4_paymentThresholdSelectLabel = "Payment threshold";
|
|
4840
|
-
/**
|
|
4841
|
-
* One of two payment day options
|
|
4842
|
-
* @uiName First of month payday option
|
|
4843
|
-
* @uiGroup Step 4 Properties
|
|
4844
|
-
*/
|
|
4845
|
-
this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
|
|
4846
|
-
/**
|
|
4847
|
-
* One of two payment day options
|
|
4848
|
-
* @uiName Fifteenth of month payday option
|
|
4849
|
-
* @uiGroup Step 4 Properties
|
|
4850
|
-
*/
|
|
4851
|
-
this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
|
|
4852
|
-
/**
|
|
4853
|
-
* @uiName Payment method section header
|
|
4854
|
-
* @uiGroup Step 4 Properties
|
|
4855
|
-
*/
|
|
4856
|
-
this.step4_paymentMethod = "Payment method";
|
|
4857
|
-
/**
|
|
4858
|
-
* @uiName Payment schedule section header
|
|
4859
|
-
* @uiGroup Step 4 Properties
|
|
4860
|
-
*/
|
|
4861
|
-
this.step4_paymentSchedule = "Payment schedule";
|
|
4862
|
-
/**
|
|
4863
|
-
* @uiName Payment method section description
|
|
4864
|
-
* @uiGroup Step 4 Properties
|
|
4865
|
-
*/
|
|
4866
|
-
this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
|
|
4867
|
-
/**
|
|
4868
|
-
* Displayed to participants who choose PayPal as their payout method
|
|
4869
|
-
* @uiName PayPal email field label
|
|
4870
|
-
* @uiGroup Step 4 Properties
|
|
4871
|
-
*/
|
|
4872
|
-
this.step4_payPalInputLabel = "PayPal email";
|
|
4873
|
-
/**
|
|
4874
|
-
* @uiName Bank country field label
|
|
4875
|
-
* @uiGroup Step 4 Properties
|
|
4876
|
-
*/
|
|
4877
|
-
this.step4_bankLocationLabel = "Bank country location";
|
|
4878
|
-
/**
|
|
4879
|
-
* @uiName Beneficiary account field label
|
|
4880
|
-
* @uiGroup Step 4 Properties
|
|
4881
|
-
*/
|
|
4882
|
-
this.step4_beneficiaryAccountNameLabel = "Account holder name";
|
|
4883
|
-
/**
|
|
4884
|
-
* @uiName Beneficiary account field description
|
|
4885
|
-
* @uiGroup Step 4 Properties
|
|
4886
|
-
*/
|
|
4887
|
-
this.step4_beneficiaryAccountNameDescription = "The beneficiary name of your bank account. Ensure this matches the name on your tax form.";
|
|
4888
|
-
/**
|
|
4889
|
-
* @uiName Bank account type field label
|
|
4890
|
-
* @uiGroup Step 4 Properties
|
|
4891
|
-
*/
|
|
4892
|
-
this.step4_bankAccountTypeLabel = "Bank account type";
|
|
4893
|
-
/**
|
|
4894
|
-
* @uiName Checking account option
|
|
4895
|
-
* @uiGroup Step 4 Properties
|
|
4896
|
-
*/
|
|
4897
|
-
this.step4_checkingSelectItemLabel = "Checking";
|
|
4898
|
-
/**
|
|
4899
|
-
* Label text for the savings account type select item
|
|
4900
|
-
* @uiName Savings account options
|
|
4901
|
-
* @uiGroup Step 4 Properties
|
|
4902
|
-
*/
|
|
4903
|
-
this.step4_savingsSelectItemLabel = "Savings";
|
|
4904
|
-
/**
|
|
4905
|
-
* @uiName Bank account number field label
|
|
4906
|
-
* @uiGroup Step 4 Properties
|
|
4907
|
-
*/
|
|
4908
|
-
this.step4_bankAccountNumberLabel = "Bank account number";
|
|
4909
|
-
/**
|
|
4910
|
-
* @uiName IBAN field label
|
|
4911
|
-
* @uiGroup Step 4 Properties
|
|
4912
|
-
*/
|
|
4913
|
-
this.step4_ibanLabel = "IBAN";
|
|
4914
|
-
/**
|
|
4915
|
-
* @uiName SWIFT code field label
|
|
4916
|
-
* @uiGroup Step 4 Properties
|
|
4917
|
-
*/
|
|
4918
|
-
this.step4_swiftCodeLabel = "SWIFT code";
|
|
4919
|
-
/**
|
|
4920
|
-
* @uiName Routing code field label
|
|
4921
|
-
* @uiGroup Step 4 Properties
|
|
4922
|
-
*/
|
|
4923
|
-
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} }";
|
|
4924
|
-
/**
|
|
4925
|
-
* @uiName Bank name field label
|
|
4926
|
-
* @uiGroup Step 4 Properties
|
|
4927
|
-
*/
|
|
4928
|
-
this.step4_bankNameLabel = "Bank name";
|
|
4929
|
-
/**
|
|
4930
|
-
* @uiName Classification entity field label
|
|
4931
|
-
* @uiGroup Step 4 Properties
|
|
4932
|
-
*/
|
|
4933
|
-
this.step4_classificationEntityLabel = "Classification entity";
|
|
4934
|
-
/**
|
|
4935
|
-
* One of three options listed for the classification field
|
|
4936
|
-
* @uiName Business classification option
|
|
4937
|
-
* @uiGroup Step 4 Properties
|
|
4938
|
-
*/
|
|
4939
|
-
this.step4_businessSelectItemLabel = "Business";
|
|
4940
|
-
/**
|
|
4941
|
-
* One of three options listed for the classification field
|
|
4942
|
-
* @uiName Individual classification option
|
|
4943
|
-
* @uiGroup Step 4 Properties
|
|
4944
|
-
*/
|
|
4945
|
-
this.step4_individualSelectItemLabel = "Individual";
|
|
4946
|
-
/**
|
|
4947
|
-
* One of three options listed for the classification field
|
|
4948
|
-
* @uiName Foreign classification option
|
|
4949
|
-
* @uiGroup Step 4 Properties
|
|
4950
|
-
*/
|
|
4951
|
-
this.step4_foreignSelectItemLabel = "Foreign";
|
|
4952
|
-
/**
|
|
4953
|
-
* @uiName Classification CPF field label
|
|
4954
|
-
* @uiGroup Step 4 Properties
|
|
4955
|
-
*/
|
|
4956
|
-
this.step4_classificationCPFLabel = "Classification CPF";
|
|
4957
|
-
/**
|
|
4958
|
-
* @uiName Patronymic name field label
|
|
4959
|
-
* @uiGroup Step 4 Properties
|
|
4960
|
-
*/
|
|
4961
|
-
this.step4_patronymicNameLabel = "Patronymic name";
|
|
4962
|
-
/**
|
|
4963
|
-
* @uiName VO code field label
|
|
4964
|
-
* @uiGroup Step 4 Properties
|
|
4965
|
-
*/
|
|
4966
|
-
this.step4_voCodeLabel = "VO code";
|
|
4967
|
-
/**
|
|
4968
|
-
* @uiName Agency code field label
|
|
4969
|
-
* @uiGroup Step 4 Properties
|
|
4970
|
-
*/
|
|
4971
|
-
this.step4_agencyCodeLabel = "Agency code";
|
|
4972
|
-
/**
|
|
4973
|
-
* @uiName Branch code field label
|
|
4974
|
-
* @uiGroup Step 4 Properties
|
|
4975
|
-
*/
|
|
4976
|
-
this.step4_branchCodeLabel = "Branch code";
|
|
4977
|
-
/**
|
|
4978
|
-
* Label text for the classification input field
|
|
4979
|
-
* @uiName Classification field label
|
|
4980
|
-
* @uiGroup Step 4 Properties
|
|
4981
|
-
*/
|
|
4982
|
-
this.step4_classificationLabel = "Classification";
|
|
4983
|
-
/**
|
|
4984
|
-
* @uiName Taxpayer ID field label
|
|
4985
|
-
* @uiGroup Step 4 Properties
|
|
4986
|
-
*/
|
|
4987
|
-
this.step4_taxPayerIdLabel = "Beneficiary INN";
|
|
4988
|
-
/**
|
|
4989
|
-
* @uiName Bank address field label
|
|
4990
|
-
* @uiGroup Step 4 Properties
|
|
4991
|
-
*/
|
|
4992
|
-
this.step4_bankAddressLabel = "Bank address";
|
|
4993
|
-
/**
|
|
4994
|
-
* @uiName Bank city field label
|
|
4995
|
-
* @uiGroup Step 4 Properties
|
|
4996
|
-
*/
|
|
4997
|
-
this.step4_bankCityLabel = "Bank city";
|
|
4998
|
-
/**
|
|
4999
|
-
* @uiName Bank province/state field label
|
|
5000
|
-
* @uiGroup Step 4 Properties
|
|
5001
|
-
*/
|
|
5002
|
-
this.step4_bankStateLabel = "Bank Province / State";
|
|
5003
|
-
/**
|
|
5004
|
-
* @uiName Bank postal code field label
|
|
5005
|
-
* @uiGroup Step 4 Properties
|
|
5006
|
-
*/
|
|
5007
|
-
this.step4_bankPostalCodeLabel = "Bank postal code";
|
|
5008
|
-
/**
|
|
5009
|
-
* Default payment method to the participants’ bank account.
|
|
5010
|
-
* @uiName EFT withdrawal payment method
|
|
5011
|
-
* @uiGroup Step 4 Properties
|
|
5012
|
-
*/
|
|
5013
|
-
this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
|
|
5014
|
-
/**
|
|
5015
|
-
* @uiName FX Wire Processing fee text
|
|
5016
|
-
* @uiGroup Step 4 Properties
|
|
5017
|
-
*/
|
|
5018
|
-
this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
|
|
5019
|
-
/**
|
|
5020
|
-
* @uiName Text for verify email dialog
|
|
5021
|
-
* @uiGroup Step 4 Properties
|
|
5022
|
-
*/
|
|
5023
|
-
this.step4_verifyEmailHeaderText = "Verify your email";
|
|
5024
|
-
/**
|
|
5025
|
-
* @uiName Verify code widget header text
|
|
5026
|
-
* @uiGroup Step 4 Properties
|
|
5027
|
-
*/
|
|
5028
|
-
this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
|
|
5029
|
-
/**
|
|
5030
|
-
* @uiName Information modal title
|
|
5031
|
-
* @uiGroup Step 4 Properties
|
|
5032
|
-
*/
|
|
5033
|
-
this.step4_modalTitle = "Important Note";
|
|
5034
|
-
/**
|
|
5035
|
-
* @uiName Information modal description text
|
|
5036
|
-
* @uiGroup Step 4 Properties
|
|
5037
|
-
*/
|
|
5038
|
-
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.";
|
|
5039
|
-
/**
|
|
5040
|
-
* @uiName Information modal button text
|
|
5041
|
-
* @uiGroup Step 4 Properties
|
|
5042
|
-
*/
|
|
5043
|
-
this.step4_modalButtonText = "I understand, update my information";
|
|
5044
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
5045
|
-
DASHBOARD PROPS:
|
|
5046
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
5047
|
-
/**
|
|
5048
|
-
* @uiName Active tax form badge label
|
|
5049
|
-
* @uiGroup Dashboard Properties
|
|
5050
|
-
*/
|
|
5051
|
-
this.dashboard_statusTextActive = "Active";
|
|
5052
|
-
/**
|
|
5053
|
-
* @uiName Invalid tax form badge label
|
|
5054
|
-
* @uiGroup Dashboard Properties
|
|
5055
|
-
*/
|
|
5056
|
-
this.dashboard_statusTextNotActive = "Invalid Tax Form";
|
|
5057
|
-
/**
|
|
5058
|
-
* Displayed when the participant submitted their form but it is awaiting review.
|
|
5059
|
-
*
|
|
5060
|
-
* @uiName Not verified tax form badge label
|
|
5061
|
-
* @uiGroup Dashboard Properties
|
|
5062
|
-
*/
|
|
5063
|
-
this.dashboard_statusTextNotVerified = "Not Verified";
|
|
5064
|
-
/**
|
|
5065
|
-
* Displayed when the participant has not submitted their required tax form.
|
|
5066
|
-
*
|
|
5067
|
-
* @uiName Required tax form badge label
|
|
5068
|
-
*/
|
|
5069
|
-
this.dashboard_statusTextRequired = "Required";
|
|
5070
|
-
/**
|
|
5071
|
-
* Additional text displayed next to the tax form's status badge
|
|
5072
|
-
*
|
|
5073
|
-
* @uiName Required tax form description
|
|
5074
|
-
*/
|
|
5075
|
-
this.dashboard_requiredTaxForm = "Your payouts are on hold until you submit a {taxFormType} tax form.";
|
|
5076
|
-
/**
|
|
5077
|
-
* Additional text displayed next to the tax form's status badge
|
|
5078
|
-
*
|
|
5079
|
-
* @uiName Active W-9 description
|
|
5080
|
-
* @uiGroup Dashboard Properties
|
|
5081
|
-
*/
|
|
5082
|
-
this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
|
|
5083
|
-
/**
|
|
5084
|
-
* Additional text displayed next to the tax form's status badge.
|
|
5085
|
-
*
|
|
5086
|
-
* @uiName Active W-8 description
|
|
5087
|
-
* @uiGroup Dashboard Properties
|
|
5088
|
-
*/
|
|
5089
|
-
this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
|
|
5090
|
-
/**
|
|
5091
|
-
* Additional text displayed next to the tax form's status badge.
|
|
5092
|
-
*
|
|
5093
|
-
* @uiName Tax form in review description
|
|
5094
|
-
* @uiGroup Dashboard Properties
|
|
5095
|
-
*/
|
|
5096
|
-
this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
|
|
5097
|
-
/**
|
|
5098
|
-
* Part of the alert displayed at the top of the page.
|
|
5099
|
-
*
|
|
5100
|
-
* @uiName Inactive W-9 error message title
|
|
5101
|
-
* @uiGroup Dashboard Properties
|
|
5102
|
-
* @uiWidget textArea
|
|
5103
|
-
*/
|
|
5104
|
-
this.dashboard_taxAlertHeaderNotActiveW9 = "Your W9 tax form has personal information that doesn’t match your profile";
|
|
5105
|
-
/**
|
|
5106
|
-
* Part of the alert displayed at the top of the page.
|
|
5107
|
-
*
|
|
5108
|
-
* @uiName Inactive W-8 error message title
|
|
5109
|
-
* @uiGroup Dashboard Properties
|
|
5110
|
-
* @uiWidget textArea
|
|
5111
|
-
*/
|
|
5112
|
-
this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
|
|
5113
|
-
/**
|
|
5114
|
-
* Part of the alert displayed at the top of the page.
|
|
5115
|
-
*
|
|
5116
|
-
* @uiName Inactive W-9 error message description
|
|
5117
|
-
* @uiGroup Dashboard Properties
|
|
5118
|
-
* @uiWidget textArea
|
|
5119
|
-
*/
|
|
5120
|
-
this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
|
|
5121
|
-
/**
|
|
5122
|
-
* Part of the alert displayed at the top of the page.
|
|
5123
|
-
*
|
|
5124
|
-
* @uiName Inactive W-8 error message description
|
|
5125
|
-
* @uiGroup Dashboard Properties
|
|
5126
|
-
*/
|
|
5127
|
-
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.";
|
|
5128
|
-
/**
|
|
5129
|
-
* Additional text displayed next to the tax form's status badge.
|
|
5130
|
-
*
|
|
5131
|
-
* @uiName Invalid tax form description
|
|
5132
|
-
* @uiGroup Dashboard Properties
|
|
5133
|
-
* @uiWidget textArea
|
|
5134
|
-
*/
|
|
5135
|
-
this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
|
|
5136
|
-
/**
|
|
5137
|
-
* @uiName Payout information section header
|
|
5138
|
-
* @uiGroup Dashboard Properties
|
|
5139
|
-
*/
|
|
5140
|
-
this.dashboard_bankingInformationSectionHeader = "Payout Information";
|
|
5141
|
-
/**
|
|
5142
|
-
* @uiName Tax document section header
|
|
5143
|
-
* @uiGroup Dashboard Properties
|
|
5144
|
-
*/
|
|
5145
|
-
this.dashboard_taxDocumentSectionHeader = "Tax documents";
|
|
5146
|
-
/**
|
|
5147
|
-
* Displayed under the tax document section header.
|
|
5148
|
-
*
|
|
5149
|
-
* @uiName Tax documents section description
|
|
5150
|
-
* @uiGroup Dashboard Properties
|
|
5151
|
-
*/
|
|
5152
|
-
this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
|
|
5153
|
-
/**
|
|
5154
|
-
* No other statuses or badges will be displayed in the tax form section in this case.
|
|
5155
|
-
*
|
|
5156
|
-
* @uiName Tax form not required text
|
|
5157
|
-
* @uiGroup Dashboard Properties
|
|
5158
|
-
* @uiWidget textArea
|
|
5159
|
-
*/
|
|
5160
|
-
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.";
|
|
5161
|
-
/**
|
|
5162
|
-
*
|
|
5163
|
-
* @uiName Indirect tax section header
|
|
5164
|
-
* @uiGroup Dashboard Properties
|
|
5165
|
-
*/
|
|
5166
|
-
this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
|
|
5167
|
-
/**
|
|
5168
|
-
* If the participant is registered for indirect tax in Canada, display the province they’re registered in.
|
|
5169
|
-
*
|
|
5170
|
-
* @uiName Canadian province of indirect tax
|
|
5171
|
-
* @uiGroup Dashboard Properties
|
|
5172
|
-
*/
|
|
5173
|
-
this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
|
|
5174
|
-
/**
|
|
5175
|
-
* If the participant is registered for indirect tax, display the country they’re registered in.
|
|
5176
|
-
*
|
|
5177
|
-
* @uiName Indirect tax country
|
|
5178
|
-
* @uiGroup Dashboard Properties
|
|
5179
|
-
*/
|
|
5180
|
-
this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
|
|
5181
|
-
/**
|
|
5182
|
-
* If the participant is registered for indirect tax in Spain, display the region they’re registered in.
|
|
5183
|
-
*
|
|
5184
|
-
* @uiName Spanish region of indirect tax
|
|
5185
|
-
* @uiGroup Dashboard Properties
|
|
5186
|
-
*/
|
|
5187
|
-
this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
|
|
5188
|
-
/**
|
|
5189
|
-
* @uiName Indirect tax tooltip
|
|
5190
|
-
* @uiGroup Dashboard Properties
|
|
5191
|
-
* @uiWidget textArea
|
|
5192
|
-
*/
|
|
5193
|
-
this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
|
|
5194
|
-
/**
|
|
5195
|
-
* Displayed to participants who have submitted their indirect tax information.
|
|
5196
|
-
*
|
|
5197
|
-
* @uiName Indirect tax details
|
|
5198
|
-
* @uiGroup Dashboard Properties
|
|
5199
|
-
*/
|
|
5200
|
-
this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
|
|
5201
|
-
/**
|
|
5202
|
-
* @uiName Submit new tax form button label
|
|
5203
|
-
* @uiGroup Dashboard Properties
|
|
5204
|
-
*/
|
|
5205
|
-
this.dashboard_newFormButton = "Submit new form";
|
|
5206
|
-
/**
|
|
5207
|
-
* @uiName Edit payment info button label
|
|
5208
|
-
* @uiGroup Dashboard Properties
|
|
5209
|
-
*/
|
|
5210
|
-
this.dashboard_editPaymentInformationButton = "Edit Payout Information";
|
|
5211
|
-
/**
|
|
5212
|
-
* @uiName Not registered for indirect tax text
|
|
5213
|
-
* @uiGroup Dashboard Properties
|
|
5214
|
-
* @uiWidget textArea
|
|
5215
|
-
*/
|
|
5216
|
-
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.";
|
|
5217
|
-
/**
|
|
5218
|
-
* Displayed to participants registered in Quebec, Canada.
|
|
5219
|
-
* @uiName QST indirect tax details
|
|
5220
|
-
* @uiGroup Dashboard Properties
|
|
5221
|
-
*/
|
|
5222
|
-
this.dashboard_qstNumber = "QST number: {qstNumber}";
|
|
5223
|
-
/**
|
|
5224
|
-
* @uiName Spain sub-region indirect tax number
|
|
5225
|
-
* @uiGroup Dashboard Properties
|
|
5226
|
-
*/
|
|
5227
|
-
this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
|
|
5228
|
-
/**
|
|
5229
|
-
* @uiName Payout status badge
|
|
5230
|
-
* @uiGroup Dashboard Properties
|
|
5231
|
-
*/
|
|
5232
|
-
this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
5233
|
-
/**
|
|
5234
|
-
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
5235
|
-
* @uiName Payout schedule by threshold text
|
|
5236
|
-
* @uiGroup Dashboard Properties
|
|
5237
|
-
*/
|
|
5238
|
-
this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
5239
|
-
/**
|
|
5240
|
-
* Shown before the participant’s bank account information.
|
|
5241
|
-
* @uiName Bank account field label
|
|
5242
|
-
* @uiGroup Dashboard Properties
|
|
5243
|
-
*/
|
|
5244
|
-
this.dashboard_accountText = "Account";
|
|
5245
|
-
/**
|
|
5246
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5247
|
-
* @uiName Invoice number column title
|
|
5248
|
-
* @uiGroup Dashboard Properties
|
|
5249
|
-
*/
|
|
5250
|
-
this.dashboard_invoiceColumnTitle = "Invoice";
|
|
5251
|
-
/**
|
|
5252
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5253
|
-
* @uiName Date column title
|
|
5254
|
-
* @uiGroup Dashboard Properties
|
|
5255
|
-
*/
|
|
5256
|
-
this.dashboard_dateColumnTitle = "Date";
|
|
5257
|
-
/**
|
|
5258
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5259
|
-
* @uiName Earnings column title
|
|
5260
|
-
* @uiGroup Dashboard Properties
|
|
5261
|
-
*/
|
|
5262
|
-
this.dashboard_earningsColumnTitle = "Earnings";
|
|
5263
|
-
/**
|
|
5264
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5265
|
-
* @uiName Indirect tax column title
|
|
5266
|
-
* @uiGroup Dashboard Properties
|
|
5267
|
-
*/
|
|
5268
|
-
this.dashboard_indirectTaxColumnTitle = "Indirect tax";
|
|
5269
|
-
/**
|
|
5270
|
-
* Displayed under the payout details card.
|
|
5271
|
-
* @uiName Payout from impact text
|
|
5272
|
-
* @uiGroup Dashboard Properties
|
|
5273
|
-
* @uiWidget textArea
|
|
5274
|
-
*/
|
|
5275
|
-
this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
|
|
5276
|
-
/**
|
|
5277
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5278
|
-
* @uiName Earnings after tax column title
|
|
5279
|
-
* @uiGroup Dashboard Properties
|
|
5280
|
-
*/
|
|
5281
|
-
this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
|
|
5282
|
-
/**
|
|
5283
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5284
|
-
* @uiName Payout error message title
|
|
5285
|
-
* @uiGroup Dashboard Properties
|
|
5286
|
-
* @uiWidget textArea
|
|
5287
|
-
*/
|
|
5288
|
-
this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
|
|
5289
|
-
/**
|
|
5290
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5291
|
-
* @uiName Payout error message description
|
|
5292
|
-
* @uiGroup Dashboard Properties
|
|
5293
|
-
* @uiWidget textArea
|
|
5294
|
-
*/
|
|
5295
|
-
this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
|
|
5296
|
-
/**
|
|
5297
|
-
* Text displayed for existing publishers that do not have saved banking information.
|
|
5298
|
-
* @uiName Payout missing information subtext
|
|
5299
|
-
* @uiGroup Dashboard Properties
|
|
5300
|
-
*/
|
|
5301
|
-
this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
5302
|
-
/**
|
|
5303
|
-
* @uiName Invoice table description
|
|
5304
|
-
* @uiGroup Dashboard Properties
|
|
5305
|
-
*/
|
|
5306
|
-
this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
|
|
5307
|
-
/**
|
|
5308
|
-
* @uiName Invoice table previous page button label
|
|
5309
|
-
* @uiGroup Dashboard Properties
|
|
5310
|
-
*/
|
|
5311
|
-
this.dashboard_invoicePrevLabel = "Prev";
|
|
5312
|
-
/**
|
|
5313
|
-
* @uiName Invoice table next page button label
|
|
5314
|
-
* @uiGroup Dashboard Properties
|
|
5315
|
-
*/
|
|
5316
|
-
this.dashboard_invoiceMoreLabel = "Next";
|
|
5317
|
-
/**
|
|
5318
|
-
* @uiName Invoice table title
|
|
5319
|
-
* @uiGroup Dashboard Properties
|
|
5320
|
-
*/
|
|
5321
|
-
this.dashboard_invoiceHeader = "Invoices";
|
|
5322
|
-
/**
|
|
5323
|
-
* @uiName Empty invoice table header
|
|
5324
|
-
* @uiGroup Dashboard Properties
|
|
5325
|
-
*/
|
|
5326
|
-
this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
|
|
5327
|
-
/**
|
|
5328
|
-
* @uiName Empty invoice table description
|
|
5329
|
-
* @uiGroup Dashboard Properties
|
|
5330
|
-
*/
|
|
5331
|
-
this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
5332
|
-
/**
|
|
5333
|
-
* @uiName Replace tax form modal header
|
|
5334
|
-
* @uiGroup Dashboard Properties
|
|
5335
|
-
*/
|
|
5336
|
-
this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
|
|
5337
|
-
/**
|
|
5338
|
-
* @uiName Replace tax form modal body text
|
|
5339
|
-
* @uiGroup Dashboard Properties
|
|
5340
|
-
* @uiWidget textArea
|
|
5341
|
-
*/
|
|
5342
|
-
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.";
|
|
5343
|
-
/**
|
|
5344
|
-
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5345
|
-
* @uiName Verification required alert message title
|
|
5346
|
-
* @uiGroup Dashboard Properties
|
|
5347
|
-
* @uiWidget textArea
|
|
5348
|
-
*/
|
|
5349
|
-
this.dashboard_verificationRequiredHeader = "Verify your identity";
|
|
5350
|
-
/**
|
|
5351
|
-
* Part of the alert displayed at the top of the page when the user needs to verify their identity
|
|
5352
|
-
* @uiName Verification required alert message description
|
|
5353
|
-
* @uiGroup Dashboard Properties
|
|
5354
|
-
* @uiWidget textArea
|
|
5355
|
-
*/
|
|
5356
|
-
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}.";
|
|
5357
|
-
/**
|
|
5358
|
-
* @uiName Verification required internal alert header
|
|
5359
|
-
* @uiGroup Dashboard Properties
|
|
5360
|
-
* @uiWidget textArea
|
|
5361
|
-
*/
|
|
5362
|
-
this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
5363
|
-
/**
|
|
5364
|
-
* @uiName Verification required internal alert description
|
|
5365
|
-
* @uiGroup Dashboard Properties
|
|
5366
|
-
* @uiWidget textArea
|
|
5367
|
-
*/
|
|
5368
|
-
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}.";
|
|
5369
|
-
/**
|
|
5370
|
-
* @uiName Verification review internal alert header
|
|
5371
|
-
* @uiGroup Dashboard Properties
|
|
5372
|
-
* @uiWidget textArea
|
|
5373
|
-
*/
|
|
5374
|
-
this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
5375
|
-
/**
|
|
5376
|
-
* @uiName Verification review internal alert description
|
|
5377
|
-
* @uiGroup Dashboard Properties
|
|
5378
|
-
* @uiWidget textArea
|
|
5379
|
-
*/
|
|
5380
|
-
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}.";
|
|
5381
|
-
/**
|
|
5382
|
-
* @uiName Verification failed internal alert header
|
|
5383
|
-
* @uiGroup Dashboard Properties
|
|
5384
|
-
* @uiWidget textArea
|
|
5385
|
-
*/
|
|
5386
|
-
this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
5387
|
-
/**
|
|
5388
|
-
* @uiName Verification failed internal alert description
|
|
5389
|
-
* @uiGroup Dashboard Properties
|
|
5390
|
-
* @uiWidget textArea
|
|
5391
|
-
*/
|
|
5392
|
-
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}.";
|
|
5393
|
-
/**
|
|
5394
|
-
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5395
|
-
* @uiName Verification required alert button text
|
|
5396
|
-
* @uiGroup Dashboard Properties
|
|
5397
|
-
* @uiWidget textArea
|
|
5398
|
-
*/
|
|
5399
|
-
this.dashboard_verificationRequiredButtonText = "Start Verification";
|
|
5400
|
-
/**
|
|
5401
|
-
* @uiName W9 payment threshold alert header
|
|
5402
|
-
* @uiGroup Dashboard Properties
|
|
5403
|
-
* @uiWidget textArea
|
|
5404
|
-
*/
|
|
5405
|
-
this.dashboard_w9RequiredHeader = "Your next payout is on hold";
|
|
5406
|
-
/**
|
|
5407
|
-
* @uiName W9 payment threshold alert description
|
|
5408
|
-
* @uiGroup Dashboard Properties
|
|
5409
|
-
* @uiWidget textArea
|
|
5410
|
-
*/
|
|
5411
|
-
this.dashboard_w9RequiredDescription = "You have surpassed the $600 threshold for a W9 tax form. To remove the hold, you need to submit a W9 tax form as outlined in our {termsAndConditions}. Please click 'Submit W9' to start the process.";
|
|
5412
|
-
/**
|
|
5413
|
-
* @uiName Terms and Conditions text
|
|
5414
|
-
* @uiGroup Dashboard Properties
|
|
5415
|
-
*/
|
|
5416
|
-
this.dashboard_termsAndConditions = "Terms and Conditions";
|
|
5417
|
-
/**
|
|
5418
|
-
* @uiName W9 payment threshold alert button text
|
|
5419
|
-
* @uiGroup Dashboard Properties
|
|
5420
|
-
* @uiWidget textArea
|
|
5421
|
-
*/
|
|
5422
|
-
this.dashboard_w9RequiredButtonText = "Submit W9";
|
|
5423
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
5424
|
-
GENERAL PROPS:
|
|
5425
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
5426
|
-
/**
|
|
5427
|
-
* @uiName Setup progress
|
|
5428
|
-
* @uiGroup General Form Properties
|
|
5429
|
-
*/
|
|
5430
|
-
this.formStep = "Step {step} of {count}";
|
|
5431
|
-
/**
|
|
5432
|
-
* Part of the alert displayed at the top of the page.
|
|
5433
|
-
* @uiName Form submission error message title
|
|
5434
|
-
* @uiGroup General Form Properties
|
|
5435
|
-
* @uiWidget textArea
|
|
5436
|
-
*/
|
|
5437
|
-
this.generalErrorTitle = "There was a problem submitting your information";
|
|
5438
|
-
/**
|
|
5439
|
-
* Part of the alert displayed at the top of the page.
|
|
5440
|
-
* @uiName Form submission error message description
|
|
5441
|
-
* @uiGroup General Form Properties
|
|
5442
|
-
* @uiWidget textArea
|
|
5443
|
-
*/
|
|
5444
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
5445
|
-
/**
|
|
5446
|
-
* Displayed under a field that is missing required information.
|
|
5447
|
-
* @uiName Empty form field error message
|
|
5448
|
-
* @uiGroup General Form Properties
|
|
5449
|
-
*/
|
|
5450
|
-
this.fieldRequiredError = "{fieldName} is required";
|
|
5451
|
-
/**
|
|
5452
|
-
* Displayed under a field that includes invalid characters (non-ASCII).
|
|
5453
|
-
* @uiName Invalid character error message
|
|
5454
|
-
* @uiGroup General Form Properties
|
|
5455
|
-
*/
|
|
5456
|
-
this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
|
|
5457
|
-
/**
|
|
5458
|
-
* Displayed under a field when it has an invalid entry.
|
|
5459
|
-
* @uiName Form field error message
|
|
5460
|
-
* @uiGroup General Form Properties
|
|
5461
|
-
*/
|
|
5462
|
-
this.fieldInvalidError = "{fieldName} is invalid";
|
|
5463
|
-
/**
|
|
5464
|
-
* @uiName Continue button label
|
|
5465
|
-
* @uiGroup General Form Properties
|
|
5466
|
-
*/
|
|
5467
|
-
this.continueButton = "Continue";
|
|
5468
|
-
/**
|
|
5469
|
-
* @uiName Back button label
|
|
5470
|
-
* @uiGroup General Form Properties
|
|
5471
|
-
*/
|
|
5472
|
-
this.backButton = "Back";
|
|
5473
|
-
/**
|
|
5474
|
-
* @uiName Cancel button label
|
|
5475
|
-
* @uiGroup General Form Properties
|
|
5476
|
-
*/
|
|
5477
|
-
this.cancelButton = "Cancel";
|
|
5478
|
-
/**
|
|
5479
|
-
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5480
|
-
* @uiName Participant is a partner alert title
|
|
5481
|
-
* @uiGroup General Form Properties
|
|
5482
|
-
* @uiWidget textArea
|
|
5483
|
-
*/
|
|
5484
|
-
this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
|
|
5485
|
-
/**
|
|
5486
|
-
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5487
|
-
* @uiName Participant is a partner alert description
|
|
5488
|
-
* @uiGroup General Form Properties
|
|
5489
|
-
* @uiWidget textArea
|
|
5490
|
-
*/
|
|
5491
|
-
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.";
|
|
5492
|
-
/**
|
|
5493
|
-
* Placeholder text displayed in the country search dropdown
|
|
5494
|
-
* @uiName Country field placeholder text
|
|
5495
|
-
* @uiGroup General Form Properties
|
|
5496
|
-
*/
|
|
5497
|
-
this.searchForCountryText = "Search for country..";
|
|
3595
|
+
.plus({ month: 1 })
|
|
3596
|
+
.startOf("month")
|
|
3597
|
+
.toFormat("LLL dd, yyyy");
|
|
3598
|
+
}
|
|
3599
|
+
else if (paymentDay === "15") {
|
|
3600
|
+
return currentDay <= 15
|
|
3601
|
+
? luxon.DateTime.now()
|
|
3602
|
+
.plus({ day: 15 - currentDay })
|
|
3603
|
+
.toFormat("LLL dd, yyyy")
|
|
3604
|
+
: luxon.DateTime.now()
|
|
3605
|
+
.plus({ month: 1 })
|
|
3606
|
+
.startOf("month")
|
|
3607
|
+
.plus({ day: 14 })
|
|
3608
|
+
.toFormat("LLL dd, yyyy");
|
|
3609
|
+
}
|
|
3610
|
+
else {
|
|
3611
|
+
intl.formatMessage({
|
|
3612
|
+
id: `nextPayoutBalance`,
|
|
3613
|
+
defaultMessage: props.thresholdPayoutText,
|
|
3614
|
+
}, {
|
|
3615
|
+
thresholdBalance: (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold,
|
|
3616
|
+
});
|
|
3617
|
+
}
|
|
3618
|
+
}
|
|
3619
|
+
const paymentDay = getPayoutDetailedStatusText((_c = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _c === void 0 ? void 0 : _c.paymentDay);
|
|
3620
|
+
const isPayoutToday = luxon.DateTime.now().toFormat("LLL dd, yyyy") === paymentDay;
|
|
3621
|
+
return {
|
|
3622
|
+
states: {
|
|
3623
|
+
loading,
|
|
3624
|
+
thresholdBalance: ((_d = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _d === void 0 ? void 0 : _d.paymentThreshold) ? `${publisher === null || publisher === void 0 ? void 0 : publisher.currency}${(_e = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _e === void 0 ? void 0 : _e.paymentThreshold}`
|
|
3625
|
+
: undefined,
|
|
3626
|
+
balance: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _f === void 0 ? void 0 : _f.balance,
|
|
3627
|
+
badgeStatus: ((_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentSchedulingType) !== "FIXED_DAY"
|
|
3628
|
+
? "thresholdPayout"
|
|
3629
|
+
: isPayoutToday
|
|
3630
|
+
? "payoutToday"
|
|
3631
|
+
: "nextPayout",
|
|
3632
|
+
payoutType: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paymentMethod,
|
|
3633
|
+
error: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _j === void 0 ? void 0 : _j.hold,
|
|
3634
|
+
paypalEmailAddress: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.paypalEmailAddress,
|
|
3635
|
+
cardNumberPreview: (_l = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _l === void 0 ? void 0 : _l.bankAccountNumber,
|
|
3636
|
+
nextPayoutDate: paymentDay,
|
|
3637
|
+
},
|
|
3638
|
+
text: props.getTextProps(),
|
|
3639
|
+
};
|
|
3640
|
+
}
|
|
3641
|
+
|
|
3642
|
+
const PayoutDetailsCard = class {
|
|
3643
|
+
constructor(hostRef) {
|
|
3644
|
+
registerInstance(this, hostRef);
|
|
5498
3645
|
/**
|
|
5499
|
-
*
|
|
5500
|
-
* @uiName
|
|
5501
|
-
* @uiGroup General Form Properties
|
|
5502
|
-
* @uiWidget textArea
|
|
3646
|
+
* Badge text indicating payout status
|
|
3647
|
+
* @uiName Payout badge status text
|
|
5503
3648
|
*/
|
|
5504
|
-
this.
|
|
3649
|
+
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
5505
3650
|
/**
|
|
5506
|
-
*
|
|
5507
|
-
* @uiName
|
|
5508
|
-
* @uiGroup General Form Properties
|
|
5509
|
-
* @uiWidget textArea
|
|
3651
|
+
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
3652
|
+
* @uiName Payout schedule by threshold text
|
|
5510
3653
|
*/
|
|
5511
|
-
this.
|
|
3654
|
+
this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
5512
3655
|
/**
|
|
5513
|
-
*
|
|
5514
|
-
* @uiName
|
|
5515
|
-
* @uiGroup General Form Properties
|
|
3656
|
+
* Shown before the participant’s bank account information.
|
|
3657
|
+
* @uiName Bank account field label
|
|
5516
3658
|
*/
|
|
5517
|
-
this.
|
|
3659
|
+
this.accountText = "Account";
|
|
5518
3660
|
/**
|
|
5519
|
-
*
|
|
5520
|
-
* @uiName
|
|
5521
|
-
* @uiGroup General Form Properties
|
|
3661
|
+
* Text displayed for existing publishers that do not have saved banking information.
|
|
3662
|
+
* @uiName Payout missing information subtext
|
|
5522
3663
|
*/
|
|
5523
|
-
this.
|
|
3664
|
+
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
5524
3665
|
/**
|
|
5525
|
-
*
|
|
5526
|
-
* @uiName Terms and Conditions text
|
|
5527
|
-
* @uiGroup General Form Properties
|
|
3666
|
+
* @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
|
|
5528
3667
|
*/
|
|
5529
|
-
this.
|
|
3668
|
+
this.stateController = "{}";
|
|
5530
3669
|
h$1(this);
|
|
5531
3670
|
}
|
|
5532
3671
|
disconnectedCallback() { }
|
|
5533
|
-
|
|
5534
|
-
getGeneralStepTextProps(prefix) {
|
|
3672
|
+
getTextProps() {
|
|
5535
3673
|
const props = getProps(this);
|
|
5536
3674
|
return {
|
|
5537
|
-
...
|
|
5538
|
-
generalErrorTitle: props.generalErrorTitle,
|
|
5539
|
-
generalErrorDescription: props.generalErrorDescription,
|
|
5540
|
-
fieldRequiredError: props.fieldRequiredError,
|
|
5541
|
-
invalidCharacterError: props.invalidCharacterError,
|
|
5542
|
-
fieldInvalidError: props.fieldInvalidError,
|
|
5543
|
-
continueButton: props.continueButton,
|
|
5544
|
-
backButton: props.backButton,
|
|
5545
|
-
cancelButton: props.cancelButton,
|
|
5546
|
-
isPartnerAlertHeader: props.isPartnerAlertHeader,
|
|
5547
|
-
isPartnerAlertDescription: props.isPartnerAlertDescription,
|
|
5548
|
-
loadingErrorAlertHeader: props.loadingErrorAlertHeader,
|
|
5549
|
-
loadingErrorAlertDescription: props.loadingErrorAlertDescription,
|
|
5550
|
-
taxAndPayoutsDescription: props.taxAndPayoutsDescription,
|
|
5551
|
-
searchForCountryText: props.searchForCountryText,
|
|
5552
|
-
formStep: props.formStep,
|
|
5553
|
-
supportLink: props.supportLink,
|
|
3675
|
+
...props,
|
|
5554
3676
|
};
|
|
5555
3677
|
}
|
|
5556
3678
|
render() {
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
const textProps = getProps(this);
|
|
5562
|
-
return (h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
|
|
5563
|
-
if (prop === "demoData")
|
|
5564
|
-
return;
|
|
5565
|
-
return (h("div", null, h("b", null, prop, ":"), " ", this[prop], h("hr", null)));
|
|
5566
|
-
})));
|
|
5567
|
-
}
|
|
5568
|
-
switch (props.step) {
|
|
5569
|
-
case "/1":
|
|
5570
|
-
return (h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
|
|
5571
|
-
case "/2":
|
|
5572
|
-
return (h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
|
|
5573
|
-
case "/3":
|
|
5574
|
-
return (h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
|
|
5575
|
-
case "/4":
|
|
5576
|
-
return (h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
5577
|
-
case "/dashboard":
|
|
5578
|
-
return (h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
5579
|
-
case "/error":
|
|
5580
|
-
return (h(ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
|
|
5581
|
-
}
|
|
5582
|
-
return h(LoadingView, null);
|
|
3679
|
+
const props = isDemo()
|
|
3680
|
+
? useDemoPayoutDetailsCard(this)
|
|
3681
|
+
: usePayoutDetailsCard(this);
|
|
3682
|
+
return (h(Host, null, h(PayoutDetailsCardView, { text: props.text, states: props.states })));
|
|
5583
3683
|
}
|
|
5584
3684
|
};
|
|
5585
|
-
function
|
|
5586
|
-
const [step, setStep] = In({
|
|
5587
|
-
namespace: TAX_CONTEXT_NAMESPACE,
|
|
5588
|
-
initialValue: "/1",
|
|
5589
|
-
});
|
|
3685
|
+
function useDemoPayoutDetailsCard(props) {
|
|
5590
3686
|
return cjs({
|
|
5591
|
-
|
|
5592
|
-
|
|
3687
|
+
states: {
|
|
3688
|
+
loading: false,
|
|
3689
|
+
error: false,
|
|
3690
|
+
thresholdBalance: "$50",
|
|
3691
|
+
mainCurrency: { currencyText: "USD", amountText: "100.00" },
|
|
3692
|
+
badgeStatus: "nextPayout",
|
|
3693
|
+
payoutType: "BANK_TRANSFER",
|
|
3694
|
+
nextPayoutDate: "March 14, 2024",
|
|
3695
|
+
paypalEmailAddress: "joesmith@example.com",
|
|
3696
|
+
otherCurrencies: false,
|
|
3697
|
+
hasW9Pending: false,
|
|
3698
|
+
hasDatePending: true,
|
|
3699
|
+
cardNumberPreview: "XX2381",
|
|
3700
|
+
balance: "20.00 USD",
|
|
3701
|
+
},
|
|
3702
|
+
text: props.getTextProps(),
|
|
5593
3703
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
5594
3704
|
}
|
|
5595
3705
|
|
|
5596
|
-
const style$
|
|
3706
|
+
const style$5 = {
|
|
5597
3707
|
ErrorAlertContainer: {
|
|
5598
3708
|
"&::part(base)": {
|
|
5599
3709
|
backgroundColor: "var(--sl-color-red-100)",
|
|
@@ -5784,27 +3894,44 @@ const style$6 = {
|
|
|
5784
3894
|
},
|
|
5785
3895
|
DialogButton: { margin: "auto", width: "100%" },
|
|
5786
3896
|
};
|
|
5787
|
-
const sheet$
|
|
5788
|
-
const styleString$
|
|
3897
|
+
const sheet$4 = createStyleSheet(style$5);
|
|
3898
|
+
const styleString$4 = sheet$4.toString();
|
|
5789
3899
|
const TaxAndCashDashboardView = (props) => {
|
|
5790
3900
|
var _a;
|
|
5791
3901
|
const { states, text, callbacks, slots } = props;
|
|
5792
3902
|
function getAlert(status) {
|
|
5793
3903
|
switch (status) {
|
|
5794
3904
|
case "OVER_W9_THRESHOLD":
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
3905
|
+
if (states.enforceUsTaxComplianceOption === "CASH_ONLY_DEFER_W9") {
|
|
3906
|
+
return {
|
|
3907
|
+
header: text.w9RequiredHeader,
|
|
3908
|
+
description: intl.formatMessage({
|
|
3909
|
+
id: "w9RequiredDescription",
|
|
3910
|
+
defaultMessage: text.w9RequiredDescription,
|
|
3911
|
+
}, {
|
|
3912
|
+
termsAndConditions: (h("a", { target: "_blank", href: `https://terms.advocate.impact.com/PayoutTermsAndConditions.html` }, text.termsAndConditions)),
|
|
3913
|
+
}),
|
|
3914
|
+
button: (h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", onClick: callbacks.onNewFormClick }, text.w9RequiredButtonText)),
|
|
3915
|
+
alertType: "info",
|
|
3916
|
+
icon: "info-circle",
|
|
3917
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
3918
|
+
};
|
|
3919
|
+
}
|
|
3920
|
+
else {
|
|
3921
|
+
return {
|
|
3922
|
+
header: text.payoutHoldAlertHeader,
|
|
3923
|
+
description: intl.formatMessage({
|
|
3924
|
+
id: "payoutHoldAlertDescription",
|
|
3925
|
+
defaultMessage: text.payoutHoldAlertDescription,
|
|
3926
|
+
}, {
|
|
3927
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3928
|
+
}),
|
|
3929
|
+
buttonText: null,
|
|
3930
|
+
alertType: "warning",
|
|
3931
|
+
icon: "exclamation-triangle",
|
|
3932
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
3933
|
+
};
|
|
3934
|
+
}
|
|
5808
3935
|
case "VERIFICATION:REQUIRED":
|
|
5809
3936
|
return {
|
|
5810
3937
|
header: text.verificationRequiredHeader,
|
|
@@ -5817,7 +3944,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5817
3944
|
buttonText: text.verificationRequiredButtonText,
|
|
5818
3945
|
alertType: "warning",
|
|
5819
3946
|
icon: "exclamation-triangle",
|
|
5820
|
-
class: sheet$
|
|
3947
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5821
3948
|
};
|
|
5822
3949
|
case "VERIFICATION:INTERNAL":
|
|
5823
3950
|
return {
|
|
@@ -5830,7 +3957,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5830
3957
|
}),
|
|
5831
3958
|
alertType: "warning",
|
|
5832
3959
|
icon: "exclamation-triangle",
|
|
5833
|
-
class: sheet$
|
|
3960
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5834
3961
|
};
|
|
5835
3962
|
case "VERIFICATION:REVIEW":
|
|
5836
3963
|
return {
|
|
@@ -5843,7 +3970,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5843
3970
|
}),
|
|
5844
3971
|
alertType: "warning",
|
|
5845
3972
|
icon: "exclamation-triangle",
|
|
5846
|
-
class: sheet$
|
|
3973
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5847
3974
|
};
|
|
5848
3975
|
case "VERIFICATION:FAILED":
|
|
5849
3976
|
return {
|
|
@@ -5854,9 +3981,23 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5854
3981
|
}, {
|
|
5855
3982
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5856
3983
|
}),
|
|
5857
|
-
alertType: "
|
|
3984
|
+
alertType: "error",
|
|
5858
3985
|
icon: "exclamation-octagon",
|
|
5859
|
-
class: sheet$
|
|
3986
|
+
class: sheet$4.classes.ErrorHoldAlertContainer,
|
|
3987
|
+
};
|
|
3988
|
+
case "ACCOUNT_REVIEW":
|
|
3989
|
+
return {
|
|
3990
|
+
header: text.accountReviewHeader,
|
|
3991
|
+
description: intl.formatMessage({
|
|
3992
|
+
id: "accountReviewDescription",
|
|
3993
|
+
defaultMessage: text.accountReviewDescription,
|
|
3994
|
+
}, {
|
|
3995
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3996
|
+
}),
|
|
3997
|
+
buttonText: null,
|
|
3998
|
+
alertType: "warning",
|
|
3999
|
+
icon: "exclamation-triangle",
|
|
4000
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5860
4001
|
};
|
|
5861
4002
|
case "HOLD":
|
|
5862
4003
|
return {
|
|
@@ -5870,14 +4011,14 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5870
4011
|
buttonText: null,
|
|
5871
4012
|
alertType: "warning",
|
|
5872
4013
|
icon: "exclamation-triangle",
|
|
5873
|
-
class: sheet$
|
|
4014
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5874
4015
|
};
|
|
5875
4016
|
default:
|
|
5876
4017
|
return;
|
|
5877
4018
|
}
|
|
5878
4019
|
}
|
|
5879
4020
|
const statusMap = {
|
|
5880
|
-
NOT_VERIFIED: (h("div", { class: sheet$
|
|
4021
|
+
NOT_VERIFIED: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5881
4022
|
h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
5882
4023
|
h("p", null, intl.formatMessage({
|
|
5883
4024
|
id: `badgeTextAwaitingReview`,
|
|
@@ -5885,7 +4026,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5885
4026
|
}, {
|
|
5886
4027
|
dateSubmitted: states.dateSubmitted,
|
|
5887
4028
|
})))),
|
|
5888
|
-
ACTIVE: (h("div", { class: sheet$
|
|
4029
|
+
ACTIVE: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5889
4030
|
h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
5890
4031
|
h("p", null, intl.formatMessage({
|
|
5891
4032
|
id: `badgeTextSubmittedOn`,
|
|
@@ -5895,10 +4036,10 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5895
4036
|
}, {
|
|
5896
4037
|
dateSubmitted: states.dateSubmitted,
|
|
5897
4038
|
})))),
|
|
5898
|
-
INACTIVE: (h("div", { class: sheet$
|
|
4039
|
+
INACTIVE: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5899
4040
|
h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
5900
4041
|
h("p", null, text.invalidForm))),
|
|
5901
|
-
undefined: (h("div", { class: sheet$
|
|
4042
|
+
undefined: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5902
4043
|
h("sl-badge", { type: "danger", pill: true }, text.statusTextRequired),
|
|
5903
4044
|
h("p", null, intl.formatMessage({
|
|
5904
4045
|
id: `requiredTaxForm`,
|
|
@@ -5908,7 +4049,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5908
4049
|
})))),
|
|
5909
4050
|
};
|
|
5910
4051
|
const alertMap = {
|
|
5911
|
-
INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true
|
|
4052
|
+
INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true },
|
|
5912
4053
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5913
4054
|
h("strong", null, intl.formatMessage({
|
|
5914
4055
|
id: `taxAlertHeaderNotActive`,
|
|
@@ -5959,9 +4100,9 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5959
4100
|
const alertInfo = getAlert(states.payoutStatus);
|
|
5960
4101
|
return (h("div", null,
|
|
5961
4102
|
h("div", null,
|
|
5962
|
-
h("style", { type: "text/css" }, styleString$
|
|
4103
|
+
h("style", { type: "text/css" }, styleString$4),
|
|
5963
4104
|
states.loadingError && (h("div", null,
|
|
5964
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true
|
|
4105
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true },
|
|
5965
4106
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5966
4107
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5967
4108
|
h("br", null),
|
|
@@ -5971,7 +4112,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5971
4112
|
}, {
|
|
5972
4113
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5973
4114
|
})))),
|
|
5974
|
-
((_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$
|
|
4115
|
+
((_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$4.classes.ErrorAlertContainer },
|
|
5975
4116
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5976
4117
|
h("strong", null, text.error.generalTitle),
|
|
5977
4118
|
h("br", null),
|
|
@@ -5987,48 +4128,48 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5987
4128
|
h("p", { style: { margin: "0" } }, alertInfo.description),
|
|
5988
4129
|
alertInfo.buttonText && (h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, alertInfo.buttonText)),
|
|
5989
4130
|
alertInfo.button ? (alertInfo.button) : (h("div", { style: { display: "none" } })))),
|
|
5990
|
-
h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$
|
|
4131
|
+
h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
5991
4132
|
h("p", null, text.replaceTaxFormModalBodyText),
|
|
5992
|
-
h("sl-button", { slot: "footer", type: "primary", class: sheet$
|
|
5993
|
-
h("sl-button", { slot: "footer", type: "default", class: sheet$
|
|
4133
|
+
h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
4134
|
+
h("sl-button", { slot: "footer", type: "default", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
5994
4135
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
5995
4136
|
h("div", null,
|
|
5996
4137
|
h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
5997
|
-
h("
|
|
5998
|
-
h("div", { class: sheet$5.classes.BankingInformationContainer },
|
|
4138
|
+
h("div", { class: sheet$4.classes.BankingInformationContainer },
|
|
5999
4139
|
slots.payoutDetailsCardSlot,
|
|
6000
|
-
!states.loading && (h("p", { class: sheet$
|
|
6001
|
-
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$
|
|
6002
|
-
!states.noFormNeeded && (h("div", { class: sheet$
|
|
6003
|
-
h("div", null, states.loading ? (h("div", { class: sheet$
|
|
6004
|
-
h("sl-skeleton", { class: sheet$
|
|
6005
|
-
h("sl-skeleton", { class: sheet$
|
|
4140
|
+
!states.loading && (h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
|
|
4141
|
+
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
4142
|
+
(!states.noFormNeeded || states.status === "NOT_VERIFIED") && (h("div", { class: sheet$4.classes.TaxDocumentsContainer },
|
|
4143
|
+
h("div", null, states.loading ? (h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
4144
|
+
h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
4145
|
+
h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (h("div", null,
|
|
6006
4146
|
h("div", null,
|
|
6007
|
-
h("span", { class: sheet$
|
|
6008
|
-
h("div", { class: sheet$
|
|
4147
|
+
h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4148
|
+
h("div", { class: sheet$4.classes.StatusContainer },
|
|
6009
4149
|
h("h3", null, intl.formatMessage({
|
|
6010
4150
|
id: "section-subheader",
|
|
6011
4151
|
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
6012
4152
|
}, {
|
|
6013
|
-
documentType: states.documentTypeString,
|
|
4153
|
+
documentType: states.documentTypeString || "W-9",
|
|
6014
4154
|
})),
|
|
6015
|
-
h("span", { class: sheet$
|
|
6016
|
-
states.
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
h("sl-skeleton", { class: sheet$
|
|
6020
|
-
h("
|
|
4155
|
+
h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
|
|
4156
|
+
states.noFormNeeded &&
|
|
4157
|
+
states.status !== "NOT_VERIFIED" && (h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$4.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
|
|
4158
|
+
h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
4159
|
+
h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
4160
|
+
h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (h("div", null,
|
|
4161
|
+
h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
|
|
6021
4162
|
text.indirectTaxInfoSectionHeader,
|
|
6022
|
-
h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$
|
|
6023
|
-
h("sl-icon", { name: "info-circle", class: sheet$
|
|
6024
|
-
h("div", { class: sheet$
|
|
6025
|
-
h("span", null, states.notRegistered ? (h("span", { class: sheet$
|
|
4163
|
+
h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
|
|
4164
|
+
h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip }))),
|
|
4165
|
+
h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
|
|
4166
|
+
h("span", null, states.notRegistered ? (h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, intl.formatMessage({
|
|
6026
4167
|
id: "notRegisteredForTax",
|
|
6027
4168
|
defaultMessage: text.notRegisteredForTax,
|
|
6028
4169
|
}, {
|
|
6029
4170
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
6030
4171
|
}))) : (getIndirectTaxRegisteredIn())),
|
|
6031
|
-
!states.notRegistered && (h("div", { class: sheet$
|
|
4172
|
+
!states.notRegistered && (h("div", { class: sheet$4.classes.TaxNumberContainer },
|
|
6032
4173
|
h("span", null, intl.formatMessage({
|
|
6033
4174
|
id: `indirectTaxDetails`,
|
|
6034
4175
|
defaultMessage: text.indirectTaxDetails,
|
|
@@ -6051,7 +4192,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
6051
4192
|
}, {
|
|
6052
4193
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
6053
4194
|
})))),
|
|
6054
|
-
!states.notRegistered && (h("div", { class: sheet$
|
|
4195
|
+
!states.notRegistered && (h("div", { class: sheet$4.classes.InvoiceTableContainer },
|
|
6055
4196
|
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 },
|
|
6056
4197
|
h("sqm-invoice-table-download-column", null),
|
|
6057
4198
|
h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
@@ -6061,6 +4202,13 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
6061
4202
|
h("sqm-invoice-table-data-column", { "column-title": text.earningsAfterTaxColumnTitle, property: "netEarnings" })))))))))));
|
|
6062
4203
|
};
|
|
6063
4204
|
|
|
4205
|
+
const GET_TAX_SETTING = dist.gql `
|
|
4206
|
+
query getTenantSettings {
|
|
4207
|
+
tenantSettings {
|
|
4208
|
+
enforceUsTaxCompliance
|
|
4209
|
+
}
|
|
4210
|
+
}
|
|
4211
|
+
`;
|
|
6064
4212
|
function getCountryName(countryCode, locale) {
|
|
6065
4213
|
if (!countryCode)
|
|
6066
4214
|
return undefined;
|
|
@@ -6096,11 +4244,12 @@ function getIndirectTaxType(taxInformation) {
|
|
|
6096
4244
|
return "Indirect Tax";
|
|
6097
4245
|
}
|
|
6098
4246
|
const useTaxAndCashDashboard = (props) => {
|
|
6099
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
4247
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
6100
4248
|
const setStep = En(TAX_CONTEXT_NAMESPACE);
|
|
6101
4249
|
const setContext = En(TAX_FORM_CONTEXT_NAMESPACE);
|
|
6102
4250
|
const [showDialog, setShowDialog] = useState(false);
|
|
6103
4251
|
const { render, loading: veriffLoading, errors: veriffErrors, } = useVeriffApp();
|
|
4252
|
+
const { data: taxSettingRes } = wn(GET_TAX_SETTING, {});
|
|
6104
4253
|
const locale = L();
|
|
6105
4254
|
useEffect(() => {
|
|
6106
4255
|
// Clear override context once on submitted
|
|
@@ -6141,30 +4290,32 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
6141
4290
|
window.removeEventListener(VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
6142
4291
|
};
|
|
6143
4292
|
}, []);
|
|
4293
|
+
const enforceUsTaxComplianceOption = (_e = taxSettingRes === null || taxSettingRes === void 0 ? void 0 : taxSettingRes.tenantSettings) === null || _e === void 0 ? void 0 : _e.enforceUsTaxCompliance;
|
|
6144
4294
|
return {
|
|
6145
4295
|
states: {
|
|
6146
4296
|
dateSubmitted,
|
|
6147
4297
|
documentType,
|
|
6148
4298
|
canEditPayoutInfo: publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup,
|
|
6149
4299
|
documentTypeString: taxTypeToName(documentType),
|
|
6150
|
-
status: (
|
|
6151
|
-
subRegion: getSubRegionName((
|
|
6152
|
-
subRegionTaxNumber: (
|
|
6153
|
-
qstNumber: (
|
|
4300
|
+
status: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _f === void 0 ? void 0 : _f.status,
|
|
4301
|
+
subRegion: getSubRegionName((_g = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _g === void 0 ? void 0 : _g.indirectTaxRegion),
|
|
4302
|
+
subRegionTaxNumber: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _h === void 0 ? void 0 : _h.withholdingTaxId,
|
|
4303
|
+
qstNumber: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _j === void 0 ? void 0 : _j.additionalTaxId,
|
|
6154
4304
|
indirectTaxType: getIndirectTaxType(publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation),
|
|
6155
|
-
indirectTaxNumber: (
|
|
4305
|
+
indirectTaxNumber: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _k === void 0 ? void 0 : _k.indirectTaxId,
|
|
6156
4306
|
isBusinessEntity: (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) === "W8BENE",
|
|
6157
4307
|
province: provinceName,
|
|
6158
|
-
country: getCountryName((
|
|
6159
|
-
notRegistered: !((
|
|
4308
|
+
country: getCountryName((_l = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _l === void 0 ? void 0 : _l.indirectTaxCountryCode, locale),
|
|
4309
|
+
notRegistered: !((_m = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _m === void 0 ? void 0 : _m.indirectTaxId),
|
|
6160
4310
|
noFormNeeded: !documentType,
|
|
6161
4311
|
disabled: loading,
|
|
6162
4312
|
loading,
|
|
6163
4313
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
6164
4314
|
showNewFormDialog: showDialog,
|
|
6165
|
-
hasHold: !!((
|
|
4315
|
+
hasHold: !!((_o = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _o === void 0 ? void 0 : _o.hold),
|
|
6166
4316
|
payoutStatus,
|
|
6167
4317
|
veriffLoading,
|
|
4318
|
+
enforceUsTaxComplianceOption,
|
|
6168
4319
|
},
|
|
6169
4320
|
callbacks: {
|
|
6170
4321
|
onClick: () => setShowDialog(true),
|
|
@@ -6230,7 +4381,7 @@ const TaxAndCashDashboard = class {
|
|
|
6230
4381
|
* @uiName Inactive W-9 error message title
|
|
6231
4382
|
* @uiWidget textArea
|
|
6232
4383
|
*/
|
|
6233
|
-
this.taxAlertHeaderNotActiveW9 = "Your
|
|
4384
|
+
this.taxAlertHeaderNotActiveW9 = "Your W-9 tax form has personal information that doesn’t match your profile";
|
|
6234
4385
|
/**
|
|
6235
4386
|
* Part of the alert displayed at the top of the page.
|
|
6236
4387
|
*
|
|
@@ -6402,21 +4553,29 @@ const TaxAndCashDashboard = class {
|
|
|
6402
4553
|
*/
|
|
6403
4554
|
this.verificationRequiredButtonText = "Start Verification";
|
|
6404
4555
|
/**
|
|
6405
|
-
* @uiName
|
|
4556
|
+
* @uiName W-9 payment threshold alert header
|
|
6406
4557
|
*/
|
|
6407
4558
|
this.w9RequiredHeader = "Your next payout is on hold";
|
|
6408
4559
|
/**
|
|
6409
|
-
* @uiName
|
|
4560
|
+
* @uiName W-9 payment threshold alert description
|
|
4561
|
+
*/
|
|
4562
|
+
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.";
|
|
4563
|
+
/**
|
|
4564
|
+
* @uiName Account review alert header
|
|
4565
|
+
*/
|
|
4566
|
+
this.accountReviewHeader = "Your account is under review";
|
|
4567
|
+
/**
|
|
4568
|
+
* @uiName Account review alert description
|
|
6410
4569
|
*/
|
|
6411
|
-
this.
|
|
4570
|
+
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}.";
|
|
6412
4571
|
/**
|
|
6413
4572
|
* @uiName Terms and Conditions text
|
|
6414
4573
|
*/
|
|
6415
4574
|
this.termsAndConditions = "Terms and Conditions";
|
|
6416
4575
|
/**
|
|
6417
|
-
* @uiName
|
|
4576
|
+
* @uiName W-9 payment threshold alert button text
|
|
6418
4577
|
*/
|
|
6419
|
-
this.w9RequiredButtonText = "Submit
|
|
4578
|
+
this.w9RequiredButtonText = "Submit W-9";
|
|
6420
4579
|
/**
|
|
6421
4580
|
* Part of the alert displayed at the top of the page.
|
|
6422
4581
|
* @uiName Form submission error message title
|
|
@@ -6484,11 +4643,6 @@ const TaxAndCashDashboard = class {
|
|
|
6484
4643
|
this.invoiceEmptyStateHeader = "View your invoice details";
|
|
6485
4644
|
/** @uiName Empty invoice table description */
|
|
6486
4645
|
this.invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
6487
|
-
/**
|
|
6488
|
-
* Displayed at the top of the page on all set up steps and on the dashboard.
|
|
6489
|
-
* @uiName Page description
|
|
6490
|
-
*/
|
|
6491
|
-
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
6492
4646
|
/**
|
|
6493
4647
|
* @uiName Replace tax form modal header
|
|
6494
4648
|
*/
|
|
@@ -6505,6 +4659,11 @@ const TaxAndCashDashboard = class {
|
|
|
6505
4659
|
* @uiName Cancel button label
|
|
6506
4660
|
*/
|
|
6507
4661
|
this.cancelButton = "Cancel";
|
|
4662
|
+
/**
|
|
4663
|
+
* @undocumented
|
|
4664
|
+
* @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "uiGroup": "Dashboard Properties" }
|
|
4665
|
+
*/
|
|
4666
|
+
this.stateController = "{}";
|
|
6508
4667
|
h$1(this);
|
|
6509
4668
|
}
|
|
6510
4669
|
disconnectedCallback() { }
|
|
@@ -6530,23 +4689,32 @@ const TaxAndCashDashboard = class {
|
|
|
6530
4689
|
}
|
|
6531
4690
|
};
|
|
6532
4691
|
function useDemoTaxAndCashDashboard(props) {
|
|
4692
|
+
console.log("dashboard", { props });
|
|
4693
|
+
// @ts-ignore
|
|
6533
4694
|
return cjs({
|
|
6534
4695
|
states: {
|
|
6535
4696
|
dateSubmitted: "today",
|
|
6536
4697
|
documentType: "W9",
|
|
6537
|
-
documentTypeString: "
|
|
4698
|
+
documentTypeString: "W-9",
|
|
6538
4699
|
status: "ACTIVE",
|
|
6539
4700
|
country: "United States",
|
|
6540
|
-
indirectTaxNumber: 55555555,
|
|
4701
|
+
indirectTaxNumber: "55555555",
|
|
6541
4702
|
indirectTaxType: "Indirect Tax",
|
|
6542
|
-
noFormNeeded:
|
|
4703
|
+
noFormNeeded: false,
|
|
6543
4704
|
disabled: false,
|
|
6544
4705
|
loading: false,
|
|
6545
4706
|
showNewFormDialog: false,
|
|
6546
4707
|
hasHold: false,
|
|
6547
|
-
|
|
4708
|
+
subRegion: "CA",
|
|
4709
|
+
subRegionTaxNumber: undefined,
|
|
4710
|
+
qstNumber: undefined,
|
|
4711
|
+
isBusinessEntity: false,
|
|
4712
|
+
province: undefined,
|
|
4713
|
+
notRegistered: true,
|
|
4714
|
+
loadingError: false,
|
|
6548
4715
|
payoutStatus: "DONE",
|
|
6549
4716
|
veriffLoading: false,
|
|
4717
|
+
canEditPayoutInfo: true,
|
|
6550
4718
|
},
|
|
6551
4719
|
callbacks: {
|
|
6552
4720
|
onClick: () => console.debug("check step"),
|
|
@@ -6556,7 +4724,14 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
6556
4724
|
onVerifyClick: () => console.log("verify"),
|
|
6557
4725
|
},
|
|
6558
4726
|
text: props.getTextProps(),
|
|
6559
|
-
|
|
4727
|
+
slots: {
|
|
4728
|
+
payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: {
|
|
4729
|
+
states: {
|
|
4730
|
+
badgeStatus: "nextPayout",
|
|
4731
|
+
},
|
|
4732
|
+
} })),
|
|
4733
|
+
},
|
|
4734
|
+
}, props.demoData || props.stateController || {}, { arrayMerge: (_, a) => a });
|
|
6560
4735
|
}
|
|
6561
4736
|
|
|
6562
4737
|
const PHONE_EXTENSIONS = {
|
|
@@ -7530,19 +5705,19 @@ const PHONE_EXTENSIONS = {
|
|
|
7530
5705
|
},
|
|
7531
5706
|
};
|
|
7532
5707
|
|
|
7533
|
-
const style$
|
|
5708
|
+
const style$6 = {
|
|
7534
5709
|
FormWrapper: {},
|
|
7535
5710
|
ErrorInput: {
|
|
7536
5711
|
"&::part(base)": {
|
|
7537
|
-
border: "1px solid var(--
|
|
5712
|
+
border: "var(--sqm-border-thickness, 1px) solid var(--sqm-danger-color-border)",
|
|
7538
5713
|
borderRadius: "var(--sl-input-border-radius-medium)",
|
|
7539
5714
|
},
|
|
7540
5715
|
"&::part(help-text)": {
|
|
7541
|
-
color: "var(--
|
|
5716
|
+
color: "var(--sqm-danger-color-text)",
|
|
7542
5717
|
},
|
|
7543
5718
|
},
|
|
7544
5719
|
ErrorText: {
|
|
7545
|
-
color: "var(--
|
|
5720
|
+
color: "var(--sqm-danger-color-text)",
|
|
7546
5721
|
marginTop: "10px",
|
|
7547
5722
|
},
|
|
7548
5723
|
TextContainer: {
|
|
@@ -7573,9 +5748,6 @@ const style$7 = {
|
|
|
7573
5748
|
justifyContent: "flex-start",
|
|
7574
5749
|
flexDirection: "column",
|
|
7575
5750
|
},
|
|
7576
|
-
DescriptionText: {
|
|
7577
|
-
color: "var(--sl-color-neutral-500)",
|
|
7578
|
-
},
|
|
7579
5751
|
BoldText: {
|
|
7580
5752
|
fontWeight: "bold",
|
|
7581
5753
|
},
|
|
@@ -7584,28 +5756,8 @@ const style$7 = {
|
|
|
7584
5756
|
borderRadius: "50%",
|
|
7585
5757
|
},
|
|
7586
5758
|
},
|
|
7587
|
-
AlertContainer: {
|
|
7588
|
-
"&::part(base)": {
|
|
7589
|
-
backgroundColor: "var(--sl-color-red-100)",
|
|
7590
|
-
borderTop: "none",
|
|
7591
|
-
padding: "0 16px",
|
|
7592
|
-
},
|
|
7593
|
-
"& sl-icon::part(base)": {
|
|
7594
|
-
color: "var(--sl-color-danger-500)",
|
|
7595
|
-
},
|
|
7596
|
-
},
|
|
7597
|
-
PartnerAlertContainer: {
|
|
7598
|
-
"&::part(base)": {
|
|
7599
|
-
backgroundColor: "var(--sl-color-sky-100)",
|
|
7600
|
-
borderTop: "none",
|
|
7601
|
-
padding: "0 16px",
|
|
7602
|
-
},
|
|
7603
|
-
"& sl-icon::part(base)": {
|
|
7604
|
-
color: "var(--sl-color-blue-500)",
|
|
7605
|
-
},
|
|
7606
|
-
},
|
|
7607
5759
|
PageDescriptionText: {
|
|
7608
|
-
color: "var(--
|
|
5760
|
+
color: "var(--sqm-text-subdued)",
|
|
7609
5761
|
fontSize: "var(--sl-font-size-medium)",
|
|
7610
5762
|
},
|
|
7611
5763
|
PhoneInputsSection: {
|
|
@@ -7614,7 +5766,7 @@ const style$7 = {
|
|
|
7614
5766
|
gap: "4px",
|
|
7615
5767
|
"& p": {
|
|
7616
5768
|
fontSize: "var(--sl-font-size-small)",
|
|
7617
|
-
color: "var(--
|
|
5769
|
+
color: "var(--sqm-input-label-color)",
|
|
7618
5770
|
fontWeight: "var(--sl-font-weight-semibold)",
|
|
7619
5771
|
},
|
|
7620
5772
|
},
|
|
@@ -7628,9 +5780,9 @@ const style$7 = {
|
|
|
7628
5780
|
},
|
|
7629
5781
|
},
|
|
7630
5782
|
};
|
|
7631
|
-
const sheet$
|
|
7632
|
-
const styleString$
|
|
7633
|
-
const vanillaStyle$
|
|
5783
|
+
const sheet$5 = createStyleSheet(style$6);
|
|
5784
|
+
const styleString$5 = sheet$5.toString();
|
|
5785
|
+
const vanillaStyle$3 = `
|
|
7634
5786
|
:host{
|
|
7635
5787
|
display: block;
|
|
7636
5788
|
}
|
|
@@ -7639,11 +5791,15 @@ const vanillaStyle$4 = `
|
|
|
7639
5791
|
padding: 0;
|
|
7640
5792
|
box-sizing: border-box;
|
|
7641
5793
|
}
|
|
5794
|
+
a {
|
|
5795
|
+
color: var(--sqm-text);
|
|
5796
|
+
color: inherit !important;
|
|
5797
|
+
text-decoration: underline;
|
|
5798
|
+
}
|
|
7642
5799
|
|
|
7643
5800
|
p {
|
|
7644
5801
|
line-height: 18px;
|
|
7645
|
-
|
|
7646
|
-
font-size: var(--sl-font-size-small);
|
|
5802
|
+
font-size: var(--sl-font-size-small);
|
|
7647
5803
|
}
|
|
7648
5804
|
|
|
7649
5805
|
sl-radio-group::part(base) {
|
|
@@ -7654,11 +5810,163 @@ const vanillaStyle$4 = `
|
|
|
7654
5810
|
sl-select#phoneNumberCountryCode::part(menu) {
|
|
7655
5811
|
min-width: 250px;
|
|
7656
5812
|
}
|
|
7657
|
-
|
|
5813
|
+
|
|
5814
|
+
sl-button[type="primary"]::part(base){
|
|
5815
|
+
background-color: var(--sqm-primary-button-background);
|
|
5816
|
+
color: var(--sqm-primary-button-color);
|
|
5817
|
+
border-color: var(--sqm-primary-button-color-border);
|
|
5818
|
+
border-radius: var(--sqm-primary-button-radius);
|
|
5819
|
+
}
|
|
5820
|
+
|
|
5821
|
+
sl-button[type="primary"]::part(base):hover{
|
|
5822
|
+
background-color: var(--sqm-primary-button-background-hover);
|
|
5823
|
+
}
|
|
5824
|
+
|
|
5825
|
+
sl-button[type="primary"]::part(base):focus{
|
|
5826
|
+
box-shadow: none;
|
|
5827
|
+
}
|
|
5828
|
+
|
|
5829
|
+
sl-button[type="secondary"]::part(base){
|
|
5830
|
+
background-color: var(--sqm-secondary-button-background);
|
|
5831
|
+
color: var(--sqm-secondary-button-color);
|
|
5832
|
+
border-color: var(--sqm-secondary-button-color-border);
|
|
5833
|
+
border-radius: var(--sqm-secondary-button-radius);
|
|
5834
|
+
}
|
|
5835
|
+
|
|
5836
|
+
sl-button[type="secondary"]::part(base):hover{
|
|
5837
|
+
background-color: var(--sqm-secondary-button-background-hover);
|
|
5838
|
+
}
|
|
5839
|
+
|
|
5840
|
+
|
|
5841
|
+
|
|
5842
|
+
*::part(primarybutton-base){
|
|
5843
|
+
background-color: var(--sqm-primary-button-background);
|
|
5844
|
+
color: var(--sqm-primary-button-color);
|
|
5845
|
+
border-color: var(--sqm-primary-button-color-border);
|
|
5846
|
+
border-radius: var(--sqm-primary-button-radius);
|
|
5847
|
+
}
|
|
5848
|
+
|
|
5849
|
+
*::part(primarybutton-base):hover{
|
|
5850
|
+
background-color: var(--sqm-primary-button-background-hover);
|
|
5851
|
+
}
|
|
5852
|
+
|
|
5853
|
+
*::part(primarybutton-base):focus{
|
|
5854
|
+
box-shadow: none;
|
|
5855
|
+
}
|
|
5856
|
+
|
|
5857
|
+
*::part(secondarybutton-base){
|
|
5858
|
+
background-color: var(--sqm-secondary-button-background);
|
|
5859
|
+
color: var(--sqm-secondary-button-color);
|
|
5860
|
+
border-color: var(--sqm-secondary-button-color-border);
|
|
5861
|
+
border-radius: var(--sqm-secondary-button-radius);
|
|
5862
|
+
}
|
|
5863
|
+
|
|
5864
|
+
*::part(secondarybutton-base):hover{
|
|
5865
|
+
background-color: var(--sqm-secondary-button-background-hover);
|
|
5866
|
+
}
|
|
5867
|
+
|
|
5868
|
+
*::part(secondarybutton-base){
|
|
5869
|
+
background-color: var(--sqm-secondary-button-background);
|
|
5870
|
+
color: var(--sqm-secondary-button-color);
|
|
5871
|
+
border-color: var(--sqm-secondary-button-color-border);
|
|
5872
|
+
border-radius: var(--sqm-secondary-button-radius);
|
|
5873
|
+
width: max-content;
|
|
5874
|
+
display: flex;
|
|
5875
|
+
margin: auto;
|
|
5876
|
+
}
|
|
5877
|
+
|
|
5878
|
+
*::part(secondarybutton-base):hover{
|
|
5879
|
+
background: var(--sqm-secondary-button-background-hover);
|
|
5880
|
+
}
|
|
5881
|
+
|
|
5882
|
+
sl-input::part(label),
|
|
5883
|
+
sl-select::part(label),
|
|
5884
|
+
sl-textarea::part(label){
|
|
5885
|
+
font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));
|
|
5886
|
+
font-weight: var(--sl-font-weight-semibold);
|
|
5887
|
+
color: var(--sqm-input-label-color, var(--sqm-text), black);
|
|
5888
|
+
}
|
|
5889
|
+
|
|
5890
|
+
/* Corrected: Target sl-input, sl-select, sl-textarea base elements */
|
|
5891
|
+
sl-input::part(base),
|
|
5892
|
+
sl-dropdown::part(base),
|
|
5893
|
+
sl-textarea::part(base){
|
|
5894
|
+
background-color: var(--sqm-input-background, #fff);
|
|
5895
|
+
border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
|
|
5896
|
+
color: var(--sqm-input-color, white);
|
|
5897
|
+
border-width: var(--sqm-border-thickness, 1px);
|
|
5898
|
+
border-style: solid;
|
|
5899
|
+
border-color: var(--sqm-input-border-color, #ccc);
|
|
5900
|
+
}
|
|
5901
|
+
|
|
5902
|
+
|
|
5903
|
+
sl-select::part(menu) {
|
|
5904
|
+
background: var(--sqm-input-background, inherit);
|
|
5905
|
+
color: var(--sqm-input-color, inherit);
|
|
5906
|
+
border:none;
|
|
5907
|
+
}
|
|
5908
|
+
|
|
5909
|
+
sl-menu-item::part(base) {
|
|
5910
|
+
color: var(--sqm-input-color);
|
|
5911
|
+
}
|
|
5912
|
+
|
|
5913
|
+
sl-menu-item::part(base):hover {
|
|
5914
|
+
background-color: var(--sqm-input-border-color-hover);
|
|
5915
|
+
}
|
|
5916
|
+
|
|
5917
|
+
sl-select::part(panel) {
|
|
5918
|
+
border-radius: var(--sqm-border-radius-normal);
|
|
5919
|
+
}
|
|
5920
|
+
|
|
5921
|
+
sl-select::part(help-text) {
|
|
5922
|
+
color: var(--sqm-text-subdued, var(--sl-input-help-text-color, #6c757d));
|
|
5923
|
+
}
|
|
5924
|
+
|
|
5925
|
+
sl-input::part(base):focus,
|
|
5926
|
+
sl-select::part(base):focus, /* Corrected part name for sl-select */
|
|
5927
|
+
sl-textarea::part(base):focus { /* Corrected part name for sl-textarea */
|
|
5928
|
+
border: var(--sqm-input-focus-border, 1px solid var(--sl-input-border-color-focus, #007bff)); /* Added fallback for --sl-input-border-color-focus */
|
|
5929
|
+
}
|
|
5930
|
+
|
|
5931
|
+
sl-input[disabled]::part(base),
|
|
5932
|
+
sl-select[disabled]::part(base),
|
|
5933
|
+
sl-textarea[disabled]::part(base){
|
|
5934
|
+
background: var(--sqm-input-disabled-background, #f5f5f5);
|
|
5935
|
+
border-color: var(--sl-input-border-color-disabled, #e0e0e0); /* Example disabled border color */
|
|
5936
|
+
}
|
|
5937
|
+
|
|
5938
|
+
|
|
5939
|
+
sl-input::part(input):-webkit-autofill {
|
|
5940
|
+
box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
|
|
5941
|
+
-webkit-text-fill-color: var(--sqm-input-color, white) !important;
|
|
5942
|
+
}
|
|
5943
|
+
|
|
5944
|
+
sl-input::part(input):-webkit-autofill:hover {
|
|
5945
|
+
box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
|
|
5946
|
+
-webkit-text-fill-color: var(--sqm-input-color, white) !important;
|
|
5947
|
+
}
|
|
5948
|
+
|
|
5949
|
+
sl-input::part(input):-webkit-autofill:focus {
|
|
5950
|
+
box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
|
|
5951
|
+
-webkit-text-fill-color: var(--sqm-input-color, white) !important;
|
|
5952
|
+
}
|
|
5953
|
+
|
|
5954
|
+
sl-checkbox::part(label){
|
|
5955
|
+
color: var(--sqm-text);
|
|
5956
|
+
}
|
|
5957
|
+
|
|
5958
|
+
sl-checkbox[checked]::part(control){
|
|
5959
|
+
background-color: var(--sqm-input-border-color-focus);
|
|
5960
|
+
}
|
|
5961
|
+
|
|
5962
|
+
sl-checkbox[checked]::part(checked-icon){
|
|
5963
|
+
color: var(--sqm-input-background);
|
|
5964
|
+
}
|
|
5965
|
+
`;
|
|
7658
5966
|
const UserInfoFormView = (props) => {
|
|
7659
5967
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
7660
5968
|
const { states, states: { formState }, callbacks, text, refs, data, } = props;
|
|
7661
|
-
const { classes } = sheet$
|
|
5969
|
+
const { classes } = sheet$5;
|
|
7662
5970
|
const bankingCollectionText = intl.formatMessage({
|
|
7663
5971
|
id: "bankingCollectionText",
|
|
7664
5972
|
defaultMessage: text.allowBankingCollection,
|
|
@@ -7681,21 +5989,18 @@ const UserInfoFormView = (props) => {
|
|
|
7681
5989
|
}
|
|
7682
5990
|
return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
7683
5991
|
h("style", { type: "text/css" },
|
|
7684
|
-
styleString$
|
|
7685
|
-
vanillaStyle$
|
|
5992
|
+
styleString$5,
|
|
5993
|
+
vanillaStyle$3),
|
|
7686
5994
|
states.loadingError && (h("div", null,
|
|
7687
|
-
h("
|
|
7688
|
-
h("
|
|
7689
|
-
h("
|
|
7690
|
-
h("br", null),
|
|
7691
|
-
intl.formatMessage({
|
|
5995
|
+
h("sqm-form-message", { type: "error" },
|
|
5996
|
+
h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
|
|
5997
|
+
h("p", { part: "alert-description" }, intl.formatMessage({
|
|
7692
5998
|
id: "loadingErrorAlertDescription",
|
|
7693
5999
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
7694
6000
|
}, {
|
|
7695
6001
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7696
|
-
})),
|
|
7697
|
-
|
|
7698
|
-
states.loading ? (h(GeneralLoadingView, null)) : (h("div", null,
|
|
6002
|
+
}))))),
|
|
6003
|
+
states.loading ? (h(LoadingView, null)) : (h("div", null,
|
|
7699
6004
|
h("div", { class: classes.TextContainer },
|
|
7700
6005
|
h("div", null,
|
|
7701
6006
|
!states.hideSteps && (h("p", null, intl.formatMessage({
|
|
@@ -7704,29 +6009,25 @@ const UserInfoFormView = (props) => {
|
|
|
7704
6009
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
7705
6010
|
h("h3", null, text.personalInformation),
|
|
7706
6011
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
7707
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("
|
|
7708
|
-
h("
|
|
7709
|
-
h("
|
|
7710
|
-
h("br", null),
|
|
7711
|
-
intl.formatMessage({
|
|
6012
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sqm-form-message", { type: "error" },
|
|
6013
|
+
h("p", { part: "alert-title" }, text.error.generalTitle),
|
|
6014
|
+
h("p", { part: "alert-description" }, intl.formatMessage({
|
|
7712
6015
|
id: "generalDescription",
|
|
7713
6016
|
defaultMessage: text.error.generalDescription,
|
|
7714
6017
|
}, {
|
|
7715
6018
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7716
|
-
}))),
|
|
7717
|
-
(states.isPartner || states.isUser) && (h("
|
|
7718
|
-
h("
|
|
7719
|
-
h("
|
|
7720
|
-
h("br", null),
|
|
7721
|
-
intl.formatMessage({
|
|
6019
|
+
})))),
|
|
6020
|
+
(states.isPartner || states.isUser) && (h("sqm-form-message", { type: "info" },
|
|
6021
|
+
h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
|
|
6022
|
+
h("p", { part: "alert-description" }, intl.formatMessage({
|
|
7722
6023
|
id: "isPartnerAlertDescription",
|
|
7723
6024
|
defaultMessage: text.isPartnerAlertDescription,
|
|
7724
6025
|
}, {
|
|
7725
6026
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7726
|
-
}))),
|
|
6027
|
+
})))),
|
|
7727
6028
|
h("div", null,
|
|
7728
6029
|
h("div", { class: classes.InputContainer },
|
|
7729
|
-
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) ? {
|
|
6030
|
+
h("sl-input", Object.assign({ class: "ErrorInput", exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled || states.isUser || states.isPartner }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
|
|
7730
6031
|
class: classes.ErrorInput,
|
|
7731
6032
|
helpText: formatErrorMessage(text.firstName, formState.errors.firstName),
|
|
7732
6033
|
}
|
|
@@ -7830,7 +6131,7 @@ const UserInfoFormView = (props) => {
|
|
|
7830
6131
|
" - ",
|
|
7831
6132
|
c.displayName)))),
|
|
7832
6133
|
h("div", { class: classes.CheckboxWrapper },
|
|
7833
|
-
h("sl-checkbox", {
|
|
6134
|
+
h("sl-checkbox", { checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
7834
6135
|
e.target.value = e.target.checked;
|
|
7835
6136
|
}, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
|
|
7836
6137
|
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (h("p", { class: classes.ErrorText }, formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
|
|
@@ -7856,6 +6157,10 @@ function useUserInfoForm(props) {
|
|
|
7856
6157
|
const [currencySearch, setCurrencySearch] = useState("");
|
|
7857
6158
|
const [filteredCurrencies, setFilteredCurrencies] = useState(currencies || []);
|
|
7858
6159
|
const [formErrors, setErrors] = useState({});
|
|
6160
|
+
useEffect(() => {
|
|
6161
|
+
// reset redirect hash
|
|
6162
|
+
window.location.hash = "";
|
|
6163
|
+
}, []);
|
|
7859
6164
|
useEffect(() => {
|
|
7860
6165
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
7861
6166
|
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
@@ -7986,8 +6291,6 @@ function useUserInfoForm(props) {
|
|
|
7986
6291
|
postalCode: userData.postalCode,
|
|
7987
6292
|
currency: userData.currency,
|
|
7988
6293
|
});
|
|
7989
|
-
// reset redirect hash
|
|
7990
|
-
window.location.hash = "";
|
|
7991
6294
|
const nextStep = context.overrideNextStep || "/2";
|
|
7992
6295
|
setStep(nextStep);
|
|
7993
6296
|
}
|
|
@@ -8210,19 +6513,20 @@ const TaxForm = class {
|
|
|
8210
6513
|
}
|
|
8211
6514
|
render() {
|
|
8212
6515
|
const props = isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
|
|
8213
|
-
return (h(
|
|
6516
|
+
return (h(UserInfoFormView, { data: props.data,
|
|
8214
6517
|
// @ts-ignore
|
|
8215
6518
|
states: props.states, callbacks: {
|
|
8216
6519
|
...props.callbacks,
|
|
8217
6520
|
onSubmit: props.onSubmit,
|
|
8218
|
-
}, text: props.text, refs: props.refs }))
|
|
6521
|
+
}, text: props.text, refs: props.refs }));
|
|
8219
6522
|
}
|
|
8220
6523
|
};
|
|
8221
6524
|
function useDemoUserInfoForm(props) {
|
|
8222
6525
|
const setStep = En(TAX_CONTEXT_NAMESPACE);
|
|
6526
|
+
// @ts-ignore
|
|
8223
6527
|
return cjs({
|
|
8224
6528
|
setStep,
|
|
8225
|
-
onSubmit: () => {
|
|
6529
|
+
onSubmit: async () => {
|
|
8226
6530
|
setStep("/2");
|
|
8227
6531
|
},
|
|
8228
6532
|
onRadioClick: () => { },
|
|
@@ -8265,4 +6569,4 @@ function useDemoUserInfoForm(props) {
|
|
|
8265
6569
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
8266
6570
|
}
|
|
8267
6571
|
|
|
8268
|
-
export { BankingInfoForm as sqm_banking_info_form,
|
|
6572
|
+
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 };
|