@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
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { intl } from "../../../global/global";
|
|
3
3
|
import { createStyleSheet } from "../../../styling/JSS";
|
|
4
|
+
const holdAlertContainer = (iconColor) => ({
|
|
5
|
+
marginLeft: "-20px",
|
|
6
|
+
"&::part(base)": {
|
|
7
|
+
maxWidth: "850px",
|
|
8
|
+
border: "none",
|
|
9
|
+
backgroundColor: "transparent",
|
|
10
|
+
color: "var(--sqm-text)",
|
|
11
|
+
},
|
|
12
|
+
"& sl-icon::part(base)": {
|
|
13
|
+
color: iconColor,
|
|
14
|
+
},
|
|
15
|
+
});
|
|
4
16
|
const style = {
|
|
5
17
|
ErrorAlertContainer: {
|
|
6
18
|
"&::part(base)": {
|
|
@@ -15,30 +27,9 @@ const style = {
|
|
|
15
27
|
maxWidth: "600px",
|
|
16
28
|
},
|
|
17
29
|
},
|
|
18
|
-
WarningHoldAlertContainer:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
maxWidth: "850px",
|
|
22
|
-
border: "none",
|
|
23
|
-
backgroundColor: "transparent",
|
|
24
|
-
color: "var(--sqm-text)",
|
|
25
|
-
},
|
|
26
|
-
"& sl-icon::part(base)": {
|
|
27
|
-
color: "var(--sqm-warning-color-icon)",
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
ErrorHoldAlertContainer: {
|
|
31
|
-
marginLeft: "-20px",
|
|
32
|
-
"&::part(base)": {
|
|
33
|
-
maxWidth: "850px",
|
|
34
|
-
border: "none",
|
|
35
|
-
backgroundColor: "transparent",
|
|
36
|
-
color: "var(--sqm-text)",
|
|
37
|
-
},
|
|
38
|
-
"& sl-icon::part(base)": {
|
|
39
|
-
color: "var(--sqm-danger-color-icon)",
|
|
40
|
-
},
|
|
41
|
-
},
|
|
30
|
+
WarningHoldAlertContainer: holdAlertContainer("var(--sqm-warning-color-icon)"),
|
|
31
|
+
ErrorHoldAlertContainer: holdAlertContainer("var(--sqm-danger-color-icon)"),
|
|
32
|
+
InfoHoldAlertContainer: holdAlertContainer("var(--sqm-informative-color-icon)"),
|
|
42
33
|
ExpiringSoonAlertContainer: {
|
|
43
34
|
"&::part(base)": {
|
|
44
35
|
backgroundColor: "var(--sl-color-yellow-100)",
|
|
@@ -298,7 +289,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
298
289
|
id: "payoutHoldAlertDescription",
|
|
299
290
|
defaultMessage: text.payoutHoldAlertDescription,
|
|
300
291
|
}, {
|
|
301
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
292
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
302
293
|
}),
|
|
303
294
|
buttonText: null,
|
|
304
295
|
alertType: "warning",
|
|
@@ -313,7 +304,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
313
304
|
id: "verificationRequiredDescription",
|
|
314
305
|
defaultMessage: text.verificationRequiredDescription,
|
|
315
306
|
}, {
|
|
316
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
307
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
317
308
|
}),
|
|
318
309
|
buttonText: text.verificationRequiredButtonText,
|
|
319
310
|
alertType: "warning",
|
|
@@ -327,7 +318,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
327
318
|
id: "verificationRequiredInternalDescription",
|
|
328
319
|
defaultMessage: text.verificationRequiredInternalDescription,
|
|
329
320
|
}, {
|
|
330
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
321
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
331
322
|
}),
|
|
332
323
|
alertType: "warning",
|
|
333
324
|
icon: "exclamation-triangle",
|
|
@@ -340,7 +331,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
340
331
|
id: "verificationReviewInternalDescription",
|
|
341
332
|
defaultMessage: text.verificationReviewInternalDescription,
|
|
342
333
|
}, {
|
|
343
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
334
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
344
335
|
}),
|
|
345
336
|
alertType: "warning",
|
|
346
337
|
icon: "exclamation-triangle",
|
|
@@ -353,7 +344,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
353
344
|
id: "verificationFailedInternalDescription",
|
|
354
345
|
defaultMessage: text.verificationFailedInternalDescription,
|
|
355
346
|
}, {
|
|
356
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
347
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
357
348
|
}),
|
|
358
349
|
alertType: "error",
|
|
359
350
|
icon: "exclamation-octagon",
|
|
@@ -366,13 +357,25 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
366
357
|
id: "accountReviewDescription",
|
|
367
358
|
defaultMessage: text.accountReviewDescription,
|
|
368
359
|
}, {
|
|
369
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
360
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
370
361
|
}),
|
|
371
362
|
buttonText: null,
|
|
372
363
|
alertType: "warning",
|
|
373
364
|
icon: "exclamation-triangle",
|
|
374
365
|
class: sheet.classes.WarningHoldAlertContainer,
|
|
375
366
|
};
|
|
367
|
+
case "BALANCE_UNDER_THRESHOLD":
|
|
368
|
+
return {
|
|
369
|
+
header: text.balanceUnderThresholdHeader,
|
|
370
|
+
description: intl.formatMessage({
|
|
371
|
+
id: "balanceUnderThresholdDescription",
|
|
372
|
+
defaultMessage: text.balanceUnderThresholdDescription,
|
|
373
|
+
}, { minPayoutAmount: states.minPayoutAmount }),
|
|
374
|
+
buttonText: null,
|
|
375
|
+
alertType: "info",
|
|
376
|
+
icon: "info-circle",
|
|
377
|
+
class: sheet.classes.InfoHoldAlertContainer,
|
|
378
|
+
};
|
|
376
379
|
case "PAYMENT_HOLD_ON_CHANGE":
|
|
377
380
|
return {
|
|
378
381
|
header: text.paymentHoldOnChangeHeader,
|
|
@@ -380,7 +383,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
380
383
|
id: "accountReviewDescription",
|
|
381
384
|
defaultMessage: text.paymentHoldOnChangeDescription,
|
|
382
385
|
}, {
|
|
383
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
386
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
384
387
|
}),
|
|
385
388
|
buttonText: null,
|
|
386
389
|
alertType: "warning",
|
|
@@ -394,7 +397,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
394
397
|
id: "accountReviewDescription",
|
|
395
398
|
defaultMessage: text.beneficiaryNameInvalidDescription,
|
|
396
399
|
}, {
|
|
397
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
400
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
398
401
|
}),
|
|
399
402
|
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
400
403
|
h("sl-button", { disabled: states.disabled || states.loading, type: "primary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
|
|
@@ -410,7 +413,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
410
413
|
id: "accountReviewDescription",
|
|
411
414
|
defaultMessage: text.beneficiaryNameMismatchDescription,
|
|
412
415
|
}, {
|
|
413
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
416
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
414
417
|
}),
|
|
415
418
|
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
416
419
|
h("sl-button", { disabled: states.disabled || states.loading, type: "primary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
|
|
@@ -426,7 +429,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
426
429
|
id: "accountReviewDescription",
|
|
427
430
|
defaultMessage: text.bankTaxNameMismatchDescription,
|
|
428
431
|
}, {
|
|
429
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
432
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
430
433
|
}),
|
|
431
434
|
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
432
435
|
h("sl-button", { disabled: states.disabled || states.loading, type: "primary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
|
|
@@ -442,7 +445,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
442
445
|
id: "accountReviewDescription",
|
|
443
446
|
defaultMessage: text.withdrawalSettingsInvalidDescription,
|
|
444
447
|
}, {
|
|
445
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
448
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
446
449
|
}),
|
|
447
450
|
button: (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
|
|
448
451
|
alertType: "warning",
|
|
@@ -456,7 +459,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
456
459
|
id: "accountReviewDescription",
|
|
457
460
|
defaultMessage: text.paymentReturnedDescription,
|
|
458
461
|
}, {
|
|
459
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
462
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
460
463
|
}),
|
|
461
464
|
button: (h("sl-button", { disabled: states.disabled || states.loading, type: "primary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
|
|
462
465
|
alertType: "error",
|
|
@@ -470,7 +473,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
470
473
|
id: "payoutHoldAlertDescription",
|
|
471
474
|
defaultMessage: text.payoutHoldAlertDescription,
|
|
472
475
|
}, {
|
|
473
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
476
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
474
477
|
}),
|
|
475
478
|
buttonText: null,
|
|
476
479
|
alertType: "warning",
|
|
@@ -604,7 +607,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
604
607
|
id: "loadingErrorAlertDescription",
|
|
605
608
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
606
609
|
}, {
|
|
607
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
610
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
608
611
|
})))),
|
|
609
612
|
((_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.classes.ErrorAlertContainer },
|
|
610
613
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
@@ -614,7 +617,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
614
617
|
id: "generalDescription",
|
|
615
618
|
defaultMessage: text.error.generalDescription,
|
|
616
619
|
}, {
|
|
617
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
620
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
618
621
|
}))),
|
|
619
622
|
alertInfo && (h("sqm-form-message", { loading: states.loading, exportparts: "base: alert-base, icon:alert-icon", type: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, class: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.class, icon: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.icon, transparent: true },
|
|
620
623
|
h("strong", null, alertInfo.header),
|
|
@@ -663,14 +666,14 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
663
666
|
id: "indirectTaxTooltipSupport",
|
|
664
667
|
defaultMessage: text.indirectTaxTooltipSupport,
|
|
665
668
|
}, {
|
|
666
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com`, class: sheet.classes.DropdownLink }, text.supportLink)),
|
|
669
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com`, class: sheet.classes.DropdownLink }, text.supportLink)),
|
|
667
670
|
})))),
|
|
668
671
|
h("div", { class: sheet.classes.IndirectTaxPreviewDetails },
|
|
669
672
|
h("span", null, states.notRegistered ? (h("span", { class: sheet.classes.NotRegisteredIndirectTaxText }, intl.formatMessage({
|
|
670
673
|
id: "notRegisteredForTax",
|
|
671
674
|
defaultMessage: text.notRegisteredForTax,
|
|
672
675
|
}, {
|
|
673
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
676
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
674
677
|
}))) : (getIndirectTaxRegisteredIn())),
|
|
675
678
|
!states.notRegistered && (h("div", { class: sheet.classes.TaxNumberContainer },
|
|
676
679
|
h("span", null, intl.formatMessage({
|
|
@@ -7,6 +7,10 @@ import { TaxAndCashDashboardView } from "./sqm-tax-and-cash-dashboard-view";
|
|
|
7
7
|
import { useTaxAndCashDashboard, } from "./useTaxAndCashDashboard";
|
|
8
8
|
/**
|
|
9
9
|
* @uiName Tax and Cash Status Dashboard
|
|
10
|
+
* @csspart alert-base - The alert base
|
|
11
|
+
* @csspart alert-icon - The alert icon
|
|
12
|
+
* @csspart primarybutton-base - The primary button base
|
|
13
|
+
* @csspart secondarybutton-base - The secondary button base
|
|
10
14
|
*/
|
|
11
15
|
export class TaxAndCashDashboard {
|
|
12
16
|
constructor() {
|
|
@@ -253,6 +257,14 @@ export class TaxAndCashDashboard {
|
|
|
253
257
|
* @uiName Account review alert description
|
|
254
258
|
*/
|
|
255
259
|
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}.";
|
|
260
|
+
/**
|
|
261
|
+
* @uiName Balance under payout minimum alert header
|
|
262
|
+
*/
|
|
263
|
+
this.balanceUnderThresholdHeader = "Your balance is under the minimum payout";
|
|
264
|
+
/**
|
|
265
|
+
* @uiName Balance under payout minimum alert description
|
|
266
|
+
*/
|
|
267
|
+
this.balanceUnderThresholdDescription = "Your total balance is under {minPayoutAmount}, the minimum required for payout.";
|
|
256
268
|
/**
|
|
257
269
|
* @uiName Payment hold on change alert header
|
|
258
270
|
*/
|
|
@@ -1441,6 +1453,48 @@ export class TaxAndCashDashboard {
|
|
|
1441
1453
|
"reflect": false,
|
|
1442
1454
|
"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}.\""
|
|
1443
1455
|
},
|
|
1456
|
+
"balanceUnderThresholdHeader": {
|
|
1457
|
+
"type": "string",
|
|
1458
|
+
"mutable": false,
|
|
1459
|
+
"complexType": {
|
|
1460
|
+
"original": "string",
|
|
1461
|
+
"resolved": "string",
|
|
1462
|
+
"references": {}
|
|
1463
|
+
},
|
|
1464
|
+
"required": false,
|
|
1465
|
+
"optional": false,
|
|
1466
|
+
"docs": {
|
|
1467
|
+
"tags": [{
|
|
1468
|
+
"text": "Balance under payout minimum alert header",
|
|
1469
|
+
"name": "uiName"
|
|
1470
|
+
}],
|
|
1471
|
+
"text": ""
|
|
1472
|
+
},
|
|
1473
|
+
"attribute": "balance-under-threshold-header",
|
|
1474
|
+
"reflect": false,
|
|
1475
|
+
"defaultValue": "\"Your balance is under the minimum payout\""
|
|
1476
|
+
},
|
|
1477
|
+
"balanceUnderThresholdDescription": {
|
|
1478
|
+
"type": "string",
|
|
1479
|
+
"mutable": false,
|
|
1480
|
+
"complexType": {
|
|
1481
|
+
"original": "string",
|
|
1482
|
+
"resolved": "string",
|
|
1483
|
+
"references": {}
|
|
1484
|
+
},
|
|
1485
|
+
"required": false,
|
|
1486
|
+
"optional": false,
|
|
1487
|
+
"docs": {
|
|
1488
|
+
"tags": [{
|
|
1489
|
+
"text": "Balance under payout minimum alert description",
|
|
1490
|
+
"name": "uiName"
|
|
1491
|
+
}],
|
|
1492
|
+
"text": ""
|
|
1493
|
+
},
|
|
1494
|
+
"attribute": "balance-under-threshold-description",
|
|
1495
|
+
"reflect": false,
|
|
1496
|
+
"defaultValue": "\"Your total balance is under {minPayoutAmount}, the minimum required for payout.\""
|
|
1497
|
+
},
|
|
1444
1498
|
"paymentHoldOnChangeHeader": {
|
|
1445
1499
|
"type": "string",
|
|
1446
1500
|
"mutable": false,
|
|
@@ -2175,7 +2229,7 @@ export class TaxAndCashDashboard {
|
|
|
2175
2229
|
"mutable": false,
|
|
2176
2230
|
"complexType": {
|
|
2177
2231
|
"original": "DemoData<UseTaxAndCashDashboardResult>",
|
|
2178
|
-
"resolved": "{ states?: { status?: string; documentType: TaxDocumentType; documentTypeString: string; canEditPayoutInfo: boolean; disabled?: boolean; dateSubmitted?: string; noFormNeeded?: boolean; indirectTaxType?: string; qstNumber?: string; subRegionTaxNumber?: string; subRegion?: string; indirectTaxNumber?: string; province?: string; country?: string; notRegistered?: boolean; isBusinessEntity?: boolean; loading?: boolean; loadingError?: boolean; showNewFormDialog: boolean; hasHold: boolean; payoutStatus: PayoutStatus; veriffLoading: boolean; errors?: { general?: boolean; }; enforceUsTaxComplianceOption?: string; }; }",
|
|
2232
|
+
"resolved": "{ states?: { status?: string; documentType: TaxDocumentType; documentTypeString: string; canEditPayoutInfo: boolean; disabled?: boolean; dateSubmitted?: string; noFormNeeded?: boolean; indirectTaxType?: string; qstNumber?: string; subRegionTaxNumber?: string; subRegion?: string; indirectTaxNumber?: string; province?: string; country?: string; notRegistered?: boolean; isBusinessEntity?: boolean; loading?: boolean; loadingError?: boolean; showNewFormDialog: boolean; hasHold: boolean; payoutStatus: PayoutStatus; minPayoutAmount?: string; veriffLoading: boolean; errors?: { general?: boolean; }; enforceUsTaxComplianceOption?: string; }; }",
|
|
2179
2233
|
"references": {
|
|
2180
2234
|
"DemoData": {
|
|
2181
2235
|
"location": "import",
|
package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js
CHANGED
|
@@ -6,7 +6,7 @@ import { getStatus, } from "../sqm-payout-status-alert/usePayoutStatus";
|
|
|
6
6
|
import { TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../data";
|
|
7
7
|
import { INDIRECT_TAX_PROVINCES, INDIRECT_TAX_SPAIN_REGIONS, } from "../subregions";
|
|
8
8
|
import { useVeriffApp, VERIFF_COMPLETE_EVENT_KEY } from "../useVeriffApp";
|
|
9
|
-
import { taxTypeToName } from "../utils";
|
|
9
|
+
import { formatPayoutThreshold, taxTypeToName } from "../utils";
|
|
10
10
|
import { gql } from "graphql-request";
|
|
11
11
|
const GET_TAX_SETTING = gql `
|
|
12
12
|
query getTenantSettings {
|
|
@@ -126,6 +126,7 @@ export const useTaxAndCashDashboard = (props) => {
|
|
|
126
126
|
showNewFormDialog: showDialog,
|
|
127
127
|
hasHold: !!((_o = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _o === void 0 ? void 0 : _o.hold),
|
|
128
128
|
payoutStatus,
|
|
129
|
+
minPayoutAmount: formatPayoutThreshold(publisher),
|
|
129
130
|
veriffLoading,
|
|
130
131
|
enforceUsTaxComplianceOption,
|
|
131
132
|
},
|
package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js
CHANGED
|
@@ -315,7 +315,7 @@ export const UserInfoFormView = (props) => {
|
|
|
315
315
|
id: "loadingErrorAlertDescription",
|
|
316
316
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
317
317
|
}, {
|
|
318
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
318
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
319
319
|
}))))),
|
|
320
320
|
states.loading ? (h(LoadingView, null)) : (h("div", null,
|
|
321
321
|
h("div", { class: classes.TextContainer },
|
|
@@ -332,7 +332,7 @@ export const UserInfoFormView = (props) => {
|
|
|
332
332
|
id: "generalDescription",
|
|
333
333
|
defaultMessage: text.error.generalDescription,
|
|
334
334
|
}, {
|
|
335
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
335
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
336
336
|
})))),
|
|
337
337
|
(states.isPartnerLegacy || states.isUserLegacy) && (h("sqm-form-message", { loading: states.loading, type: "info" },
|
|
338
338
|
h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
|
|
@@ -340,7 +340,7 @@ export const UserInfoFormView = (props) => {
|
|
|
340
340
|
id: "isPartnerAlertDescription",
|
|
341
341
|
defaultMessage: text.isPartnerAlertDescription,
|
|
342
342
|
}, {
|
|
343
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
343
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
344
344
|
})))),
|
|
345
345
|
h("div", null,
|
|
346
346
|
h("div", { class: classes.InputContainer },
|
|
@@ -9,6 +9,11 @@ import { useUserInfoForm } from "./useUserInfoForm";
|
|
|
9
9
|
/**
|
|
10
10
|
* @uiName User Information Form
|
|
11
11
|
* @exampleGroup Tax and Cash Components
|
|
12
|
+
* @csspart alert-title - The alert title
|
|
13
|
+
* @csspart alert-description - The alert description
|
|
14
|
+
* @csspart input-label - The input label
|
|
15
|
+
* @csspart input-base - The input base
|
|
16
|
+
* @csspart primarybutton-base - The primary button base
|
|
12
17
|
*/
|
|
13
18
|
export class TaxForm {
|
|
14
19
|
constructor() {
|
|
@@ -100,3 +100,29 @@ export function getCountryObj({ countryCode, locale, }) {
|
|
|
100
100
|
displayName,
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
+
/** The minimum balance Impact requires before it will issue a payout, e.g. "USD50.00". */
|
|
104
|
+
export function formatPayoutThreshold(publisher) {
|
|
105
|
+
var _a, _b;
|
|
106
|
+
const threshold = (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold;
|
|
107
|
+
if (!threshold)
|
|
108
|
+
return undefined;
|
|
109
|
+
return `${(_b = publisher === null || publisher === void 0 ? void 0 : publisher.currency) !== null && _b !== void 0 ? _b : ""}${threshold}`;
|
|
110
|
+
}
|
|
111
|
+
/** `payoutsAccount.balance` is a formatted string; only `balanceAmount` (minor units) is comparable. */
|
|
112
|
+
export function isBalanceUnderPayoutThreshold(publisher) {
|
|
113
|
+
var _a;
|
|
114
|
+
const rawThreshold = (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold;
|
|
115
|
+
const account = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount;
|
|
116
|
+
if (!rawThreshold || !account)
|
|
117
|
+
return false;
|
|
118
|
+
const threshold = Number(rawThreshold);
|
|
119
|
+
if (!Number.isFinite(threshold) || !Number.isFinite(account.balanceAmount))
|
|
120
|
+
return false;
|
|
121
|
+
const currency = account.currencyCode || (publisher === null || publisher === void 0 ? void 0 : publisher.currency);
|
|
122
|
+
if (!currency)
|
|
123
|
+
return false;
|
|
124
|
+
const scale = 10 **
|
|
125
|
+
new Intl.NumberFormat("en-US", { style: "currency", currency })
|
|
126
|
+
.resolvedOptions().maximumFractionDigits;
|
|
127
|
+
return account.balanceAmount < Math.round(threshold * scale);
|
|
128
|
+
}
|