@saasquatch/mint-components 2.5.10 → 2.5.11-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/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 +12 -3
- package/dist/cjs/sqm-big-stat_47.cjs.entry.js +30 -10
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +82 -3
- package/dist/cjs/{sqm-user-info-form-view-9b773a7c.js → sqm-user-info-form-view-9416da92.js} +9 -7
- package/dist/cjs/{subregions-77aac151.js → subregions-e18b324d.js} +28 -0
- package/dist/cjs/{useIndirectTaxForm-102d5c24.js → useIndirectTaxForm-31c63877.js} +6 -4
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +1 -1
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +35 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +9 -6
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +199 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +5 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +205 -7
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.js +34 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +9 -6
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +198 -0
- package/dist/collection/components/tax-and-cash/utils.js +26 -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 +12 -3
- package/dist/esm/sqm-big-stat_47.entry.js +30 -10
- package/dist/esm/sqm-stencilbook.entry.js +82 -3
- package/dist/esm/{sqm-user-info-form-view-0d95c791.js → sqm-user-info-form-view-6693aa82.js} +9 -7
- package/dist/esm/{subregions-ec4682c7.js → subregions-7f834e40.js} +27 -1
- package/dist/esm/{useIndirectTaxForm-09809605.js → useIndirectTaxForm-58b0ea4b.js} +6 -4
- 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-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-user-info-form-view-6693aa82.js +1 -0
- package/dist/esm-es5/subregions-7f834e40.js +1 -0
- package/dist/esm-es5/{useIndirectTaxForm-09809605.js → useIndirectTaxForm-58b0ea4b.js} +2 -2
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-2bd3f2ac.system.js → p-0714330d.system.js} +2 -2
- package/dist/mint-components/p-07f70909.system.entry.js +1 -0
- package/dist/mint-components/{p-c0e26b94.entry.js → p-11db4597.entry.js} +3 -3
- package/dist/mint-components/p-6116d239.js +108 -0
- package/dist/mint-components/p-7a324afd.entry.js +308 -0
- package/dist/mint-components/{p-71b1cd71.entry.js → p-9098802a.entry.js} +7 -7
- package/dist/mint-components/{p-363bf460.system.entry.js → p-97f5251b.system.entry.js} +1 -1
- package/dist/mint-components/p-9b9a9762.system.js +1 -0
- package/dist/mint-components/p-a1eb93fc.system.js +1 -0
- package/dist/mint-components/{p-ec78006c.system.entry.js → p-c9fc666c.system.entry.js} +1 -1
- package/dist/mint-components/p-cb7d2088.js +1 -0
- package/dist/mint-components/p-d811796f.js +1 -0
- package/dist/mint-components/p-e78ec46b.system.js +1 -1
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +5 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +10 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +36 -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 +38 -2
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.d.ts +5 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +9 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +36 -0
- package/dist/types/components/tax-and-cash/utils.d.ts +35 -0
- package/dist/types/components.d.ts +220 -4
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/docs/stats.json +1584 -232
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/sqm-user-info-form-view-0d95c791.js +0 -1
- package/dist/esm-es5/subregions-ec4682c7.js +0 -1
- package/dist/mint-components/p-24d56265.entry.js +0 -308
- package/dist/mint-components/p-3dc446ec.system.js +0 -1
- package/dist/mint-components/p-461a068d.js +0 -1
- package/dist/mint-components/p-99d4ddee.js +0 -107
- package/dist/mint-components/p-b1d6a6f2.system.js +0 -1
- package/dist/mint-components/p-df62cb1b.system.entry.js +0 -1
- package/dist/mint-components/p-f15ad5b6.js +0 -1
|
@@ -12,7 +12,8 @@ import { i as isEmpty } from './utilities-937c375d.js';
|
|
|
12
12
|
import { o as optimizeCloudinaryUrl } from './imageUrl-4775f17b.js';
|
|
13
13
|
import { j as jsonpointer } from './jsonpointer-c5423376.js';
|
|
14
14
|
import { A as AsYouType } from './AsYouType-cc09fa68.js';
|
|
15
|
-
import {
|
|
15
|
+
import { w as withPaymentInfoAlertCopy, g as getEditPayoutInfoButtonProps, b as getCountryObj, i as isValidI18nPhoneNumber, L as LoadingView } from './subregions-7f834e40.js';
|
|
16
|
+
import { u as usePayoutStatus, C as COMPLETE_PARTNER } from './useIndirectTaxForm-58b0ea4b.js';
|
|
16
17
|
import { p as parseStates } from './parseStates-0c27f2de.js';
|
|
17
18
|
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-113e1969.js';
|
|
18
19
|
import { u as usePortalRegistrationForm } from './usePortalRegistrationForm-751b1f36.js';
|
|
@@ -22,7 +23,6 @@ import { E as EmailRegistrationView } from './email-registration-view-7a63a912.j
|
|
|
22
23
|
import { p as pathToRegexp } from './index-e6f5153e.js';
|
|
23
24
|
import { C as CopyTextView } from './copy-text-view-e1c3f2cd.js';
|
|
24
25
|
import { E as ErrorView } from './ErrorView-19af8137.js';
|
|
25
|
-
import { g as getCountryObj, i as isValidI18nPhoneNumber, L as LoadingView } from './subregions-ec4682c7.js';
|
|
26
26
|
import { T as TAX_CONTEXT_NAMESPACE, a as TAX_FORM_CONTEXT_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, C as CURRENCIES_NAMESPACE, b as COUNTRIES_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, G as GET_USER$2, d as COUNTRIES_QUERY_NAMESPACE, e as GET_COUNTRIES, f as FINANCE_NETWORK_SETTINGS_NAMESPACE, g as GET_FINANCE_NETWORK_SETTINGS, h as CURRENCIES_QUERY_NAMESPACE, i as GET_CURRENCIES } from './data-91756a72.js';
|
|
27
27
|
import { a as useRequestRerender } from './re-render-fa467bec.js';
|
|
28
28
|
import { l as luxon } from './luxon-40b943cb.js';
|
|
@@ -2629,7 +2629,9 @@ const vanillaStyle$2 = `
|
|
|
2629
2629
|
const sheet$1 = createStyleSheet(style$1);
|
|
2630
2630
|
const styleString$1 = sheet$1.toString();
|
|
2631
2631
|
function PayoutStatusAlertView(props) {
|
|
2632
|
-
const {
|
|
2632
|
+
const { states, data, callbacks } = props;
|
|
2633
|
+
const text = withPaymentInfoAlertCopy(props.text, states.canEditPayoutInfo);
|
|
2634
|
+
const editPayoutInfoButtonProps = getEditPayoutInfoButtonProps(states.canEditPayoutInfo, callbacks.onPaymentInfoClick);
|
|
2633
2635
|
function getAlert(status) {
|
|
2634
2636
|
if (states.error)
|
|
2635
2637
|
return {
|
|
@@ -2756,7 +2758,7 @@ function PayoutStatusAlertView(props) {
|
|
|
2756
2758
|
supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
2757
2759
|
}),
|
|
2758
2760
|
button: (h$1("div", { class: sheet$1.classes.ButtonContainer },
|
|
2759
|
-
h$1("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base",
|
|
2761
|
+
h$1("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", ...editPayoutInfoButtonProps }, text.editPaymentInformationButton),
|
|
2760
2762
|
h$1("sl-button", { disabled: states.loading, type: "secondary", exportparts: "base: secondarybutton-base", onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
2761
2763
|
alertType: "warning",
|
|
2762
2764
|
icon: "exclamation-triangle",
|
|
@@ -2771,7 +2773,7 @@ function PayoutStatusAlertView(props) {
|
|
|
2771
2773
|
supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
2772
2774
|
}),
|
|
2773
2775
|
button: (h$1("div", { class: sheet$1.classes.ButtonContainer },
|
|
2774
|
-
h$1("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base",
|
|
2776
|
+
h$1("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", ...editPayoutInfoButtonProps }, text.editPaymentInformationButton),
|
|
2775
2777
|
h$1("sl-button", { disabled: states.loading, type: "secondary", exportparts: "base: secondarybutton-base", onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
2776
2778
|
alertType: "warning",
|
|
2777
2779
|
icon: "exclamation-triangle",
|
|
@@ -2786,7 +2788,7 @@ function PayoutStatusAlertView(props) {
|
|
|
2786
2788
|
supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
2787
2789
|
}),
|
|
2788
2790
|
button: (h$1("div", { class: sheet$1.classes.ButtonContainer },
|
|
2789
|
-
h$1("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base",
|
|
2791
|
+
h$1("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", ...editPayoutInfoButtonProps }, text.editPaymentInformationButton),
|
|
2790
2792
|
h$1("sl-button", { disabled: states.loading, type: "secondary", exportparts: "base: secondarybutton-base", onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
2791
2793
|
alertType: "warning",
|
|
2792
2794
|
icon: "exclamation-triangle",
|
|
@@ -2801,7 +2803,7 @@ function PayoutStatusAlertView(props) {
|
|
|
2801
2803
|
supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
2802
2804
|
}),
|
|
2803
2805
|
button: (h$1("div", { class: sheet$1.classes.ButtonContainer },
|
|
2804
|
-
h$1("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base",
|
|
2806
|
+
h$1("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", ...editPayoutInfoButtonProps }, text.editPaymentInformationButton))),
|
|
2805
2807
|
alertType: "warning",
|
|
2806
2808
|
icon: "exclamation-triangle",
|
|
2807
2809
|
};
|
|
@@ -2815,7 +2817,7 @@ function PayoutStatusAlertView(props) {
|
|
|
2815
2817
|
supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
2816
2818
|
}),
|
|
2817
2819
|
button: (h$1("div", { class: sheet$1.classes.ButtonContainer },
|
|
2818
|
-
h$1("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base",
|
|
2820
|
+
h$1("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", ...editPayoutInfoButtonProps }, text.editPaymentInformationButton))),
|
|
2819
2821
|
alertType: "error",
|
|
2820
2822
|
icon: "exclamation-triangle",
|
|
2821
2823
|
};
|
|
@@ -2904,14 +2906,23 @@ const PayoutStatusAlert = class {
|
|
|
2904
2906
|
this.paymentHoldOnChangeDescription = "Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.";
|
|
2905
2907
|
this.beneficiaryNameInvalidHeader = "Your payment information does not match your tax form";
|
|
2906
2908
|
this.beneficiaryNameInvalidDescription = "The account holder (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
|
|
2909
|
+
this.beneficiaryNameInvalidNonBrandedHeader = "Account holder name contains invalid characters";
|
|
2910
|
+
this.beneficiaryNameInvalidNonBrandedDescription = "The account holder name in your payment information contains characters we can't accept. Go to impact.com to update it so it is valid and matches the name on your tax form. Your payouts are on hold until this is resolved.";
|
|
2907
2911
|
this.beneficiaryNameMismatchHeader = "Your payment information does not match your tax form";
|
|
2908
2912
|
this.beneficiaryNameMismatchDescription = "The account holder (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
|
|
2913
|
+
this.beneficiaryNameMismatchNonBrandedHeader = "Account holder name doesn't match your tax form";
|
|
2914
|
+
this.beneficiaryNameMismatchNonBrandedDescription = "The account holder name in your payment information doesn't match the name on your tax form. Go to impact.com to update one or both so the names match exactly. Your payouts are on hold until this is resolved.";
|
|
2909
2915
|
this.bankTaxNameMismatchHeader = "Your payment information does not match your tax form";
|
|
2910
2916
|
this.bankTaxNameMismatchDescription = "The bank account (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
|
|
2917
|
+
this.bankTaxNameMismatchNonBrandedHeader = "Bank account name doesn't match your tax form";
|
|
2918
|
+
this.bankTaxNameMismatchNonBrandedDescription = "The name on your bank account doesn't match the name on your tax form. Go to impact.com to update your payment information or your tax form so the two names match exactly. Your payouts are on hold until this is resolved.";
|
|
2911
2919
|
this.withdrawalSettingsInvalidHeader = "Your payment information is incomplete or includes invalid characters";
|
|
2912
2920
|
this.withdrawalSettingsInvalidDescription = "There are missing fields or invalid characters in your payment information. Please review your information and make sure it is correct. Your payouts are on hold until this is resolved.";
|
|
2921
|
+
this.withdrawalSettingsInvalidNonBrandedHeader = "Payment information is incomplete or contains errors";
|
|
2922
|
+
this.withdrawalSettingsInvalidNonBrandedDescription = "Some required details in your payment information are missing or contain invalid characters. Go to impact.com to review and complete your information. Your payouts are on hold until this is resolved.";
|
|
2913
2923
|
this.paymentReturnedHeader = "Payout unsuccessful";
|
|
2914
2924
|
this.paymentReturnedDescription = "Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.";
|
|
2925
|
+
this.paymentReturnedNonBrandedDescription = "Your most recent payment for your earnings was returned. Go to impact.com to check that your payment information is correct and up to date.";
|
|
2915
2926
|
this.w9RequiredHeader = "Your next payout is on hold";
|
|
2916
2927
|
this.w9RequiredDescription = "You have surpassed the $2000 threshold requiring a W-9 form or have multiple accounts with impact.com. To remove the hold, please submit your W-9 form.";
|
|
2917
2928
|
this.w9RequiredButtonText = "Submit W-9";
|
|
@@ -6062,14 +6073,23 @@ const TaxAndCashMonolith = class {
|
|
|
6062
6073
|
this.dashboard_paymentOnHoldDescription = "Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.";
|
|
6063
6074
|
this.dashboard_beneficiaryNameInvalidHeader = "Your payment information does not match your tax form";
|
|
6064
6075
|
this.dashboard_beneficiaryNameInvalidDescription = "The account holder (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
|
|
6076
|
+
this.dashboard_beneficiaryNameInvalidNonBrandedHeader = "Account holder name contains invalid characters";
|
|
6077
|
+
this.dashboard_beneficiaryNameInvalidNonBrandedDescription = "The account holder name in your payment information contains characters we can't accept. Go to impact.com to update it so it is valid and matches the name on your tax form. Your payouts are on hold until this is resolved.";
|
|
6065
6078
|
this.dashboard_beneficiaryNameMismatchHeader = "Your payment information does not match your tax form";
|
|
6066
6079
|
this.dashboard_beneficiaryNameMismatchDescription = "The account holder (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
|
|
6067
|
-
this.
|
|
6068
|
-
this.
|
|
6080
|
+
this.dashboard_beneficiaryNameMismatchNonBrandedHeader = "Account holder name doesn't match your tax form";
|
|
6081
|
+
this.dashboard_beneficiaryNameMismatchNonBrandedDescription = "The account holder name in your payment information doesn't match the name on your tax form. Go to impact.com to update one or both so the names match exactly. Your payouts are on hold until this is resolved.";
|
|
6082
|
+
this.dashboard_bankTaxNameMismatchHeader = "Your payment information does not match your tax form";
|
|
6083
|
+
this.dashboard_bankTaxNameMismatchDescription = "The bank account (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
|
|
6084
|
+
this.dashboard_bankTaxNameMismatchNonBrandedHeader = "Bank account name doesn't match your tax form";
|
|
6085
|
+
this.dashboard_bankTaxNameMismatchNonBrandedDescription = "The name on your bank account doesn't match the name on your tax form. Go to impact.com to update your payment information or your tax form so the two names match exactly. Your payouts are on hold until this is resolved.";
|
|
6069
6086
|
this.dashboard_withdrawalSettingsInvalidHeader = "Your payment information is incomplete or includes invalid characters";
|
|
6070
6087
|
this.dashboard_withdrawalSettingsInvalidDescription = "There are missing fields or invalid characters in your payment information. Please review your information and make sure it is correct. Your payouts are on hold until this is resolved.";
|
|
6088
|
+
this.dashboard_withdrawalSettingsInvalidNonBrandedHeader = "Payment information is incomplete or contains errors";
|
|
6089
|
+
this.dashboard_withdrawalSettingsInvalidNonBrandedDescription = "Some required details in your payment information are missing or contain invalid characters. Go to impact.com to review and complete your information. Your payouts are on hold until this is resolved.";
|
|
6071
6090
|
this.dashboard_paymentReturnedHeader = "Payout unsuccessful";
|
|
6072
6091
|
this.dashboard_paymentReturnedDescription = "Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.";
|
|
6092
|
+
this.dashboard_paymentReturnedNonBrandedDescription = "Your most recent payment for your earnings was returned. Go to impact.com to check that your payment information is correct and up to date.";
|
|
6073
6093
|
this.dashboard_termsAndConditions = "Terms and Conditions";
|
|
6074
6094
|
this.dashboard_w9RequiredButtonText = "Submit W-9";
|
|
6075
6095
|
this.formStep = "Step {step} of {count}";
|
|
@@ -11,7 +11,7 @@ import { K as inspect, L as GraphQLError, M as devAssert, N as Kind, O as invari
|
|
|
11
11
|
import { b as PortalRegisterView, P as PortalForgotPasswordView, a as PortalLoginView, c as PortalVerifyEmailView } from './sqm-portal-verify-email-view-0c421bd0.js';
|
|
12
12
|
import { C as CloseButtonView } from './sqm-close-button-view-1deb12b1.js';
|
|
13
13
|
import { G as GenericTableView } from './GenericTableView-4f7ac63d.js';
|
|
14
|
-
import { I as InvoiceTableView, T as TaxAndCashDashboardView$1, O as OtherRegionSlotView, U as UserInfoFormView$1 } from './sqm-user-info-form-view-
|
|
14
|
+
import { I as InvoiceTableView, T as TaxAndCashDashboardView$1, O as OtherRegionSlotView, U as UserInfoFormView$1 } from './sqm-user-info-form-view-6693aa82.js';
|
|
15
15
|
import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-cd52cc80.js';
|
|
16
16
|
import { L as LogoutCurrentUserView } from './sqm-logout-current-user-view-9bda187a.js';
|
|
17
17
|
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-1a2d6650.js';
|
|
@@ -19,7 +19,7 @@ import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-
|
|
|
19
19
|
import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-f9fb6355.js';
|
|
20
20
|
import { Q as QrCodeView } from './sqm-qr-code-view-f8de4606.js';
|
|
21
21
|
import { l as luxon } from './luxon-40b943cb.js';
|
|
22
|
-
import { t as taxTypeToName, L as LoadingView, I as INDIRECT_TAX_SPAIN_REGIONS, a as INDIRECT_TAX_PROVINCES } from './subregions-
|
|
22
|
+
import { t as taxTypeToName, L as LoadingView, I as INDIRECT_TAX_SPAIN_REGIONS, a as INDIRECT_TAX_PROVINCES } from './subregions-7f834e40.js';
|
|
23
23
|
import { E as EmailRegistrationView } from './email-registration-view-7a63a912.js';
|
|
24
24
|
import { L as LeadInputFieldView } from './sqm-lead-input-field-view-f9be9365.js';
|
|
25
25
|
import { L as LeadCheckboxFieldView } from './sqm-lead-checkbox-field-view-84103484.js';
|
|
@@ -36535,6 +36535,15 @@ const defaultText$2 = {
|
|
|
36535
36535
|
withdrawalSettingsInvalidDescription: "There are missing fields or invalid characters in your payment information. Please review your information and make sure it is correct. Your payouts are on hold until this is resolved.",
|
|
36536
36536
|
paymentReturnedHeader: "Payout unsuccessful",
|
|
36537
36537
|
paymentReturnedDescription: "Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.",
|
|
36538
|
+
beneficiaryNameInvalidNonBrandedHeader: "Account holder name contains invalid characters",
|
|
36539
|
+
beneficiaryNameInvalidNonBrandedDescription: "The account holder name in your payment information contains characters we can't accept. Go to impact.com to update it so it is valid and matches the name on your tax form. Your payouts are on hold until this is resolved.",
|
|
36540
|
+
beneficiaryNameMismatchNonBrandedHeader: "Account holder name doesn't match your tax form",
|
|
36541
|
+
beneficiaryNameMismatchNonBrandedDescription: "The account holder name in your payment information doesn't match the name on your tax form. Go to impact.com to update one or both so the names match exactly. Your payouts are on hold until this is resolved.",
|
|
36542
|
+
bankTaxNameMismatchNonBrandedHeader: "Bank account name doesn't match your tax form",
|
|
36543
|
+
bankTaxNameMismatchNonBrandedDescription: "The name on your bank account doesn't match the name on your tax form. Go to impact.com to update your payment information or your tax form so the two names match exactly. Your payouts are on hold until this is resolved.",
|
|
36544
|
+
withdrawalSettingsInvalidNonBrandedHeader: "Payment information is incomplete or contains errors",
|
|
36545
|
+
withdrawalSettingsInvalidNonBrandedDescription: "Some required details in your payment information are missing or contain invalid characters. Go to impact.com to review and complete your information. Your payouts are on hold until this is resolved.",
|
|
36546
|
+
paymentReturnedNonBrandedDescription: "Your most recent payment for your earnings was returned. Go to impact.com to check that your payment information is correct and up to date.",
|
|
36538
36547
|
termsAndConditions: "Terms and Conditions",
|
|
36539
36548
|
error: {
|
|
36540
36549
|
generalTitle: "There was a problem submitting your information",
|
|
@@ -36602,6 +36611,31 @@ const BeneficiaryNameMismatch$1 = () => (h$1(TaxAndCashDashboardView$1, { states
|
|
|
36602
36611
|
const BankTaxNameMismatch$1 = () => (h$1(TaxAndCashDashboardView$1, { states: { ...baseStates, payoutStatus: "BANK_TAX_NAME_MISMATCH" }, text: defaultText$2, callbacks: defaultCallbacks, slots: defaultSlots }));
|
|
36603
36612
|
const WithdrawalSettingsInvalid$1 = () => (h$1(TaxAndCashDashboardView$1, { states: { ...baseStates, payoutStatus: "WITHDRAWAL_SETTINGS_INVALID" }, text: defaultText$2, callbacks: defaultCallbacks, slots: defaultSlots }));
|
|
36604
36613
|
const PaymentReturned$1 = () => (h$1(TaxAndCashDashboardView$1, { states: { ...baseStates, payoutStatus: "PAYMENT_RETURNED" }, text: defaultText$2, callbacks: defaultCallbacks, slots: defaultSlots }));
|
|
36614
|
+
const BeneficiaryNameInvalidNonBranded$1 = () => (h$1(TaxAndCashDashboardView$1, { states: {
|
|
36615
|
+
...baseStates,
|
|
36616
|
+
payoutStatus: "BENEFICIARY_NAME_INVALID",
|
|
36617
|
+
canEditPayoutInfo: false,
|
|
36618
|
+
}, text: defaultText$2, callbacks: defaultCallbacks, slots: defaultSlots }));
|
|
36619
|
+
const BeneficiaryNameMismatchNonBranded$1 = () => (h$1(TaxAndCashDashboardView$1, { states: {
|
|
36620
|
+
...baseStates,
|
|
36621
|
+
payoutStatus: "BENEFICIARY_NAME_MISMATCH",
|
|
36622
|
+
canEditPayoutInfo: false,
|
|
36623
|
+
}, text: defaultText$2, callbacks: defaultCallbacks, slots: defaultSlots }));
|
|
36624
|
+
const BankTaxNameMismatchNonBranded$1 = () => (h$1(TaxAndCashDashboardView$1, { states: {
|
|
36625
|
+
...baseStates,
|
|
36626
|
+
payoutStatus: "BANK_TAX_NAME_MISMATCH",
|
|
36627
|
+
canEditPayoutInfo: false,
|
|
36628
|
+
}, text: defaultText$2, callbacks: defaultCallbacks, slots: defaultSlots }));
|
|
36629
|
+
const WithdrawalSettingsInvalidNonBranded$1 = () => (h$1(TaxAndCashDashboardView$1, { states: {
|
|
36630
|
+
...baseStates,
|
|
36631
|
+
payoutStatus: "WITHDRAWAL_SETTINGS_INVALID",
|
|
36632
|
+
canEditPayoutInfo: false,
|
|
36633
|
+
}, text: defaultText$2, callbacks: defaultCallbacks, slots: defaultSlots }));
|
|
36634
|
+
const PaymentReturnedNonBranded$1 = () => (h$1(TaxAndCashDashboardView$1, { states: {
|
|
36635
|
+
...baseStates,
|
|
36636
|
+
payoutStatus: "PAYMENT_RETURNED",
|
|
36637
|
+
canEditPayoutInfo: false,
|
|
36638
|
+
}, text: defaultText$2, callbacks: defaultCallbacks, slots: defaultSlots }));
|
|
36605
36639
|
const W9ThresholdReachedHardBlock = () => (h$1(TaxAndCashDashboardView$1, { states: {
|
|
36606
36640
|
...baseStates,
|
|
36607
36641
|
payoutStatus: "OVER_W9_THRESHOLD",
|
|
@@ -36635,6 +36669,11 @@ const TaxAndCashDashboardView = /*#__PURE__*/Object.freeze({
|
|
|
36635
36669
|
BankTaxNameMismatch: BankTaxNameMismatch$1,
|
|
36636
36670
|
WithdrawalSettingsInvalid: WithdrawalSettingsInvalid$1,
|
|
36637
36671
|
PaymentReturned: PaymentReturned$1,
|
|
36672
|
+
BeneficiaryNameInvalidNonBranded: BeneficiaryNameInvalidNonBranded$1,
|
|
36673
|
+
BeneficiaryNameMismatchNonBranded: BeneficiaryNameMismatchNonBranded$1,
|
|
36674
|
+
BankTaxNameMismatchNonBranded: BankTaxNameMismatchNonBranded$1,
|
|
36675
|
+
WithdrawalSettingsInvalidNonBranded: WithdrawalSettingsInvalidNonBranded$1,
|
|
36676
|
+
PaymentReturnedNonBranded: PaymentReturnedNonBranded$1,
|
|
36638
36677
|
W9ThresholdReachedHardBlock: W9ThresholdReachedHardBlock,
|
|
36639
36678
|
VerificationRequiredLoading: VerificationRequiredLoading,
|
|
36640
36679
|
Loading: Loading$8,
|
|
@@ -38393,6 +38432,41 @@ const WithdrawalSettingsInvalid = () => (h$1("sqm-payout-status-alert", { demoDa
|
|
|
38393
38432
|
states: { ...defaultProps$6, status: "WITHDRAWAL_SETTINGS_INVALID" },
|
|
38394
38433
|
} }));
|
|
38395
38434
|
const PaymentReturned = () => (h$1("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$6, status: "PAYMENT_RETURNED" } } }));
|
|
38435
|
+
const BeneficiaryNameInvalidNonBranded = () => (h$1("sqm-payout-status-alert", { demoData: {
|
|
38436
|
+
states: {
|
|
38437
|
+
...defaultProps$6,
|
|
38438
|
+
status: "BENEFICIARY_NAME_INVALID",
|
|
38439
|
+
canEditPayoutInfo: false,
|
|
38440
|
+
},
|
|
38441
|
+
} }));
|
|
38442
|
+
const BeneficiaryNameMismatchNonBranded = () => (h$1("sqm-payout-status-alert", { demoData: {
|
|
38443
|
+
states: {
|
|
38444
|
+
...defaultProps$6,
|
|
38445
|
+
status: "BENEFICIARY_NAME_MISMATCH",
|
|
38446
|
+
canEditPayoutInfo: false,
|
|
38447
|
+
},
|
|
38448
|
+
} }));
|
|
38449
|
+
const BankTaxNameMismatchNonBranded = () => (h$1("sqm-payout-status-alert", { demoData: {
|
|
38450
|
+
states: {
|
|
38451
|
+
...defaultProps$6,
|
|
38452
|
+
status: "BANK_TAX_NAME_MISMATCH",
|
|
38453
|
+
canEditPayoutInfo: false,
|
|
38454
|
+
},
|
|
38455
|
+
} }));
|
|
38456
|
+
const WithdrawalSettingsInvalidNonBranded = () => (h$1("sqm-payout-status-alert", { demoData: {
|
|
38457
|
+
states: {
|
|
38458
|
+
...defaultProps$6,
|
|
38459
|
+
status: "WITHDRAWAL_SETTINGS_INVALID",
|
|
38460
|
+
canEditPayoutInfo: false,
|
|
38461
|
+
},
|
|
38462
|
+
} }));
|
|
38463
|
+
const PaymentReturnedNonBranded = () => (h$1("sqm-payout-status-alert", { demoData: {
|
|
38464
|
+
states: {
|
|
38465
|
+
...defaultProps$6,
|
|
38466
|
+
status: "PAYMENT_RETURNED",
|
|
38467
|
+
canEditPayoutInfo: false,
|
|
38468
|
+
},
|
|
38469
|
+
} }));
|
|
38396
38470
|
|
|
38397
38471
|
const PayoutStatusAlert = /*#__PURE__*/Object.freeze({
|
|
38398
38472
|
__proto__: null,
|
|
@@ -38414,7 +38488,12 @@ const PayoutStatusAlert = /*#__PURE__*/Object.freeze({
|
|
|
38414
38488
|
BeneficiaryNameMismatch: BeneficiaryNameMismatch,
|
|
38415
38489
|
BankTaxNameMismatch: BankTaxNameMismatch,
|
|
38416
38490
|
WithdrawalSettingsInvalid: WithdrawalSettingsInvalid,
|
|
38417
|
-
PaymentReturned: PaymentReturned
|
|
38491
|
+
PaymentReturned: PaymentReturned,
|
|
38492
|
+
BeneficiaryNameInvalidNonBranded: BeneficiaryNameInvalidNonBranded,
|
|
38493
|
+
BeneficiaryNameMismatchNonBranded: BeneficiaryNameMismatchNonBranded,
|
|
38494
|
+
BankTaxNameMismatchNonBranded: BankTaxNameMismatchNonBranded,
|
|
38495
|
+
WithdrawalSettingsInvalidNonBranded: WithdrawalSettingsInvalidNonBranded,
|
|
38496
|
+
PaymentReturnedNonBranded: PaymentReturnedNonBranded
|
|
38418
38497
|
});
|
|
38419
38498
|
|
|
38420
38499
|
// ! IMPORTANT: These objects cannot be used as default values for component props
|
package/dist/esm/{sqm-user-info-form-view-0d95c791.js → sqm-user-info-form-view-6693aa82.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from './index-7a8b0c0b.js';
|
|
2
2
|
import { c as createStyleSheet } from './JSS-e97b34f4.js';
|
|
3
3
|
import { i as intl } from './global-11396707.js';
|
|
4
|
-
import { f as formatErrorMessage, a as INDIRECT_TAX_PROVINCES, L as LoadingView, i as isValidI18nPhoneNumber, v as validateBillingField } from './subregions-
|
|
4
|
+
import { w as withPaymentInfoAlertCopy, g as getEditPayoutInfoButtonProps, f as formatErrorMessage, a as INDIRECT_TAX_PROVINCES, L as LoadingView, i as isValidI18nPhoneNumber, v as validateBillingField } from './subregions-7f834e40.js';
|
|
5
5
|
import { F as FORM_STEPS } from './data-91756a72.js';
|
|
6
6
|
import { A as AsYouType } from './AsYouType-cc09fa68.js';
|
|
7
7
|
|
|
@@ -321,7 +321,9 @@ const vanillaStyle$2 = `
|
|
|
321
321
|
`;
|
|
322
322
|
const TaxAndCashDashboardView = (props) => {
|
|
323
323
|
var _a;
|
|
324
|
-
const { states,
|
|
324
|
+
const { states, callbacks, slots } = props;
|
|
325
|
+
const text = withPaymentInfoAlertCopy(props.text, states.canEditPayoutInfo);
|
|
326
|
+
const editPayoutInfoButtonProps = getEditPayoutInfoButtonProps(states.canEditPayoutInfo, callbacks.onEditPayoutInfo);
|
|
325
327
|
function getAlert(status) {
|
|
326
328
|
switch (status) {
|
|
327
329
|
case "OVER_W9_THRESHOLD":
|
|
@@ -446,7 +448,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
446
448
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
447
449
|
}),
|
|
448
450
|
button: (h("div", { class: sheet$2.classes.ButtonContainer },
|
|
449
|
-
h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet$2.classes.EditBankDetailsButton,
|
|
451
|
+
h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet$2.classes.EditBankDetailsButton, ...editPayoutInfoButtonProps }, text.editPaymentInformationButton),
|
|
450
452
|
h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: secondarybutton-base", class: sheet$2.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
451
453
|
alertType: "warning",
|
|
452
454
|
icon: "exclamation-triangle",
|
|
@@ -462,7 +464,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
462
464
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
463
465
|
}),
|
|
464
466
|
button: (h("div", { class: sheet$2.classes.ButtonContainer },
|
|
465
|
-
h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet$2.classes.EditBankDetailsButton,
|
|
467
|
+
h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet$2.classes.EditBankDetailsButton, ...editPayoutInfoButtonProps }, text.editPaymentInformationButton),
|
|
466
468
|
h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: secondarybutton-base", class: sheet$2.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
467
469
|
alertType: "warning",
|
|
468
470
|
icon: "exclamation-triangle",
|
|
@@ -478,7 +480,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
478
480
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
479
481
|
}),
|
|
480
482
|
button: (h("div", { class: sheet$2.classes.ButtonContainer },
|
|
481
|
-
h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet$2.classes.EditBankDetailsButton,
|
|
483
|
+
h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet$2.classes.EditBankDetailsButton, ...editPayoutInfoButtonProps }, text.editPaymentInformationButton),
|
|
482
484
|
h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: secondarybutton-base", class: sheet$2.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
483
485
|
alertType: "warning",
|
|
484
486
|
icon: "exclamation-triangle",
|
|
@@ -493,7 +495,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
493
495
|
}, {
|
|
494
496
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
495
497
|
}),
|
|
496
|
-
button: (h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: primarybutton-base", class: sheet$2.classes.EditBankDetailsButton,
|
|
498
|
+
button: (h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: primarybutton-base", class: sheet$2.classes.EditBankDetailsButton, ...editPayoutInfoButtonProps }, text.editPaymentInformationButton)),
|
|
497
499
|
alertType: "warning",
|
|
498
500
|
icon: "exclamation-triangle",
|
|
499
501
|
class: sheet$2.classes.WarningHoldAlertContainer,
|
|
@@ -507,7 +509,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
507
509
|
}, {
|
|
508
510
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
509
511
|
}),
|
|
510
|
-
button: (h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet$2.classes.EditBankDetailsButton,
|
|
512
|
+
button: (h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet$2.classes.EditBankDetailsButton, ...editPayoutInfoButtonProps }, text.editPaymentInformationButton)),
|
|
511
513
|
alertType: "error",
|
|
512
514
|
icon: "exclamation-triangle",
|
|
513
515
|
class: sheet$2.classes.WarningHoldAlertContainer,
|
|
@@ -905,6 +905,32 @@ function getParticipantEmail(user) {
|
|
|
905
905
|
? user.managedIdentity.email
|
|
906
906
|
: user === null || user === void 0 ? void 0 : user.email;
|
|
907
907
|
}
|
|
908
|
+
const IMPACT_APP_URL = "https://app.impact.com";
|
|
909
|
+
/**
|
|
910
|
+
* Non-branded partners manage their payment information on impact.com, so
|
|
911
|
+
* their payment information alerts use copy that points them there.
|
|
912
|
+
*/
|
|
913
|
+
function withPaymentInfoAlertCopy(text, canEditPayoutInfo) {
|
|
914
|
+
if (canEditPayoutInfo !== false)
|
|
915
|
+
return text;
|
|
916
|
+
return {
|
|
917
|
+
...text,
|
|
918
|
+
beneficiaryNameInvalidHeader: text.beneficiaryNameInvalidNonBrandedHeader,
|
|
919
|
+
beneficiaryNameInvalidDescription: text.beneficiaryNameInvalidNonBrandedDescription,
|
|
920
|
+
beneficiaryNameMismatchHeader: text.beneficiaryNameMismatchNonBrandedHeader,
|
|
921
|
+
beneficiaryNameMismatchDescription: text.beneficiaryNameMismatchNonBrandedDescription,
|
|
922
|
+
bankTaxNameMismatchHeader: text.bankTaxNameMismatchNonBrandedHeader,
|
|
923
|
+
bankTaxNameMismatchDescription: text.bankTaxNameMismatchNonBrandedDescription,
|
|
924
|
+
withdrawalSettingsInvalidHeader: text.withdrawalSettingsInvalidNonBrandedHeader,
|
|
925
|
+
withdrawalSettingsInvalidDescription: text.withdrawalSettingsInvalidNonBrandedDescription,
|
|
926
|
+
paymentReturnedDescription: text.paymentReturnedNonBrandedDescription,
|
|
927
|
+
};
|
|
928
|
+
}
|
|
929
|
+
function getEditPayoutInfoButtonProps(canEditPayoutInfo, onClick) {
|
|
930
|
+
return canEditPayoutInfo === false
|
|
931
|
+
? { href: IMPACT_APP_URL, target: "_blank" }
|
|
932
|
+
: { onClick };
|
|
933
|
+
}
|
|
908
934
|
/**
|
|
909
935
|
* Normalize user input to the domestic form Impact stores: digits only,
|
|
910
936
|
* with the country dial code and trunk-zero prefix removed.
|
|
@@ -1456,4 +1482,4 @@ const ADDRESS_REGIONS = {
|
|
|
1456
1482
|
},
|
|
1457
1483
|
};
|
|
1458
1484
|
|
|
1459
|
-
export { ADDRESS_REGIONS as A, INDIRECT_TAX_SPAIN_REGIONS as I, LoadingView as L, INDIRECT_TAX_PROVINCES as a,
|
|
1485
|
+
export { ADDRESS_REGIONS as A, INDIRECT_TAX_SPAIN_REGIONS as I, LoadingView as L, INDIRECT_TAX_PROVINCES as a, getCountryObj as b, isBalanceUnderPayoutThreshold as c, formatPayoutThreshold as d, getParticipantEmail as e, formatErrorMessage as f, getEditPayoutInfoButtonProps as g, validTaxDocument as h, isValidI18nPhoneNumber as i, toDomesticNumber as j, objectIsFull as o, taxTypeToName as t, validateBillingField as v, withPaymentInfoAlertCopy as w };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { d as dist, b as useUserIdentity, f as useMutation, g as getEnvironmentSDK, e as useQuery, v as useLocale, u as useParentValue, ac as useParent, ad as useParentQueryValue } from './index-ebb35768.js';
|
|
2
2
|
import { k as useState, j as useEffect, m as useRef, u as useMemo } from './dom-context-hooks.module-f88a3e54.js';
|
|
3
3
|
import { T as TAX_FORM_UPDATED_EVENT_KEY } from './parseStates-0c27f2de.js';
|
|
4
|
-
import {
|
|
4
|
+
import { c as isBalanceUnderPayoutThreshold, d as formatPayoutThreshold, e as getParticipantEmail, I as INDIRECT_TAX_SPAIN_REGIONS, a as INDIRECT_TAX_PROVINCES, b as getCountryObj, h as validTaxDocument } from './subregions-7f834e40.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-c5423376.js';
|
|
6
6
|
import { a as TAX_FORM_CONTEXT_NAMESPACE, T as TAX_CONTEXT_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, c as USER_QUERY_NAMESPACE, d as COUNTRIES_QUERY_NAMESPACE } from './data-91756a72.js';
|
|
7
7
|
|
|
@@ -976,6 +976,7 @@ const GET_USER_STATUS = dist.gql `
|
|
|
976
976
|
publisher {
|
|
977
977
|
id
|
|
978
978
|
currency
|
|
979
|
+
brandedSignup
|
|
979
980
|
currentTaxDocument {
|
|
980
981
|
status
|
|
981
982
|
type
|
|
@@ -1050,7 +1051,7 @@ function getStatus(data) {
|
|
|
1050
1051
|
return "DONE";
|
|
1051
1052
|
}
|
|
1052
1053
|
function usePayoutStatus(props) {
|
|
1053
|
-
var _a, _b, _c, _d, _e;
|
|
1054
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1054
1055
|
const { type } = getEnvironmentSDK();
|
|
1055
1056
|
const { loading, data, errors, refetch } = useQuery(GET_USER_STATUS, {});
|
|
1056
1057
|
const { data: taxSettingRes } = useQuery(GET_TAX_SETTING, {});
|
|
@@ -1100,8 +1101,9 @@ function usePayoutStatus(props) {
|
|
|
1100
1101
|
status,
|
|
1101
1102
|
error: !!errors,
|
|
1102
1103
|
enforceUsTaxComplianceOption,
|
|
1103
|
-
|
|
1104
|
-
|
|
1104
|
+
canEditPayoutInfo: (_d = (_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) === null || _d === void 0 ? void 0 : _d.brandedSignup,
|
|
1105
|
+
belowPayoutThreshold: isBalanceUnderPayoutThreshold((_f = (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.impactConnection) === null || _f === void 0 ? void 0 : _f.publisher),
|
|
1106
|
+
minPayoutAmount: formatPayoutThreshold((_h = (_g = data === null || data === void 0 ? void 0 : data.user) === null || _g === void 0 ? void 0 : _g.impactConnection) === null || _h === void 0 ? void 0 : _h.publisher),
|
|
1105
1107
|
},
|
|
1106
1108
|
data: { type },
|
|
1107
1109
|
text: props.getTextProps(),
|