@saasquatch/mint-components 1.16.0-9 → 2.0.0-1
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 -2496
- 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 -2
- 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 -2345
- 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-609613e8.entry.js +0 -205
- 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-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-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-ddcf4a9e.system.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)
|
|
@@ -1197,8 +1031,6 @@ function useBankingInfoForm(props) {
|
|
|
1197
1031
|
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
1198
1032
|
await refetch();
|
|
1199
1033
|
setStep("/dashboard");
|
|
1200
|
-
// reset redirect hash
|
|
1201
|
-
window.location.hash = "";
|
|
1202
1034
|
}
|
|
1203
1035
|
catch (e) {
|
|
1204
1036
|
console.error(e);
|
|
@@ -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!
|
|
@@ -2313,7 +1828,7 @@ function getDocumentType(p) {
|
|
|
2313
1828
|
return undefined;
|
|
2314
1829
|
}
|
|
2315
1830
|
|
|
2316
|
-
const style$
|
|
1831
|
+
const style$1 = {
|
|
2317
1832
|
DocusignStatusContainer: {
|
|
2318
1833
|
width: "100%",
|
|
2319
1834
|
minHeight: "600px",
|
|
@@ -2325,7 +1840,7 @@ const style$2 = {
|
|
|
2325
1840
|
gap: "10px",
|
|
2326
1841
|
margin: "auto",
|
|
2327
1842
|
textAlign: "center",
|
|
2328
|
-
border: "1px solid var(--
|
|
1843
|
+
border: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
2329
1844
|
justifyContent: "center",
|
|
2330
1845
|
},
|
|
2331
1846
|
MessageContainer: {
|
|
@@ -2340,47 +1855,47 @@ const style$2 = {
|
|
|
2340
1855
|
},
|
|
2341
1856
|
},
|
|
2342
1857
|
};
|
|
2343
|
-
const sheet$
|
|
2344
|
-
const styleString$
|
|
1858
|
+
const sheet$1 = createStyleSheet(style$1);
|
|
1859
|
+
const styleString$1 = sheet$1.toString();
|
|
2345
1860
|
const DocusignExpiredView = (props) => {
|
|
2346
|
-
const { classes } = sheet$
|
|
1861
|
+
const { classes } = sheet$1;
|
|
2347
1862
|
const { text } = props;
|
|
2348
1863
|
return (h("div", null,
|
|
2349
|
-
h("style", { type: "text/css" }, styleString$
|
|
1864
|
+
h("style", { type: "text/css" }, styleString$1),
|
|
2350
1865
|
h("div", { class: classes.DocusignStatusContainer },
|
|
2351
1866
|
h("sl-icon", { style: {
|
|
2352
1867
|
width: "50px",
|
|
2353
1868
|
height: "50px",
|
|
2354
|
-
color: "var(--
|
|
1869
|
+
color: "var(--sqm-text)",
|
|
2355
1870
|
}, name: "clock" }),
|
|
2356
1871
|
h("div", { class: classes.MessageContainer },
|
|
2357
1872
|
h("p", { style: { margin: "0" } }, text.docusignExpired)),
|
|
2358
1873
|
h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
2359
1874
|
};
|
|
2360
1875
|
const DocusignErrorView = (props) => {
|
|
2361
|
-
const { classes } = sheet$
|
|
1876
|
+
const { classes } = sheet$1;
|
|
2362
1877
|
const { text } = props;
|
|
2363
1878
|
return (h("div", null,
|
|
2364
|
-
h("style", { type: "text/css" }, styleString$
|
|
1879
|
+
h("style", { type: "text/css" }, styleString$1),
|
|
2365
1880
|
h("div", { class: classes.DocusignStatusContainer },
|
|
2366
1881
|
h("sl-icon", { style: {
|
|
2367
1882
|
width: "50px",
|
|
2368
1883
|
height: "50px",
|
|
2369
|
-
color: "var(--
|
|
1884
|
+
color: "var(--sqm-text)",
|
|
2370
1885
|
}, name: "exclamation-octagon" }),
|
|
2371
1886
|
h("div", { class: classes.MessageContainer },
|
|
2372
1887
|
h("p", { style: { margin: "0" } }, text.docusignError)),
|
|
2373
1888
|
h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
2374
1889
|
};
|
|
2375
1890
|
const DocusignLoadingView = () => {
|
|
2376
|
-
const { classes } = sheet$
|
|
1891
|
+
const { classes } = sheet$1;
|
|
2377
1892
|
return (h("div", null,
|
|
2378
|
-
h("style", { type: "text/css" }, styleString$
|
|
1893
|
+
h("style", { type: "text/css" }, styleString$1),
|
|
2379
1894
|
h("div", { class: classes.DocusignStatusContainer },
|
|
2380
1895
|
h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
2381
1896
|
};
|
|
2382
1897
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
2383
|
-
const { classes } = sheet$
|
|
1898
|
+
const { classes } = sheet$1;
|
|
2384
1899
|
const [iFrameHeight, setiFrameHeight] = useState("100%");
|
|
2385
1900
|
const allowedDomains = [
|
|
2386
1901
|
"referralsaasquatch.com",
|
|
@@ -2394,7 +1909,7 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
2394
1909
|
if (typeof e.data === "number") {
|
|
2395
1910
|
setiFrameHeight(e.data + "px");
|
|
2396
1911
|
}
|
|
2397
|
-
if (e.data === "Complyexchange Thank you page Load") {
|
|
1912
|
+
if (e.data === "Complyexchange Thank you page Load" && !states.loading) {
|
|
2398
1913
|
callbacks.completeDocument();
|
|
2399
1914
|
}
|
|
2400
1915
|
}, []);
|
|
@@ -2413,12 +1928,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
2413
1928
|
return h(DocusignExpiredView, { text: text });
|
|
2414
1929
|
// Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
|
|
2415
1930
|
return (h("div", { style: { height: iFrameHeight } },
|
|
2416
|
-
h("style", { type: "text/css" }, styleString$
|
|
1931
|
+
h("style", { type: "text/css" }, styleString$1),
|
|
2417
1932
|
h("div", { class: classes.IFrameContainer },
|
|
2418
1933
|
h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
2419
1934
|
};
|
|
2420
1935
|
|
|
2421
|
-
const style$
|
|
1936
|
+
const style$2 = {
|
|
2422
1937
|
ModalTitleContainer: {
|
|
2423
1938
|
display: "flex",
|
|
2424
1939
|
gap: "var(--sl-spacing-small)",
|
|
@@ -2455,7 +1970,7 @@ const style$3 = {
|
|
|
2455
1970
|
gap: "8px",
|
|
2456
1971
|
},
|
|
2457
1972
|
ErrorText: {
|
|
2458
|
-
color: "var(--
|
|
1973
|
+
color: "var(--sqm-danger-color-icon)",
|
|
2459
1974
|
marginTop: "10px",
|
|
2460
1975
|
},
|
|
2461
1976
|
DescriptionText: {
|
|
@@ -2464,65 +1979,17 @@ const style$3 = {
|
|
|
2464
1979
|
BoldText: {
|
|
2465
1980
|
fontWeight: "bold",
|
|
2466
1981
|
},
|
|
2467
|
-
|
|
2468
|
-
"
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
"
|
|
2472
|
-
|
|
2473
|
-
margin: "0px",
|
|
2474
|
-
},
|
|
1982
|
+
Container: {
|
|
1983
|
+
width: "100%",
|
|
1984
|
+
display: "flex",
|
|
1985
|
+
justifyContent: "flex-start",
|
|
1986
|
+
flexDirection: "column",
|
|
1987
|
+
gap: "16px",
|
|
2475
1988
|
},
|
|
2476
|
-
|
|
2477
|
-
"
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
padding: "0 16px",
|
|
2481
|
-
},
|
|
2482
|
-
"& sl-icon::part(base)": {
|
|
2483
|
-
color: "var(--sl-color-danger-500)",
|
|
2484
|
-
},
|
|
2485
|
-
},
|
|
2486
|
-
InfoAlert: {
|
|
2487
|
-
"&::part(base)": {
|
|
2488
|
-
backgroundColor: "transparent",
|
|
2489
|
-
borderTop: "none",
|
|
2490
|
-
padding: "0px",
|
|
2491
|
-
marginBottom: "16px",
|
|
2492
|
-
border: "none",
|
|
2493
|
-
},
|
|
2494
|
-
"&::part(message)": {
|
|
2495
|
-
display: "flex",
|
|
2496
|
-
alignItems: "center",
|
|
2497
|
-
justifyContent: "flex-start",
|
|
2498
|
-
padding: "10px",
|
|
2499
|
-
height: "max-content",
|
|
2500
|
-
},
|
|
2501
|
-
"& sl-icon::part(base)": {
|
|
2502
|
-
color: "var(--sl-color-sky-500)",
|
|
2503
|
-
},
|
|
2504
|
-
},
|
|
2505
|
-
Container: {
|
|
2506
|
-
width: "100%",
|
|
2507
|
-
display: "flex",
|
|
2508
|
-
justifyContent: "flex-start",
|
|
2509
|
-
flexDirection: "column",
|
|
2510
|
-
gap: "16px",
|
|
2511
|
-
},
|
|
2512
|
-
Link: {
|
|
2513
|
-
color: "var(--sl-color-sky-500)",
|
|
2514
|
-
textDecoration: "none",
|
|
2515
|
-
"&:visited": {
|
|
2516
|
-
color: "var(--sl-color-sky-500)",
|
|
2517
|
-
},
|
|
2518
|
-
"&:hover": {
|
|
2519
|
-
textDecoration: "underline",
|
|
2520
|
-
},
|
|
2521
|
-
},
|
|
2522
|
-
CheckboxWrapper: {
|
|
2523
|
-
display: "flex",
|
|
2524
|
-
justifyContent: "flex-start",
|
|
2525
|
-
flexDirection: "column",
|
|
1989
|
+
CheckboxWrapper: {
|
|
1990
|
+
display: "flex",
|
|
1991
|
+
justifyContent: "flex-start",
|
|
1992
|
+
flexDirection: "column",
|
|
2526
1993
|
},
|
|
2527
1994
|
InfoIcon: {
|
|
2528
1995
|
height: "24px",
|
|
@@ -2532,7 +1999,7 @@ const style$3 = {
|
|
|
2532
1999
|
fontSize: "var(--sl-font-size-small)",
|
|
2533
2000
|
},
|
|
2534
2001
|
PageDescriptionText: {
|
|
2535
|
-
color: "var(--
|
|
2002
|
+
color: "var(--sqm-text-subdued)",
|
|
2536
2003
|
fontSize: "var(--sl-font-size-medium)",
|
|
2537
2004
|
},
|
|
2538
2005
|
Dialog: {
|
|
@@ -2558,41 +2025,38 @@ const style$3 = {
|
|
|
2558
2025
|
},
|
|
2559
2026
|
DialogButton: { margin: "auto", width: "100%" },
|
|
2560
2027
|
};
|
|
2561
|
-
const sheet$
|
|
2562
|
-
const styleString$
|
|
2563
|
-
const vanillaStyle$
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
* {
|
|
2568
|
-
margin: 0;
|
|
2569
|
-
padding: 0;
|
|
2570
|
-
box-sizing: border-box;
|
|
2571
|
-
}
|
|
2028
|
+
const sheet$2 = createStyleSheet(style$2);
|
|
2029
|
+
const styleString$2 = sheet$2.toString();
|
|
2030
|
+
const vanillaStyle$1 = `
|
|
2031
|
+
:host{
|
|
2032
|
+
display: block;
|
|
2033
|
+
}
|
|
2572
2034
|
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2035
|
+
* {
|
|
2036
|
+
margin: 0;
|
|
2037
|
+
padding: 0;
|
|
2038
|
+
box-sizing: border-box;
|
|
2039
|
+
}
|
|
2578
2040
|
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2041
|
+
a {
|
|
2042
|
+
color: inherit;
|
|
2043
|
+
text-decoration: underline;
|
|
2044
|
+
cursor: pointer;
|
|
2045
|
+
}
|
|
2582
2046
|
|
|
2583
2047
|
|
|
2584
2048
|
`;
|
|
2585
2049
|
const DocusignFormView = (props) => {
|
|
2586
2050
|
var _a;
|
|
2587
2051
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
2588
|
-
const { classes } = sheet$
|
|
2052
|
+
const { classes } = sheet$2;
|
|
2589
2053
|
return (h("div", { class: classes.Container },
|
|
2590
2054
|
h("style", { type: "text/css" },
|
|
2591
|
-
styleString$
|
|
2592
|
-
vanillaStyle$
|
|
2593
|
-
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 },
|
|
2594
2058
|
h("div", { class: classes.ModalTitleContainer, slot: "label" },
|
|
2595
|
-
h("sl-icon", { name: "info-circle", style: { color: "var(--
|
|
2059
|
+
h("sl-icon", { name: "info-circle", style: { color: "var(--sqm-informative-color-icon)" } }),
|
|
2596
2060
|
h("h2", { style: { fontSize: "var(--sl-font-size-large)" } }, text.modalTitle)),
|
|
2597
2061
|
h("p", null, intl.formatMessage({
|
|
2598
2062
|
id: "modalText",
|
|
@@ -2600,7 +2064,7 @@ const DocusignFormView = (props) => {
|
|
|
2600
2064
|
}, {
|
|
2601
2065
|
br: h("br", null),
|
|
2602
2066
|
})),
|
|
2603
|
-
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)),
|
|
2604
2068
|
h("div", { class: classes.TextContainer },
|
|
2605
2069
|
h("div", null,
|
|
2606
2070
|
!states.hideSteps && (h("p", null, intl.formatMessage({
|
|
@@ -2610,20 +2074,16 @@ const DocusignFormView = (props) => {
|
|
|
2610
2074
|
h("h3", null, text.taxForm),
|
|
2611
2075
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2612
2076
|
states.loadingError && (h("div", null,
|
|
2613
|
-
h("
|
|
2614
|
-
h("
|
|
2615
|
-
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2616
|
-
h("br", null),
|
|
2077
|
+
h("sqm-form-message", { type: "error" },
|
|
2078
|
+
h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
|
|
2617
2079
|
intl.formatMessage({
|
|
2618
2080
|
id: "loadingErrorAlertDescription",
|
|
2619
2081
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
2620
2082
|
}, {
|
|
2621
2083
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2622
2084
|
})))),
|
|
2623
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("
|
|
2624
|
-
h("
|
|
2625
|
-
h("strong", null, text.error.generalTitle),
|
|
2626
|
-
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),
|
|
2627
2087
|
intl.formatMessage({
|
|
2628
2088
|
id: "generalDescription",
|
|
2629
2089
|
defaultMessage: text.error.generalDescription,
|
|
@@ -2683,7 +2143,7 @@ const DocusignForm = class {
|
|
|
2683
2143
|
* @uiName W-8 BEN-E tax form description
|
|
2684
2144
|
* @uiWidget textArea
|
|
2685
2145
|
*/
|
|
2686
|
-
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.";
|
|
2687
2147
|
/**
|
|
2688
2148
|
* This appears inside the Docusign frame.
|
|
2689
2149
|
* @uiName Docusign session expired messag
|
|
@@ -2807,7 +2267,7 @@ function useDocusignFormDemo(props) {
|
|
|
2807
2267
|
return cjs({
|
|
2808
2268
|
text: props.getTextProps(),
|
|
2809
2269
|
states: {
|
|
2810
|
-
step: "
|
|
2270
|
+
step: "3",
|
|
2811
2271
|
disabled: false,
|
|
2812
2272
|
submitDisabled: false,
|
|
2813
2273
|
loading: false,
|
|
@@ -2843,7 +2303,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2843
2303
|
return (h("div", { style: {
|
|
2844
2304
|
width: "100%",
|
|
2845
2305
|
height: "600px",
|
|
2846
|
-
background: "
|
|
2306
|
+
background: "inherit",
|
|
2847
2307
|
display: "flex",
|
|
2848
2308
|
justifyContent: "center",
|
|
2849
2309
|
alignItems: "center",
|
|
@@ -2855,7 +2315,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2855
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")))));
|
|
2856
2316
|
};
|
|
2857
2317
|
|
|
2858
|
-
const style$
|
|
2318
|
+
const style$3 = {
|
|
2859
2319
|
FormWrapper: {
|
|
2860
2320
|
display: "flex",
|
|
2861
2321
|
justifyContent: "flex-start",
|
|
@@ -2867,6 +2327,7 @@ const style$4 = {
|
|
|
2867
2327
|
justifyContent: "flex-start",
|
|
2868
2328
|
flexDirection: "column",
|
|
2869
2329
|
gap: "var(--sl-spacing-medium)",
|
|
2330
|
+
marginBottom: "16px",
|
|
2870
2331
|
"& sl-radio::part(base)": {
|
|
2871
2332
|
alignItems: "start",
|
|
2872
2333
|
},
|
|
@@ -2882,6 +2343,7 @@ const style$4 = {
|
|
|
2882
2343
|
flexDirection: "column",
|
|
2883
2344
|
gap: "var(--sl-spacing-xx-small)",
|
|
2884
2345
|
fontSize: "var(--sl-font-size-small)",
|
|
2346
|
+
color: "var(--sqm-text)",
|
|
2885
2347
|
},
|
|
2886
2348
|
TitleContainer: {
|
|
2887
2349
|
display: "flex",
|
|
@@ -2903,90 +2365,83 @@ const style$4 = {
|
|
|
2903
2365
|
gap: "8px",
|
|
2904
2366
|
},
|
|
2905
2367
|
ErrorText: {
|
|
2906
|
-
color: "var(--
|
|
2368
|
+
color: "var(--sqm-danger-color-text)",
|
|
2907
2369
|
marginTop: "10px",
|
|
2908
2370
|
},
|
|
2909
2371
|
DescriptionText: {
|
|
2910
|
-
color: "var(--
|
|
2372
|
+
color: "var(--sqm-text-subdued)",
|
|
2911
2373
|
},
|
|
2912
|
-
|
|
2913
|
-
"
|
|
2914
|
-
|
|
2915
|
-
},
|
|
2374
|
+
InfoWarningIcon: {
|
|
2375
|
+
height: "26px",
|
|
2376
|
+
width: "26px",
|
|
2916
2377
|
},
|
|
2917
|
-
|
|
2918
|
-
"
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
padding: "0 16px",
|
|
2922
|
-
},
|
|
2923
|
-
"& sl-icon::part(base)": {
|
|
2924
|
-
color: "var(--sl-color-danger-500)",
|
|
2925
|
-
},
|
|
2378
|
+
PageDescriptionText: {
|
|
2379
|
+
color: "var(--sqm-text-subdued)",
|
|
2380
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
2381
|
+
marginBottom: "var(--sl-spacing-small)",
|
|
2926
2382
|
},
|
|
2927
|
-
|
|
2383
|
+
PrimaryButton: {
|
|
2928
2384
|
"&::part(base)": {
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
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)",
|
|
2932
2389
|
},
|
|
2933
|
-
"
|
|
2934
|
-
|
|
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)",
|
|
2935
2394
|
},
|
|
2936
2395
|
},
|
|
2937
|
-
|
|
2938
|
-
marginTop: "var(--sl-spacing-large)",
|
|
2396
|
+
SecondaryButton: {
|
|
2939
2397
|
"&::part(base)": {
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
padding: "var(--sl-spacing-small)",
|
|
2948
|
-
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",
|
|
2949
2405
|
},
|
|
2950
|
-
"
|
|
2951
|
-
|
|
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)",
|
|
2952
2410
|
},
|
|
2953
2411
|
},
|
|
2954
|
-
InfoWarningIcon: {
|
|
2955
|
-
height: "26px",
|
|
2956
|
-
width: "26px",
|
|
2957
|
-
},
|
|
2958
|
-
PageDescriptionText: {
|
|
2959
|
-
color: "var(--sl-color-neutral-500)",
|
|
2960
|
-
fontSize: "var(--sl-font-size-medium)",
|
|
2961
|
-
marginBottom: "var(--sl-spacing-small)",
|
|
2962
|
-
},
|
|
2963
2412
|
};
|
|
2964
|
-
const sheet$
|
|
2965
|
-
const styleString$
|
|
2966
|
-
const vanillaStyle$
|
|
2413
|
+
const sheet$3 = createStyleSheet(style$3);
|
|
2414
|
+
const styleString$3 = sheet$3.toString();
|
|
2415
|
+
const vanillaStyle$2 = `
|
|
2967
2416
|
:host{
|
|
2968
2417
|
display: block;
|
|
2969
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
|
+
|
|
2970
2430
|
* {
|
|
2971
2431
|
margin: 0;
|
|
2972
2432
|
padding: 0;
|
|
2973
2433
|
box-sizing: border-box;
|
|
2974
2434
|
}
|
|
2975
2435
|
|
|
2976
|
-
p {
|
|
2977
|
-
line-height: 18px;
|
|
2978
|
-
color: var(--sl-color-gray-800);
|
|
2979
|
-
font-size: var(--sl-font-size-small);
|
|
2980
|
-
}
|
|
2981
2436
|
`;
|
|
2982
2437
|
const IndirectTaxFormView = (props) => {
|
|
2983
2438
|
var _a;
|
|
2984
2439
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2985
|
-
const { classes } = sheet$
|
|
2440
|
+
const { classes } = sheet$3;
|
|
2986
2441
|
return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2987
2442
|
h("style", { type: "text/css" },
|
|
2988
|
-
styleString$
|
|
2989
|
-
vanillaStyle$
|
|
2443
|
+
styleString$3,
|
|
2444
|
+
vanillaStyle$2),
|
|
2990
2445
|
h("div", { class: classes.TextContainer },
|
|
2991
2446
|
h("div", null,
|
|
2992
2447
|
!states.hideSteps && (h("p", null,
|
|
@@ -2999,30 +2454,24 @@ const IndirectTaxFormView = (props) => {
|
|
|
2999
2454
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
3000
2455
|
h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
3001
2456
|
states.loadingError && (h("div", null,
|
|
3002
|
-
h("
|
|
3003
|
-
h("
|
|
3004
|
-
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
3005
|
-
h("br", null),
|
|
2457
|
+
h("sqm-form-message", { type: "error" },
|
|
2458
|
+
h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
|
|
3006
2459
|
intl.formatMessage({
|
|
3007
2460
|
id: "loadingErrorAlertDescription",
|
|
3008
2461
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
3009
2462
|
}, {
|
|
3010
2463
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3011
2464
|
})))),
|
|
3012
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("
|
|
3013
|
-
h("
|
|
3014
|
-
h("strong", null, text.error.generalTitle),
|
|
3015
|
-
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),
|
|
3016
2467
|
intl.formatMessage({
|
|
3017
2468
|
id: "generalDescription",
|
|
3018
2469
|
defaultMessage: text.error.generalDescription,
|
|
3019
2470
|
}, {
|
|
3020
2471
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3021
2472
|
}))),
|
|
3022
|
-
states.isPartner && (h("
|
|
3023
|
-
h("
|
|
3024
|
-
h("strong", null, text.isPartnerAlertHeader),
|
|
3025
|
-
h("br", null),
|
|
2473
|
+
states.isPartner && (h("sqm-form-message", { type: "info" },
|
|
2474
|
+
h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
|
|
3026
2475
|
intl.formatMessage({
|
|
3027
2476
|
id: "isPartnerAlertDescription",
|
|
3028
2477
|
defaultMessage: text.isPartnerAlertDescription,
|
|
@@ -3043,17 +2492,15 @@ const IndirectTaxFormView = (props) => {
|
|
|
3043
2492
|
text.otherRegion,
|
|
3044
2493
|
h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
|
|
3045
2494
|
slots.registeredInDifferentCountryDetailsSlot)),
|
|
3046
|
-
h("
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3053
|
-
})),
|
|
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
|
+
})),
|
|
3054
2501
|
h("div", { class: classes.BtnContainer },
|
|
3055
|
-
h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
3056
|
-
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))))));
|
|
3057
2504
|
};
|
|
3058
2505
|
|
|
3059
2506
|
const CONNECT_PARTNER = dist.gql `
|
|
@@ -3112,6 +2559,10 @@ function useIndirectTaxForm(props) {
|
|
|
3112
2559
|
const [filteredCountries, setFilteredCountries] = useState(_countries || []);
|
|
3113
2560
|
const [option, setOption] = useState("notRegistered");
|
|
3114
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
|
+
}, []);
|
|
3115
2566
|
useEffect(() => {
|
|
3116
2567
|
var _a;
|
|
3117
2568
|
if (!((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxCountryCode))
|
|
@@ -3237,8 +2688,6 @@ function useIndirectTaxForm(props) {
|
|
|
3237
2688
|
setStep("/dashboard");
|
|
3238
2689
|
}
|
|
3239
2690
|
}
|
|
3240
|
-
// reset redirect hash
|
|
3241
|
-
window.location.hash = "";
|
|
3242
2691
|
}
|
|
3243
2692
|
catch (e) {
|
|
3244
2693
|
setErrors({ general: true });
|
|
@@ -3500,7 +2949,7 @@ const IndirectTaxForm = class {
|
|
|
3500
2949
|
};
|
|
3501
2950
|
function useDemoIndirectTaxForm(props) {
|
|
3502
2951
|
const setStep = En(TAX_CONTEXT_NAMESPACE);
|
|
3503
|
-
const [option, setOption] = useState(
|
|
2952
|
+
const [option, setOption] = useState("otherRegion");
|
|
3504
2953
|
const [demoFormState, setDemoFormState] = useState({});
|
|
3505
2954
|
return cjs({
|
|
3506
2955
|
states: {
|
|
@@ -3581,6 +3030,26 @@ function useDemoIndirectTaxForm(props) {
|
|
|
3581
3030
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
3582
3031
|
}
|
|
3583
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
|
+
|
|
3584
3053
|
const debug = browser("sq:useInvoiceTable");
|
|
3585
3054
|
const CSS_NAMESPACE = "sqm-invoice-table";
|
|
3586
3055
|
const GET_INVOICES = dist.gql `
|
|
@@ -3729,26 +3198,6 @@ async function tryMethod(c, callback) {
|
|
|
3729
3198
|
}
|
|
3730
3199
|
}
|
|
3731
3200
|
|
|
3732
|
-
const mockInvoiceData = (count = 4) => {
|
|
3733
|
-
const data = [...Array(count)].map(() => getMockData());
|
|
3734
|
-
return { data };
|
|
3735
|
-
};
|
|
3736
|
-
const getMockData = () => {
|
|
3737
|
-
const today = luxon.DateTime.now();
|
|
3738
|
-
const invoiceId = Math.random().toString(36).slice(2, 12);
|
|
3739
|
-
const earnings = Math.floor(Math.random() * 100) + 1;
|
|
3740
|
-
const indirectTax = Math.round(earnings * 0.2);
|
|
3741
|
-
return {
|
|
3742
|
-
downloadUrl: "https://example.com",
|
|
3743
|
-
dateCreated: today.toMillis(),
|
|
3744
|
-
invoiceId,
|
|
3745
|
-
program: "my-program",
|
|
3746
|
-
earnings: `$${earnings}.00`,
|
|
3747
|
-
indirectTax: `$${indirectTax}.00`,
|
|
3748
|
-
netEarnings: `$${earnings - indirectTax}.00`,
|
|
3749
|
-
};
|
|
3750
|
-
};
|
|
3751
|
-
|
|
3752
3201
|
const InvoiceTable = class {
|
|
3753
3202
|
constructor(hostRef) {
|
|
3754
3203
|
registerInstance(this, hostRef);
|
|
@@ -3894,18 +3343,6 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3894
3343
|
return demoProps;
|
|
3895
3344
|
}
|
|
3896
3345
|
|
|
3897
|
-
const InvoiceTableDataCell = class {
|
|
3898
|
-
constructor(hostRef) {
|
|
3899
|
-
registerInstance(this, hostRef);
|
|
3900
|
-
this.ignored = true;
|
|
3901
|
-
h$1(this);
|
|
3902
|
-
}
|
|
3903
|
-
disconnectedCallback() { }
|
|
3904
|
-
render() {
|
|
3905
|
-
return this.data;
|
|
3906
|
-
}
|
|
3907
|
-
};
|
|
3908
|
-
|
|
3909
3346
|
const InvoiceTableDataColumn = class {
|
|
3910
3347
|
constructor(hostRef) {
|
|
3911
3348
|
registerInstance(this, hostRef);
|
|
@@ -3924,23 +3361,6 @@ const InvoiceTableDataColumn = class {
|
|
|
3924
3361
|
}
|
|
3925
3362
|
};
|
|
3926
3363
|
|
|
3927
|
-
const RewardTableDateCell = class {
|
|
3928
|
-
constructor(hostRef) {
|
|
3929
|
-
registerInstance(this, hostRef);
|
|
3930
|
-
this.ignored = true;
|
|
3931
|
-
this.locale = "en";
|
|
3932
|
-
h$1(this);
|
|
3933
|
-
}
|
|
3934
|
-
disconnectedCallback() { }
|
|
3935
|
-
render() {
|
|
3936
|
-
var _a, _b;
|
|
3937
|
-
const date = !this.date
|
|
3938
|
-
? "-"
|
|
3939
|
-
: (_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);
|
|
3940
|
-
return date;
|
|
3941
|
-
}
|
|
3942
|
-
};
|
|
3943
|
-
|
|
3944
3364
|
const InvoiceTableDateColumn = class {
|
|
3945
3365
|
constructor(hostRef) {
|
|
3946
3366
|
registerInstance(this, hostRef);
|
|
@@ -3959,21 +3379,6 @@ const InvoiceTableDateColumn = class {
|
|
|
3959
3379
|
}
|
|
3960
3380
|
};
|
|
3961
3381
|
|
|
3962
|
-
const InvoiceTableDownloadCell = class {
|
|
3963
|
-
constructor(hostRef) {
|
|
3964
|
-
registerInstance(this, hostRef);
|
|
3965
|
-
this.ignored = true;
|
|
3966
|
-
h$1(this);
|
|
3967
|
-
}
|
|
3968
|
-
disconnectedCallback() { }
|
|
3969
|
-
render() {
|
|
3970
|
-
const vanillaStyle = `svg:hover, svg:hover * {
|
|
3971
|
-
cursor: pointer;
|
|
3972
|
-
}`;
|
|
3973
|
-
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" }))))));
|
|
3974
|
-
}
|
|
3975
|
-
};
|
|
3976
|
-
|
|
3977
3382
|
const InvoiceTableGenericColumn = class {
|
|
3978
3383
|
constructor(hostRef) {
|
|
3979
3384
|
registerInstance(this, hostRef);
|
|
@@ -3996,17 +3401,17 @@ const PayPalIcon = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", width:
|
|
|
3996
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" }),
|
|
3997
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" })));
|
|
3998
3403
|
|
|
3999
|
-
const style$
|
|
3404
|
+
const style$4 = {
|
|
4000
3405
|
CardContainer: {
|
|
4001
3406
|
display: "grid",
|
|
4002
3407
|
gridTemplateColumns: "1fr",
|
|
4003
3408
|
gridGap: "var(--sl-spacing-large)",
|
|
4004
|
-
background: "
|
|
3409
|
+
background: "inherit",
|
|
4005
3410
|
boxShadow: "0px 2px 4px rgba(28, 28, 33, 0.12)",
|
|
4006
|
-
borderRadius: "
|
|
3411
|
+
borderRadius: "var(--sqm-border-radius-normal)",
|
|
4007
3412
|
padding: "var(--sl-spacing-large)",
|
|
4008
3413
|
minHeight: "150px",
|
|
4009
|
-
border: "1px solid var(--
|
|
3414
|
+
border: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
4010
3415
|
maxWidth: "450px",
|
|
4011
3416
|
},
|
|
4012
3417
|
StatusContainer: {
|
|
@@ -4016,7 +3421,7 @@ const style$5 = {
|
|
|
4016
3421
|
},
|
|
4017
3422
|
MainCurrencyLabel: {
|
|
4018
3423
|
fontWeight: "var(--sl-font-weight-normal)",
|
|
4019
|
-
color: "var(--
|
|
3424
|
+
color: "var(--sqm-text-subdued)",
|
|
4020
3425
|
},
|
|
4021
3426
|
MainCurrency: {
|
|
4022
3427
|
margin: 0,
|
|
@@ -4025,12 +3430,12 @@ const style$5 = {
|
|
|
4025
3430
|
},
|
|
4026
3431
|
SubduedRegularText: {
|
|
4027
3432
|
fontSize: "var(--sl-font-size-small)",
|
|
4028
|
-
color: "var(--
|
|
3433
|
+
color: "var(--sqm-text-subdued)",
|
|
4029
3434
|
margin: 0,
|
|
4030
3435
|
width: "auto",
|
|
4031
3436
|
},
|
|
4032
3437
|
PaypalEmail: {
|
|
4033
|
-
borderRight: "1px solid var(--
|
|
3438
|
+
borderRight: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
4034
3439
|
paddingRight: "var(--sl-spacing-small)",
|
|
4035
3440
|
"@media (max-width: 499px)": {
|
|
4036
3441
|
borderRight: "none",
|
|
@@ -4038,7 +3443,7 @@ const style$5 = {
|
|
|
4038
3443
|
},
|
|
4039
3444
|
},
|
|
4040
3445
|
PaypalDetailsContainer: {
|
|
4041
|
-
color: "var(--
|
|
3446
|
+
color: "var(--sqm-text-subdued)",
|
|
4042
3447
|
display: "flex",
|
|
4043
3448
|
gap: "var(--sl-spacing-small)",
|
|
4044
3449
|
justifyContent: "flex-start",
|
|
@@ -4059,7 +3464,7 @@ const style$5 = {
|
|
|
4059
3464
|
},
|
|
4060
3465
|
},
|
|
4061
3466
|
AccountDetailsContainer: {
|
|
4062
|
-
color: "var(--
|
|
3467
|
+
color: "var(--sqm-text-subdued)",
|
|
4063
3468
|
display: "flex",
|
|
4064
3469
|
gap: "var(--sl-spacing-small)",
|
|
4065
3470
|
justifyContent: "flex-start",
|
|
@@ -4072,7 +3477,7 @@ const style$5 = {
|
|
|
4072
3477
|
gap: "var(--sl-spacing-xx-small) var(--sl-spacing-small)",
|
|
4073
3478
|
paddingTop: "var(--sq-spacing-xx-small)",
|
|
4074
3479
|
"& > :not(:last-child)": {
|
|
4075
|
-
borderRight: "1px solid var(--
|
|
3480
|
+
borderRight: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
4076
3481
|
},
|
|
4077
3482
|
"& > :nth-child(3)": {
|
|
4078
3483
|
border: "none",
|
|
@@ -4089,7 +3494,7 @@ const style$5 = {
|
|
|
4089
3494
|
},
|
|
4090
3495
|
W9Container: {
|
|
4091
3496
|
paddingTop: "var(--sl-spacing-large)",
|
|
4092
|
-
borderTop: "1px solid var(--
|
|
3497
|
+
borderTop: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
4093
3498
|
},
|
|
4094
3499
|
SkeletonOne: {
|
|
4095
3500
|
width: "25%",
|
|
@@ -4103,25 +3508,21 @@ const style$5 = {
|
|
|
4103
3508
|
width: "50%",
|
|
4104
3509
|
height: "34px",
|
|
4105
3510
|
},
|
|
4106
|
-
|
|
3511
|
+
SuccessBadge: {
|
|
4107
3512
|
"&::part(base)": {
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
"& sl-icon": {
|
|
4113
|
-
margin: 0,
|
|
4114
|
-
},
|
|
4115
|
-
"& sl-icon::part(base)": {
|
|
4116
|
-
color: "var(--sl-color-warning-500)",
|
|
4117
|
-
margin: 0,
|
|
3513
|
+
textAlign: "center",
|
|
3514
|
+
whiteSpace: "pre-line",
|
|
3515
|
+
background: "var(--sqm-success-color-icon)",
|
|
3516
|
+
color: "var(--sl-color-white)",
|
|
4118
3517
|
},
|
|
4119
3518
|
},
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
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
|
+
},
|
|
4125
3526
|
},
|
|
4126
3527
|
Container: {
|
|
4127
3528
|
display: "flex",
|
|
@@ -4130,7 +3531,7 @@ const style$5 = {
|
|
|
4130
3531
|
},
|
|
4131
3532
|
};
|
|
4132
3533
|
function PayoutDetailsCardView(props) {
|
|
4133
|
-
const sheet = createStyleSheet(style$
|
|
3534
|
+
const sheet = createStyleSheet(style$4);
|
|
4134
3535
|
const styleString = sheet.toString();
|
|
4135
3536
|
const { classes } = sheet;
|
|
4136
3537
|
const { states, text } = props;
|
|
@@ -4144,13 +3545,14 @@ function PayoutDetailsCardView(props) {
|
|
|
4144
3545
|
};
|
|
4145
3546
|
const renderStatusBadge = (status, statusBadgeText) => {
|
|
4146
3547
|
const badgeType = status === "nextPayout" ? "success" : "primary";
|
|
3548
|
+
const badgeClass = badgeType === "success" ? classes.SuccessBadge : classes.PrimaryBadge;
|
|
4147
3549
|
const statusText = intl.formatMessage({
|
|
4148
3550
|
id: "badgeText",
|
|
4149
3551
|
defaultMessage: statusBadgeText,
|
|
4150
3552
|
}, {
|
|
4151
3553
|
badgeText: status,
|
|
4152
3554
|
});
|
|
4153
|
-
return (h("sl-badge", { pill: true,
|
|
3555
|
+
return (h("sl-badge", { pill: true, class: badgeClass }, statusText));
|
|
4154
3556
|
};
|
|
4155
3557
|
const thresholdText = intl.formatMessage({
|
|
4156
3558
|
id: "thresholdText",
|
|
@@ -4190,1408 +3592,118 @@ function usePayoutDetailsCard(props) {
|
|
|
4190
3592
|
return currentDay === 1
|
|
4191
3593
|
? luxon.DateTime.now().toFormat("LLL dd, yyyy")
|
|
4192
3594
|
: luxon.DateTime.now()
|
|
4193
|
-
.plus({ month: 1 })
|
|
4194
|
-
.startOf("month")
|
|
4195
|
-
.toFormat("LLL dd, yyyy");
|
|
4196
|
-
}
|
|
4197
|
-
else if (paymentDay === "15") {
|
|
4198
|
-
return currentDay <= 15
|
|
4199
|
-
? luxon.DateTime.now()
|
|
4200
|
-
.plus({ day: 15 - currentDay })
|
|
4201
|
-
.toFormat("LLL dd, yyyy")
|
|
4202
|
-
: luxon.DateTime.now()
|
|
4203
|
-
.plus({ month: 1 })
|
|
4204
|
-
.startOf("month")
|
|
4205
|
-
.plus({ day: 14 })
|
|
4206
|
-
.toFormat("LLL dd, yyyy");
|
|
4207
|
-
}
|
|
4208
|
-
else {
|
|
4209
|
-
intl.formatMessage({
|
|
4210
|
-
id: `nextPayoutBalance`,
|
|
4211
|
-
defaultMessage: props.thresholdPayoutText,
|
|
4212
|
-
}, {
|
|
4213
|
-
thresholdBalance: (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold,
|
|
4214
|
-
});
|
|
4215
|
-
}
|
|
4216
|
-
}
|
|
4217
|
-
const paymentDay = getPayoutDetailedStatusText((_c = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _c === void 0 ? void 0 : _c.paymentDay);
|
|
4218
|
-
const isPayoutToday = luxon.DateTime.now().toFormat("LLL dd, yyyy") === paymentDay;
|
|
4219
|
-
return {
|
|
4220
|
-
states: {
|
|
4221
|
-
loading,
|
|
4222
|
-
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}`
|
|
4223
|
-
: undefined,
|
|
4224
|
-
balance: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _f === void 0 ? void 0 : _f.balance,
|
|
4225
|
-
badgeStatus: ((_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentSchedulingType) !== "FIXED_DAY"
|
|
4226
|
-
? "thresholdPayout"
|
|
4227
|
-
: isPayoutToday
|
|
4228
|
-
? "payoutToday"
|
|
4229
|
-
: "nextPayout",
|
|
4230
|
-
payoutType: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paymentMethod,
|
|
4231
|
-
error: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _j === void 0 ? void 0 : _j.hold,
|
|
4232
|
-
paypalEmailAddress: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.paypalEmailAddress,
|
|
4233
|
-
cardNumberPreview: (_l = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _l === void 0 ? void 0 : _l.bankAccountNumber,
|
|
4234
|
-
nextPayoutDate: paymentDay,
|
|
4235
|
-
},
|
|
4236
|
-
text: props.getTextProps(),
|
|
4237
|
-
};
|
|
4238
|
-
}
|
|
4239
|
-
|
|
4240
|
-
const PayoutDetailsCard = class {
|
|
4241
|
-
constructor(hostRef) {
|
|
4242
|
-
registerInstance(this, hostRef);
|
|
4243
|
-
/**
|
|
4244
|
-
* Badge text indicating payout status
|
|
4245
|
-
* @uiName Payout badge status text
|
|
4246
|
-
*/
|
|
4247
|
-
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
4248
|
-
/**
|
|
4249
|
-
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
4250
|
-
* @uiName Payout schedule by threshold text
|
|
4251
|
-
*/
|
|
4252
|
-
this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
4253
|
-
/**
|
|
4254
|
-
* Shown before the participant’s bank account information.
|
|
4255
|
-
* @uiName Bank account field label
|
|
4256
|
-
*/
|
|
4257
|
-
this.accountText = "Account";
|
|
4258
|
-
/**
|
|
4259
|
-
* Text displayed for existing publishers that do not have saved banking information.
|
|
4260
|
-
* @uiName Payout missing information subtext
|
|
4261
|
-
*/
|
|
4262
|
-
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
4263
|
-
h$1(this);
|
|
4264
|
-
}
|
|
4265
|
-
disconnectedCallback() { }
|
|
4266
|
-
getTextProps() {
|
|
4267
|
-
const props = getProps(this);
|
|
4268
|
-
return {
|
|
4269
|
-
...props,
|
|
4270
|
-
};
|
|
4271
|
-
}
|
|
4272
|
-
render() {
|
|
4273
|
-
const props = isDemo()
|
|
4274
|
-
? useDemoPayoutDetailsCard(this)
|
|
4275
|
-
: usePayoutDetailsCard(this);
|
|
4276
|
-
return (h(Host, null, h(PayoutDetailsCardView, { text: props.text, states: props.states })));
|
|
4277
|
-
}
|
|
4278
|
-
};
|
|
4279
|
-
function useDemoPayoutDetailsCard(props) {
|
|
4280
|
-
return cjs({
|
|
4281
|
-
states: {
|
|
4282
|
-
loading: false,
|
|
4283
|
-
error: false,
|
|
4284
|
-
thresholdBalance: "$50",
|
|
4285
|
-
mainCurrency: { currencyText: "USD", amountText: "100.00" },
|
|
4286
|
-
badgeStatus: "nextPayout",
|
|
4287
|
-
payoutType: "BANK_TRANSFER",
|
|
4288
|
-
nextPayoutDate: "March 14, 2024",
|
|
4289
|
-
paypalEmailAddress: "joesmith@example.com",
|
|
4290
|
-
otherCurrencies: false,
|
|
4291
|
-
hasW9Pending: false,
|
|
4292
|
-
hasDatePending: true,
|
|
4293
|
-
cardNumberPreview: "XX2381",
|
|
4294
|
-
balance: "20.00 USD",
|
|
4295
|
-
},
|
|
4296
|
-
text: props.getTextProps(),
|
|
4297
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4298
|
-
}
|
|
4299
|
-
|
|
4300
|
-
const TableCell = class {
|
|
4301
|
-
constructor(hostRef) {
|
|
4302
|
-
registerInstance(this, hostRef);
|
|
4303
|
-
/** @uiName Column span */
|
|
4304
|
-
this.colspan = 1;
|
|
4305
|
-
/** @uiName Padding */
|
|
4306
|
-
this.padding = "15px 10px";
|
|
4307
|
-
}
|
|
4308
|
-
render() {
|
|
4309
|
-
return (h(Host, { style: { display: "contents" } }, h("td", { colSpan: this.colspan, style: { padding: this.padding } }, h("slot", null))));
|
|
4310
|
-
}
|
|
4311
|
-
};
|
|
4312
|
-
|
|
4313
|
-
const TableRow = class {
|
|
4314
|
-
constructor(hostRef) {
|
|
4315
|
-
registerInstance(this, hostRef);
|
|
4316
|
-
/**
|
|
4317
|
-
* @uiName Border
|
|
4318
|
-
*/
|
|
4319
|
-
this.border = "1px solid #EAEAEA";
|
|
4320
|
-
}
|
|
4321
|
-
render() {
|
|
4322
|
-
return (h(Host, { style: { display: "contents" } }, h("tr", { style: { border: this.border } }, h("slot", null))));
|
|
4323
|
-
}
|
|
4324
|
-
};
|
|
4325
|
-
|
|
4326
|
-
function getCurrentStep(user) {
|
|
4327
|
-
var _a, _b;
|
|
4328
|
-
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
4329
|
-
return "/1";
|
|
4330
|
-
}
|
|
4331
|
-
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount, } = user.impactConnection.publisher;
|
|
4332
|
-
// If they do have a required document, look at current document
|
|
4333
|
-
if (requiredTaxDocumentType && !currentTaxDocument) {
|
|
4334
|
-
// Specific to custom CASH setting,
|
|
4335
|
-
if (payoutsAccount.hold &&
|
|
4336
|
-
payoutsAccount.holdReasons.includes("NO_W9_DOCUMENT"))
|
|
4337
|
-
return "/dashboard";
|
|
4338
|
-
return "/3";
|
|
4339
|
-
}
|
|
4340
|
-
if (!withdrawalSettings && brandedSignup)
|
|
4341
|
-
return "/4";
|
|
4342
|
-
return "/dashboard";
|
|
4343
|
-
}
|
|
4344
|
-
function useTaxAndCash() {
|
|
4345
|
-
var _a, _b, _c, _d, _e;
|
|
4346
|
-
const host = _();
|
|
4347
|
-
const user = J();
|
|
4348
|
-
const locale = L();
|
|
4349
|
-
// State for current step of form
|
|
4350
|
-
const [step, setStep] = In({
|
|
4351
|
-
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4352
|
-
initialValue: "/loading",
|
|
4353
|
-
});
|
|
4354
|
-
// State for when to hide steps, or override certain actions
|
|
4355
|
-
const [context, _setContext] = In({
|
|
4356
|
-
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
4357
|
-
initialValue: {},
|
|
4358
|
-
});
|
|
4359
|
-
// State to carry user form information into step 2
|
|
4360
|
-
const [userFormContext, _setUserFormContext] = In({
|
|
4361
|
-
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
4362
|
-
initialValue: {
|
|
4363
|
-
firstName: undefined,
|
|
4364
|
-
lastName: undefined,
|
|
4365
|
-
email: undefined,
|
|
4366
|
-
countryCode: undefined,
|
|
4367
|
-
currency: undefined,
|
|
4368
|
-
},
|
|
4369
|
-
});
|
|
4370
|
-
const [_currenciesContext, setCurrenciesContext] = In({
|
|
4371
|
-
namespace: CURRENCIES_NAMESPACE,
|
|
4372
|
-
initialValue: [],
|
|
4373
|
-
});
|
|
4374
|
-
const [_countriesContext, _setCountriesContext] = In({
|
|
4375
|
-
namespace: COUNTRIES_NAMESPACE,
|
|
4376
|
-
initialValue: [],
|
|
4377
|
-
});
|
|
4378
|
-
const [_sortedCountriesContext, setSortedCountriesContext] = In({
|
|
4379
|
-
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
4380
|
-
initialValue: [],
|
|
4381
|
-
});
|
|
4382
|
-
const { data, errors } = Sn({
|
|
4383
|
-
namespace: USER_QUERY_NAMESPACE,
|
|
4384
|
-
query: GET_USER,
|
|
4385
|
-
skip: !user,
|
|
4386
|
-
options: {
|
|
4387
|
-
batch: false,
|
|
4388
|
-
},
|
|
4389
|
-
});
|
|
4390
|
-
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) ||
|
|
4391
|
-
userFormContext.countryCode;
|
|
4392
|
-
Sn({
|
|
4393
|
-
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
4394
|
-
query: GET_COUNTRIES,
|
|
4395
|
-
skip: !user,
|
|
4396
|
-
});
|
|
4397
|
-
const { data: financeNetworkData, refetch } = Sn({
|
|
4398
|
-
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
4399
|
-
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
4400
|
-
skip: !user,
|
|
4401
|
-
variables: {
|
|
4402
|
-
filter: getFinanceNetworkFilter(),
|
|
4403
|
-
},
|
|
4404
|
-
});
|
|
4405
|
-
const { data: currenciesData } = Sn({
|
|
4406
|
-
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
4407
|
-
query: GET_CURRENCIES,
|
|
4408
|
-
skip: !user,
|
|
4409
|
-
variables: {
|
|
4410
|
-
locale,
|
|
4411
|
-
},
|
|
4412
|
-
});
|
|
4413
|
-
const supportedCurrencies = useMemo(() => {
|
|
4414
|
-
var _a, _b;
|
|
4415
|
-
// Filter out any currencies not supported by finance network settings
|
|
4416
|
-
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) => {
|
|
4417
|
-
var _a, _b;
|
|
4418
|
-
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);
|
|
4419
|
-
// Currency not in supported list
|
|
4420
|
-
if (!currency)
|
|
4421
|
-
return agg;
|
|
4422
|
-
// Currency already added to list
|
|
4423
|
-
if (agg.find((currency) => currency.currencyCode === settings.currency))
|
|
4424
|
-
return agg;
|
|
4425
|
-
// Currency not supported by selected country
|
|
4426
|
-
if (userFormContext.countryCode &&
|
|
4427
|
-
settings.countryCode !== countryCode)
|
|
4428
|
-
return agg;
|
|
4429
|
-
return [...agg, currency];
|
|
4430
|
-
}, []);
|
|
4431
|
-
return allValidCurrencies;
|
|
4432
|
-
}, [financeNetworkData, countryCode]);
|
|
4433
|
-
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
4434
|
-
const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
|
|
4435
|
-
const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
|
|
4436
|
-
// filter out any duplicate countries and null countryCode
|
|
4437
|
-
const availableCountries = useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
|
|
4438
|
-
const _topCountries = ["CA", "GB", "US"];
|
|
4439
|
-
const sortedCountries = useMemo(() => Array.from(availableCountries)
|
|
4440
|
-
.map((countryCode) => getCountryObj({ countryCode, locale: intlLocale }))
|
|
4441
|
-
.sort(sortByName)
|
|
4442
|
-
.reduce((prev, countryObj) => {
|
|
4443
|
-
if (_topCountries.includes(countryObj.countryCode))
|
|
4444
|
-
return [countryObj, ...prev];
|
|
4445
|
-
return [...prev, countryObj];
|
|
4446
|
-
}, []), [availableCountries]);
|
|
4447
|
-
useEffect(() => {
|
|
4448
|
-
if (sortedCountries)
|
|
4449
|
-
setSortedCountriesContext(sortedCountries);
|
|
4450
|
-
}, [sortedCountries]);
|
|
4451
|
-
useEffect(() => {
|
|
4452
|
-
if (supportedCurrencies)
|
|
4453
|
-
setCurrenciesContext(supportedCurrencies);
|
|
4454
|
-
}, [supportedCurrencies]);
|
|
4455
|
-
useEffect(() => {
|
|
4456
|
-
if (errors) {
|
|
4457
|
-
setStep("/error");
|
|
4458
|
-
return;
|
|
4459
|
-
}
|
|
4460
|
-
if (!host || !user)
|
|
4461
|
-
return;
|
|
4462
|
-
if (data) {
|
|
4463
|
-
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
4464
|
-
if (!user || step !== "/loading")
|
|
4465
|
-
return;
|
|
4466
|
-
const currentStep = getCurrentStep(user);
|
|
4467
|
-
setStep(currentStep);
|
|
4468
|
-
}
|
|
4469
|
-
}, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
|
|
4470
|
-
function getFinanceNetworkFilter() {
|
|
4471
|
-
var _a, _b, _c;
|
|
4472
|
-
if (step === "/1")
|
|
4473
|
-
return {};
|
|
4474
|
-
if (step === "/4")
|
|
4475
|
-
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 };
|
|
4476
|
-
if (countryCode)
|
|
4477
|
-
return {
|
|
4478
|
-
countryCode_eq: countryCode,
|
|
4479
|
-
};
|
|
4480
|
-
return {};
|
|
4481
|
-
}
|
|
4482
|
-
return {
|
|
4483
|
-
step,
|
|
4484
|
-
setStep,
|
|
4485
|
-
context,
|
|
4486
|
-
namespace: Mn(TAX_CONTEXT_NAMESPACE),
|
|
4487
|
-
loading: step === "/loading",
|
|
4488
|
-
};
|
|
4489
|
-
}
|
|
4490
|
-
|
|
4491
|
-
const TaxAndCashMonolith = class {
|
|
4492
|
-
constructor(hostRef) {
|
|
4493
|
-
registerInstance(this, hostRef);
|
|
4494
|
-
/*---------------------------------------------------------------------------------
|
|
4495
|
-
!IMPORTANT!: Make sure to also change the prop names in the respective component
|
|
4496
|
-
-----------------------------------------------------------------------------------*/
|
|
4497
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4498
|
-
STEP 1 PROPS:
|
|
4499
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4500
|
-
/**
|
|
4501
|
-
* @uiName First name field label
|
|
4502
|
-
* @uiGroup Step 1 Properties
|
|
4503
|
-
*/
|
|
4504
|
-
this.step1_firstName = "First name";
|
|
4505
|
-
/**
|
|
4506
|
-
* @uiName Last name field label
|
|
4507
|
-
* @uiGroup Step 1 Properties
|
|
4508
|
-
*/
|
|
4509
|
-
this.step1_lastName = "Last name";
|
|
4510
|
-
/**
|
|
4511
|
-
* @uiName Email field label
|
|
4512
|
-
* @uiGroup Step 1 Properties
|
|
4513
|
-
*/
|
|
4514
|
-
this.step1_email = "Email";
|
|
4515
|
-
/**
|
|
4516
|
-
* @uiName Country field label
|
|
4517
|
-
* @uiGroup Step 1 Properties
|
|
4518
|
-
*/
|
|
4519
|
-
this.step1_country = "Country";
|
|
4520
|
-
/**
|
|
4521
|
-
* @uiName Phone number field label
|
|
4522
|
-
* @uiGroup Step 1 Properties
|
|
4523
|
-
*/
|
|
4524
|
-
this.step1_phoneNumber = "Phone number";
|
|
4525
|
-
/**
|
|
4526
|
-
* @uiName Address field label
|
|
4527
|
-
* @uiGroup Step 1 Properties
|
|
4528
|
-
*/
|
|
4529
|
-
this.step1_address = "Address";
|
|
4530
|
-
/**
|
|
4531
|
-
* @uiName City field label
|
|
4532
|
-
* @uiGroup Step 1 Properties
|
|
4533
|
-
*/
|
|
4534
|
-
this.step1_city = "City";
|
|
4535
|
-
/**
|
|
4536
|
-
* @uiName State field label for states
|
|
4537
|
-
* @uiGroup Step 1 Properties
|
|
4538
|
-
*/
|
|
4539
|
-
this.step1_state = "State";
|
|
4540
|
-
/**
|
|
4541
|
-
* @uiName State field label for provinces
|
|
4542
|
-
* @uiGroup Step 1 Properties
|
|
4543
|
-
*/
|
|
4544
|
-
this.step1_province = "Province";
|
|
4545
|
-
/**
|
|
4546
|
-
* @uiName State field label for regions
|
|
4547
|
-
* @uiGroup Step 1 Properties
|
|
4548
|
-
*/
|
|
4549
|
-
this.step1_region = "Region";
|
|
4550
|
-
/**
|
|
4551
|
-
* @uiName Postal code field label
|
|
4552
|
-
* @uiGroup Step 1 Properties
|
|
4553
|
-
*/
|
|
4554
|
-
this.step1_postalCode = "Postal code";
|
|
4555
|
-
/**
|
|
4556
|
-
* @uiName Currency field label
|
|
4557
|
-
* @uiGroup Step 1 Properties
|
|
4558
|
-
*/
|
|
4559
|
-
this.step1_currency = "Currency";
|
|
4560
|
-
/**
|
|
4561
|
-
* @uiName Currency field help text
|
|
4562
|
-
* @uiGroup Step 1 Properties
|
|
4563
|
-
*/
|
|
4564
|
-
this.step1_currencyHelpText = "Choose your preferred payout currency";
|
|
4565
|
-
/**
|
|
4566
|
-
* Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
|
|
4567
|
-
* @uiName Terms and conditions checkbox
|
|
4568
|
-
* @uiGroup Step 1 Properties
|
|
4569
|
-
*/
|
|
4570
|
-
this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
|
|
4571
|
-
/**
|
|
4572
|
-
* @uiName Step 1 title
|
|
4573
|
-
* @uiGroup Step 1 Properties
|
|
4574
|
-
*/
|
|
4575
|
-
this.step1_personalInformation = "Personal Information";
|
|
4576
|
-
/**
|
|
4577
|
-
* The link text that appears in the terms and conditions checkbox
|
|
4578
|
-
* @uiName Terms and conditions text
|
|
4579
|
-
* @uiGroup Step 1 Properties
|
|
4580
|
-
* @uiWidget textArea
|
|
4581
|
-
*/
|
|
4582
|
-
this.step1_termsAndConditionsLabel = "terms and conditions";
|
|
4583
|
-
/**
|
|
4584
|
-
* The link that appears in the terms and conditions checkbox
|
|
4585
|
-
* @uiName Terms and conditions link
|
|
4586
|
-
* @uiGroup Step 1 Properties
|
|
4587
|
-
*/
|
|
4588
|
-
this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
4589
|
-
/**
|
|
4590
|
-
* Placeholder text displayed in the currency search dropdown
|
|
4591
|
-
* @uiName Currency field placeholder text
|
|
4592
|
-
* @uiGroup Step 1 Properties
|
|
4593
|
-
*/
|
|
4594
|
-
this.step1_searchForCurrencyText = "Search for currency..";
|
|
4595
|
-
/**
|
|
4596
|
-
|
|
4597
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4598
|
-
STEP 2 PROPS:
|
|
4599
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4600
|
-
/**
|
|
4601
|
-
* @uiName Step 2 title
|
|
4602
|
-
* @uiGroup Step 2 Properties
|
|
4603
|
-
*/
|
|
4604
|
-
this.step2_indirectTax = "Indirect Tax";
|
|
4605
|
-
/**
|
|
4606
|
-
* Displayed under the title of this step.
|
|
4607
|
-
* @uiName Step 2 description
|
|
4608
|
-
* @uiGroup Step 2 Properties
|
|
4609
|
-
* @uiWidget textArea
|
|
4610
|
-
*/
|
|
4611
|
-
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.";
|
|
4612
|
-
/**
|
|
4613
|
-
* Displayed with indirect tax registration options.
|
|
4614
|
-
* @uiName Indirect tax details section title
|
|
4615
|
-
* @uiGroup Step 2 Properties
|
|
4616
|
-
*/
|
|
4617
|
-
this.step2_indirectTaxDetails = "Indirect tax details";
|
|
4618
|
-
/**
|
|
4619
|
-
* @uiName Registered for indirect tax option
|
|
4620
|
-
* @uiGroup Step 2 Properties
|
|
4621
|
-
* @uiWidget textArea
|
|
4622
|
-
*
|
|
4623
|
-
*/
|
|
4624
|
-
this.step2_otherRegion = "Registered for indirect tax";
|
|
4625
|
-
/**
|
|
4626
|
-
* Selecting this option will display fields to enter indirect tax details.
|
|
4627
|
-
* @uiName Registered for indirect tax option description
|
|
4628
|
-
* @uiGroup Step 2 Properties
|
|
4629
|
-
*/
|
|
4630
|
-
this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
|
|
4631
|
-
/**
|
|
4632
|
-
* @uiName Not registered for indirect tax option
|
|
4633
|
-
* @uiGroup Step 2 Properties
|
|
4634
|
-
* @uiWidget textArea
|
|
4635
|
-
*/
|
|
4636
|
-
this.step2_notRegistered = "Not registered for indirect tax";
|
|
4637
|
-
/**
|
|
4638
|
-
* Participants based in the US are considered not registered.
|
|
4639
|
-
* @uiName Not registered for indirect tax option description
|
|
4640
|
-
* @uiGroup Step 2 Properties
|
|
4641
|
-
*/
|
|
4642
|
-
this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
|
|
4643
|
-
/**
|
|
4644
|
-
* @uiName Region of indirect tax field label
|
|
4645
|
-
* @uiGroup Step 2 Properties
|
|
4646
|
-
*/
|
|
4647
|
-
this.step2_selectedRegion = "Country / region of indirect tax";
|
|
4648
|
-
/**
|
|
4649
|
-
* @uiName Indirect tax number field label
|
|
4650
|
-
* @uiGroup Step 2 Properties
|
|
4651
|
-
*/
|
|
4652
|
-
this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
|
|
4653
|
-
/**
|
|
4654
|
-
* @uiName Province field label
|
|
4655
|
-
* @uiGroup Step 2 Properties
|
|
4656
|
-
*/
|
|
4657
|
-
this.step2_province = "Province";
|
|
4658
|
-
/**
|
|
4659
|
-
* @uiName Missing indirect tax number error message
|
|
4660
|
-
* @uiGroup Step 2 Properties
|
|
4661
|
-
*/
|
|
4662
|
-
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";
|
|
4663
|
-
/**
|
|
4664
|
-
* Displayed to participants registered for QST.
|
|
4665
|
-
* @uiName QST number field label
|
|
4666
|
-
* @uiGroup Step 2 Properties
|
|
4667
|
-
*/
|
|
4668
|
-
this.step2_qstNumber = "QST number";
|
|
4669
|
-
/**
|
|
4670
|
-
* Displayed to participants registered for indirect tax in Quebec, Canada.
|
|
4671
|
-
* @uiName QST tax checkbox
|
|
4672
|
-
* @uiGroup Step 2 Properties
|
|
4673
|
-
*/
|
|
4674
|
-
this.step2_isRegisteredQST = "I am registered for QST Tax";
|
|
4675
|
-
/**
|
|
4676
|
-
* Displayed to participants registered for indirect tax in Spain.
|
|
4677
|
-
* @uiName Spain income tax checkbox
|
|
4678
|
-
* @uiGroup Step 2 Properties
|
|
4679
|
-
* @uiWidget textArea
|
|
4680
|
-
*/
|
|
4681
|
-
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.";
|
|
4682
|
-
/**
|
|
4683
|
-
* Displayed to participants registered in Spain.
|
|
4684
|
-
* @uiName Sub-region of indirect tax field label
|
|
4685
|
-
* @uiGroup Step 2 Properties
|
|
4686
|
-
*/
|
|
4687
|
-
this.step2_subRegion = "Sub-region";
|
|
4688
|
-
/**
|
|
4689
|
-
* @uiName Income tax field label
|
|
4690
|
-
* @uiGroup Step 2 Properties
|
|
4691
|
-
*/
|
|
4692
|
-
this.step2_subRegionTaxNumberLabel = "Income Tax Number";
|
|
4693
|
-
/**
|
|
4694
|
-
* Communicate that after this step, only Support can change personal and indirect tax information.
|
|
4695
|
-
* @uiName Submission confirmation alert
|
|
4696
|
-
* @uiGroup Step 2 Properties
|
|
4697
|
-
* @uiWidget textArea
|
|
4698
|
-
*/
|
|
4699
|
-
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.";
|
|
4700
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4701
|
-
STEP 3 PROPS:
|
|
4702
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4703
|
-
/**
|
|
4704
|
-
* @uiName Step 3 title
|
|
4705
|
-
* @uiGroup Step 3 Properties
|
|
4706
|
-
*/
|
|
4707
|
-
this.step3_taxForm = "Tax form";
|
|
4708
|
-
/**
|
|
4709
|
-
* Display the type of tax form that the participant must submit.
|
|
4710
|
-
* @uiName Tax form name
|
|
4711
|
-
* @uiGroup Step 3 Properties
|
|
4712
|
-
*/
|
|
4713
|
-
this.step3_taxFormLabel = "{documentType} Tax Form";
|
|
4714
|
-
/**
|
|
4715
|
-
* @uiName Participant type field label
|
|
4716
|
-
* @uiGroup Step 3 Properties
|
|
4717
|
-
*/
|
|
4718
|
-
this.step3_participantType = "Participant type";
|
|
4719
|
-
/**
|
|
4720
|
-
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4721
|
-
* @uiName Business representative participant type label
|
|
4722
|
-
* @uiGroup Step 3 Properties
|
|
4723
|
-
*/
|
|
4724
|
-
this.step3_businessEntity = "I represent a business";
|
|
4725
|
-
/**
|
|
4726
|
-
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4727
|
-
* @uiName Individual participant type label
|
|
4728
|
-
* @uiGroup Step 3 Properties
|
|
4729
|
-
*/
|
|
4730
|
-
this.step3_individualParticipant = "I am an individual participant";
|
|
4731
|
-
/**
|
|
4732
|
-
* Displayed at the top of the page to participants based in the US.
|
|
4733
|
-
* @uiName W-9 tax form description
|
|
4734
|
-
* @uiGroup Step 3 Properties
|
|
4735
|
-
* @uiWidget textArea
|
|
4736
|
-
*/
|
|
4737
|
-
this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
|
|
4738
|
-
/**
|
|
4739
|
-
* Displayed at the top of the page to individuals joining a US program who reside outside the country.
|
|
4740
|
-
* @uiName W-8 BEN tax form description
|
|
4741
|
-
* @uiGroup Step 3 Properties
|
|
4742
|
-
* @uiWidget textArea
|
|
4743
|
-
*/
|
|
4744
|
-
this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
|
|
4745
|
-
/**
|
|
4746
|
-
* Displayed at the top of the page to participants representing a business.
|
|
4747
|
-
* @uiName W-8 BEN-E tax form description
|
|
4748
|
-
* @uiGroup Step 3 Properties
|
|
4749
|
-
* @uiWidget textArea
|
|
4750
|
-
*/
|
|
4751
|
-
this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";
|
|
4752
|
-
/**
|
|
4753
|
-
* This appears inside the Docusign frame.
|
|
4754
|
-
* @uiName Docusign session expired message
|
|
4755
|
-
* @uiGroup Step 3 Properties
|
|
4756
|
-
* @uiWidget textArea
|
|
4757
|
-
*/
|
|
4758
|
-
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.";
|
|
4759
|
-
/**
|
|
4760
|
-
* Remind participants their session will time out after 20 minutes of inactivity.
|
|
4761
|
-
* @uiName Docusign timed session message
|
|
4762
|
-
* @uiGroup Step 3 Properties
|
|
4763
|
-
* @uiWidget textArea
|
|
4764
|
-
*/
|
|
4765
|
-
this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
|
|
4766
|
-
/**
|
|
4767
|
-
* This appears inside the Docusign frame.
|
|
4768
|
-
* @uiName Docusign form error message
|
|
4769
|
-
* @uiGroup Step 3 Properties
|
|
4770
|
-
* @uiWidget textArea
|
|
4771
|
-
*/
|
|
4772
|
-
this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
|
|
4773
|
-
/**
|
|
4774
|
-
* @uiName Refresh page button label
|
|
4775
|
-
* @uiGroup Step 3 Properties
|
|
4776
|
-
*/
|
|
4777
|
-
this.step3_refreshButton = "Refresh Page";
|
|
4778
|
-
/**
|
|
4779
|
-
* @uiName Exit button text
|
|
4780
|
-
* @uiGroup Step 3 Properties
|
|
4781
|
-
*/
|
|
4782
|
-
this.step3_exitButton = "Exit";
|
|
4783
|
-
/**
|
|
4784
|
-
* @uiName Information modal title
|
|
4785
|
-
* @uiGroup Step 3 Properties
|
|
4786
|
-
*/
|
|
4787
|
-
this.step3_modalTitle = "Important Note";
|
|
4788
|
-
/**
|
|
4789
|
-
* @uiName Information modal description text
|
|
4790
|
-
* @uiGroup Step 3 Properties
|
|
4791
|
-
*/
|
|
4792
|
-
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.";
|
|
4793
|
-
/**
|
|
4794
|
-
* @uiName Information modal button text
|
|
4795
|
-
* @uiGroup Step 3 Properties
|
|
4796
|
-
*/
|
|
4797
|
-
this.step3_modalButtonText = "I understand";
|
|
4798
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4799
|
-
STEP 4 PROPS:
|
|
4800
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4801
|
-
/**
|
|
4802
|
-
* @uiName Step 4 title
|
|
4803
|
-
* @uiGroup Step 4 Properties
|
|
4804
|
-
*/
|
|
4805
|
-
this.step4_taxAndPayouts = "Payouts";
|
|
4806
|
-
/**
|
|
4807
|
-
* @uiName Direct to bank payout option
|
|
4808
|
-
* @uiGroup Step 4 Properties
|
|
4809
|
-
*/
|
|
4810
|
-
this.step4_directlyToBankAccount = "Directly to my bank account";
|
|
4811
|
-
/**
|
|
4812
|
-
* @uiName PayPal payout option
|
|
4813
|
-
* @uiGroup Step 4 Properties
|
|
4814
|
-
*/
|
|
4815
|
-
this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
|
|
4816
|
-
/**
|
|
4817
|
-
* @uiName Threshold balance payment schedule option
|
|
4818
|
-
* @uiGroup Step 4 Properties
|
|
4819
|
-
*/
|
|
4820
|
-
this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
|
|
4821
|
-
/**
|
|
4822
|
-
* @uiName Fixed day payment schedule option
|
|
4823
|
-
* @uiGroup Step 4 Properties
|
|
4824
|
-
*/
|
|
4825
|
-
this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
|
|
4826
|
-
/**
|
|
4827
|
-
* Let the participant choose what day of the month they’ll get paid
|
|
4828
|
-
* @uiName Payment day field label
|
|
4829
|
-
* @uiGroup Step 4 Properties
|
|
4830
|
-
*/
|
|
4831
|
-
this.step4_paymentDaySelectLabel = "Payment Day";
|
|
4832
|
-
/**
|
|
4833
|
-
* Participant use this field to select the balance at which they want to be paid
|
|
4834
|
-
* @uiName Payment threshold field label
|
|
4835
|
-
* @uiGroup Step 4 Properties
|
|
4836
|
-
*/
|
|
4837
|
-
this.step4_paymentThresholdSelectLabel = "Payment threshold";
|
|
4838
|
-
/**
|
|
4839
|
-
* One of two payment day options
|
|
4840
|
-
* @uiName First of month payday option
|
|
4841
|
-
* @uiGroup Step 4 Properties
|
|
4842
|
-
*/
|
|
4843
|
-
this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
|
|
4844
|
-
/**
|
|
4845
|
-
* One of two payment day options
|
|
4846
|
-
* @uiName Fifteenth of month payday option
|
|
4847
|
-
* @uiGroup Step 4 Properties
|
|
4848
|
-
*/
|
|
4849
|
-
this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
|
|
4850
|
-
/**
|
|
4851
|
-
* @uiName Payment method section header
|
|
4852
|
-
* @uiGroup Step 4 Properties
|
|
4853
|
-
*/
|
|
4854
|
-
this.step4_paymentMethod = "Payment method";
|
|
4855
|
-
/**
|
|
4856
|
-
* @uiName Payment schedule section header
|
|
4857
|
-
* @uiGroup Step 4 Properties
|
|
4858
|
-
*/
|
|
4859
|
-
this.step4_paymentSchedule = "Payment schedule";
|
|
4860
|
-
/**
|
|
4861
|
-
* @uiName Payment method section description
|
|
4862
|
-
* @uiGroup Step 4 Properties
|
|
4863
|
-
*/
|
|
4864
|
-
this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
|
|
4865
|
-
/**
|
|
4866
|
-
* Displayed to participants who choose PayPal as their payout method
|
|
4867
|
-
* @uiName PayPal email field label
|
|
4868
|
-
* @uiGroup Step 4 Properties
|
|
4869
|
-
*/
|
|
4870
|
-
this.step4_payPalInputLabel = "PayPal email";
|
|
4871
|
-
/**
|
|
4872
|
-
* @uiName Bank country field label
|
|
4873
|
-
* @uiGroup Step 4 Properties
|
|
4874
|
-
*/
|
|
4875
|
-
this.step4_bankLocationLabel = "Bank country location";
|
|
4876
|
-
/**
|
|
4877
|
-
* @uiName Beneficiary account field label
|
|
4878
|
-
* @uiGroup Step 4 Properties
|
|
4879
|
-
*/
|
|
4880
|
-
this.step4_beneficiaryAccountNameLabel = "Account holder name";
|
|
4881
|
-
/**
|
|
4882
|
-
* @uiName Beneficiary account field description
|
|
4883
|
-
* @uiGroup Step 4 Properties
|
|
4884
|
-
*/
|
|
4885
|
-
this.step4_beneficiaryAccountNameDescription = "The beneficiary name of your bank account. Ensure this matches the name on your tax form.";
|
|
4886
|
-
/**
|
|
4887
|
-
* @uiName Bank account type field label
|
|
4888
|
-
* @uiGroup Step 4 Properties
|
|
4889
|
-
*/
|
|
4890
|
-
this.step4_bankAccountTypeLabel = "Bank account type";
|
|
4891
|
-
/**
|
|
4892
|
-
* @uiName Checking account option
|
|
4893
|
-
* @uiGroup Step 4 Properties
|
|
4894
|
-
*/
|
|
4895
|
-
this.step4_checkingSelectItemLabel = "Checking";
|
|
4896
|
-
/**
|
|
4897
|
-
* Label text for the savings account type select item
|
|
4898
|
-
* @uiName Savings account options
|
|
4899
|
-
* @uiGroup Step 4 Properties
|
|
4900
|
-
*/
|
|
4901
|
-
this.step4_savingsSelectItemLabel = "Savings";
|
|
4902
|
-
/**
|
|
4903
|
-
* @uiName Bank account number field label
|
|
4904
|
-
* @uiGroup Step 4 Properties
|
|
4905
|
-
*/
|
|
4906
|
-
this.step4_bankAccountNumberLabel = "Bank account number";
|
|
4907
|
-
/**
|
|
4908
|
-
* @uiName IBAN field label
|
|
4909
|
-
* @uiGroup Step 4 Properties
|
|
4910
|
-
*/
|
|
4911
|
-
this.step4_ibanLabel = "IBAN";
|
|
4912
|
-
/**
|
|
4913
|
-
* @uiName SWIFT code field label
|
|
4914
|
-
* @uiGroup Step 4 Properties
|
|
4915
|
-
*/
|
|
4916
|
-
this.step4_swiftCodeLabel = "SWIFT code";
|
|
4917
|
-
/**
|
|
4918
|
-
* @uiName Routing code field label
|
|
4919
|
-
* @uiGroup Step 4 Properties
|
|
4920
|
-
*/
|
|
4921
|
-
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} }";
|
|
4922
|
-
/**
|
|
4923
|
-
* @uiName Bank name field label
|
|
4924
|
-
* @uiGroup Step 4 Properties
|
|
4925
|
-
*/
|
|
4926
|
-
this.step4_bankNameLabel = "Bank name";
|
|
4927
|
-
/**
|
|
4928
|
-
* @uiName Classification entity field label
|
|
4929
|
-
* @uiGroup Step 4 Properties
|
|
4930
|
-
*/
|
|
4931
|
-
this.step4_classificationEntityLabel = "Classification entity";
|
|
4932
|
-
/**
|
|
4933
|
-
* One of three options listed for the classification field
|
|
4934
|
-
* @uiName Business classification option
|
|
4935
|
-
* @uiGroup Step 4 Properties
|
|
4936
|
-
*/
|
|
4937
|
-
this.step4_businessSelectItemLabel = "Business";
|
|
4938
|
-
/**
|
|
4939
|
-
* One of three options listed for the classification field
|
|
4940
|
-
* @uiName Individual classification option
|
|
4941
|
-
* @uiGroup Step 4 Properties
|
|
4942
|
-
*/
|
|
4943
|
-
this.step4_individualSelectItemLabel = "Individual";
|
|
4944
|
-
/**
|
|
4945
|
-
* One of three options listed for the classification field
|
|
4946
|
-
* @uiName Foreign classification option
|
|
4947
|
-
* @uiGroup Step 4 Properties
|
|
4948
|
-
*/
|
|
4949
|
-
this.step4_foreignSelectItemLabel = "Foreign";
|
|
4950
|
-
/**
|
|
4951
|
-
* @uiName Classification CPF field label
|
|
4952
|
-
* @uiGroup Step 4 Properties
|
|
4953
|
-
*/
|
|
4954
|
-
this.step4_classificationCPFLabel = "Classification CPF";
|
|
4955
|
-
/**
|
|
4956
|
-
* @uiName Patronymic name field label
|
|
4957
|
-
* @uiGroup Step 4 Properties
|
|
4958
|
-
*/
|
|
4959
|
-
this.step4_patronymicNameLabel = "Patronymic name";
|
|
4960
|
-
/**
|
|
4961
|
-
* @uiName VO code field label
|
|
4962
|
-
* @uiGroup Step 4 Properties
|
|
4963
|
-
*/
|
|
4964
|
-
this.step4_voCodeLabel = "VO code";
|
|
4965
|
-
/**
|
|
4966
|
-
* @uiName Agency code field label
|
|
4967
|
-
* @uiGroup Step 4 Properties
|
|
4968
|
-
*/
|
|
4969
|
-
this.step4_agencyCodeLabel = "Agency code";
|
|
4970
|
-
/**
|
|
4971
|
-
* @uiName Branch code field label
|
|
4972
|
-
* @uiGroup Step 4 Properties
|
|
4973
|
-
*/
|
|
4974
|
-
this.step4_branchCodeLabel = "Branch code";
|
|
4975
|
-
/**
|
|
4976
|
-
* Label text for the classification input field
|
|
4977
|
-
* @uiName Classification field label
|
|
4978
|
-
* @uiGroup Step 4 Properties
|
|
4979
|
-
*/
|
|
4980
|
-
this.step4_classificationLabel = "Classification";
|
|
4981
|
-
/**
|
|
4982
|
-
* @uiName Taxpayer ID field label
|
|
4983
|
-
* @uiGroup Step 4 Properties
|
|
4984
|
-
*/
|
|
4985
|
-
this.step4_taxPayerIdLabel = "Beneficiary INN";
|
|
4986
|
-
/**
|
|
4987
|
-
* @uiName Bank address field label
|
|
4988
|
-
* @uiGroup Step 4 Properties
|
|
4989
|
-
*/
|
|
4990
|
-
this.step4_bankAddressLabel = "Bank address";
|
|
4991
|
-
/**
|
|
4992
|
-
* @uiName Bank city field label
|
|
4993
|
-
* @uiGroup Step 4 Properties
|
|
4994
|
-
*/
|
|
4995
|
-
this.step4_bankCityLabel = "Bank city";
|
|
4996
|
-
/**
|
|
4997
|
-
* @uiName Bank province/state field label
|
|
4998
|
-
* @uiGroup Step 4 Properties
|
|
4999
|
-
*/
|
|
5000
|
-
this.step4_bankStateLabel = "Bank Province / State";
|
|
5001
|
-
/**
|
|
5002
|
-
* @uiName Bank postal code field label
|
|
5003
|
-
* @uiGroup Step 4 Properties
|
|
5004
|
-
*/
|
|
5005
|
-
this.step4_bankPostalCodeLabel = "Bank postal code";
|
|
5006
|
-
/**
|
|
5007
|
-
* Default payment method to the participants’ bank account.
|
|
5008
|
-
* @uiName EFT withdrawal payment method
|
|
5009
|
-
* @uiGroup Step 4 Properties
|
|
5010
|
-
*/
|
|
5011
|
-
this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
|
|
5012
|
-
/**
|
|
5013
|
-
* @uiName FX Wire Processing fee text
|
|
5014
|
-
* @uiGroup Step 4 Properties
|
|
5015
|
-
*/
|
|
5016
|
-
this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
|
|
5017
|
-
/**
|
|
5018
|
-
* @uiName Text for verify email dialog
|
|
5019
|
-
* @uiGroup Step 4 Properties
|
|
5020
|
-
*/
|
|
5021
|
-
this.step4_verifyEmailHeaderText = "Verify your email";
|
|
5022
|
-
/**
|
|
5023
|
-
* @uiName Verify code widget header text
|
|
5024
|
-
* @uiGroup Step 4 Properties
|
|
5025
|
-
*/
|
|
5026
|
-
this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
|
|
5027
|
-
/**
|
|
5028
|
-
* @uiName Information modal title
|
|
5029
|
-
* @uiGroup Step 4 Properties
|
|
5030
|
-
*/
|
|
5031
|
-
this.step4_modalTitle = "Important Note";
|
|
5032
|
-
/**
|
|
5033
|
-
* @uiName Information modal description text
|
|
5034
|
-
* @uiGroup Step 4 Properties
|
|
5035
|
-
*/
|
|
5036
|
-
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.";
|
|
5037
|
-
/**
|
|
5038
|
-
* @uiName Information modal button text
|
|
5039
|
-
* @uiGroup Step 4 Properties
|
|
5040
|
-
*/
|
|
5041
|
-
this.step4_modalButtonText = "I understand, update my information";
|
|
5042
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
5043
|
-
DASHBOARD PROPS:
|
|
5044
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
5045
|
-
/**
|
|
5046
|
-
* @uiName Active tax form badge label
|
|
5047
|
-
* @uiGroup Dashboard Properties
|
|
5048
|
-
*/
|
|
5049
|
-
this.dashboard_statusTextActive = "Active";
|
|
5050
|
-
/**
|
|
5051
|
-
* @uiName Invalid tax form badge label
|
|
5052
|
-
* @uiGroup Dashboard Properties
|
|
5053
|
-
*/
|
|
5054
|
-
this.dashboard_statusTextNotActive = "Invalid Tax Form";
|
|
5055
|
-
/**
|
|
5056
|
-
* Displayed when the participant submitted their form but it is awaiting review.
|
|
5057
|
-
*
|
|
5058
|
-
* @uiName Not verified tax form badge label
|
|
5059
|
-
* @uiGroup Dashboard Properties
|
|
5060
|
-
*/
|
|
5061
|
-
this.dashboard_statusTextNotVerified = "Not Verified";
|
|
5062
|
-
/**
|
|
5063
|
-
* Displayed when the participant has not submitted their required tax form.
|
|
5064
|
-
*
|
|
5065
|
-
* @uiName Required tax form badge label
|
|
5066
|
-
*/
|
|
5067
|
-
this.dashboard_statusTextRequired = "Required";
|
|
5068
|
-
/**
|
|
5069
|
-
* Additional text displayed next to the tax form's status badge
|
|
5070
|
-
*
|
|
5071
|
-
* @uiName Required tax form description
|
|
5072
|
-
*/
|
|
5073
|
-
this.dashboard_requiredTaxForm = "Your payouts are on hold until you submit a {taxFormType} tax form.";
|
|
5074
|
-
/**
|
|
5075
|
-
* Additional text displayed next to the tax form's status badge
|
|
5076
|
-
*
|
|
5077
|
-
* @uiName Active W-9 description
|
|
5078
|
-
* @uiGroup Dashboard Properties
|
|
5079
|
-
*/
|
|
5080
|
-
this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
|
|
5081
|
-
/**
|
|
5082
|
-
* Additional text displayed next to the tax form's status badge.
|
|
5083
|
-
*
|
|
5084
|
-
* @uiName Active W-8 description
|
|
5085
|
-
* @uiGroup Dashboard Properties
|
|
5086
|
-
*/
|
|
5087
|
-
this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
|
|
5088
|
-
/**
|
|
5089
|
-
* Additional text displayed next to the tax form's status badge.
|
|
5090
|
-
*
|
|
5091
|
-
* @uiName Tax form in review description
|
|
5092
|
-
* @uiGroup Dashboard Properties
|
|
5093
|
-
*/
|
|
5094
|
-
this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
|
|
5095
|
-
/**
|
|
5096
|
-
* Part of the alert displayed at the top of the page.
|
|
5097
|
-
*
|
|
5098
|
-
* @uiName Inactive W-9 error message title
|
|
5099
|
-
* @uiGroup Dashboard Properties
|
|
5100
|
-
* @uiWidget textArea
|
|
5101
|
-
*/
|
|
5102
|
-
this.dashboard_taxAlertHeaderNotActiveW9 = "Your W9 tax form has personal information that doesn’t match your profile";
|
|
5103
|
-
/**
|
|
5104
|
-
* Part of the alert displayed at the top of the page.
|
|
5105
|
-
*
|
|
5106
|
-
* @uiName Inactive W-8 error message title
|
|
5107
|
-
* @uiGroup Dashboard Properties
|
|
5108
|
-
* @uiWidget textArea
|
|
5109
|
-
*/
|
|
5110
|
-
this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
|
|
5111
|
-
/**
|
|
5112
|
-
* Part of the alert displayed at the top of the page.
|
|
5113
|
-
*
|
|
5114
|
-
* @uiName Inactive W-9 error message description
|
|
5115
|
-
* @uiGroup Dashboard Properties
|
|
5116
|
-
* @uiWidget textArea
|
|
5117
|
-
*/
|
|
5118
|
-
this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
|
|
5119
|
-
/**
|
|
5120
|
-
* Part of the alert displayed at the top of the page.
|
|
5121
|
-
*
|
|
5122
|
-
* @uiName Inactive W-8 error message description
|
|
5123
|
-
* @uiGroup Dashboard Properties
|
|
5124
|
-
*/
|
|
5125
|
-
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.";
|
|
5126
|
-
/**
|
|
5127
|
-
* Additional text displayed next to the tax form's status badge.
|
|
5128
|
-
*
|
|
5129
|
-
* @uiName Invalid tax form description
|
|
5130
|
-
* @uiGroup Dashboard Properties
|
|
5131
|
-
* @uiWidget textArea
|
|
5132
|
-
*/
|
|
5133
|
-
this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
|
|
5134
|
-
/**
|
|
5135
|
-
* @uiName Payout information section header
|
|
5136
|
-
* @uiGroup Dashboard Properties
|
|
5137
|
-
*/
|
|
5138
|
-
this.dashboard_bankingInformationSectionHeader = "Payout Information";
|
|
5139
|
-
/**
|
|
5140
|
-
* @uiName Tax document section header
|
|
5141
|
-
* @uiGroup Dashboard Properties
|
|
5142
|
-
*/
|
|
5143
|
-
this.dashboard_taxDocumentSectionHeader = "Tax documents";
|
|
5144
|
-
/**
|
|
5145
|
-
* Displayed under the tax document section header.
|
|
5146
|
-
*
|
|
5147
|
-
* @uiName Tax documents section description
|
|
5148
|
-
* @uiGroup Dashboard Properties
|
|
5149
|
-
*/
|
|
5150
|
-
this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
|
|
5151
|
-
/**
|
|
5152
|
-
* No other statuses or badges will be displayed in the tax form section in this case.
|
|
5153
|
-
*
|
|
5154
|
-
* @uiName Tax form not required text
|
|
5155
|
-
* @uiGroup Dashboard Properties
|
|
5156
|
-
* @uiWidget textArea
|
|
5157
|
-
*/
|
|
5158
|
-
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.";
|
|
5159
|
-
/**
|
|
5160
|
-
*
|
|
5161
|
-
* @uiName Indirect tax section header
|
|
5162
|
-
* @uiGroup Dashboard Properties
|
|
5163
|
-
*/
|
|
5164
|
-
this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
|
|
5165
|
-
/**
|
|
5166
|
-
* If the participant is registered for indirect tax in Canada, display the province they’re registered in.
|
|
5167
|
-
*
|
|
5168
|
-
* @uiName Canadian province of indirect tax
|
|
5169
|
-
* @uiGroup Dashboard Properties
|
|
5170
|
-
*/
|
|
5171
|
-
this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
|
|
5172
|
-
/**
|
|
5173
|
-
* If the participant is registered for indirect tax, display the country they’re registered in.
|
|
5174
|
-
*
|
|
5175
|
-
* @uiName Indirect tax country
|
|
5176
|
-
* @uiGroup Dashboard Properties
|
|
5177
|
-
*/
|
|
5178
|
-
this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
|
|
5179
|
-
/**
|
|
5180
|
-
* If the participant is registered for indirect tax in Spain, display the region they’re registered in.
|
|
5181
|
-
*
|
|
5182
|
-
* @uiName Spanish region of indirect tax
|
|
5183
|
-
* @uiGroup Dashboard Properties
|
|
5184
|
-
*/
|
|
5185
|
-
this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
|
|
5186
|
-
/**
|
|
5187
|
-
* @uiName Indirect tax tooltip
|
|
5188
|
-
* @uiGroup Dashboard Properties
|
|
5189
|
-
* @uiWidget textArea
|
|
5190
|
-
*/
|
|
5191
|
-
this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
|
|
5192
|
-
/**
|
|
5193
|
-
* Displayed to participants who have submitted their indirect tax information.
|
|
5194
|
-
*
|
|
5195
|
-
* @uiName Indirect tax details
|
|
5196
|
-
* @uiGroup Dashboard Properties
|
|
5197
|
-
*/
|
|
5198
|
-
this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
|
|
5199
|
-
/**
|
|
5200
|
-
* @uiName Submit new tax form button label
|
|
5201
|
-
* @uiGroup Dashboard Properties
|
|
5202
|
-
*/
|
|
5203
|
-
this.dashboard_newFormButton = "Submit new form";
|
|
5204
|
-
/**
|
|
5205
|
-
* @uiName Edit payment info button label
|
|
5206
|
-
* @uiGroup Dashboard Properties
|
|
5207
|
-
*/
|
|
5208
|
-
this.dashboard_editPaymentInformationButton = "Edit Payout Information";
|
|
5209
|
-
/**
|
|
5210
|
-
* @uiName Not registered for indirect tax text
|
|
5211
|
-
* @uiGroup Dashboard Properties
|
|
5212
|
-
* @uiWidget textArea
|
|
5213
|
-
*/
|
|
5214
|
-
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.";
|
|
5215
|
-
/**
|
|
5216
|
-
* Displayed to participants registered in Quebec, Canada.
|
|
5217
|
-
* @uiName QST indirect tax details
|
|
5218
|
-
* @uiGroup Dashboard Properties
|
|
5219
|
-
*/
|
|
5220
|
-
this.dashboard_qstNumber = "QST number: {qstNumber}";
|
|
5221
|
-
/**
|
|
5222
|
-
* @uiName Spain sub-region indirect tax number
|
|
5223
|
-
* @uiGroup Dashboard Properties
|
|
5224
|
-
*/
|
|
5225
|
-
this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
|
|
5226
|
-
/**
|
|
5227
|
-
* @uiName Payout status badge
|
|
5228
|
-
* @uiGroup Dashboard Properties
|
|
5229
|
-
*/
|
|
5230
|
-
this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
5231
|
-
/**
|
|
5232
|
-
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
5233
|
-
* @uiName Payout schedule by threshold text
|
|
5234
|
-
* @uiGroup Dashboard Properties
|
|
5235
|
-
*/
|
|
5236
|
-
this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
5237
|
-
/**
|
|
5238
|
-
* Shown before the participant’s bank account information.
|
|
5239
|
-
* @uiName Bank account field label
|
|
5240
|
-
* @uiGroup Dashboard Properties
|
|
5241
|
-
*/
|
|
5242
|
-
this.dashboard_accountText = "Account";
|
|
5243
|
-
/**
|
|
5244
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5245
|
-
* @uiName Invoice number column title
|
|
5246
|
-
* @uiGroup Dashboard Properties
|
|
5247
|
-
*/
|
|
5248
|
-
this.dashboard_invoiceColumnTitle = "Invoice";
|
|
5249
|
-
/**
|
|
5250
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5251
|
-
* @uiName Date column title
|
|
5252
|
-
* @uiGroup Dashboard Properties
|
|
5253
|
-
*/
|
|
5254
|
-
this.dashboard_dateColumnTitle = "Date";
|
|
5255
|
-
/**
|
|
5256
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5257
|
-
* @uiName Earnings column title
|
|
5258
|
-
* @uiGroup Dashboard Properties
|
|
5259
|
-
*/
|
|
5260
|
-
this.dashboard_earningsColumnTitle = "Earnings";
|
|
5261
|
-
/**
|
|
5262
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5263
|
-
* @uiName Indirect tax column title
|
|
5264
|
-
* @uiGroup Dashboard Properties
|
|
5265
|
-
*/
|
|
5266
|
-
this.dashboard_indirectTaxColumnTitle = "Indirect tax";
|
|
5267
|
-
/**
|
|
5268
|
-
* Displayed under the payout details card.
|
|
5269
|
-
* @uiName Payout from impact text
|
|
5270
|
-
* @uiGroup Dashboard Properties
|
|
5271
|
-
* @uiWidget textArea
|
|
5272
|
-
*/
|
|
5273
|
-
this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
|
|
5274
|
-
/**
|
|
5275
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5276
|
-
* @uiName Earnings after tax column title
|
|
5277
|
-
* @uiGroup Dashboard Properties
|
|
5278
|
-
*/
|
|
5279
|
-
this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
|
|
5280
|
-
/**
|
|
5281
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5282
|
-
* @uiName Payout error message title
|
|
5283
|
-
* @uiGroup Dashboard Properties
|
|
5284
|
-
* @uiWidget textArea
|
|
5285
|
-
*/
|
|
5286
|
-
this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
|
|
5287
|
-
/**
|
|
5288
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5289
|
-
* @uiName Payout error message description
|
|
5290
|
-
* @uiGroup Dashboard Properties
|
|
5291
|
-
* @uiWidget textArea
|
|
5292
|
-
*/
|
|
5293
|
-
this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
|
|
5294
|
-
/**
|
|
5295
|
-
* Text displayed for existing publishers that do not have saved banking information.
|
|
5296
|
-
* @uiName Payout missing information subtext
|
|
5297
|
-
* @uiGroup Dashboard Properties
|
|
5298
|
-
*/
|
|
5299
|
-
this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
5300
|
-
/**
|
|
5301
|
-
* @uiName Invoice table description
|
|
5302
|
-
* @uiGroup Dashboard Properties
|
|
5303
|
-
*/
|
|
5304
|
-
this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
|
|
5305
|
-
/**
|
|
5306
|
-
* @uiName Invoice table previous page button label
|
|
5307
|
-
* @uiGroup Dashboard Properties
|
|
5308
|
-
*/
|
|
5309
|
-
this.dashboard_invoicePrevLabel = "Prev";
|
|
5310
|
-
/**
|
|
5311
|
-
* @uiName Invoice table next page button label
|
|
5312
|
-
* @uiGroup Dashboard Properties
|
|
5313
|
-
*/
|
|
5314
|
-
this.dashboard_invoiceMoreLabel = "Next";
|
|
5315
|
-
/**
|
|
5316
|
-
* @uiName Invoice table title
|
|
5317
|
-
* @uiGroup Dashboard Properties
|
|
5318
|
-
*/
|
|
5319
|
-
this.dashboard_invoiceHeader = "Invoices";
|
|
5320
|
-
/**
|
|
5321
|
-
* @uiName Empty invoice table header
|
|
5322
|
-
* @uiGroup Dashboard Properties
|
|
5323
|
-
*/
|
|
5324
|
-
this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
|
|
5325
|
-
/**
|
|
5326
|
-
* @uiName Empty invoice table description
|
|
5327
|
-
* @uiGroup Dashboard Properties
|
|
5328
|
-
*/
|
|
5329
|
-
this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
5330
|
-
/**
|
|
5331
|
-
* @uiName Replace tax form modal header
|
|
5332
|
-
* @uiGroup Dashboard Properties
|
|
5333
|
-
*/
|
|
5334
|
-
this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
|
|
5335
|
-
/**
|
|
5336
|
-
* @uiName Replace tax form modal body text
|
|
5337
|
-
* @uiGroup Dashboard Properties
|
|
5338
|
-
* @uiWidget textArea
|
|
5339
|
-
*/
|
|
5340
|
-
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.";
|
|
5341
|
-
/**
|
|
5342
|
-
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5343
|
-
* @uiName Verification required alert message title
|
|
5344
|
-
* @uiGroup Dashboard Properties
|
|
5345
|
-
* @uiWidget textArea
|
|
5346
|
-
*/
|
|
5347
|
-
this.dashboard_verificationRequiredHeader = "Verify your identity";
|
|
5348
|
-
/**
|
|
5349
|
-
* Part of the alert displayed at the top of the page when the user needs to verify their identity
|
|
5350
|
-
* @uiName Verification required alert message description
|
|
5351
|
-
* @uiGroup Dashboard Properties
|
|
5352
|
-
* @uiWidget textArea
|
|
5353
|
-
*/
|
|
5354
|
-
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}.";
|
|
5355
|
-
/**
|
|
5356
|
-
* @uiName Verification required internal alert header
|
|
5357
|
-
* @uiGroup Dashboard Properties
|
|
5358
|
-
* @uiWidget textArea
|
|
5359
|
-
*/
|
|
5360
|
-
this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
5361
|
-
/**
|
|
5362
|
-
* @uiName Verification required internal alert description
|
|
5363
|
-
* @uiGroup Dashboard Properties
|
|
5364
|
-
* @uiWidget textArea
|
|
5365
|
-
*/
|
|
5366
|
-
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}.";
|
|
5367
|
-
/**
|
|
5368
|
-
* @uiName Verification review internal alert header
|
|
5369
|
-
* @uiGroup Dashboard Properties
|
|
5370
|
-
* @uiWidget textArea
|
|
5371
|
-
*/
|
|
5372
|
-
this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
5373
|
-
/**
|
|
5374
|
-
* @uiName Verification review internal alert description
|
|
5375
|
-
* @uiGroup Dashboard Properties
|
|
5376
|
-
* @uiWidget textArea
|
|
5377
|
-
*/
|
|
5378
|
-
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}.";
|
|
5379
|
-
/**
|
|
5380
|
-
* @uiName Verification failed internal alert header
|
|
5381
|
-
* @uiGroup Dashboard Properties
|
|
5382
|
-
* @uiWidget textArea
|
|
5383
|
-
*/
|
|
5384
|
-
this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
5385
|
-
/**
|
|
5386
|
-
* @uiName Verification failed internal alert description
|
|
5387
|
-
* @uiGroup Dashboard Properties
|
|
5388
|
-
* @uiWidget textArea
|
|
5389
|
-
*/
|
|
5390
|
-
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}.";
|
|
5391
|
-
/**
|
|
5392
|
-
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5393
|
-
* @uiName Verification required alert button text
|
|
5394
|
-
* @uiGroup Dashboard Properties
|
|
5395
|
-
* @uiWidget textArea
|
|
5396
|
-
*/
|
|
5397
|
-
this.dashboard_verificationRequiredButtonText = "Start Verification";
|
|
5398
|
-
/**
|
|
5399
|
-
* @uiName W9 payment threshold alert header
|
|
5400
|
-
* @uiGroup Dashboard Properties
|
|
5401
|
-
* @uiWidget textArea
|
|
5402
|
-
*/
|
|
5403
|
-
this.dashboard_w9RequiredHeader = "Your next payout is on hold";
|
|
5404
|
-
/**
|
|
5405
|
-
* @uiName W9 payment threshold alert description
|
|
5406
|
-
* @uiGroup Dashboard Properties
|
|
5407
|
-
* @uiWidget textArea
|
|
5408
|
-
*/
|
|
5409
|
-
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.";
|
|
5410
|
-
/**
|
|
5411
|
-
* @uiName Terms and Conditions text
|
|
5412
|
-
* @uiGroup Dashboard Properties
|
|
5413
|
-
*/
|
|
5414
|
-
this.dashboard_termsAndConditions = "Terms and Conditions";
|
|
5415
|
-
/**
|
|
5416
|
-
* @uiName W9 payment threshold alert button text
|
|
5417
|
-
* @uiGroup Dashboard Properties
|
|
5418
|
-
* @uiWidget textArea
|
|
5419
|
-
*/
|
|
5420
|
-
this.dashboard_w9RequiredButtonText = "Submit W9";
|
|
5421
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
5422
|
-
GENERAL PROPS:
|
|
5423
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
5424
|
-
/**
|
|
5425
|
-
* @uiName Setup progress
|
|
5426
|
-
* @uiGroup General Form Properties
|
|
5427
|
-
*/
|
|
5428
|
-
this.formStep = "Step {step} of {count}";
|
|
5429
|
-
/**
|
|
5430
|
-
* Part of the alert displayed at the top of the page.
|
|
5431
|
-
* @uiName Form submission error message title
|
|
5432
|
-
* @uiGroup General Form Properties
|
|
5433
|
-
* @uiWidget textArea
|
|
5434
|
-
*/
|
|
5435
|
-
this.generalErrorTitle = "There was a problem submitting your information";
|
|
5436
|
-
/**
|
|
5437
|
-
* Part of the alert displayed at the top of the page.
|
|
5438
|
-
* @uiName Form submission error message description
|
|
5439
|
-
* @uiGroup General Form Properties
|
|
5440
|
-
* @uiWidget textArea
|
|
5441
|
-
*/
|
|
5442
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
5443
|
-
/**
|
|
5444
|
-
* Displayed under a field that is missing required information.
|
|
5445
|
-
* @uiName Empty form field error message
|
|
5446
|
-
* @uiGroup General Form Properties
|
|
5447
|
-
*/
|
|
5448
|
-
this.fieldRequiredError = "{fieldName} is required";
|
|
5449
|
-
/**
|
|
5450
|
-
* Displayed under a field that includes invalid characters (non-ASCII).
|
|
5451
|
-
* @uiName Invalid character error message
|
|
5452
|
-
* @uiGroup General Form Properties
|
|
5453
|
-
*/
|
|
5454
|
-
this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
|
|
5455
|
-
/**
|
|
5456
|
-
* Displayed under a field when it has an invalid entry.
|
|
5457
|
-
* @uiName Form field error message
|
|
5458
|
-
* @uiGroup General Form Properties
|
|
5459
|
-
*/
|
|
5460
|
-
this.fieldInvalidError = "{fieldName} is invalid";
|
|
5461
|
-
/**
|
|
5462
|
-
* @uiName Continue button label
|
|
5463
|
-
* @uiGroup General Form Properties
|
|
5464
|
-
*/
|
|
5465
|
-
this.continueButton = "Continue";
|
|
5466
|
-
/**
|
|
5467
|
-
* @uiName Back button label
|
|
5468
|
-
* @uiGroup General Form Properties
|
|
5469
|
-
*/
|
|
5470
|
-
this.backButton = "Back";
|
|
5471
|
-
/**
|
|
5472
|
-
* @uiName Cancel button label
|
|
5473
|
-
* @uiGroup General Form Properties
|
|
5474
|
-
*/
|
|
5475
|
-
this.cancelButton = "Cancel";
|
|
5476
|
-
/**
|
|
5477
|
-
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5478
|
-
* @uiName Participant is a partner alert title
|
|
5479
|
-
* @uiGroup General Form Properties
|
|
5480
|
-
* @uiWidget textArea
|
|
5481
|
-
*/
|
|
5482
|
-
this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
|
|
5483
|
-
/**
|
|
5484
|
-
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5485
|
-
* @uiName Participant is a partner alert description
|
|
5486
|
-
* @uiGroup General Form Properties
|
|
5487
|
-
* @uiWidget textArea
|
|
5488
|
-
*/
|
|
5489
|
-
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.";
|
|
5490
|
-
/**
|
|
5491
|
-
* Placeholder text displayed in the country search dropdown
|
|
5492
|
-
* @uiName Country field placeholder text
|
|
5493
|
-
* @uiGroup General Form Properties
|
|
5494
|
-
*/
|
|
5495
|
-
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);
|
|
5496
3645
|
/**
|
|
5497
|
-
*
|
|
5498
|
-
* @uiName
|
|
5499
|
-
* @uiGroup General Form Properties
|
|
5500
|
-
* @uiWidget textArea
|
|
3646
|
+
* Badge text indicating payout status
|
|
3647
|
+
* @uiName Payout badge status text
|
|
5501
3648
|
*/
|
|
5502
|
-
this.
|
|
3649
|
+
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
5503
3650
|
/**
|
|
5504
|
-
*
|
|
5505
|
-
* @uiName
|
|
5506
|
-
* @uiGroup General Form Properties
|
|
5507
|
-
* @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
|
|
5508
3653
|
*/
|
|
5509
|
-
this.
|
|
3654
|
+
this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
5510
3655
|
/**
|
|
5511
|
-
*
|
|
5512
|
-
* @uiName
|
|
5513
|
-
* @uiGroup General Form Properties
|
|
3656
|
+
* Shown before the participant’s bank account information.
|
|
3657
|
+
* @uiName Bank account field label
|
|
5514
3658
|
*/
|
|
5515
|
-
this.
|
|
3659
|
+
this.accountText = "Account";
|
|
5516
3660
|
/**
|
|
5517
|
-
*
|
|
5518
|
-
* @uiName
|
|
5519
|
-
* @uiGroup General Form Properties
|
|
3661
|
+
* Text displayed for existing publishers that do not have saved banking information.
|
|
3662
|
+
* @uiName Payout missing information subtext
|
|
5520
3663
|
*/
|
|
5521
|
-
this.
|
|
3664
|
+
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
5522
3665
|
/**
|
|
5523
|
-
*
|
|
5524
|
-
* @uiName Terms and Conditions text
|
|
5525
|
-
* @uiGroup General Form Properties
|
|
3666
|
+
* @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
|
|
5526
3667
|
*/
|
|
5527
|
-
this.
|
|
3668
|
+
this.stateController = "{}";
|
|
5528
3669
|
h$1(this);
|
|
5529
3670
|
}
|
|
5530
3671
|
disconnectedCallback() { }
|
|
5531
|
-
|
|
5532
|
-
getGeneralStepTextProps(prefix) {
|
|
3672
|
+
getTextProps() {
|
|
5533
3673
|
const props = getProps(this);
|
|
5534
3674
|
return {
|
|
5535
|
-
...
|
|
5536
|
-
generalErrorTitle: props.generalErrorTitle,
|
|
5537
|
-
generalErrorDescription: props.generalErrorDescription,
|
|
5538
|
-
fieldRequiredError: props.fieldRequiredError,
|
|
5539
|
-
invalidCharacterError: props.invalidCharacterError,
|
|
5540
|
-
fieldInvalidError: props.fieldInvalidError,
|
|
5541
|
-
continueButton: props.continueButton,
|
|
5542
|
-
backButton: props.backButton,
|
|
5543
|
-
cancelButton: props.cancelButton,
|
|
5544
|
-
isPartnerAlertHeader: props.isPartnerAlertHeader,
|
|
5545
|
-
isPartnerAlertDescription: props.isPartnerAlertDescription,
|
|
5546
|
-
loadingErrorAlertHeader: props.loadingErrorAlertHeader,
|
|
5547
|
-
loadingErrorAlertDescription: props.loadingErrorAlertDescription,
|
|
5548
|
-
taxAndPayoutsDescription: props.taxAndPayoutsDescription,
|
|
5549
|
-
searchForCountryText: props.searchForCountryText,
|
|
5550
|
-
formStep: props.formStep,
|
|
5551
|
-
supportLink: props.supportLink,
|
|
3675
|
+
...props,
|
|
5552
3676
|
};
|
|
5553
3677
|
}
|
|
5554
3678
|
render() {
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
const textProps = getProps(this);
|
|
5560
|
-
return (h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
|
|
5561
|
-
if (prop === "demoData")
|
|
5562
|
-
return;
|
|
5563
|
-
return (h("div", null, h("b", null, prop, ":"), " ", this[prop], h("hr", null)));
|
|
5564
|
-
})));
|
|
5565
|
-
}
|
|
5566
|
-
switch (props.step) {
|
|
5567
|
-
case "/1":
|
|
5568
|
-
return (h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
|
|
5569
|
-
case "/2":
|
|
5570
|
-
return (h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
|
|
5571
|
-
case "/3":
|
|
5572
|
-
return (h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
|
|
5573
|
-
case "/4":
|
|
5574
|
-
return (h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
5575
|
-
case "/dashboard":
|
|
5576
|
-
return (h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
5577
|
-
case "/error":
|
|
5578
|
-
return (h(ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
|
|
5579
|
-
}
|
|
5580
|
-
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 })));
|
|
5581
3683
|
}
|
|
5582
3684
|
};
|
|
5583
|
-
function
|
|
5584
|
-
const [step, setStep] = In({
|
|
5585
|
-
namespace: TAX_CONTEXT_NAMESPACE,
|
|
5586
|
-
initialValue: "/1",
|
|
5587
|
-
});
|
|
3685
|
+
function useDemoPayoutDetailsCard(props) {
|
|
5588
3686
|
return cjs({
|
|
5589
|
-
|
|
5590
|
-
|
|
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(),
|
|
5591
3703
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
5592
3704
|
}
|
|
5593
3705
|
|
|
5594
|
-
const style$
|
|
3706
|
+
const style$5 = {
|
|
5595
3707
|
ErrorAlertContainer: {
|
|
5596
3708
|
"&::part(base)": {
|
|
5597
3709
|
backgroundColor: "var(--sl-color-red-100)",
|
|
@@ -5782,27 +3894,44 @@ const style$6 = {
|
|
|
5782
3894
|
},
|
|
5783
3895
|
DialogButton: { margin: "auto", width: "100%" },
|
|
5784
3896
|
};
|
|
5785
|
-
const sheet$
|
|
5786
|
-
const styleString$
|
|
3897
|
+
const sheet$4 = createStyleSheet(style$5);
|
|
3898
|
+
const styleString$4 = sheet$4.toString();
|
|
5787
3899
|
const TaxAndCashDashboardView = (props) => {
|
|
5788
3900
|
var _a;
|
|
5789
3901
|
const { states, text, callbacks, slots } = props;
|
|
5790
3902
|
function getAlert(status) {
|
|
5791
3903
|
switch (status) {
|
|
5792
3904
|
case "OVER_W9_THRESHOLD":
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
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
|
+
}
|
|
5806
3935
|
case "VERIFICATION:REQUIRED":
|
|
5807
3936
|
return {
|
|
5808
3937
|
header: text.verificationRequiredHeader,
|
|
@@ -5815,7 +3944,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5815
3944
|
buttonText: text.verificationRequiredButtonText,
|
|
5816
3945
|
alertType: "warning",
|
|
5817
3946
|
icon: "exclamation-triangle",
|
|
5818
|
-
class: sheet$
|
|
3947
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5819
3948
|
};
|
|
5820
3949
|
case "VERIFICATION:INTERNAL":
|
|
5821
3950
|
return {
|
|
@@ -5828,7 +3957,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5828
3957
|
}),
|
|
5829
3958
|
alertType: "warning",
|
|
5830
3959
|
icon: "exclamation-triangle",
|
|
5831
|
-
class: sheet$
|
|
3960
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5832
3961
|
};
|
|
5833
3962
|
case "VERIFICATION:REVIEW":
|
|
5834
3963
|
return {
|
|
@@ -5841,7 +3970,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5841
3970
|
}),
|
|
5842
3971
|
alertType: "warning",
|
|
5843
3972
|
icon: "exclamation-triangle",
|
|
5844
|
-
class: sheet$
|
|
3973
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5845
3974
|
};
|
|
5846
3975
|
case "VERIFICATION:FAILED":
|
|
5847
3976
|
return {
|
|
@@ -5852,9 +3981,23 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5852
3981
|
}, {
|
|
5853
3982
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5854
3983
|
}),
|
|
5855
|
-
alertType: "
|
|
3984
|
+
alertType: "error",
|
|
5856
3985
|
icon: "exclamation-octagon",
|
|
5857
|
-
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,
|
|
5858
4001
|
};
|
|
5859
4002
|
case "HOLD":
|
|
5860
4003
|
return {
|
|
@@ -5868,14 +4011,14 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5868
4011
|
buttonText: null,
|
|
5869
4012
|
alertType: "warning",
|
|
5870
4013
|
icon: "exclamation-triangle",
|
|
5871
|
-
class: sheet$
|
|
4014
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5872
4015
|
};
|
|
5873
4016
|
default:
|
|
5874
4017
|
return;
|
|
5875
4018
|
}
|
|
5876
4019
|
}
|
|
5877
4020
|
const statusMap = {
|
|
5878
|
-
NOT_VERIFIED: (h("div", { class: sheet$
|
|
4021
|
+
NOT_VERIFIED: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5879
4022
|
h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
5880
4023
|
h("p", null, intl.formatMessage({
|
|
5881
4024
|
id: `badgeTextAwaitingReview`,
|
|
@@ -5883,7 +4026,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5883
4026
|
}, {
|
|
5884
4027
|
dateSubmitted: states.dateSubmitted,
|
|
5885
4028
|
})))),
|
|
5886
|
-
ACTIVE: (h("div", { class: sheet$
|
|
4029
|
+
ACTIVE: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5887
4030
|
h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
5888
4031
|
h("p", null, intl.formatMessage({
|
|
5889
4032
|
id: `badgeTextSubmittedOn`,
|
|
@@ -5893,10 +4036,10 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5893
4036
|
}, {
|
|
5894
4037
|
dateSubmitted: states.dateSubmitted,
|
|
5895
4038
|
})))),
|
|
5896
|
-
INACTIVE: (h("div", { class: sheet$
|
|
4039
|
+
INACTIVE: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5897
4040
|
h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
5898
4041
|
h("p", null, text.invalidForm))),
|
|
5899
|
-
undefined: (h("div", { class: sheet$
|
|
4042
|
+
undefined: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5900
4043
|
h("sl-badge", { type: "danger", pill: true }, text.statusTextRequired),
|
|
5901
4044
|
h("p", null, intl.formatMessage({
|
|
5902
4045
|
id: `requiredTaxForm`,
|
|
@@ -5906,7 +4049,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5906
4049
|
})))),
|
|
5907
4050
|
};
|
|
5908
4051
|
const alertMap = {
|
|
5909
|
-
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 },
|
|
5910
4053
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5911
4054
|
h("strong", null, intl.formatMessage({
|
|
5912
4055
|
id: `taxAlertHeaderNotActive`,
|
|
@@ -5957,9 +4100,9 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5957
4100
|
const alertInfo = getAlert(states.payoutStatus);
|
|
5958
4101
|
return (h("div", null,
|
|
5959
4102
|
h("div", null,
|
|
5960
|
-
h("style", { type: "text/css" }, styleString$
|
|
4103
|
+
h("style", { type: "text/css" }, styleString$4),
|
|
5961
4104
|
states.loadingError && (h("div", null,
|
|
5962
|
-
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 },
|
|
5963
4106
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5964
4107
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5965
4108
|
h("br", null),
|
|
@@ -5969,7 +4112,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5969
4112
|
}, {
|
|
5970
4113
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5971
4114
|
})))),
|
|
5972
|
-
((_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 },
|
|
5973
4116
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5974
4117
|
h("strong", null, text.error.generalTitle),
|
|
5975
4118
|
h("br", null),
|
|
@@ -5985,48 +4128,48 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5985
4128
|
h("p", { style: { margin: "0" } }, alertInfo.description),
|
|
5986
4129
|
alertInfo.buttonText && (h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, alertInfo.buttonText)),
|
|
5987
4130
|
alertInfo.button ? (alertInfo.button) : (h("div", { style: { display: "none" } })))),
|
|
5988
|
-
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 },
|
|
5989
4132
|
h("p", null, text.replaceTaxFormModalBodyText),
|
|
5990
|
-
h("sl-button", { slot: "footer", type: "primary", class: sheet$
|
|
5991
|
-
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)),
|
|
5992
4135
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
5993
4136
|
h("div", null,
|
|
5994
4137
|
h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
5995
|
-
h("
|
|
5996
|
-
h("div", { class: sheet$5.classes.BankingInformationContainer },
|
|
4138
|
+
h("div", { class: sheet$4.classes.BankingInformationContainer },
|
|
5997
4139
|
slots.payoutDetailsCardSlot,
|
|
5998
|
-
!states.loading && (h("p", { class: sheet$
|
|
5999
|
-
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$
|
|
6000
|
-
!states.noFormNeeded && (h("div", { class: sheet$
|
|
6001
|
-
h("div", null, states.loading ? (h("div", { class: sheet$
|
|
6002
|
-
h("sl-skeleton", { class: sheet$
|
|
6003
|
-
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,
|
|
6004
4146
|
h("div", null,
|
|
6005
|
-
h("span", { class: sheet$
|
|
6006
|
-
h("div", { class: sheet$
|
|
4147
|
+
h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4148
|
+
h("div", { class: sheet$4.classes.StatusContainer },
|
|
6007
4149
|
h("h3", null, intl.formatMessage({
|
|
6008
4150
|
id: "section-subheader",
|
|
6009
4151
|
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
6010
4152
|
}, {
|
|
6011
|
-
documentType: states.documentTypeString,
|
|
4153
|
+
documentType: states.documentTypeString || "W-9",
|
|
6012
4154
|
})),
|
|
6013
|
-
h("span", { class: sheet$
|
|
6014
|
-
states.
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
h("sl-skeleton", { class: sheet$
|
|
6018
|
-
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 },
|
|
6019
4162
|
text.indirectTaxInfoSectionHeader,
|
|
6020
|
-
h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$
|
|
6021
|
-
h("sl-icon", { name: "info-circle", class: sheet$
|
|
6022
|
-
h("div", { class: sheet$
|
|
6023
|
-
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({
|
|
6024
4167
|
id: "notRegisteredForTax",
|
|
6025
4168
|
defaultMessage: text.notRegisteredForTax,
|
|
6026
4169
|
}, {
|
|
6027
4170
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
6028
4171
|
}))) : (getIndirectTaxRegisteredIn())),
|
|
6029
|
-
!states.notRegistered && (h("div", { class: sheet$
|
|
4172
|
+
!states.notRegistered && (h("div", { class: sheet$4.classes.TaxNumberContainer },
|
|
6030
4173
|
h("span", null, intl.formatMessage({
|
|
6031
4174
|
id: `indirectTaxDetails`,
|
|
6032
4175
|
defaultMessage: text.indirectTaxDetails,
|
|
@@ -6049,7 +4192,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
6049
4192
|
}, {
|
|
6050
4193
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
6051
4194
|
})))),
|
|
6052
|
-
!states.notRegistered && (h("div", { class: sheet$
|
|
4195
|
+
!states.notRegistered && (h("div", { class: sheet$4.classes.InvoiceTableContainer },
|
|
6053
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 },
|
|
6054
4197
|
h("sqm-invoice-table-download-column", null),
|
|
6055
4198
|
h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
@@ -6059,6 +4202,13 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
6059
4202
|
h("sqm-invoice-table-data-column", { "column-title": text.earningsAfterTaxColumnTitle, property: "netEarnings" })))))))))));
|
|
6060
4203
|
};
|
|
6061
4204
|
|
|
4205
|
+
const GET_TAX_SETTING = dist.gql `
|
|
4206
|
+
query getTenantSettings {
|
|
4207
|
+
tenantSettings {
|
|
4208
|
+
enforceUsTaxCompliance
|
|
4209
|
+
}
|
|
4210
|
+
}
|
|
4211
|
+
`;
|
|
6062
4212
|
function getCountryName(countryCode, locale) {
|
|
6063
4213
|
if (!countryCode)
|
|
6064
4214
|
return undefined;
|
|
@@ -6094,11 +4244,12 @@ function getIndirectTaxType(taxInformation) {
|
|
|
6094
4244
|
return "Indirect Tax";
|
|
6095
4245
|
}
|
|
6096
4246
|
const useTaxAndCashDashboard = (props) => {
|
|
6097
|
-
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;
|
|
6098
4248
|
const setStep = En(TAX_CONTEXT_NAMESPACE);
|
|
6099
4249
|
const setContext = En(TAX_FORM_CONTEXT_NAMESPACE);
|
|
6100
4250
|
const [showDialog, setShowDialog] = useState(false);
|
|
6101
4251
|
const { render, loading: veriffLoading, errors: veriffErrors, } = useVeriffApp();
|
|
4252
|
+
const { data: taxSettingRes } = wn(GET_TAX_SETTING, {});
|
|
6102
4253
|
const locale = L();
|
|
6103
4254
|
useEffect(() => {
|
|
6104
4255
|
// Clear override context once on submitted
|
|
@@ -6139,30 +4290,32 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
6139
4290
|
window.removeEventListener(VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
6140
4291
|
};
|
|
6141
4292
|
}, []);
|
|
4293
|
+
const enforceUsTaxComplianceOption = (_e = taxSettingRes === null || taxSettingRes === void 0 ? void 0 : taxSettingRes.tenantSettings) === null || _e === void 0 ? void 0 : _e.enforceUsTaxCompliance;
|
|
6142
4294
|
return {
|
|
6143
4295
|
states: {
|
|
6144
4296
|
dateSubmitted,
|
|
6145
4297
|
documentType,
|
|
6146
4298
|
canEditPayoutInfo: publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup,
|
|
6147
4299
|
documentTypeString: taxTypeToName(documentType),
|
|
6148
|
-
status: (
|
|
6149
|
-
subRegion: getSubRegionName((
|
|
6150
|
-
subRegionTaxNumber: (
|
|
6151
|
-
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,
|
|
6152
4304
|
indirectTaxType: getIndirectTaxType(publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation),
|
|
6153
|
-
indirectTaxNumber: (
|
|
4305
|
+
indirectTaxNumber: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _k === void 0 ? void 0 : _k.indirectTaxId,
|
|
6154
4306
|
isBusinessEntity: (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) === "W8BENE",
|
|
6155
4307
|
province: provinceName,
|
|
6156
|
-
country: getCountryName((
|
|
6157
|
-
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),
|
|
6158
4310
|
noFormNeeded: !documentType,
|
|
6159
4311
|
disabled: loading,
|
|
6160
4312
|
loading,
|
|
6161
4313
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
6162
4314
|
showNewFormDialog: showDialog,
|
|
6163
|
-
hasHold: !!((
|
|
4315
|
+
hasHold: !!((_o = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _o === void 0 ? void 0 : _o.hold),
|
|
6164
4316
|
payoutStatus,
|
|
6165
4317
|
veriffLoading,
|
|
4318
|
+
enforceUsTaxComplianceOption,
|
|
6166
4319
|
},
|
|
6167
4320
|
callbacks: {
|
|
6168
4321
|
onClick: () => setShowDialog(true),
|
|
@@ -6228,7 +4381,7 @@ const TaxAndCashDashboard = class {
|
|
|
6228
4381
|
* @uiName Inactive W-9 error message title
|
|
6229
4382
|
* @uiWidget textArea
|
|
6230
4383
|
*/
|
|
6231
|
-
this.taxAlertHeaderNotActiveW9 = "Your
|
|
4384
|
+
this.taxAlertHeaderNotActiveW9 = "Your W-9 tax form has personal information that doesn’t match your profile";
|
|
6232
4385
|
/**
|
|
6233
4386
|
* Part of the alert displayed at the top of the page.
|
|
6234
4387
|
*
|
|
@@ -6400,21 +4553,29 @@ const TaxAndCashDashboard = class {
|
|
|
6400
4553
|
*/
|
|
6401
4554
|
this.verificationRequiredButtonText = "Start Verification";
|
|
6402
4555
|
/**
|
|
6403
|
-
* @uiName
|
|
4556
|
+
* @uiName W-9 payment threshold alert header
|
|
6404
4557
|
*/
|
|
6405
4558
|
this.w9RequiredHeader = "Your next payout is on hold";
|
|
6406
4559
|
/**
|
|
6407
|
-
* @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
|
|
6408
4569
|
*/
|
|
6409
|
-
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}.";
|
|
6410
4571
|
/**
|
|
6411
4572
|
* @uiName Terms and Conditions text
|
|
6412
4573
|
*/
|
|
6413
4574
|
this.termsAndConditions = "Terms and Conditions";
|
|
6414
4575
|
/**
|
|
6415
|
-
* @uiName
|
|
4576
|
+
* @uiName W-9 payment threshold alert button text
|
|
6416
4577
|
*/
|
|
6417
|
-
this.w9RequiredButtonText = "Submit
|
|
4578
|
+
this.w9RequiredButtonText = "Submit W-9";
|
|
6418
4579
|
/**
|
|
6419
4580
|
* Part of the alert displayed at the top of the page.
|
|
6420
4581
|
* @uiName Form submission error message title
|
|
@@ -6482,11 +4643,6 @@ const TaxAndCashDashboard = class {
|
|
|
6482
4643
|
this.invoiceEmptyStateHeader = "View your invoice details";
|
|
6483
4644
|
/** @uiName Empty invoice table description */
|
|
6484
4645
|
this.invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
6485
|
-
/**
|
|
6486
|
-
* Displayed at the top of the page on all set up steps and on the dashboard.
|
|
6487
|
-
* @uiName Page description
|
|
6488
|
-
*/
|
|
6489
|
-
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
6490
4646
|
/**
|
|
6491
4647
|
* @uiName Replace tax form modal header
|
|
6492
4648
|
*/
|
|
@@ -6503,6 +4659,11 @@ const TaxAndCashDashboard = class {
|
|
|
6503
4659
|
* @uiName Cancel button label
|
|
6504
4660
|
*/
|
|
6505
4661
|
this.cancelButton = "Cancel";
|
|
4662
|
+
/**
|
|
4663
|
+
* @undocumented
|
|
4664
|
+
* @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "uiGroup": "Dashboard Properties" }
|
|
4665
|
+
*/
|
|
4666
|
+
this.stateController = "{}";
|
|
6506
4667
|
h$1(this);
|
|
6507
4668
|
}
|
|
6508
4669
|
disconnectedCallback() { }
|
|
@@ -6528,23 +4689,32 @@ const TaxAndCashDashboard = class {
|
|
|
6528
4689
|
}
|
|
6529
4690
|
};
|
|
6530
4691
|
function useDemoTaxAndCashDashboard(props) {
|
|
4692
|
+
console.log("dashboard", { props });
|
|
4693
|
+
// @ts-ignore
|
|
6531
4694
|
return cjs({
|
|
6532
4695
|
states: {
|
|
6533
4696
|
dateSubmitted: "today",
|
|
6534
4697
|
documentType: "W9",
|
|
6535
|
-
documentTypeString: "
|
|
4698
|
+
documentTypeString: "W-9",
|
|
6536
4699
|
status: "ACTIVE",
|
|
6537
4700
|
country: "United States",
|
|
6538
|
-
indirectTaxNumber: 55555555,
|
|
4701
|
+
indirectTaxNumber: "55555555",
|
|
6539
4702
|
indirectTaxType: "Indirect Tax",
|
|
6540
|
-
noFormNeeded:
|
|
4703
|
+
noFormNeeded: false,
|
|
6541
4704
|
disabled: false,
|
|
6542
4705
|
loading: false,
|
|
6543
4706
|
showNewFormDialog: false,
|
|
6544
4707
|
hasHold: false,
|
|
6545
|
-
|
|
4708
|
+
subRegion: "CA",
|
|
4709
|
+
subRegionTaxNumber: undefined,
|
|
4710
|
+
qstNumber: undefined,
|
|
4711
|
+
isBusinessEntity: false,
|
|
4712
|
+
province: undefined,
|
|
4713
|
+
notRegistered: true,
|
|
4714
|
+
loadingError: false,
|
|
6546
4715
|
payoutStatus: "DONE",
|
|
6547
4716
|
veriffLoading: false,
|
|
4717
|
+
canEditPayoutInfo: true,
|
|
6548
4718
|
},
|
|
6549
4719
|
callbacks: {
|
|
6550
4720
|
onClick: () => console.debug("check step"),
|
|
@@ -6554,7 +4724,14 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
6554
4724
|
onVerifyClick: () => console.log("verify"),
|
|
6555
4725
|
},
|
|
6556
4726
|
text: props.getTextProps(),
|
|
6557
|
-
|
|
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 });
|
|
6558
4735
|
}
|
|
6559
4736
|
|
|
6560
4737
|
const PHONE_EXTENSIONS = {
|
|
@@ -7528,19 +5705,19 @@ const PHONE_EXTENSIONS = {
|
|
|
7528
5705
|
},
|
|
7529
5706
|
};
|
|
7530
5707
|
|
|
7531
|
-
const style$
|
|
5708
|
+
const style$6 = {
|
|
7532
5709
|
FormWrapper: {},
|
|
7533
5710
|
ErrorInput: {
|
|
7534
5711
|
"&::part(base)": {
|
|
7535
|
-
border: "1px solid var(--
|
|
5712
|
+
border: "var(--sqm-border-thickness, 1px) solid var(--sqm-danger-color-border)",
|
|
7536
5713
|
borderRadius: "var(--sl-input-border-radius-medium)",
|
|
7537
5714
|
},
|
|
7538
5715
|
"&::part(help-text)": {
|
|
7539
|
-
color: "var(--
|
|
5716
|
+
color: "var(--sqm-danger-color-text)",
|
|
7540
5717
|
},
|
|
7541
5718
|
},
|
|
7542
5719
|
ErrorText: {
|
|
7543
|
-
color: "var(--
|
|
5720
|
+
color: "var(--sqm-danger-color-text)",
|
|
7544
5721
|
marginTop: "10px",
|
|
7545
5722
|
},
|
|
7546
5723
|
TextContainer: {
|
|
@@ -7571,9 +5748,6 @@ const style$7 = {
|
|
|
7571
5748
|
justifyContent: "flex-start",
|
|
7572
5749
|
flexDirection: "column",
|
|
7573
5750
|
},
|
|
7574
|
-
DescriptionText: {
|
|
7575
|
-
color: "var(--sl-color-neutral-500)",
|
|
7576
|
-
},
|
|
7577
5751
|
BoldText: {
|
|
7578
5752
|
fontWeight: "bold",
|
|
7579
5753
|
},
|
|
@@ -7582,28 +5756,8 @@ const style$7 = {
|
|
|
7582
5756
|
borderRadius: "50%",
|
|
7583
5757
|
},
|
|
7584
5758
|
},
|
|
7585
|
-
AlertContainer: {
|
|
7586
|
-
"&::part(base)": {
|
|
7587
|
-
backgroundColor: "var(--sl-color-red-100)",
|
|
7588
|
-
borderTop: "none",
|
|
7589
|
-
padding: "0 16px",
|
|
7590
|
-
},
|
|
7591
|
-
"& sl-icon::part(base)": {
|
|
7592
|
-
color: "var(--sl-color-danger-500)",
|
|
7593
|
-
},
|
|
7594
|
-
},
|
|
7595
|
-
PartnerAlertContainer: {
|
|
7596
|
-
"&::part(base)": {
|
|
7597
|
-
backgroundColor: "var(--sl-color-sky-100)",
|
|
7598
|
-
borderTop: "none",
|
|
7599
|
-
padding: "0 16px",
|
|
7600
|
-
},
|
|
7601
|
-
"& sl-icon::part(base)": {
|
|
7602
|
-
color: "var(--sl-color-blue-500)",
|
|
7603
|
-
},
|
|
7604
|
-
},
|
|
7605
5759
|
PageDescriptionText: {
|
|
7606
|
-
color: "var(--
|
|
5760
|
+
color: "var(--sqm-text-subdued)",
|
|
7607
5761
|
fontSize: "var(--sl-font-size-medium)",
|
|
7608
5762
|
},
|
|
7609
5763
|
PhoneInputsSection: {
|
|
@@ -7612,7 +5766,7 @@ const style$7 = {
|
|
|
7612
5766
|
gap: "4px",
|
|
7613
5767
|
"& p": {
|
|
7614
5768
|
fontSize: "var(--sl-font-size-small)",
|
|
7615
|
-
color: "var(--
|
|
5769
|
+
color: "var(--sqm-input-label-color)",
|
|
7616
5770
|
fontWeight: "var(--sl-font-weight-semibold)",
|
|
7617
5771
|
},
|
|
7618
5772
|
},
|
|
@@ -7626,9 +5780,9 @@ const style$7 = {
|
|
|
7626
5780
|
},
|
|
7627
5781
|
},
|
|
7628
5782
|
};
|
|
7629
|
-
const sheet$
|
|
7630
|
-
const styleString$
|
|
7631
|
-
const vanillaStyle$
|
|
5783
|
+
const sheet$5 = createStyleSheet(style$6);
|
|
5784
|
+
const styleString$5 = sheet$5.toString();
|
|
5785
|
+
const vanillaStyle$3 = `
|
|
7632
5786
|
:host{
|
|
7633
5787
|
display: block;
|
|
7634
5788
|
}
|
|
@@ -7637,11 +5791,15 @@ const vanillaStyle$4 = `
|
|
|
7637
5791
|
padding: 0;
|
|
7638
5792
|
box-sizing: border-box;
|
|
7639
5793
|
}
|
|
5794
|
+
a {
|
|
5795
|
+
color: var(--sqm-text);
|
|
5796
|
+
color: inherit !important;
|
|
5797
|
+
text-decoration: underline;
|
|
5798
|
+
}
|
|
7640
5799
|
|
|
7641
5800
|
p {
|
|
7642
5801
|
line-height: 18px;
|
|
7643
|
-
|
|
7644
|
-
font-size: var(--sl-font-size-small);
|
|
5802
|
+
font-size: var(--sl-font-size-small);
|
|
7645
5803
|
}
|
|
7646
5804
|
|
|
7647
5805
|
sl-radio-group::part(base) {
|
|
@@ -7652,11 +5810,163 @@ const vanillaStyle$4 = `
|
|
|
7652
5810
|
sl-select#phoneNumberCountryCode::part(menu) {
|
|
7653
5811
|
min-width: 250px;
|
|
7654
5812
|
}
|
|
7655
|
-
|
|
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
|
+
`;
|
|
7656
5966
|
const UserInfoFormView = (props) => {
|
|
7657
5967
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
7658
5968
|
const { states, states: { formState }, callbacks, text, refs, data, } = props;
|
|
7659
|
-
const { classes } = sheet$
|
|
5969
|
+
const { classes } = sheet$5;
|
|
7660
5970
|
const bankingCollectionText = intl.formatMessage({
|
|
7661
5971
|
id: "bankingCollectionText",
|
|
7662
5972
|
defaultMessage: text.allowBankingCollection,
|
|
@@ -7679,21 +5989,18 @@ const UserInfoFormView = (props) => {
|
|
|
7679
5989
|
}
|
|
7680
5990
|
return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
7681
5991
|
h("style", { type: "text/css" },
|
|
7682
|
-
styleString$
|
|
7683
|
-
vanillaStyle$
|
|
5992
|
+
styleString$5,
|
|
5993
|
+
vanillaStyle$3),
|
|
7684
5994
|
states.loadingError && (h("div", null,
|
|
7685
|
-
h("
|
|
7686
|
-
h("
|
|
7687
|
-
h("
|
|
7688
|
-
h("br", null),
|
|
7689
|
-
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({
|
|
7690
5998
|
id: "loadingErrorAlertDescription",
|
|
7691
5999
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
7692
6000
|
}, {
|
|
7693
6001
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7694
|
-
})),
|
|
7695
|
-
|
|
7696
|
-
states.loading ? (h(GeneralLoadingView, null)) : (h("div", null,
|
|
6002
|
+
}))))),
|
|
6003
|
+
states.loading ? (h(LoadingView, null)) : (h("div", null,
|
|
7697
6004
|
h("div", { class: classes.TextContainer },
|
|
7698
6005
|
h("div", null,
|
|
7699
6006
|
!states.hideSteps && (h("p", null, intl.formatMessage({
|
|
@@ -7702,29 +6009,25 @@ const UserInfoFormView = (props) => {
|
|
|
7702
6009
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
7703
6010
|
h("h3", null, text.personalInformation),
|
|
7704
6011
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
7705
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("
|
|
7706
|
-
h("
|
|
7707
|
-
h("
|
|
7708
|
-
h("br", null),
|
|
7709
|
-
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({
|
|
7710
6015
|
id: "generalDescription",
|
|
7711
6016
|
defaultMessage: text.error.generalDescription,
|
|
7712
6017
|
}, {
|
|
7713
6018
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7714
|
-
}))),
|
|
7715
|
-
(states.isPartner || states.isUser) && (h("
|
|
7716
|
-
h("
|
|
7717
|
-
h("
|
|
7718
|
-
h("br", null),
|
|
7719
|
-
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({
|
|
7720
6023
|
id: "isPartnerAlertDescription",
|
|
7721
6024
|
defaultMessage: text.isPartnerAlertDescription,
|
|
7722
6025
|
}, {
|
|
7723
6026
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7724
|
-
}))),
|
|
6027
|
+
})))),
|
|
7725
6028
|
h("div", null,
|
|
7726
6029
|
h("div", { class: classes.InputContainer },
|
|
7727
|
-
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) ? {
|
|
7728
6031
|
class: classes.ErrorInput,
|
|
7729
6032
|
helpText: formatErrorMessage(text.firstName, formState.errors.firstName),
|
|
7730
6033
|
}
|
|
@@ -7828,7 +6131,7 @@ const UserInfoFormView = (props) => {
|
|
|
7828
6131
|
" - ",
|
|
7829
6132
|
c.displayName)))),
|
|
7830
6133
|
h("div", { class: classes.CheckboxWrapper },
|
|
7831
|
-
h("sl-checkbox", {
|
|
6134
|
+
h("sl-checkbox", { checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
7832
6135
|
e.target.value = e.target.checked;
|
|
7833
6136
|
}, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
|
|
7834
6137
|
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (h("p", { class: classes.ErrorText }, formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
|
|
@@ -7854,6 +6157,10 @@ function useUserInfoForm(props) {
|
|
|
7854
6157
|
const [currencySearch, setCurrencySearch] = useState("");
|
|
7855
6158
|
const [filteredCurrencies, setFilteredCurrencies] = useState(currencies || []);
|
|
7856
6159
|
const [formErrors, setErrors] = useState({});
|
|
6160
|
+
useEffect(() => {
|
|
6161
|
+
// reset redirect hash
|
|
6162
|
+
window.location.hash = "";
|
|
6163
|
+
}, []);
|
|
7857
6164
|
useEffect(() => {
|
|
7858
6165
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
7859
6166
|
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
@@ -7986,8 +6293,6 @@ function useUserInfoForm(props) {
|
|
|
7986
6293
|
});
|
|
7987
6294
|
const nextStep = context.overrideNextStep || "/2";
|
|
7988
6295
|
setStep(nextStep);
|
|
7989
|
-
// reset redirect hash
|
|
7990
|
-
window.location.hash = "";
|
|
7991
6296
|
}
|
|
7992
6297
|
const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
|
|
7993
6298
|
const regionObj = hasStates
|
|
@@ -8208,19 +6513,20 @@ const TaxForm = class {
|
|
|
8208
6513
|
}
|
|
8209
6514
|
render() {
|
|
8210
6515
|
const props = isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
|
|
8211
|
-
return (h(
|
|
6516
|
+
return (h(UserInfoFormView, { data: props.data,
|
|
8212
6517
|
// @ts-ignore
|
|
8213
6518
|
states: props.states, callbacks: {
|
|
8214
6519
|
...props.callbacks,
|
|
8215
6520
|
onSubmit: props.onSubmit,
|
|
8216
|
-
}, text: props.text, refs: props.refs }))
|
|
6521
|
+
}, text: props.text, refs: props.refs }));
|
|
8217
6522
|
}
|
|
8218
6523
|
};
|
|
8219
6524
|
function useDemoUserInfoForm(props) {
|
|
8220
6525
|
const setStep = En(TAX_CONTEXT_NAMESPACE);
|
|
6526
|
+
// @ts-ignore
|
|
8221
6527
|
return cjs({
|
|
8222
6528
|
setStep,
|
|
8223
|
-
onSubmit: () => {
|
|
6529
|
+
onSubmit: async () => {
|
|
8224
6530
|
setStep("/2");
|
|
8225
6531
|
},
|
|
8226
6532
|
onRadioClick: () => { },
|
|
@@ -8263,4 +6569,4 @@ function useDemoUserInfoForm(props) {
|
|
|
8263
6569
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
8264
6570
|
}
|
|
8265
6571
|
|
|
8266
|
-
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 };
|