@saasquatch/mint-components 2.5.10-0 → 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 +27 -20
- package/dist/cjs/sqm-big-stat_47.cjs.entry.js +30 -10
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +83 -3
- package/dist/cjs/{sqm-user-info-form-view-df5b95be.js → sqm-user-info-form-view-9416da92.js} +9 -7
- package/dist/cjs/{subregions-fd4e4ee2.js → subregions-e18b324d.js} +36 -0
- package/dist/cjs/{useIndirectTaxForm-76b94531.js → useIndirectTaxForm-31c63877.js} +8 -6
- 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/TaxForm.stories.js +1 -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 +1 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +2 -0
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +3 -3
- 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/sqm-user-info-form/useUserInfoForm.js +13 -16
- package/dist/collection/components/tax-and-cash/utils.js +33 -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 +27 -20
- package/dist/esm/sqm-big-stat_47.entry.js +30 -10
- package/dist/esm/sqm-stencilbook.entry.js +83 -3
- package/dist/esm/{sqm-user-info-form-view-d35324ba.js → sqm-user-info-form-view-6693aa82.js} +9 -7
- package/dist/esm/{subregions-c7df98a1.js → subregions-7f834e40.js} +34 -1
- package/dist/esm/{useIndirectTaxForm-6ea561e4.js → useIndirectTaxForm-58b0ea4b.js} +8 -6
- 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-58b0ea4b.js +6 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-0714330d.system.js +6 -0
- package/dist/mint-components/p-07f70909.system.entry.js +1 -0
- package/dist/mint-components/{p-4314e5c9.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-9098802a.entry.js +83 -0
- package/dist/mint-components/{p-477fe6fa.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-c9fc666c.system.entry.js +1 -0
- 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-banking-info-form/sqm-banking-info-form-view.d.ts +1 -0
- 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 +38 -1
- package/dist/types/components.d.ts +220 -4
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/docs/stats.json +1588 -235
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/sqm-user-info-form-view-d35324ba.js +0 -1
- package/dist/esm-es5/subregions-c7df98a1.js +0 -1
- package/dist/esm-es5/useIndirectTaxForm-6ea561e4.js +0 -6
- package/dist/mint-components/p-089c0803.js +0 -1
- package/dist/mint-components/p-1cb0fc65.system.js +0 -6
- package/dist/mint-components/p-2401753b.js +0 -1
- package/dist/mint-components/p-59f9d9bb.js +0 -107
- package/dist/mint-components/p-615dbc66.system.entry.js +0 -1
- package/dist/mint-components/p-98659a12.system.js +0 -1
- package/dist/mint-components/p-9e90f38e.entry.js +0 -83
- package/dist/mint-components/p-aaf05ef1.entry.js +0 -308
- package/dist/mint-components/p-db8e74e0.system.entry.js +0 -1
- package/dist/mint-components/p-ed18f6a0.system.js +0 -1
|
@@ -9,9 +9,9 @@ import { F as FORM_STEPS, T as TAX_CONTEXT_NAMESPACE, a as TAX_FORM_CONTEXT_NAME
|
|
|
9
9
|
import { j as jsonpointer } from './jsonpointer-c5423376.js';
|
|
10
10
|
import { c as VERIFICATION_EVENT_KEY } from './keys-1054056a.js';
|
|
11
11
|
import { T as TAX_FORM_UPDATED_EVENT_KEY, p as parseStates } from './parseStates-0c27f2de.js';
|
|
12
|
-
import { t as taxTypeToName,
|
|
13
|
-
import { O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, T as TaxAndCashDashboardView, U as UserInfoFormView } from './sqm-user-info-form-view-
|
|
14
|
-
import { a as useIndirectTaxForm, b as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY, c as CONNECT_PARTNER, C as COMPLETE_PARTNER } from './useIndirectTaxForm-
|
|
12
|
+
import { e as getParticipantEmail, t as taxTypeToName, h as validTaxDocument, I as INDIRECT_TAX_SPAIN_REGIONS, a as INDIRECT_TAX_PROVINCES, d as formatPayoutThreshold, c as isBalanceUnderPayoutThreshold, o as objectIsFull, j as toDomesticNumber, A as ADDRESS_REGIONS } from './subregions-7f834e40.js';
|
|
13
|
+
import { O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, T as TaxAndCashDashboardView, U as UserInfoFormView } from './sqm-user-info-form-view-6693aa82.js';
|
|
14
|
+
import { a as useIndirectTaxForm, b as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY, c as CONNECT_PARTNER, C as COMPLETE_PARTNER } from './useIndirectTaxForm-58b0ea4b.js';
|
|
15
15
|
import { G as GenericTableView } from './GenericTableView-4f7ac63d.js';
|
|
16
16
|
import { u as useRerenderListener, a as useRequestRerender } from './re-render-fa467bec.js';
|
|
17
17
|
import { g as generateUserError, d as dropZoneColumnIndexes } from './useReferralTable-91d9edb4.js';
|
|
@@ -798,12 +798,12 @@ const BankingInfoFormView = (props) => {
|
|
|
798
798
|
h("p", { part: "alert-title" }, intl.formatMessage({
|
|
799
799
|
id: "isPartnerAlertHeader",
|
|
800
800
|
defaultMessage: text.isPartnerAlertHeader,
|
|
801
|
-
}, { emailAddress: states.
|
|
801
|
+
}, { emailAddress: states.partnerEmail || "" })),
|
|
802
802
|
h("p", null, intl.formatMessage({
|
|
803
803
|
id: "isPartnerAlertDescription",
|
|
804
804
|
defaultMessage: text.isPartnerAlertDescription,
|
|
805
805
|
}, {
|
|
806
|
-
emailAddress: states.
|
|
806
|
+
emailAddress: states.partnerEmail || "",
|
|
807
807
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
808
808
|
})))),
|
|
809
809
|
h("div", null,
|
|
@@ -1305,6 +1305,7 @@ function useBankingInfoForm(props) {
|
|
|
1305
1305
|
bankCountry: formState.bankCountry,
|
|
1306
1306
|
countrySearch,
|
|
1307
1307
|
email: (_j = userData === null || userData === void 0 ? void 0 : userData.user) === null || _j === void 0 ? void 0 : _j.email,
|
|
1308
|
+
partnerEmail: getParticipantEmail(userData === null || userData === void 0 ? void 0 : userData.user),
|
|
1308
1309
|
showModal,
|
|
1309
1310
|
},
|
|
1310
1311
|
refs: {
|
|
@@ -3471,14 +3472,23 @@ const TaxAndCashDashboard = class {
|
|
|
3471
3472
|
this.paymentHoldOnChangeDescription = "Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.";
|
|
3472
3473
|
this.beneficiaryNameInvalidHeader = "Your payment information does not match your tax form";
|
|
3473
3474
|
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.";
|
|
3475
|
+
this.beneficiaryNameInvalidNonBrandedHeader = "Account holder name contains invalid characters";
|
|
3476
|
+
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.";
|
|
3474
3477
|
this.beneficiaryNameMismatchHeader = "Your payment information does not match your tax form";
|
|
3475
3478
|
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.";
|
|
3479
|
+
this.beneficiaryNameMismatchNonBrandedHeader = "Account holder name doesn't match your tax form";
|
|
3480
|
+
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.";
|
|
3476
3481
|
this.bankTaxNameMismatchHeader = "Your payment information does not match your tax form";
|
|
3477
3482
|
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.";
|
|
3483
|
+
this.bankTaxNameMismatchNonBrandedHeader = "Bank account name doesn't match your tax form";
|
|
3484
|
+
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.";
|
|
3478
3485
|
this.withdrawalSettingsInvalidHeader = "Your payment information is incomplete or includes invalid characters";
|
|
3479
3486
|
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.";
|
|
3487
|
+
this.withdrawalSettingsInvalidNonBrandedHeader = "Payment information is incomplete or contains errors";
|
|
3488
|
+
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.";
|
|
3480
3489
|
this.paymentReturnedHeader = "Payout unsuccessful";
|
|
3481
3490
|
this.paymentReturnedDescription = "Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.";
|
|
3491
|
+
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.";
|
|
3482
3492
|
this.termsAndConditions = "Terms and Conditions";
|
|
3483
3493
|
this.w9RequiredButtonText = "Submit W-9";
|
|
3484
3494
|
this.generalErrorTitle = "There was a problem submitting your information";
|
|
@@ -3614,18 +3624,15 @@ function useUserInfoForm(props) {
|
|
|
3614
3624
|
window.location.hash = "";
|
|
3615
3625
|
}, []);
|
|
3616
3626
|
useEffect(() => {
|
|
3617
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o
|
|
3627
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
3618
3628
|
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
3619
3629
|
if (!user || step !== "/1")
|
|
3620
3630
|
return;
|
|
3621
3631
|
// If form already filled out, skip initialising it
|
|
3622
3632
|
if (objectIsFull(userFormContext))
|
|
3623
3633
|
return;
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
? user.managedIdentity.email
|
|
3627
|
-
: user.email;
|
|
3628
|
-
if (((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) && ((_c = user.impactConnection) === null || _c === void 0 ? void 0 : _c.user)) {
|
|
3634
|
+
const email = getParticipantEmail(user);
|
|
3635
|
+
if (((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) && ((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.user)) {
|
|
3629
3636
|
// Initialise with partner information
|
|
3630
3637
|
setUserFormContext({
|
|
3631
3638
|
email,
|
|
@@ -3650,16 +3657,16 @@ function useUserInfoForm(props) {
|
|
|
3650
3657
|
// Initialise with user information
|
|
3651
3658
|
setUserFormContext({
|
|
3652
3659
|
email,
|
|
3653
|
-
firstName: ((
|
|
3654
|
-
lastName: ((
|
|
3660
|
+
firstName: ((_d = (_c = user.impactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.firstName) || user.firstName,
|
|
3661
|
+
lastName: ((_f = (_e = user.impactConnection) === null || _e === void 0 ? void 0 : _e.user) === null || _f === void 0 ? void 0 : _f.lastName) || user.lastName,
|
|
3655
3662
|
countryCode: user.countryCode || "US",
|
|
3656
|
-
currency: (
|
|
3657
|
-
phoneNumberCountryCode: ((
|
|
3658
|
-
phoneNumber: (
|
|
3659
|
-
address: (
|
|
3660
|
-
city: (
|
|
3661
|
-
state: (
|
|
3662
|
-
postalCode: (
|
|
3663
|
+
currency: (_g = user.customFields) === null || _g === void 0 ? void 0 : _g.currency,
|
|
3664
|
+
phoneNumberCountryCode: ((_h = user.customFields) === null || _h === void 0 ? void 0 : _h.phoneNumberCountryCode) || "US",
|
|
3665
|
+
phoneNumber: (_j = user.customFields) === null || _j === void 0 ? void 0 : _j.phoneNumber,
|
|
3666
|
+
address: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.address,
|
|
3667
|
+
city: (_l = user.customFields) === null || _l === void 0 ? void 0 : _l.city,
|
|
3668
|
+
state: (_m = user.customFields) === null || _m === void 0 ? void 0 : _m.state,
|
|
3669
|
+
postalCode: (_o = user.customFields) === null || _o === void 0 ? void 0 : _o.postalCode,
|
|
3663
3670
|
});
|
|
3664
3671
|
}
|
|
3665
3672
|
}, [data, step, userFormContext]);
|
|
@@ -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-c7df98a1.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,
|
|
@@ -36855,6 +36894,7 @@ const stepFourProps = {
|
|
|
36855
36894
|
thresholds: [],
|
|
36856
36895
|
loadingError: false,
|
|
36857
36896
|
email: "test@example.com",
|
|
36897
|
+
partnerEmail: "test@example.com",
|
|
36858
36898
|
formState: {
|
|
36859
36899
|
paymentMethodChecked: "toBankAccount",
|
|
36860
36900
|
},
|
|
@@ -38392,6 +38432,41 @@ const WithdrawalSettingsInvalid = () => (h$1("sqm-payout-status-alert", { demoDa
|
|
|
38392
38432
|
states: { ...defaultProps$6, status: "WITHDRAWAL_SETTINGS_INVALID" },
|
|
38393
38433
|
} }));
|
|
38394
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
|
+
} }));
|
|
38395
38470
|
|
|
38396
38471
|
const PayoutStatusAlert = /*#__PURE__*/Object.freeze({
|
|
38397
38472
|
__proto__: null,
|
|
@@ -38413,7 +38488,12 @@ const PayoutStatusAlert = /*#__PURE__*/Object.freeze({
|
|
|
38413
38488
|
BeneficiaryNameMismatch: BeneficiaryNameMismatch,
|
|
38414
38489
|
BankTaxNameMismatch: BankTaxNameMismatch,
|
|
38415
38490
|
WithdrawalSettingsInvalid: WithdrawalSettingsInvalid,
|
|
38416
|
-
PaymentReturned: PaymentReturned
|
|
38491
|
+
PaymentReturned: PaymentReturned,
|
|
38492
|
+
BeneficiaryNameInvalidNonBranded: BeneficiaryNameInvalidNonBranded,
|
|
38493
|
+
BeneficiaryNameMismatchNonBranded: BeneficiaryNameMismatchNonBranded,
|
|
38494
|
+
BankTaxNameMismatchNonBranded: BankTaxNameMismatchNonBranded,
|
|
38495
|
+
WithdrawalSettingsInvalidNonBranded: WithdrawalSettingsInvalidNonBranded,
|
|
38496
|
+
PaymentReturnedNonBranded: PaymentReturnedNonBranded
|
|
38417
38497
|
});
|
|
38418
38498
|
|
|
38419
38499
|
// ! IMPORTANT: These objects cannot be used as default values for component props
|
package/dist/esm/{sqm-user-info-form-view-d35324ba.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,
|
|
@@ -898,6 +898,39 @@ function parsePhoneNumber() {
|
|
|
898
898
|
return withMetadataArgument(parsePhoneNumber$1, arguments)
|
|
899
899
|
}
|
|
900
900
|
|
|
901
|
+
/** Managed identity email once verified, else the profile email. */
|
|
902
|
+
function getParticipantEmail(user) {
|
|
903
|
+
var _a;
|
|
904
|
+
return ((_a = user === null || user === void 0 ? void 0 : user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified)
|
|
905
|
+
? user.managedIdentity.email
|
|
906
|
+
: user === null || user === void 0 ? void 0 : user.email;
|
|
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
|
+
}
|
|
901
934
|
/**
|
|
902
935
|
* Normalize user input to the domestic form Impact stores: digits only,
|
|
903
936
|
* with the country dial code and trunk-zero prefix removed.
|
|
@@ -1449,4 +1482,4 @@ const ADDRESS_REGIONS = {
|
|
|
1449
1482
|
},
|
|
1450
1483
|
};
|
|
1451
1484
|
|
|
1452
|
-
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(),
|
|
@@ -1179,7 +1181,7 @@ function getOption(countries, countryCode) {
|
|
|
1179
1181
|
}
|
|
1180
1182
|
}
|
|
1181
1183
|
function useIndirectTaxForm(props) {
|
|
1182
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
|
1184
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1183
1185
|
const user = useUserIdentity();
|
|
1184
1186
|
const locale = useLocale();
|
|
1185
1187
|
const formRef = useRef(null);
|
|
@@ -1370,7 +1372,7 @@ function useIndirectTaxForm(props) {
|
|
|
1370
1372
|
isPartner: !!((_e = (_d = userData === null || userData === void 0 ? void 0 : userData.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher),
|
|
1371
1373
|
isPartnerLegacy: !!((_g = (_f = userData === null || userData === void 0 ? void 0 : userData.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.publisher) &&
|
|
1372
1374
|
((_j = (_h = userData === null || userData === void 0 ? void 0 : userData.user) === null || _h === void 0 ? void 0 : _h.impactConnection) === null || _j === void 0 ? void 0 : _j.connectionStatus) !== "STARTED",
|
|
1373
|
-
email: (userForm === null || userForm === void 0 ? void 0 : userForm.email) || (
|
|
1375
|
+
email: (userForm === null || userForm === void 0 ? void 0 : userForm.email) || getParticipantEmail(userData === null || userData === void 0 ? void 0 : userData.user),
|
|
1374
1376
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
1375
1377
|
formState: {
|
|
1376
1378
|
checked: option,
|