@saasquatch/mint-components 2.5.0-2 → 2.5.0-3
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/{data-89ac73dd.js → data-04ef5511.js} +2 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +43 -29
- package/dist/cjs/sqm-big-stat_47.cjs.entry.js +47 -17
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-partner-info-modal-view-431100ad.js → sqm-partner-info-modal-view-d9b61d54.js} +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +5 -0
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +75 -8
- package/dist/cjs/{sqm-user-info-form-view-c5f9b79b.js → sqm-user-info-form-view-9745956d.js} +49 -46
- package/dist/cjs/{subregions-3d27e279.js → subregions-d12829d6.js} +28 -0
- package/dist/cjs/{useIndirectTaxForm-5211013b.js → useIndirectTaxForm-0969e194.js} +26 -3
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +1 -0
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +2 -0
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +5 -0
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +2 -0
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile.js +7 -0
- package/dist/collection/components/sqm-empty/sqm-empty.js +2 -0
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +8 -0
- package/dist/collection/components/sqm-hero/sqm-hero.js +4 -0
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +8 -0
- package/dist/collection/components/sqm-image/sqm-image.js +1 -0
- package/dist/collection/components/sqm-input-field/sqm-input-field.js +2 -0
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +4 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-form.js +7 -0
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +1 -0
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -0
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +2 -0
- package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu.js +1 -0
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +1 -0
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +2 -0
- package/dist/collection/components/sqm-pagination/sqm-pagination.js +3 -0
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +1 -1
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +5 -0
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +2 -0
- package/dist/collection/components/sqm-popup-container/sqm-popup-container.js +1 -0
- package/dist/collection/components/sqm-portal-change-marketing/sqm-portal-change-marketing.js +4 -0
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +8 -0
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +5 -0
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +8 -0
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +2 -0
- package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +1 -0
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +3 -0
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +7 -0
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +7 -0
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +5 -0
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +5 -0
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +7 -0
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +5 -0
- package/dist/collection/components/sqm-qr-code/sqm-qr-code.js +3 -0
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +3 -0
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +3 -0
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +1 -0
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +9 -0
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +5 -0
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +3 -0
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +1 -0
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +3 -0
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +3 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +4 -0
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +2 -0
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +1 -0
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +9 -0
- package/dist/collection/components/sqm-text-span/sqm-text-span.js +1 -0
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +4 -0
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +1 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +4 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +1 -1
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +4 -0
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +19 -0
- package/dist/collection/components/tax-and-cash/data.js +2 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +4 -0
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +2 -0
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +4 -4
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +4 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.js +25 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +12 -8
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +10 -9
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +7 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +24 -13
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +55 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +25 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +64 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.js +11 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +44 -41
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +55 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +2 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/UserInfoFormView.stories.js +3 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +5 -0
- package/dist/collection/components/tax-and-cash/utils.js +26 -0
- package/dist/esm/{data-8698cbc6.js → data-0be04430.js} +2 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +43 -29
- package/dist/esm/sqm-big-stat_47.entry.js +47 -17
- package/dist/esm/sqm-email-verification_2.entry.js +3 -3
- package/dist/esm/{sqm-partner-info-modal-view-34d4be5b.js → sqm-partner-info-modal-view-b921fed1.js} +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +5 -0
- package/dist/esm/sqm-stencilbook.entry.js +75 -8
- package/dist/esm/{sqm-user-info-form-view-ceb3917a.js → sqm-user-info-form-view-81526655.js} +49 -46
- package/dist/esm/{subregions-810a5c2d.js → subregions-98789b46.js} +27 -1
- package/dist/esm/{useIndirectTaxForm-4dc576f0.js → useIndirectTaxForm-bbe8779d.js} +26 -3
- package/dist/esm-es5/data-0be04430.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-b921fed1.js +1 -0
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-user-info-form-view-81526655.js +1 -0
- package/dist/esm-es5/subregions-98789b46.js +1 -0
- package/dist/esm-es5/useIndirectTaxForm-bbe8779d.js +6 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-07b989a3.system.js +6 -0
- package/dist/mint-components/{p-05466678.entry.js → p-0d89ef44.entry.js} +3 -3
- package/dist/mint-components/p-14f4cce8.js +1 -0
- package/dist/mint-components/{p-8bdabf61.entry.js → p-1e9c339f.entry.js} +2 -2
- package/dist/mint-components/p-227ca8d4.system.js +1 -0
- package/dist/mint-components/p-231926a3.system.entry.js +1 -0
- package/dist/mint-components/p-288249ae.system.entry.js +1 -0
- package/dist/mint-components/p-53575d04.js +1 -0
- package/dist/mint-components/p-549d60ee.system.entry.js +1 -0
- package/dist/mint-components/{p-7468e5b8.entry.js → p-654cdee8.entry.js} +2 -2
- package/dist/mint-components/{p-5c52100b.js → p-7aa89fa8.js} +2 -0
- package/dist/mint-components/p-826e3db0.system.js +1 -0
- package/dist/mint-components/p-a1b655ba.system.js +1 -0
- package/dist/mint-components/p-b1feb0f1.js +108 -0
- package/dist/mint-components/p-bfb00685.system.js +1 -1
- package/dist/mint-components/{p-ee6700a3.system.entry.js → p-cf12347b.system.entry.js} +1 -1
- package/dist/mint-components/p-db73312a.system.js +1 -0
- package/dist/mint-components/p-e1b917ff.entry.js +83 -0
- package/dist/mint-components/p-f75ead20.js +1 -0
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +1 -0
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +2 -0
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +5 -0
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +2 -0
- package/dist/types/components/sqm-edit-profile/sqm-edit-profile.d.ts +7 -0
- package/dist/types/components/sqm-empty/sqm-empty.d.ts +2 -0
- package/dist/types/components/sqm-form-message/sqm-form-message.d.ts +8 -0
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +4 -0
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +8 -0
- package/dist/types/components/sqm-image/sqm-image.d.ts +1 -0
- package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +2 -0
- package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +4 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-form.d.ts +7 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.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 +2 -0
- package/dist/types/components/sqm-navigation-menu/sqm-navigation-menu.d.ts +1 -0
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +1 -0
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +2 -0
- package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +3 -0
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +5 -0
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +2 -0
- package/dist/types/components/sqm-popup-container/sqm-popup-container.d.ts +1 -0
- package/dist/types/components/sqm-portal-change-marketing/sqm-portal-change-marketing.d.ts +4 -0
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +8 -0
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +5 -0
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +8 -0
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +2 -0
- package/dist/types/components/sqm-portal-google-login/sqm-portal-google-login.d.ts +1 -0
- package/dist/types/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.d.ts +3 -0
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +7 -0
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +7 -0
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +5 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +5 -0
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +7 -0
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +5 -0
- package/dist/types/components/sqm-qr-code/sqm-qr-code.d.ts +3 -0
- package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +3 -0
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +3 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +1 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +9 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +3 -0
- package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +1 -0
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +3 -0
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +3 -0
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +4 -0
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +2 -0
- package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +1 -0
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +9 -0
- package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +1 -0
- package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +4 -0
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +4 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +4 -0
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/data.d.ts +2 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +2 -0
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.d.ts +3 -0
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +3 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +12 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +2 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +11 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +3 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +12 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +5 -0
- package/dist/types/components/tax-and-cash/utils.d.ts +5 -1
- package/dist/types/components.d.ts +54 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/data-8698cbc6.js +0 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-34d4be5b.js +0 -1
- package/dist/esm-es5/sqm-user-info-form-view-ceb3917a.js +0 -1
- package/dist/esm-es5/subregions-810a5c2d.js +0 -1
- package/dist/esm-es5/useIndirectTaxForm-4dc576f0.js +0 -6
- package/dist/mint-components/p-0ad64881.js +0 -101
- package/dist/mint-components/p-41e1547d.system.entry.js +0 -1
- package/dist/mint-components/p-4481f259.entry.js +0 -83
- package/dist/mint-components/p-6c31a79b.system.entry.js +0 -1
- package/dist/mint-components/p-6cd93ea3.system.js +0 -6
- package/dist/mint-components/p-765e3379.js +0 -1
- package/dist/mint-components/p-92f520c9.js +0 -1
- package/dist/mint-components/p-93f1e26a.system.entry.js +0 -1
- package/dist/mint-components/p-9c1f5317.system.js +0 -1
- package/dist/mint-components/p-ad90628d.system.js +0 -1
- package/dist/mint-components/p-aef2db59.system.js +0 -1
- package/dist/mint-components/p-c36fedea.js +0 -1
- package/dist/mint-components/p-fd231c49.system.js +0 -1
|
@@ -172,18 +172,22 @@ export function PayoutDetailsCardView(props) {
|
|
|
172
172
|
}, {
|
|
173
173
|
thresholdBalance: states.thresholdBalance,
|
|
174
174
|
});
|
|
175
|
+
// No payout is scheduled while the balance sits under the minimum
|
|
176
|
+
const scheduleText = states.badgeStatus === "thresholdPayout"
|
|
177
|
+
? states.thresholdBalance
|
|
178
|
+
? thresholdText
|
|
179
|
+
: ""
|
|
180
|
+
: states.belowPayoutThreshold
|
|
181
|
+
? ""
|
|
182
|
+
: states.nextPayoutDate;
|
|
183
|
+
const showBadge = states.badgeStatus !== "thresholdPayout" && !states.belowPayoutThreshold;
|
|
175
184
|
return (h("div", { class: classes.Container },
|
|
176
185
|
h("style", { type: "text/css" }, styleString),
|
|
177
186
|
states.loading ? (renderLoadingSkeleton()) : (h("div", { class: classes.CardContainer },
|
|
178
187
|
h("div", { class: classes.StatusContainer },
|
|
179
|
-
h("p", { class: classes.SubduedRegularText },
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
: ""
|
|
183
|
-
: states.nextPayoutDate),
|
|
184
|
-
states.badgeStatus === "thresholdPayout"
|
|
185
|
-
? null
|
|
186
|
-
: renderStatusBadge(states.badgeStatus, text.statusBadgeText)),
|
|
188
|
+
h("p", { class: classes.SubduedRegularText }, scheduleText),
|
|
189
|
+
showBadge &&
|
|
190
|
+
renderStatusBadge(states.badgeStatus, text.statusBadgeText)),
|
|
187
191
|
h("h1", { class: classes.MainCurrency }, states.balance),
|
|
188
192
|
states.payoutType === "PAYPAL" ? (h("div", { class: classes.PaypalDetailsContainer },
|
|
189
193
|
h("span", { class: classes.PaypalEmail }, states.paypalEmailAddress),
|
package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js
CHANGED
|
@@ -190,6 +190,7 @@ function useDemoPayoutDetailsCard(props) {
|
|
|
190
190
|
loading: false,
|
|
191
191
|
error: false,
|
|
192
192
|
thresholdBalance: "$50",
|
|
193
|
+
belowPayoutThreshold: false,
|
|
193
194
|
mainCurrency: { currencyText: "USD", amountText: "100.00" },
|
|
194
195
|
badgeStatus: "nextPayout",
|
|
195
196
|
payoutType: "BANK_TRANSFER",
|
package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js
CHANGED
|
@@ -2,8 +2,9 @@ import { useParentQueryValue } from "@saasquatch/component-boilerplate";
|
|
|
2
2
|
import { DateTime } from "luxon";
|
|
3
3
|
import { intl } from "../../../global/global";
|
|
4
4
|
import { USER_QUERY_NAMESPACE } from "../data";
|
|
5
|
+
import { formatPayoutThreshold, isBalanceUnderPayoutThreshold, } from "../utils";
|
|
5
6
|
export function usePayoutDetailsCard(props) {
|
|
6
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
|
7
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
7
8
|
const { data, loading } = useParentQueryValue(USER_QUERY_NAMESPACE);
|
|
8
9
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
9
10
|
function getPayoutDetailedStatusText(paymentDay) {
|
|
@@ -42,18 +43,18 @@ export function usePayoutDetailsCard(props) {
|
|
|
42
43
|
return {
|
|
43
44
|
states: {
|
|
44
45
|
loading,
|
|
45
|
-
thresholdBalance: (
|
|
46
|
-
|
|
47
|
-
balance: (
|
|
48
|
-
badgeStatus: ((
|
|
46
|
+
thresholdBalance: formatPayoutThreshold(publisher),
|
|
47
|
+
belowPayoutThreshold: isBalanceUnderPayoutThreshold(publisher),
|
|
48
|
+
balance: (_d = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _d === void 0 ? void 0 : _d.balance,
|
|
49
|
+
badgeStatus: ((_e = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _e === void 0 ? void 0 : _e.paymentSchedulingType) !== "FIXED_DAY"
|
|
49
50
|
? "thresholdPayout"
|
|
50
51
|
: isPayoutToday
|
|
51
52
|
? "payoutToday"
|
|
52
53
|
: "nextPayout",
|
|
53
|
-
payoutType: (
|
|
54
|
-
error: (
|
|
55
|
-
paypalEmailAddress: (
|
|
56
|
-
cardNumberPreview: (
|
|
54
|
+
payoutType: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _f === void 0 ? void 0 : _f.paymentMethod,
|
|
55
|
+
error: (_g = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _g === void 0 ? void 0 : _g.hold,
|
|
56
|
+
paypalEmailAddress: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paypalEmailAddress,
|
|
57
|
+
cardNumberPreview: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _j === void 0 ? void 0 : _j.bankAccountNumber,
|
|
57
58
|
nextPayoutDate: paymentDay,
|
|
58
59
|
},
|
|
59
60
|
text: props.getTextProps(),
|
package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js
CHANGED
|
@@ -30,6 +30,13 @@ export const Loading = () => (h("sqm-payout-status-alert", { demoData: { states:
|
|
|
30
30
|
export const Error = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, error: true } } }));
|
|
31
31
|
export const NewPayeeReview = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, status: "NEW_PAYEE_REVIEW" } } }));
|
|
32
32
|
export const PaymentHoldOnChange = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, status: "PAYMENT_HOLD_ON_CHANGE" } } }));
|
|
33
|
+
export const BalanceUnderThreshold = () => (h("sqm-payout-status-alert", { demoData: {
|
|
34
|
+
states: {
|
|
35
|
+
...defaultProps,
|
|
36
|
+
status: "BALANCE_UNDER_THRESHOLD",
|
|
37
|
+
minPayoutAmount: "USD50.00",
|
|
38
|
+
},
|
|
39
|
+
} }));
|
|
33
40
|
export const BeneficiaryNameInvalid = () => (h("sqm-payout-status-alert", { demoData: {
|
|
34
41
|
states: { ...defaultProps, status: "BENEFICIARY_NAME_INVALID" },
|
|
35
42
|
} }));
|
|
@@ -65,7 +65,7 @@ export function PayoutStatusAlertView(props) {
|
|
|
65
65
|
id: "verificationRequiredDescription",
|
|
66
66
|
defaultMessage: text.verificationRequiredDescription,
|
|
67
67
|
}, {
|
|
68
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
68
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
69
69
|
}),
|
|
70
70
|
buttonText: text.verificationRequiredButtonText,
|
|
71
71
|
alertType: "warning",
|
|
@@ -77,7 +77,7 @@ export function PayoutStatusAlertView(props) {
|
|
|
77
77
|
id: "verificationRequiredInternalDescription",
|
|
78
78
|
defaultMessage: text.verificationRequiredInternalDescription,
|
|
79
79
|
}, {
|
|
80
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
80
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
81
81
|
}),
|
|
82
82
|
alertType: "warning",
|
|
83
83
|
};
|
|
@@ -88,7 +88,7 @@ export function PayoutStatusAlertView(props) {
|
|
|
88
88
|
id: "verificationReviewInternalDescription",
|
|
89
89
|
defaultMessage: text.verificationReviewInternalDescription,
|
|
90
90
|
}, {
|
|
91
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
91
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
92
92
|
}),
|
|
93
93
|
alertType: "warning",
|
|
94
94
|
};
|
|
@@ -99,7 +99,7 @@ export function PayoutStatusAlertView(props) {
|
|
|
99
99
|
id: "verificationFailedInternalDescription",
|
|
100
100
|
defaultMessage: text.verificationFailedInternalDescription,
|
|
101
101
|
}, {
|
|
102
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
102
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
103
103
|
}),
|
|
104
104
|
alertType: "error",
|
|
105
105
|
};
|
|
@@ -125,7 +125,7 @@ export function PayoutStatusAlertView(props) {
|
|
|
125
125
|
id: "holdDescription",
|
|
126
126
|
defaultMessage: text.holdDescription,
|
|
127
127
|
}, {
|
|
128
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
128
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
129
129
|
}),
|
|
130
130
|
buttonText: null,
|
|
131
131
|
alertType: "warning",
|
|
@@ -139,12 +139,23 @@ export function PayoutStatusAlertView(props) {
|
|
|
139
139
|
id: "accountReviewDescription",
|
|
140
140
|
defaultMessage: text.accountReviewDescription,
|
|
141
141
|
}, {
|
|
142
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
142
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
143
143
|
}),
|
|
144
144
|
buttonText: null,
|
|
145
145
|
alertType: "warning",
|
|
146
146
|
icon: "exclamation-triangle",
|
|
147
147
|
};
|
|
148
|
+
case "BALANCE_UNDER_THRESHOLD":
|
|
149
|
+
return {
|
|
150
|
+
header: text.balanceUnderThresholdHeader,
|
|
151
|
+
description: intl.formatMessage({
|
|
152
|
+
id: "balanceUnderThresholdDescription",
|
|
153
|
+
defaultMessage: text.balanceUnderThresholdDescription,
|
|
154
|
+
}, { minPayoutAmount: states.minPayoutAmount }),
|
|
155
|
+
buttonText: null,
|
|
156
|
+
alertType: "info",
|
|
157
|
+
icon: "info-circle",
|
|
158
|
+
};
|
|
148
159
|
case "PAYMENT_HOLD_ON_CHANGE":
|
|
149
160
|
return {
|
|
150
161
|
header: text.paymentHoldOnChangeHeader,
|
|
@@ -152,7 +163,7 @@ export function PayoutStatusAlertView(props) {
|
|
|
152
163
|
id: "accountReviewDescription",
|
|
153
164
|
defaultMessage: text.paymentHoldOnChangeDescription,
|
|
154
165
|
}, {
|
|
155
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
166
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
156
167
|
}),
|
|
157
168
|
buttonText: null,
|
|
158
169
|
alertType: "warning",
|
|
@@ -165,7 +176,7 @@ export function PayoutStatusAlertView(props) {
|
|
|
165
176
|
id: "accountReviewDescription",
|
|
166
177
|
defaultMessage: text.beneficiaryNameInvalidDescription,
|
|
167
178
|
}, {
|
|
168
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
179
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
169
180
|
}),
|
|
170
181
|
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
171
182
|
h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
|
|
@@ -180,7 +191,7 @@ export function PayoutStatusAlertView(props) {
|
|
|
180
191
|
id: "accountReviewDescription",
|
|
181
192
|
defaultMessage: text.beneficiaryNameMismatchDescription,
|
|
182
193
|
}, {
|
|
183
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
194
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
184
195
|
}),
|
|
185
196
|
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
186
197
|
h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
|
|
@@ -195,7 +206,7 @@ export function PayoutStatusAlertView(props) {
|
|
|
195
206
|
id: "accountReviewDescription",
|
|
196
207
|
defaultMessage: text.bankTaxNameMismatchDescription,
|
|
197
208
|
}, {
|
|
198
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
209
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
199
210
|
}),
|
|
200
211
|
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
201
212
|
h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
|
|
@@ -210,7 +221,7 @@ export function PayoutStatusAlertView(props) {
|
|
|
210
221
|
id: "accountReviewDescription",
|
|
211
222
|
defaultMessage: text.withdrawalSettingsInvalidDescription,
|
|
212
223
|
}, {
|
|
213
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
224
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
214
225
|
}),
|
|
215
226
|
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
216
227
|
h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton))),
|
|
@@ -224,7 +235,7 @@ export function PayoutStatusAlertView(props) {
|
|
|
224
235
|
id: "accountReviewDescription",
|
|
225
236
|
defaultMessage: text.paymentReturnedDescription,
|
|
226
237
|
}, {
|
|
227
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
238
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
228
239
|
}),
|
|
229
240
|
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
230
241
|
h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton))),
|
|
@@ -238,7 +249,7 @@ export function PayoutStatusAlertView(props) {
|
|
|
238
249
|
id: "holdDescription",
|
|
239
250
|
defaultMessage: text.holdDescription,
|
|
240
251
|
}, {
|
|
241
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
252
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
242
253
|
}),
|
|
243
254
|
buttonText: null,
|
|
244
255
|
alertType: "warning",
|
package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js
CHANGED
|
@@ -11,6 +11,10 @@ import { parseStates } from "../../../utils/parseStates";
|
|
|
11
11
|
* @validParents ["sqm-portal-container","div","sqm-hero","sqm-instant-access-registration","sqm-brand","sqb-program-section","sqb-conditional-section"]
|
|
12
12
|
* @exampleGroup Tax and Cash
|
|
13
13
|
* @example Payout Status Alert - <sqm-payout-status-alert></sqm-payout-status-alert>
|
|
14
|
+
* @csspart alert-title - The alert title
|
|
15
|
+
* @csspart alert-description - The alert description
|
|
16
|
+
* @csspart primarybutton-base - The primary button base
|
|
17
|
+
* @csspart secondarybutton-base - The secondary button base
|
|
14
18
|
*/
|
|
15
19
|
export class PayoutStatusAlert {
|
|
16
20
|
constructor() {
|
|
@@ -79,6 +83,14 @@ export class PayoutStatusAlert {
|
|
|
79
83
|
* @uiName Account review alert description
|
|
80
84
|
*/
|
|
81
85
|
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}.";
|
|
86
|
+
/**
|
|
87
|
+
* @uiName Balance under payout minimum alert header
|
|
88
|
+
*/
|
|
89
|
+
this.balanceUnderThresholdHeader = "Your balance is under the minimum payout";
|
|
90
|
+
/**
|
|
91
|
+
* @uiName Balance under payout minimum alert description
|
|
92
|
+
*/
|
|
93
|
+
this.balanceUnderThresholdDescription = "Your total balance is under {minPayoutAmount}, the minimum required for payout.";
|
|
82
94
|
/**
|
|
83
95
|
* @uiName Payment on hold alert header
|
|
84
96
|
*/
|
|
@@ -526,6 +538,48 @@ export class PayoutStatusAlert {
|
|
|
526
538
|
"reflect": false,
|
|
527
539
|
"defaultValue": "\"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}.\""
|
|
528
540
|
},
|
|
541
|
+
"balanceUnderThresholdHeader": {
|
|
542
|
+
"type": "string",
|
|
543
|
+
"mutable": false,
|
|
544
|
+
"complexType": {
|
|
545
|
+
"original": "string",
|
|
546
|
+
"resolved": "string",
|
|
547
|
+
"references": {}
|
|
548
|
+
},
|
|
549
|
+
"required": false,
|
|
550
|
+
"optional": false,
|
|
551
|
+
"docs": {
|
|
552
|
+
"tags": [{
|
|
553
|
+
"text": "Balance under payout minimum alert header",
|
|
554
|
+
"name": "uiName"
|
|
555
|
+
}],
|
|
556
|
+
"text": ""
|
|
557
|
+
},
|
|
558
|
+
"attribute": "balance-under-threshold-header",
|
|
559
|
+
"reflect": false,
|
|
560
|
+
"defaultValue": "\"Your balance is under the minimum payout\""
|
|
561
|
+
},
|
|
562
|
+
"balanceUnderThresholdDescription": {
|
|
563
|
+
"type": "string",
|
|
564
|
+
"mutable": false,
|
|
565
|
+
"complexType": {
|
|
566
|
+
"original": "string",
|
|
567
|
+
"resolved": "string",
|
|
568
|
+
"references": {}
|
|
569
|
+
},
|
|
570
|
+
"required": false,
|
|
571
|
+
"optional": false,
|
|
572
|
+
"docs": {
|
|
573
|
+
"tags": [{
|
|
574
|
+
"text": "Balance under payout minimum alert description",
|
|
575
|
+
"name": "uiName"
|
|
576
|
+
}],
|
|
577
|
+
"text": ""
|
|
578
|
+
},
|
|
579
|
+
"attribute": "balance-under-threshold-description",
|
|
580
|
+
"reflect": false,
|
|
581
|
+
"defaultValue": "\"Your total balance is under {minPayoutAmount}, the minimum required for payout.\""
|
|
582
|
+
},
|
|
529
583
|
"paymentHoldOnChangeHeader": {
|
|
530
584
|
"type": "string",
|
|
531
585
|
"mutable": false,
|
|
@@ -1026,7 +1080,7 @@ export class PayoutStatusAlert {
|
|
|
1026
1080
|
"mutable": false,
|
|
1027
1081
|
"complexType": {
|
|
1028
1082
|
"original": "DemoData<PayoutStatusAlertViewProps>",
|
|
1029
|
-
"resolved": "{ states?: { error: boolean; loading: boolean; status: PayoutStatus; veriffLoading: boolean; enforceUsTaxComplianceOption?: EnforceUsTaxComplianceOption; }; data?: { type: \"SquatchJS2\" | \"SquatchAndroid\" | \"SquatchIOS\" | \"SquatchPortal\" | \"SquatchAdmin\" | \"None\"; }; }",
|
|
1083
|
+
"resolved": "{ states?: { error: boolean; loading: boolean; status: PayoutStatus; veriffLoading: boolean; minPayoutAmount?: string; enforceUsTaxComplianceOption?: EnforceUsTaxComplianceOption; }; data?: { type: \"SquatchJS2\" | \"SquatchAndroid\" | \"SquatchIOS\" | \"SquatchPortal\" | \"SquatchAdmin\" | \"None\"; }; }",
|
|
1030
1084
|
"references": {
|
|
1031
1085
|
"DemoData": {
|
|
1032
1086
|
"location": "import",
|
|
@@ -3,6 +3,7 @@ import { useEffect, useState } from "@saasquatch/stencil-hooks";
|
|
|
3
3
|
import { gql } from "graphql-request";
|
|
4
4
|
import { TAX_FORM_UPDATED_EVENT_KEY } from "../eventKeys";
|
|
5
5
|
import { useVeriffApp, VERIFF_COMPLETE_EVENT_KEY } from "../useVeriffApp";
|
|
6
|
+
import { formatPayoutThreshold, isBalanceUnderPayoutThreshold, } from "../utils";
|
|
6
7
|
const GET_USER_STATUS = gql `
|
|
7
8
|
query getUserStatus {
|
|
8
9
|
user: viewer {
|
|
@@ -12,9 +13,16 @@ const GET_USER_STATUS = gql `
|
|
|
12
13
|
connected
|
|
13
14
|
publisher {
|
|
14
15
|
id
|
|
16
|
+
currency
|
|
17
|
+
withdrawalSettings {
|
|
18
|
+
paymentThreshold
|
|
19
|
+
}
|
|
15
20
|
payoutsAccount {
|
|
16
21
|
hold
|
|
17
22
|
holdReasons
|
|
23
|
+
balance
|
|
24
|
+
balanceAmount
|
|
25
|
+
currencyCode
|
|
18
26
|
}
|
|
19
27
|
}
|
|
20
28
|
}
|
|
@@ -41,7 +49,22 @@ const GET_TAX_SETTING = gql `
|
|
|
41
49
|
}
|
|
42
50
|
}
|
|
43
51
|
`;
|
|
52
|
+
/** Transient holds that clear automatically, so a balance under the minimum explains the wait better. */
|
|
53
|
+
const DISPLACEABLE_STATUSES = [
|
|
54
|
+
"DONE",
|
|
55
|
+
"NEW_PAYEE_REVIEW",
|
|
56
|
+
"PAYMENT_HOLD_ON_CHANGE",
|
|
57
|
+
];
|
|
44
58
|
export function getStatus(data) {
|
|
59
|
+
var _a;
|
|
60
|
+
const status = getHoldStatus(data);
|
|
61
|
+
const publisher = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher;
|
|
62
|
+
return DISPLACEABLE_STATUSES.includes(status) &&
|
|
63
|
+
isBalanceUnderPayoutThreshold(publisher)
|
|
64
|
+
? "BALANCE_UNDER_THRESHOLD"
|
|
65
|
+
: status;
|
|
66
|
+
}
|
|
67
|
+
function getHoldStatus(data) {
|
|
45
68
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
46
69
|
const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
|
|
47
70
|
const hasTransferredReward = (_e = (_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.rewards) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.find((reward) => {
|
|
@@ -84,7 +107,7 @@ export function getStatus(data) {
|
|
|
84
107
|
return "DONE";
|
|
85
108
|
}
|
|
86
109
|
export function usePayoutStatus(props) {
|
|
87
|
-
var _a;
|
|
110
|
+
var _a, _b, _c;
|
|
88
111
|
const { type } = getEnvironmentSDK();
|
|
89
112
|
const { loading, data, errors, refetch } = useQuery(GET_USER_STATUS, {});
|
|
90
113
|
const { data: taxSettingRes } = useQuery(GET_TAX_SETTING, {});
|
|
@@ -134,6 +157,7 @@ export function usePayoutStatus(props) {
|
|
|
134
157
|
status,
|
|
135
158
|
error: !!errors,
|
|
136
159
|
enforceUsTaxComplianceOption,
|
|
160
|
+
minPayoutAmount: formatPayoutThreshold((_c = (_b = data === null || data === void 0 ? void 0 : data.user) === null || _b === void 0 ? void 0 : _b.impactConnection) === null || _c === void 0 ? void 0 : _c.publisher),
|
|
137
161
|
},
|
|
138
162
|
data: { type },
|
|
139
163
|
text: props.getTextProps(),
|
|
@@ -947,6 +947,17 @@ export class TaxAndCashMonolith {
|
|
|
947
947
|
* @uiName Account review alert description
|
|
948
948
|
*/
|
|
949
949
|
this.dashboard_accountReviewDescription = "This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.";
|
|
950
|
+
/**
|
|
951
|
+
* @uiName Balance under payout minimum alert header
|
|
952
|
+
* @uiGroup Dashboard Properties
|
|
953
|
+
*/
|
|
954
|
+
this.dashboard_balanceUnderThresholdHeader = "Your balance is under the minimum payout";
|
|
955
|
+
/**
|
|
956
|
+
* @uiName Balance under payout minimum alert description
|
|
957
|
+
* @uiGroup Dashboard Properties
|
|
958
|
+
* @uiWidget textArea
|
|
959
|
+
*/
|
|
960
|
+
this.dashboard_balanceUnderThresholdDescription = "Your total balance is under {minPayoutAmount}, the minimum required for payout.";
|
|
950
961
|
/**
|
|
951
962
|
* @uiName Payment on hold alert header
|
|
952
963
|
*/
|
|
@@ -1183,7 +1194,7 @@ export class TaxAndCashMonolith {
|
|
|
1183
1194
|
id: "loadingErrorAlertDescription",
|
|
1184
1195
|
defaultMessage: this.loadingErrorAlertDescription,
|
|
1185
1196
|
}, {
|
|
1186
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, this.supportLink)),
|
|
1197
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, this.supportLink)),
|
|
1187
1198
|
}) }));
|
|
1188
1199
|
}
|
|
1189
1200
|
return h(LoadingView, null);
|
|
@@ -5097,6 +5108,57 @@ export class TaxAndCashMonolith {
|
|
|
5097
5108
|
"reflect": false,
|
|
5098
5109
|
"defaultValue": "\"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}.\""
|
|
5099
5110
|
},
|
|
5111
|
+
"dashboard_balanceUnderThresholdHeader": {
|
|
5112
|
+
"type": "string",
|
|
5113
|
+
"mutable": false,
|
|
5114
|
+
"complexType": {
|
|
5115
|
+
"original": "string",
|
|
5116
|
+
"resolved": "string",
|
|
5117
|
+
"references": {}
|
|
5118
|
+
},
|
|
5119
|
+
"required": false,
|
|
5120
|
+
"optional": false,
|
|
5121
|
+
"docs": {
|
|
5122
|
+
"tags": [{
|
|
5123
|
+
"text": "Balance under payout minimum alert header",
|
|
5124
|
+
"name": "uiName"
|
|
5125
|
+
}, {
|
|
5126
|
+
"text": "Dashboard Properties",
|
|
5127
|
+
"name": "uiGroup"
|
|
5128
|
+
}],
|
|
5129
|
+
"text": ""
|
|
5130
|
+
},
|
|
5131
|
+
"attribute": "dashboard_balance-under-threshold-header",
|
|
5132
|
+
"reflect": false,
|
|
5133
|
+
"defaultValue": "\"Your balance is under the minimum payout\""
|
|
5134
|
+
},
|
|
5135
|
+
"dashboard_balanceUnderThresholdDescription": {
|
|
5136
|
+
"type": "string",
|
|
5137
|
+
"mutable": false,
|
|
5138
|
+
"complexType": {
|
|
5139
|
+
"original": "string",
|
|
5140
|
+
"resolved": "string",
|
|
5141
|
+
"references": {}
|
|
5142
|
+
},
|
|
5143
|
+
"required": false,
|
|
5144
|
+
"optional": false,
|
|
5145
|
+
"docs": {
|
|
5146
|
+
"tags": [{
|
|
5147
|
+
"text": "Balance under payout minimum alert description",
|
|
5148
|
+
"name": "uiName"
|
|
5149
|
+
}, {
|
|
5150
|
+
"text": "Dashboard Properties",
|
|
5151
|
+
"name": "uiGroup"
|
|
5152
|
+
}, {
|
|
5153
|
+
"text": "textArea",
|
|
5154
|
+
"name": "uiWidget"
|
|
5155
|
+
}],
|
|
5156
|
+
"text": ""
|
|
5157
|
+
},
|
|
5158
|
+
"attribute": "dashboard_balance-under-threshold-description",
|
|
5159
|
+
"reflect": false,
|
|
5160
|
+
"defaultValue": "\"Your total balance is under {minPayoutAmount}, the minimum required for payout.\""
|
|
5161
|
+
},
|
|
5100
5162
|
"dashboard_paymentOnHoldHeader": {
|
|
5101
5163
|
"type": "string",
|
|
5102
5164
|
"mutable": false,
|
|
@@ -5867,7 +5929,7 @@ export class TaxAndCashMonolith {
|
|
|
5867
5929
|
"mutable": false,
|
|
5868
5930
|
"complexType": {
|
|
5869
5931
|
"original": "DemoData<TaxAndCashMonolith>",
|
|
5870
|
-
"resolved": "{ step1_firstName?: string; step1_lastName?: string; step1_email?: string; step1_country?: string; step1_phoneNumber?: string; step1_address?: string; step1_city?: string; step1_state?: string; step1_province?: string; step1_region?: string; step1_postalCode?: string; step1_currency?: string; step1_allowBankingCollection?: string; step1_personalInformation?: string; step1_termsAndConditionsLabel?: string; step1_termsAndConditionsLink?: string; step1_searchForCurrencyText?: string; step2_indirectTax?: string; step2_indirectTaxDescription?: string; step2_indirectTaxDetails?: string; step2_otherRegion?: string; step2_otherRegionSubtext?: string; step2_notRegistered?: string; step2_notRegisteredSubtext?: string; step2_selectedRegion?: string; step2_indirectTaxNumber?: string; step2_province?: string; step2_indirectTaxNumberError?: string; step2_qstNumber?: string; step2_isRegisteredQST?: string; step2_isRegisteredSubRegionIncomeTax?: string; step2_subRegion?: string; step2_subRegionTaxNumberLabel?: string; step2_cannotChangeInfoAlert?: string; step3_taxForm?: string; step3_taxFormLabel?: string; step3_participantType?: string; step3_businessEntity?: string; step3_individualParticipant?: string; step3_taxFormDescription?: string; step3_taxFormDescriptionIndividualParticipant?: string; step3_taxFormDescriptionBusinessEntity?: string; step3_docusignExpired?: string; step3_docusignSessionWarning?: string; step3_docusignError?: string; step3_refreshButton?: string; step3_exitButton?: string; step3_modalTitle?: string; step3_modalDescription?: string; step3_modalButtonText?: string; step4_taxAndPayouts?: string; step4_directlyToBankAccount?: string; step4_toPayPalAccount?: string; step4_paymentScheduleBalanceThreshold?: string; step4_paymentScheduleFixedDay?: string; step4_paymentDaySelectLabel?: string; step4_paymentThresholdSelectLabel?: string; step4_paymentDayFirstOfMonthLabelText?: string; step4_paymentDayFifteenthOfMonthLabelText?: string; step4_paymentMethod?: string; step4_paymentSchedule?: string; step4_paymentMethodSubtext?: string; step4_payPalInputLabel?: string; step4_bankLocationLabel?: string; step4_beneficiaryAccountNameLabel?: string; step4_beneficiaryAccountNameDescription?: string; step4_bankAccountTypeLabel?: string; step4_checkingSelectItemLabel?: string; step4_savingsSelectItemLabel?: string; step4_bankAccountNumberLabel?: string; step4_ibanLabel?: string; step4_swiftCodeLabel?: string; step4_routingCodeLabel?: string; step4_bankNameLabel?: string; step4_classificationEntityLabel?: string; step4_businessSelectItemLabel?: string; step4_individualSelectItemLabel?: string; step4_foreignSelectItemLabel?: string; step4_classificationCPFLabel?: string; step4_patronymicNameLabel?: string; step4_voCodeLabel?: string; step4_agencyCodeLabel?: string; step4_branchCodeLabel?: string; step4_branchNameLabel?: string; step4_classificationLabel?: string; step4_classificationCodeLabel?: string; step4_taxPayerIdLabel?: string; step4_bankAddressLabel?: string; step4_bankCityLabel?: string; step4_bankStateLabel?: string; step4_bankPostalCodeLabel?: string; step4_eftWithdrawalLabel?: string; step4_fxWireProcessingFeeLabel?: string; step4_verifyEmailHeaderText?: string; step4_verifyEmailDescriptionText?: string; step4_modalTitle?: string; step4_modalDescription?: string; step4_modalButtonText?: string; dashboard_statusTextActive?: string; dashboard_statusTextNotActive?: string; dashboard_statusTextNotVerified?: string; dashboard_statusTextRequired?: string; dashboard_requiredTaxForm?: string; dashboard_badgeTextSubmittedOn?: string; dashboard_badgeTextSubmittedOnW8?: string; dashboard_badgeTextAwaitingReview?: string; dashboard_taxAlertHeaderNotActiveW9?: string; dashboard_taxAlertHeaderNotActiveW8?: string; dashboard_taxAlertNotActiveMessageW9?: string; dashboard_taxAlertNotActiveMessageW8?: string; dashboard_invalidForm?: string; dashboard_bankingInformationSectionHeader?: string; dashboard_taxDocumentSectionHeader?: string; dashboard_taxDocumentSectionSubHeader?: string; dashboard_noFormNeededSubtext?: string; dashboard_indirectTaxInfoSectionHeader?: string; dashboard_indirectTaxInfoCanada?: string; dashboard_indirectTaxInfoOtherCountry?: string; dashboard_indirectTaxInfoSpain?: string; dashboard_indirectTaxTooltipSupport?: string; dashboard_indirectTaxDetails?: string; dashboard_newFormButton?: string; dashboard_editPaymentInformationButton?: string; dashboard_notRegisteredForTax?: string; dashboard_qstNumber?: string; dashboard_subRegionTaxNumber?: string; dashboard_statusBadgeText?: string; dashboard_thresholdPayoutText?: string; dashboard_accountText?: string; dashboard_invoiceColumnTitle?: string; dashboard_dateColumnTitle?: string; dashboard_earningsColumnTitle?: string; dashboard_indirectTaxColumnTitle?: string; dashboard_payoutFromImpact?: string; dashboard_earningsAfterTaxColumnTitle?: string; dashboard_payoutHoldAlertHeader?: string; dashboard_payoutHoldAlertDescription?: string; dashboard_payoutMissingInformationText?: string; dashboard_invoiceDescription?: string; dashboard_invoicePrevLabel?: string; dashboard_invoiceMoreLabel?: string; dashboard_invoiceHeader?: string; dashboard_invoiceEmptyStateHeader?: string; dashboard_invoiceEmptyStateText?: string; dashboard_replaceTaxFormModalHeader?: string; dashboard_replaceTaxFormModalBodyText?: string; dashboard_verificationRequiredHeader?: string; dashboard_verificationRequiredDescription?: string; dashboard_verificationRequiredInternalHeader?: string; dashboard_verificationRequiredInternalDescription?: string; dashboard_verificationReviewInternalHeader?: string; dashboard_verificationReviewInternalDescription?: string; dashboard_verificationFailedInternalHeader?: string; dashboard_verificationFailedInternalDescription?: string; dashboard_verificationRequiredButtonText?: string; dashboard_w9RequiredHeader?: string; dashboard_w9RequiredDescription?: string; dashboard_accountReviewHeader?: string; dashboard_accountReviewDescription?: string; dashboard_paymentOnHoldHeader?: string; dashboard_paymentOnHoldDescription?: string; dashboard_beneficiaryNameInvalidHeader?: string; dashboard_beneficiaryNameInvalidDescription?: string; dashboard_beneficiaryNameMismatchHeader?: string; dashboard_beneficiaryNameMismatchDescription?: string; dashboard_bankNameMismatchHeader?: string; dashboard_bankNameMismatchDescription?: string; dashboard_withdrawalSettingsInvalidHeader?: string; dashboard_withdrawalSettingsInvalidDescription?: string; dashboard_paymentReturnedHeader?: string; dashboard_paymentReturnedDescription?: string; dashboard_termsAndConditions?: string; dashboard_w9RequiredButtonText?: string; formStep?: string; generalErrorTitle?: string; generalErrorDescription?: string; fieldRequiredError?: string; invalidCharacterError?: string; fieldInvalidError?: string; continueButton?: string; backButton?: string; cancelButton?: string; isPartnerAlertHeader?: string; isPartnerAlertDescription?: string; searchForCountryText?: string; loadingErrorAlertHeader?: string; loadingErrorAlertDescription?: string; taxAndPayoutsDescription?: string; supportLink?: string; termsAndConditions?: string; stateController?: string; demoData?: Partial<Pick<TaxAndCashMonolith, \"step1_firstName\" | \"step1_lastName\" | \"step1_email\" | \"step1_country\" | \"step1_phoneNumber\" | \"step1_address\" | \"step1_city\" | \"step1_state\" | \"step1_province\" | \"step1_region\" | \"step1_postalCode\" | \"step1_currency\" | \"step1_allowBankingCollection\" | \"step1_personalInformation\" | \"step1_termsAndConditionsLabel\" | \"step1_termsAndConditionsLink\" | \"step1_searchForCurrencyText\" | \"step2_indirectTax\" | \"step2_indirectTaxDescription\" | \"step2_indirectTaxDetails\" | \"step2_otherRegion\" | \"step2_otherRegionSubtext\" | \"step2_notRegistered\" | \"step2_notRegisteredSubtext\" | \"step2_selectedRegion\" | \"step2_indirectTaxNumber\" | \"step2_province\" | \"step2_indirectTaxNumberError\" | \"step2_qstNumber\" | \"step2_isRegisteredQST\" | \"step2_isRegisteredSubRegionIncomeTax\" | \"step2_subRegion\" | \"step2_subRegionTaxNumberLabel\" | \"step2_cannotChangeInfoAlert\" | \"step3_taxForm\" | \"step3_taxFormLabel\" | \"step3_participantType\" | \"step3_businessEntity\" | \"step3_individualParticipant\" | \"step3_taxFormDescription\" | \"step3_taxFormDescriptionIndividualParticipant\" | \"step3_taxFormDescriptionBusinessEntity\" | \"step3_docusignExpired\" | \"step3_docusignSessionWarning\" | \"step3_docusignError\" | \"step3_refreshButton\" | \"step3_exitButton\" | \"step3_modalTitle\" | \"step3_modalDescription\" | \"step3_modalButtonText\" | \"step4_taxAndPayouts\" | \"step4_directlyToBankAccount\" | \"step4_toPayPalAccount\" | \"step4_paymentScheduleBalanceThreshold\" | \"step4_paymentScheduleFixedDay\" | \"step4_paymentDaySelectLabel\" | \"step4_paymentThresholdSelectLabel\" | \"step4_paymentDayFirstOfMonthLabelText\" | \"step4_paymentDayFifteenthOfMonthLabelText\" | \"step4_paymentMethod\" | \"step4_paymentSchedule\" | \"step4_paymentMethodSubtext\" | \"step4_payPalInputLabel\" | \"step4_bankLocationLabel\" | \"step4_beneficiaryAccountNameLabel\" | \"step4_beneficiaryAccountNameDescription\" | \"step4_bankAccountTypeLabel\" | \"step4_checkingSelectItemLabel\" | \"step4_savingsSelectItemLabel\" | \"step4_bankAccountNumberLabel\" | \"step4_ibanLabel\" | \"step4_swiftCodeLabel\" | \"step4_routingCodeLabel\" | \"step4_bankNameLabel\" | \"step4_classificationEntityLabel\" | \"step4_businessSelectItemLabel\" | \"step4_individualSelectItemLabel\" | \"step4_foreignSelectItemLabel\" | \"step4_classificationCPFLabel\" | \"step4_patronymicNameLabel\" | \"step4_voCodeLabel\" | \"step4_agencyCodeLabel\" | \"step4_branchCodeLabel\" | \"step4_branchNameLabel\" | \"step4_classificationLabel\" | \"step4_classificationCodeLabel\" | \"step4_taxPayerIdLabel\" | \"step4_bankAddressLabel\" | \"step4_bankCityLabel\" | \"step4_bankStateLabel\" | \"step4_bankPostalCodeLabel\" | \"step4_eftWithdrawalLabel\" | \"step4_fxWireProcessingFeeLabel\" | \"step4_verifyEmailHeaderText\" | \"step4_verifyEmailDescriptionText\" | \"step4_modalTitle\" | \"step4_modalDescription\" | \"step4_modalButtonText\" | \"dashboard_statusTextActive\" | \"dashboard_statusTextNotActive\" | \"dashboard_statusTextNotVerified\" | \"dashboard_statusTextRequired\" | \"dashboard_requiredTaxForm\" | \"dashboard_badgeTextSubmittedOn\" | \"dashboard_badgeTextSubmittedOnW8\" | \"dashboard_badgeTextAwaitingReview\" | \"dashboard_taxAlertHeaderNotActiveW9\" | \"dashboard_taxAlertHeaderNotActiveW8\" | \"dashboard_taxAlertNotActiveMessageW9\" | \"dashboard_taxAlertNotActiveMessageW8\" | \"dashboard_invalidForm\" | \"dashboard_bankingInformationSectionHeader\" | \"dashboard_taxDocumentSectionHeader\" | \"dashboard_taxDocumentSectionSubHeader\" | \"dashboard_noFormNeededSubtext\" | \"dashboard_indirectTaxInfoSectionHeader\" | \"dashboard_indirectTaxInfoCanada\" | \"dashboard_indirectTaxInfoOtherCountry\" | \"dashboard_indirectTaxInfoSpain\" | \"dashboard_indirectTaxTooltipSupport\" | \"dashboard_indirectTaxDetails\" | \"dashboard_newFormButton\" | \"dashboard_editPaymentInformationButton\" | \"dashboard_notRegisteredForTax\" | \"dashboard_qstNumber\" | \"dashboard_subRegionTaxNumber\" | \"dashboard_statusBadgeText\" | \"dashboard_thresholdPayoutText\" | \"dashboard_accountText\" | \"dashboard_invoiceColumnTitle\" | \"dashboard_dateColumnTitle\" | \"dashboard_earningsColumnTitle\" | \"dashboard_indirectTaxColumnTitle\" | \"dashboard_payoutFromImpact\" | \"dashboard_earningsAfterTaxColumnTitle\" | \"dashboard_payoutHoldAlertHeader\" | \"dashboard_payoutHoldAlertDescription\" | \"dashboard_payoutMissingInformationText\" | \"dashboard_invoiceDescription\" | \"dashboard_invoicePrevLabel\" | \"dashboard_invoiceMoreLabel\" | \"dashboard_invoiceHeader\" | \"dashboard_invoiceEmptyStateHeader\" | \"dashboard_invoiceEmptyStateText\" | \"dashboard_replaceTaxFormModalHeader\" | \"dashboard_replaceTaxFormModalBodyText\" | \"dashboard_verificationRequiredHeader\" | \"dashboard_verificationRequiredDescription\" | \"dashboard_verificationRequiredInternalHeader\" | \"dashboard_verificationRequiredInternalDescription\" | \"dashboard_verificationReviewInternalHeader\" | \"dashboard_verificationReviewInternalDescription\" | \"dashboard_verificationFailedInternalHeader\" | \"dashboard_verificationFailedInternalDescription\" | \"dashboard_verificationRequiredButtonText\" | \"dashboard_w9RequiredHeader\" | \"dashboard_w9RequiredDescription\" | \"dashboard_accountReviewHeader\" | \"dashboard_accountReviewDescription\" | \"dashboard_paymentOnHoldHeader\" | \"dashboard_paymentOnHoldDescription\" | \"dashboard_beneficiaryNameInvalidHeader\" | \"dashboard_beneficiaryNameInvalidDescription\" | \"dashboard_beneficiaryNameMismatchHeader\" | \"dashboard_beneficiaryNameMismatchDescription\" | \"dashboard_bankNameMismatchHeader\" | \"dashboard_bankNameMismatchDescription\" | \"dashboard_withdrawalSettingsInvalidHeader\" | \"dashboard_withdrawalSettingsInvalidDescription\" | \"dashboard_paymentReturnedHeader\" | \"dashboard_paymentReturnedDescription\" | \"dashboard_termsAndConditions\" | \"dashboard_w9RequiredButtonText\" | \"formStep\" | \"generalErrorTitle\" | \"generalErrorDescription\" | \"fieldRequiredError\" | \"invalidCharacterError\" | \"fieldInvalidError\" | \"continueButton\" | \"backButton\" | \"cancelButton\" | \"isPartnerAlertHeader\" | \"isPartnerAlertDescription\" | \"searchForCountryText\" | \"loadingErrorAlertHeader\" | \"loadingErrorAlertDescription\" | \"taxAndPayoutsDescription\" | \"supportLink\" | \"termsAndConditions\" | \"stateController\" | \"demoData\" | \"disconnectedCallback\" | \"getGeneralStepTextProps\" | \"render\">>; disconnectedCallback?: () => void; getGeneralStepTextProps?: (prefix: string) => PickPrefix<TaxAndCashMonolith, string> & { generalErrorTitle: string; generalErrorDescription: string; fieldRequiredError: string; invalidCharacterError: string; fieldInvalidError: string; continueButton: string; backButton: string; cancelButton: string; isPartnerAlertHeader: string; isPartnerAlertDescription: string; loadingErrorAlertHeader: string; loadingErrorAlertDescription: string; taxAndPayoutsDescription: string; searchForCountryText: string; formStep: string; supportLink: string; }; render?: () => any; }",
|
|
5932
|
+
"resolved": "{ step1_firstName?: string; step1_lastName?: string; step1_email?: string; step1_country?: string; step1_phoneNumber?: string; step1_address?: string; step1_city?: string; step1_state?: string; step1_province?: string; step1_region?: string; step1_postalCode?: string; step1_currency?: string; step1_allowBankingCollection?: string; step1_personalInformation?: string; step1_termsAndConditionsLabel?: string; step1_termsAndConditionsLink?: string; step1_searchForCurrencyText?: string; step2_indirectTax?: string; step2_indirectTaxDescription?: string; step2_indirectTaxDetails?: string; step2_otherRegion?: string; step2_otherRegionSubtext?: string; step2_notRegistered?: string; step2_notRegisteredSubtext?: string; step2_selectedRegion?: string; step2_indirectTaxNumber?: string; step2_province?: string; step2_indirectTaxNumberError?: string; step2_qstNumber?: string; step2_isRegisteredQST?: string; step2_isRegisteredSubRegionIncomeTax?: string; step2_subRegion?: string; step2_subRegionTaxNumberLabel?: string; step2_cannotChangeInfoAlert?: string; step3_taxForm?: string; step3_taxFormLabel?: string; step3_participantType?: string; step3_businessEntity?: string; step3_individualParticipant?: string; step3_taxFormDescription?: string; step3_taxFormDescriptionIndividualParticipant?: string; step3_taxFormDescriptionBusinessEntity?: string; step3_docusignExpired?: string; step3_docusignSessionWarning?: string; step3_docusignError?: string; step3_refreshButton?: string; step3_exitButton?: string; step3_modalTitle?: string; step3_modalDescription?: string; step3_modalButtonText?: string; step4_taxAndPayouts?: string; step4_directlyToBankAccount?: string; step4_toPayPalAccount?: string; step4_paymentScheduleBalanceThreshold?: string; step4_paymentScheduleFixedDay?: string; step4_paymentDaySelectLabel?: string; step4_paymentThresholdSelectLabel?: string; step4_paymentDayFirstOfMonthLabelText?: string; step4_paymentDayFifteenthOfMonthLabelText?: string; step4_paymentMethod?: string; step4_paymentSchedule?: string; step4_paymentMethodSubtext?: string; step4_payPalInputLabel?: string; step4_bankLocationLabel?: string; step4_beneficiaryAccountNameLabel?: string; step4_beneficiaryAccountNameDescription?: string; step4_bankAccountTypeLabel?: string; step4_checkingSelectItemLabel?: string; step4_savingsSelectItemLabel?: string; step4_bankAccountNumberLabel?: string; step4_ibanLabel?: string; step4_swiftCodeLabel?: string; step4_routingCodeLabel?: string; step4_bankNameLabel?: string; step4_classificationEntityLabel?: string; step4_businessSelectItemLabel?: string; step4_individualSelectItemLabel?: string; step4_foreignSelectItemLabel?: string; step4_classificationCPFLabel?: string; step4_patronymicNameLabel?: string; step4_voCodeLabel?: string; step4_agencyCodeLabel?: string; step4_branchCodeLabel?: string; step4_branchNameLabel?: string; step4_classificationLabel?: string; step4_classificationCodeLabel?: string; step4_taxPayerIdLabel?: string; step4_bankAddressLabel?: string; step4_bankCityLabel?: string; step4_bankStateLabel?: string; step4_bankPostalCodeLabel?: string; step4_eftWithdrawalLabel?: string; step4_fxWireProcessingFeeLabel?: string; step4_verifyEmailHeaderText?: string; step4_verifyEmailDescriptionText?: string; step4_modalTitle?: string; step4_modalDescription?: string; step4_modalButtonText?: string; dashboard_statusTextActive?: string; dashboard_statusTextNotActive?: string; dashboard_statusTextNotVerified?: string; dashboard_statusTextRequired?: string; dashboard_requiredTaxForm?: string; dashboard_badgeTextSubmittedOn?: string; dashboard_badgeTextSubmittedOnW8?: string; dashboard_badgeTextAwaitingReview?: string; dashboard_taxAlertHeaderNotActiveW9?: string; dashboard_taxAlertHeaderNotActiveW8?: string; dashboard_taxAlertNotActiveMessageW9?: string; dashboard_taxAlertNotActiveMessageW8?: string; dashboard_invalidForm?: string; dashboard_bankingInformationSectionHeader?: string; dashboard_taxDocumentSectionHeader?: string; dashboard_taxDocumentSectionSubHeader?: string; dashboard_noFormNeededSubtext?: string; dashboard_indirectTaxInfoSectionHeader?: string; dashboard_indirectTaxInfoCanada?: string; dashboard_indirectTaxInfoOtherCountry?: string; dashboard_indirectTaxInfoSpain?: string; dashboard_indirectTaxTooltipSupport?: string; dashboard_indirectTaxDetails?: string; dashboard_newFormButton?: string; dashboard_editPaymentInformationButton?: string; dashboard_notRegisteredForTax?: string; dashboard_qstNumber?: string; dashboard_subRegionTaxNumber?: string; dashboard_statusBadgeText?: string; dashboard_thresholdPayoutText?: string; dashboard_accountText?: string; dashboard_invoiceColumnTitle?: string; dashboard_dateColumnTitle?: string; dashboard_earningsColumnTitle?: string; dashboard_indirectTaxColumnTitle?: string; dashboard_payoutFromImpact?: string; dashboard_earningsAfterTaxColumnTitle?: string; dashboard_payoutHoldAlertHeader?: string; dashboard_payoutHoldAlertDescription?: string; dashboard_payoutMissingInformationText?: string; dashboard_invoiceDescription?: string; dashboard_invoicePrevLabel?: string; dashboard_invoiceMoreLabel?: string; dashboard_invoiceHeader?: string; dashboard_invoiceEmptyStateHeader?: string; dashboard_invoiceEmptyStateText?: string; dashboard_replaceTaxFormModalHeader?: string; dashboard_replaceTaxFormModalBodyText?: string; dashboard_verificationRequiredHeader?: string; dashboard_verificationRequiredDescription?: string; dashboard_verificationRequiredInternalHeader?: string; dashboard_verificationRequiredInternalDescription?: string; dashboard_verificationReviewInternalHeader?: string; dashboard_verificationReviewInternalDescription?: string; dashboard_verificationFailedInternalHeader?: string; dashboard_verificationFailedInternalDescription?: string; dashboard_verificationRequiredButtonText?: string; dashboard_w9RequiredHeader?: string; dashboard_w9RequiredDescription?: string; dashboard_accountReviewHeader?: string; dashboard_accountReviewDescription?: string; dashboard_balanceUnderThresholdHeader?: string; dashboard_balanceUnderThresholdDescription?: string; dashboard_paymentOnHoldHeader?: string; dashboard_paymentOnHoldDescription?: string; dashboard_beneficiaryNameInvalidHeader?: string; dashboard_beneficiaryNameInvalidDescription?: string; dashboard_beneficiaryNameMismatchHeader?: string; dashboard_beneficiaryNameMismatchDescription?: string; dashboard_bankNameMismatchHeader?: string; dashboard_bankNameMismatchDescription?: string; dashboard_withdrawalSettingsInvalidHeader?: string; dashboard_withdrawalSettingsInvalidDescription?: string; dashboard_paymentReturnedHeader?: string; dashboard_paymentReturnedDescription?: string; dashboard_termsAndConditions?: string; dashboard_w9RequiredButtonText?: string; formStep?: string; generalErrorTitle?: string; generalErrorDescription?: string; fieldRequiredError?: string; invalidCharacterError?: string; fieldInvalidError?: string; continueButton?: string; backButton?: string; cancelButton?: string; isPartnerAlertHeader?: string; isPartnerAlertDescription?: string; searchForCountryText?: string; loadingErrorAlertHeader?: string; loadingErrorAlertDescription?: string; taxAndPayoutsDescription?: string; supportLink?: string; termsAndConditions?: string; stateController?: string; demoData?: Partial<Pick<TaxAndCashMonolith, \"step1_firstName\" | \"step1_lastName\" | \"step1_email\" | \"step1_country\" | \"step1_phoneNumber\" | \"step1_address\" | \"step1_city\" | \"step1_state\" | \"step1_province\" | \"step1_region\" | \"step1_postalCode\" | \"step1_currency\" | \"step1_allowBankingCollection\" | \"step1_personalInformation\" | \"step1_termsAndConditionsLabel\" | \"step1_termsAndConditionsLink\" | \"step1_searchForCurrencyText\" | \"step2_indirectTax\" | \"step2_indirectTaxDescription\" | \"step2_indirectTaxDetails\" | \"step2_otherRegion\" | \"step2_otherRegionSubtext\" | \"step2_notRegistered\" | \"step2_notRegisteredSubtext\" | \"step2_selectedRegion\" | \"step2_indirectTaxNumber\" | \"step2_province\" | \"step2_indirectTaxNumberError\" | \"step2_qstNumber\" | \"step2_isRegisteredQST\" | \"step2_isRegisteredSubRegionIncomeTax\" | \"step2_subRegion\" | \"step2_subRegionTaxNumberLabel\" | \"step2_cannotChangeInfoAlert\" | \"step3_taxForm\" | \"step3_taxFormLabel\" | \"step3_participantType\" | \"step3_businessEntity\" | \"step3_individualParticipant\" | \"step3_taxFormDescription\" | \"step3_taxFormDescriptionIndividualParticipant\" | \"step3_taxFormDescriptionBusinessEntity\" | \"step3_docusignExpired\" | \"step3_docusignSessionWarning\" | \"step3_docusignError\" | \"step3_refreshButton\" | \"step3_exitButton\" | \"step3_modalTitle\" | \"step3_modalDescription\" | \"step3_modalButtonText\" | \"step4_taxAndPayouts\" | \"step4_directlyToBankAccount\" | \"step4_toPayPalAccount\" | \"step4_paymentScheduleBalanceThreshold\" | \"step4_paymentScheduleFixedDay\" | \"step4_paymentDaySelectLabel\" | \"step4_paymentThresholdSelectLabel\" | \"step4_paymentDayFirstOfMonthLabelText\" | \"step4_paymentDayFifteenthOfMonthLabelText\" | \"step4_paymentMethod\" | \"step4_paymentSchedule\" | \"step4_paymentMethodSubtext\" | \"step4_payPalInputLabel\" | \"step4_bankLocationLabel\" | \"step4_beneficiaryAccountNameLabel\" | \"step4_beneficiaryAccountNameDescription\" | \"step4_bankAccountTypeLabel\" | \"step4_checkingSelectItemLabel\" | \"step4_savingsSelectItemLabel\" | \"step4_bankAccountNumberLabel\" | \"step4_ibanLabel\" | \"step4_swiftCodeLabel\" | \"step4_routingCodeLabel\" | \"step4_bankNameLabel\" | \"step4_classificationEntityLabel\" | \"step4_businessSelectItemLabel\" | \"step4_individualSelectItemLabel\" | \"step4_foreignSelectItemLabel\" | \"step4_classificationCPFLabel\" | \"step4_patronymicNameLabel\" | \"step4_voCodeLabel\" | \"step4_agencyCodeLabel\" | \"step4_branchCodeLabel\" | \"step4_branchNameLabel\" | \"step4_classificationLabel\" | \"step4_classificationCodeLabel\" | \"step4_taxPayerIdLabel\" | \"step4_bankAddressLabel\" | \"step4_bankCityLabel\" | \"step4_bankStateLabel\" | \"step4_bankPostalCodeLabel\" | \"step4_eftWithdrawalLabel\" | \"step4_fxWireProcessingFeeLabel\" | \"step4_verifyEmailHeaderText\" | \"step4_verifyEmailDescriptionText\" | \"step4_modalTitle\" | \"step4_modalDescription\" | \"step4_modalButtonText\" | \"dashboard_statusTextActive\" | \"dashboard_statusTextNotActive\" | \"dashboard_statusTextNotVerified\" | \"dashboard_statusTextRequired\" | \"dashboard_requiredTaxForm\" | \"dashboard_badgeTextSubmittedOn\" | \"dashboard_badgeTextSubmittedOnW8\" | \"dashboard_badgeTextAwaitingReview\" | \"dashboard_taxAlertHeaderNotActiveW9\" | \"dashboard_taxAlertHeaderNotActiveW8\" | \"dashboard_taxAlertNotActiveMessageW9\" | \"dashboard_taxAlertNotActiveMessageW8\" | \"dashboard_invalidForm\" | \"dashboard_bankingInformationSectionHeader\" | \"dashboard_taxDocumentSectionHeader\" | \"dashboard_taxDocumentSectionSubHeader\" | \"dashboard_noFormNeededSubtext\" | \"dashboard_indirectTaxInfoSectionHeader\" | \"dashboard_indirectTaxInfoCanada\" | \"dashboard_indirectTaxInfoOtherCountry\" | \"dashboard_indirectTaxInfoSpain\" | \"dashboard_indirectTaxTooltipSupport\" | \"dashboard_indirectTaxDetails\" | \"dashboard_newFormButton\" | \"dashboard_editPaymentInformationButton\" | \"dashboard_notRegisteredForTax\" | \"dashboard_qstNumber\" | \"dashboard_subRegionTaxNumber\" | \"dashboard_statusBadgeText\" | \"dashboard_thresholdPayoutText\" | \"dashboard_accountText\" | \"dashboard_invoiceColumnTitle\" | \"dashboard_dateColumnTitle\" | \"dashboard_earningsColumnTitle\" | \"dashboard_indirectTaxColumnTitle\" | \"dashboard_payoutFromImpact\" | \"dashboard_earningsAfterTaxColumnTitle\" | \"dashboard_payoutHoldAlertHeader\" | \"dashboard_payoutHoldAlertDescription\" | \"dashboard_payoutMissingInformationText\" | \"dashboard_invoiceDescription\" | \"dashboard_invoicePrevLabel\" | \"dashboard_invoiceMoreLabel\" | \"dashboard_invoiceHeader\" | \"dashboard_invoiceEmptyStateHeader\" | \"dashboard_invoiceEmptyStateText\" | \"dashboard_replaceTaxFormModalHeader\" | \"dashboard_replaceTaxFormModalBodyText\" | \"dashboard_verificationRequiredHeader\" | \"dashboard_verificationRequiredDescription\" | \"dashboard_verificationRequiredInternalHeader\" | \"dashboard_verificationRequiredInternalDescription\" | \"dashboard_verificationReviewInternalHeader\" | \"dashboard_verificationReviewInternalDescription\" | \"dashboard_verificationFailedInternalHeader\" | \"dashboard_verificationFailedInternalDescription\" | \"dashboard_verificationRequiredButtonText\" | \"dashboard_w9RequiredHeader\" | \"dashboard_w9RequiredDescription\" | \"dashboard_accountReviewHeader\" | \"dashboard_accountReviewDescription\" | \"dashboard_balanceUnderThresholdHeader\" | \"dashboard_balanceUnderThresholdDescription\" | \"dashboard_paymentOnHoldHeader\" | \"dashboard_paymentOnHoldDescription\" | \"dashboard_beneficiaryNameInvalidHeader\" | \"dashboard_beneficiaryNameInvalidDescription\" | \"dashboard_beneficiaryNameMismatchHeader\" | \"dashboard_beneficiaryNameMismatchDescription\" | \"dashboard_bankNameMismatchHeader\" | \"dashboard_bankNameMismatchDescription\" | \"dashboard_withdrawalSettingsInvalidHeader\" | \"dashboard_withdrawalSettingsInvalidDescription\" | \"dashboard_paymentReturnedHeader\" | \"dashboard_paymentReturnedDescription\" | \"dashboard_termsAndConditions\" | \"dashboard_w9RequiredButtonText\" | \"formStep\" | \"generalErrorTitle\" | \"generalErrorDescription\" | \"fieldRequiredError\" | \"invalidCharacterError\" | \"fieldInvalidError\" | \"continueButton\" | \"backButton\" | \"cancelButton\" | \"isPartnerAlertHeader\" | \"isPartnerAlertDescription\" | \"searchForCountryText\" | \"loadingErrorAlertHeader\" | \"loadingErrorAlertDescription\" | \"taxAndPayoutsDescription\" | \"supportLink\" | \"termsAndConditions\" | \"stateController\" | \"demoData\" | \"disconnectedCallback\" | \"getGeneralStepTextProps\" | \"render\">>; disconnectedCallback?: () => void; getGeneralStepTextProps?: (prefix: string) => PickPrefix<TaxAndCashMonolith, string> & { generalErrorTitle: string; generalErrorDescription: string; fieldRequiredError: string; invalidCharacterError: string; fieldInvalidError: string; continueButton: string; backButton: string; cancelButton: string; isPartnerAlertHeader: string; isPartnerAlertDescription: string; loadingErrorAlertHeader: string; loadingErrorAlertDescription: string; taxAndPayoutsDescription: string; searchForCountryText: string; formStep: string; supportLink: string; }; render?: () => any; }",
|
|
5871
5933
|
"references": {
|
|
5872
5934
|
"DemoData": {
|
|
5873
5935
|
"location": "import",
|
|
@@ -65,6 +65,8 @@ const defaultText = {
|
|
|
65
65
|
w9RequiredButtonText: "Submit W-9",
|
|
66
66
|
accountReviewHeader: "Your account is under review",
|
|
67
67
|
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}.",
|
|
68
|
+
balanceUnderThresholdHeader: "Your balance is under the minimum payout",
|
|
69
|
+
balanceUnderThresholdDescription: "Your total balance is under {minPayoutAmount}, the minimum required for payout.",
|
|
68
70
|
paymentHoldOnChangeHeader: "We are reviewing your new payout settings",
|
|
69
71
|
paymentHoldOnChangeDescription: "Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.",
|
|
70
72
|
beneficiaryNameInvalidHeader: "Your payment information does not match your tax form",
|
|
@@ -92,9 +94,10 @@ const defaultCallbacks = {
|
|
|
92
94
|
onNewFormCancel: () => { },
|
|
93
95
|
onNewFormClick: () => { },
|
|
94
96
|
};
|
|
95
|
-
const
|
|
96
|
-
payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: { states: { badgeStatus: "nextPayout" } } })),
|
|
97
|
-
};
|
|
97
|
+
const buildSlots = (cardStates = {}) => ({
|
|
98
|
+
payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: { states: { badgeStatus: "nextPayout", ...cardStates } } })),
|
|
99
|
+
});
|
|
100
|
+
const defaultSlots = buildSlots();
|
|
98
101
|
const baseStates = {
|
|
99
102
|
payoutStatus: "DONE",
|
|
100
103
|
veriffLoading: false,
|
|
@@ -126,6 +129,11 @@ export const TaxFormRequired = () => (h(TaxAndCashDashboardView, { states: {
|
|
|
126
129
|
// ─── Payout hold statuses not in TaxForm.stories.tsx ─────────────────────────
|
|
127
130
|
export const AccountUnderReview = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "NEW_PAYEE_REVIEW" }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
|
|
128
131
|
export const PaymentHoldOnChange = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "PAYMENT_HOLD_ON_CHANGE" }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
|
|
132
|
+
export const BalanceUnderThreshold = () => (h(TaxAndCashDashboardView, { states: {
|
|
133
|
+
...baseStates,
|
|
134
|
+
payoutStatus: "BALANCE_UNDER_THRESHOLD",
|
|
135
|
+
minPayoutAmount: "USD50.00",
|
|
136
|
+
}, text: defaultText, callbacks: defaultCallbacks, slots: buildSlots({ belowPayoutThreshold: true }) }));
|
|
129
137
|
export const BeneficiaryNameInvalid = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "BENEFICIARY_NAME_INVALID" }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
|
|
130
138
|
export const BeneficiaryNameMismatch = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "BENEFICIARY_NAME_MISMATCH" }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
|
|
131
139
|
export const BankTaxNameMismatch = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "BANK_TAX_NAME_MISMATCH" }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
|