@saasquatch/mint-components 2.5.9 → 2.5.10
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/sqm-banking-info-form_10.cjs.entry.js +44 -38
- package/dist/cjs/sqm-big-stat_47.cjs.entry.js +5 -5
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +63 -6
- package/dist/cjs/{sqm-user-info-form-view-b2a78083.js → sqm-user-info-form-view-9b773a7c.js} +7 -3
- package/dist/cjs/{subregions-fd4e4ee2.js → subregions-77aac151.js} +8 -0
- package/dist/cjs/{useIndirectTaxForm-c5f31c83.js → useIndirectTaxForm-102d5c24.js} +2 -1
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +56 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +6 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +11 -11
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +2 -0
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +6 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +11 -11
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +10 -10
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +5 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +13 -16
- package/dist/collection/components/tax-and-cash/utils.js +7 -0
- package/dist/esm/sqm-banking-info-form_10.entry.js +44 -38
- package/dist/esm/sqm-big-stat_47.entry.js +5 -5
- package/dist/esm/sqm-stencilbook.entry.js +63 -6
- package/dist/esm/{sqm-user-info-form-view-3b420e99.js → sqm-user-info-form-view-0d95c791.js} +7 -3
- package/dist/esm/{subregions-c7df98a1.js → subregions-ec4682c7.js} +8 -1
- package/dist/esm/{useIndirectTaxForm-733f5cf4.js → useIndirectTaxForm-09809605.js} +2 -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-3b420e99.js → sqm-user-info-form-view-0d95c791.js} +1 -1
- package/dist/esm-es5/{subregions-c7df98a1.js → subregions-ec4682c7.js} +1 -1
- package/dist/esm-es5/{useIndirectTaxForm-733f5cf4.js → useIndirectTaxForm-09809605.js} +2 -2
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-3a5e63e3.entry.js → p-24d56265.entry.js} +2 -2
- package/dist/mint-components/p-2bd3f2ac.system.js +6 -0
- package/dist/mint-components/p-363bf460.system.entry.js +1 -0
- package/dist/mint-components/{p-9ccb9494.system.js → p-3dc446ec.system.js} +1 -1
- package/dist/mint-components/{p-089c0803.js → p-461a068d.js} +1 -1
- package/dist/mint-components/p-71b1cd71.entry.js +83 -0
- package/dist/mint-components/p-99d4ddee.js +107 -0
- package/dist/mint-components/p-b1d6a6f2.system.js +1 -0
- package/dist/mint-components/p-c0e26b94.entry.js +147 -0
- package/dist/mint-components/{p-33075c60.system.entry.js → p-df62cb1b.system.entry.js} +1 -1
- package/dist/mint-components/p-e78ec46b.system.js +1 -1
- package/dist/mint-components/p-ec78006c.system.entry.js +1 -0
- package/dist/mint-components/{p-60c70417.js → p-f15ad5b6.js} +1 -1
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +3 -0
- 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-banking-info-form/sqm-banking-info-form.d.ts +4 -4
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.d.ts +4 -4
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +4 -4
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +4 -4
- package/dist/types/components/tax-and-cash/utils.d.ts +3 -1
- package/dist/types/components.d.ts +32 -32
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/docs/stats.json +279 -276
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/mint-components/p-197eaa29.system.entry.js +0 -1
- package/dist/mint-components/p-51c9df1e.system.js +0 -6
- package/dist/mint-components/p-71a5086d.js +0 -107
- package/dist/mint-components/p-e0f614a2.entry.js +0 -147
- package/dist/mint-components/p-ed18f6a0.system.js +0 -1
- package/dist/mint-components/p-f05c18b9.system.entry.js +0 -1
- package/dist/mint-components/p-fabc805a.entry.js +0 -83
|
@@ -34,10 +34,10 @@ export class TaxForm {
|
|
|
34
34
|
this.formStep = "Step {step} of {count}";
|
|
35
35
|
this.personalInformation = "Personal Information";
|
|
36
36
|
this.continueButton = "Continue";
|
|
37
|
-
this.isPartnerAlertHeader = "
|
|
38
|
-
this.isPartnerAlertDescription = "
|
|
37
|
+
this.isPartnerAlertHeader = "Your email {emailAddress} already has an impact.com account";
|
|
38
|
+
this.isPartnerAlertDescription = "This is normal if you’ve used impact.com before or participated in another referral program provided by them. Fill in any missing fields to continue.";
|
|
39
39
|
this.generalErrorTitle = "There was a problem submitting your information";
|
|
40
|
-
this.generalErrorDescription = "Please review your information and try again. If
|
|
40
|
+
this.generalErrorDescription = "This is usually temporary. Please review your information and try again in a few minutes. If the problem continues, contact our {supportLink}.";
|
|
41
41
|
this.allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
|
|
42
42
|
this.termsAndConditionsLabel = "terms and conditions";
|
|
43
43
|
this.termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
@@ -408,16 +408,16 @@ export class TaxForm {
|
|
|
408
408
|
"docs": {
|
|
409
409
|
"tags": [{
|
|
410
410
|
"name": "uiName",
|
|
411
|
-
"text": "
|
|
411
|
+
"text": "Existing account alert title"
|
|
412
412
|
}, {
|
|
413
413
|
"name": "uiWidget",
|
|
414
414
|
"text": "textArea"
|
|
415
415
|
}],
|
|
416
|
-
"text": "
|
|
416
|
+
"text": "Title of the info message displayed at the top of the form if the participant already has an impact.com account. Use {emailAddress} to show the participant's email."
|
|
417
417
|
},
|
|
418
418
|
"attribute": "is-partner-alert-header",
|
|
419
419
|
"reflect": false,
|
|
420
|
-
"defaultValue": "\"
|
|
420
|
+
"defaultValue": "\"Your email {emailAddress} already has an impact.com account\""
|
|
421
421
|
},
|
|
422
422
|
"isPartnerAlertDescription": {
|
|
423
423
|
"type": "string",
|
|
@@ -432,16 +432,16 @@ export class TaxForm {
|
|
|
432
432
|
"docs": {
|
|
433
433
|
"tags": [{
|
|
434
434
|
"name": "uiName",
|
|
435
|
-
"text": "
|
|
435
|
+
"text": "Existing account alert description"
|
|
436
436
|
}, {
|
|
437
437
|
"name": "uiWidget",
|
|
438
438
|
"text": "textArea"
|
|
439
439
|
}],
|
|
440
|
-
"text": "Part of the
|
|
440
|
+
"text": "Part of the info message displayed at the top of the form if the participant already has an impact.com account."
|
|
441
441
|
},
|
|
442
442
|
"attribute": "is-partner-alert-description",
|
|
443
443
|
"reflect": false,
|
|
444
|
-
"defaultValue": "\"
|
|
444
|
+
"defaultValue": "\"This is normal if you\u2019ve used impact.com before or participated in another referral program provided by them. Fill in any missing fields to continue.\""
|
|
445
445
|
},
|
|
446
446
|
"generalErrorTitle": {
|
|
447
447
|
"type": "string",
|
|
@@ -489,7 +489,7 @@ export class TaxForm {
|
|
|
489
489
|
},
|
|
490
490
|
"attribute": "general-error-description",
|
|
491
491
|
"reflect": false,
|
|
492
|
-
"defaultValue": "\"Please review your information and try again. If
|
|
492
|
+
"defaultValue": "\"This is usually temporary. Please review your information and try again in a few minutes. If the problem continues, contact our {supportLink}.\""
|
|
493
493
|
},
|
|
494
494
|
"allowBankingCollection": {
|
|
495
495
|
"type": "string",
|
|
@@ -3,7 +3,7 @@ import { useEffect, useMemo, useRef, useState, } from "@saasquatch/universal-hoo
|
|
|
3
3
|
import jsonpointer from "jsonpointer";
|
|
4
4
|
import { CURRENCIES_NAMESPACE, SORTED_COUNTRIES_NAMESPACE, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../data";
|
|
5
5
|
import { ADDRESS_REGIONS } from "../subregions";
|
|
6
|
-
import { objectIsFull, toDomesticNumber, validTaxDocument } from "../utils";
|
|
6
|
+
import { getParticipantEmail, objectIsFull, toDomesticNumber, validTaxDocument, } from "../utils";
|
|
7
7
|
import { TAX_FORM_UPDATED_EVENT_KEY } from "../eventKeys";
|
|
8
8
|
import { CONNECT_PARTNER, COMPLETE_PARTNER, } from "../sqm-indirect-tax-form/useIndirectTaxForm";
|
|
9
9
|
import { gql } from "graphql-request";
|
|
@@ -43,18 +43,15 @@ export function useUserInfoForm(props) {
|
|
|
43
43
|
window.location.hash = "";
|
|
44
44
|
}, []);
|
|
45
45
|
useEffect(() => {
|
|
46
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o
|
|
46
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
47
47
|
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
48
48
|
if (!user || step !== "/1")
|
|
49
49
|
return;
|
|
50
50
|
// If form already filled out, skip initialising it
|
|
51
51
|
if (objectIsFull(userFormContext))
|
|
52
52
|
return;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
? user.managedIdentity.email
|
|
56
|
-
: user.email;
|
|
57
|
-
if (((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) && ((_c = user.impactConnection) === null || _c === void 0 ? void 0 : _c.user)) {
|
|
53
|
+
const email = getParticipantEmail(user);
|
|
54
|
+
if (((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) && ((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.user)) {
|
|
58
55
|
// Initialise with partner information
|
|
59
56
|
setUserFormContext({
|
|
60
57
|
email,
|
|
@@ -79,16 +76,16 @@ export function useUserInfoForm(props) {
|
|
|
79
76
|
// Initialise with user information
|
|
80
77
|
setUserFormContext({
|
|
81
78
|
email,
|
|
82
|
-
firstName: ((
|
|
83
|
-
lastName: ((
|
|
79
|
+
firstName: ((_d = (_c = user.impactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.firstName) || user.firstName,
|
|
80
|
+
lastName: ((_f = (_e = user.impactConnection) === null || _e === void 0 ? void 0 : _e.user) === null || _f === void 0 ? void 0 : _f.lastName) || user.lastName,
|
|
84
81
|
countryCode: user.countryCode || "US",
|
|
85
|
-
currency: (
|
|
86
|
-
phoneNumberCountryCode: ((
|
|
87
|
-
phoneNumber: (
|
|
88
|
-
address: (
|
|
89
|
-
city: (
|
|
90
|
-
state: (
|
|
91
|
-
postalCode: (
|
|
82
|
+
currency: (_g = user.customFields) === null || _g === void 0 ? void 0 : _g.currency,
|
|
83
|
+
phoneNumberCountryCode: ((_h = user.customFields) === null || _h === void 0 ? void 0 : _h.phoneNumberCountryCode) || "US",
|
|
84
|
+
phoneNumber: (_j = user.customFields) === null || _j === void 0 ? void 0 : _j.phoneNumber,
|
|
85
|
+
address: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.address,
|
|
86
|
+
city: (_l = user.customFields) === null || _l === void 0 ? void 0 : _l.city,
|
|
87
|
+
state: (_m = user.customFields) === null || _m === void 0 ? void 0 : _m.state,
|
|
88
|
+
postalCode: (_o = user.customFields) === null || _o === void 0 ? void 0 : _o.postalCode,
|
|
92
89
|
});
|
|
93
90
|
}
|
|
94
91
|
}, [data, step, userFormContext]);
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { parsePhoneNumberFromString } from "libphonenumber-js";
|
|
2
2
|
import { intl } from "../../global/global";
|
|
3
|
+
/** Managed identity email once verified, else the profile email. */
|
|
4
|
+
export function getParticipantEmail(user) {
|
|
5
|
+
var _a;
|
|
6
|
+
return ((_a = user === null || user === void 0 ? void 0 : user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified)
|
|
7
|
+
? user.managedIdentity.email
|
|
8
|
+
: user === null || user === void 0 ? void 0 : user.email;
|
|
9
|
+
}
|
|
3
10
|
/**
|
|
4
11
|
* Normalize user input to the domestic form Impact stores: digits only,
|
|
5
12
|
* with the country dial code and trunk-zero prefix removed.
|
|
@@ -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 { d as getParticipantEmail, t as taxTypeToName, e as validTaxDocument, I as INDIRECT_TAX_SPAIN_REGIONS, a as INDIRECT_TAX_PROVINCES, c as formatPayoutThreshold, b as isBalanceUnderPayoutThreshold, o as objectIsFull, h as toDomesticNumber, A as ADDRESS_REGIONS } from './subregions-ec4682c7.js';
|
|
13
|
+
import { O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, T as TaxAndCashDashboardView, U as UserInfoFormView } from './sqm-user-info-form-view-0d95c791.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-09809605.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';
|
|
@@ -794,14 +794,18 @@ const BankingInfoFormView = (props) => {
|
|
|
794
794
|
}, {
|
|
795
795
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
796
796
|
}))),
|
|
797
|
-
states.isPartner && !states.hideSteps && (h("sqm-form-message", { type: "info" },
|
|
798
|
-
h("p", { part: "alert-title" },
|
|
799
|
-
|
|
797
|
+
states.isPartner && !states.hideSteps && (h("sqm-form-message", { type: "info", transparent: true },
|
|
798
|
+
h("p", { part: "alert-title" }, intl.formatMessage({
|
|
799
|
+
id: "isPartnerAlertHeader",
|
|
800
|
+
defaultMessage: text.isPartnerAlertHeader,
|
|
801
|
+
}, { emailAddress: states.partnerEmail || "" })),
|
|
802
|
+
h("p", null, intl.formatMessage({
|
|
800
803
|
id: "isPartnerAlertDescription",
|
|
801
804
|
defaultMessage: text.isPartnerAlertDescription,
|
|
802
805
|
}, {
|
|
806
|
+
emailAddress: states.partnerEmail || "",
|
|
803
807
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
804
|
-
}))),
|
|
808
|
+
})))),
|
|
805
809
|
h("div", null,
|
|
806
810
|
h("h4", null, text.paymentMethod),
|
|
807
811
|
h("p", { class: classes.DescriptionText }, text.paymentMethodSubtext))),
|
|
@@ -1301,6 +1305,7 @@ function useBankingInfoForm(props) {
|
|
|
1301
1305
|
bankCountry: formState.bankCountry,
|
|
1302
1306
|
countrySearch,
|
|
1303
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),
|
|
1304
1309
|
showModal,
|
|
1305
1310
|
},
|
|
1306
1311
|
refs: {
|
|
@@ -1359,12 +1364,12 @@ const BankingInfoForm = class {
|
|
|
1359
1364
|
this.eftWithdrawalLabel = "EFT withdrawal (free)";
|
|
1360
1365
|
this.fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
|
|
1361
1366
|
this.searchForCountryText = "Search for country..";
|
|
1362
|
-
this.isPartnerAlertHeader = "
|
|
1363
|
-
this.isPartnerAlertDescription = "
|
|
1367
|
+
this.isPartnerAlertHeader = "Your email {emailAddress} already has an impact.com account";
|
|
1368
|
+
this.isPartnerAlertDescription = "This is normal if you’ve used impact.com before or participated in another referral program provided by them. Fill in any missing fields to continue.";
|
|
1364
1369
|
this.verifyEmailHeaderText = "Verify your email";
|
|
1365
1370
|
this.verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
|
|
1366
1371
|
this.generalErrorTitle = "There was a problem submitting your information";
|
|
1367
|
-
this.generalErrorDescription = "Please review your information and try again. If
|
|
1372
|
+
this.generalErrorDescription = "This is usually temporary. Please review your information and try again in a few minutes. If the problem continues, contact our {supportLink}.";
|
|
1368
1373
|
this.fieldRequiredError = "{fieldName} is required";
|
|
1369
1374
|
this.fieldInvalidError = "{fieldName} is invalid";
|
|
1370
1375
|
this.supportLink = "support team";
|
|
@@ -2155,7 +2160,7 @@ const DocusignForm = class {
|
|
|
2155
2160
|
this.docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
|
|
2156
2161
|
this.refreshButton = "Refresh Page";
|
|
2157
2162
|
this.generalErrorTitle = "There was a problem submitting your information";
|
|
2158
|
-
this.generalErrorDescription = "Please review your information and try again. If
|
|
2163
|
+
this.generalErrorDescription = "This is usually temporary. Please review your information and try again in a few minutes. If the problem continues, contact our {supportLink}.";
|
|
2159
2164
|
this.loadingErrorAlertHeader = "There was a problem loading your form";
|
|
2160
2165
|
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
2161
2166
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
@@ -2408,14 +2413,18 @@ const IndirectTaxFormView = (props) => {
|
|
|
2408
2413
|
}, {
|
|
2409
2414
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
2410
2415
|
}))),
|
|
2411
|
-
states.isPartnerLegacy && (h("sqm-form-message", {
|
|
2412
|
-
h("p", { part: "alert-title" },
|
|
2413
|
-
|
|
2416
|
+
states.isPartnerLegacy && (h("sqm-form-message", { type: "info", transparent: true },
|
|
2417
|
+
h("p", { part: "alert-title" }, intl.formatMessage({
|
|
2418
|
+
id: "isPartnerAlertHeader",
|
|
2419
|
+
defaultMessage: text.isPartnerAlertHeader,
|
|
2420
|
+
}, { emailAddress: states.email || "" })),
|
|
2421
|
+
h("p", null, intl.formatMessage({
|
|
2414
2422
|
id: "isPartnerAlertDescription",
|
|
2415
2423
|
defaultMessage: text.isPartnerAlertDescription,
|
|
2416
2424
|
}, {
|
|
2425
|
+
emailAddress: states.email || "",
|
|
2417
2426
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
2418
|
-
}))),
|
|
2427
|
+
})))),
|
|
2419
2428
|
h("div", null,
|
|
2420
2429
|
h("h4", null, text.indirectTaxDetails))),
|
|
2421
2430
|
states.loading ? (h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (h("div", null,
|
|
@@ -2430,7 +2439,7 @@ const IndirectTaxFormView = (props) => {
|
|
|
2430
2439
|
text.otherRegion,
|
|
2431
2440
|
h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
|
|
2432
2441
|
slots.registeredInDifferentCountryDetailsSlot)),
|
|
2433
|
-
h("sqm-form-message", { type: "info" }, intl.formatMessage({
|
|
2442
|
+
h("sqm-form-message", { type: "info", transparent: true }, intl.formatMessage({
|
|
2434
2443
|
id: "cannotChangeInfoAlert",
|
|
2435
2444
|
defaultMessage: text.cannotChangeInfoAlert,
|
|
2436
2445
|
}, {
|
|
@@ -2465,12 +2474,12 @@ const IndirectTaxForm = class {
|
|
|
2465
2474
|
this.indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}} is required";
|
|
2466
2475
|
this.searchForCountryText = "Search for country..";
|
|
2467
2476
|
this.fieldRequiredError = "{fieldName} is required";
|
|
2468
|
-
this.isPartnerAlertHeader = "
|
|
2469
|
-
this.isPartnerAlertDescription = "
|
|
2477
|
+
this.isPartnerAlertHeader = "Your email {emailAddress} already has an impact.com account";
|
|
2478
|
+
this.isPartnerAlertDescription = "This is normal if you’ve used impact.com before or participated in another referral program provided by them. Fill in any missing fields to continue.";
|
|
2470
2479
|
this.continueButton = "Continue";
|
|
2471
2480
|
this.supportLink = "support team";
|
|
2472
2481
|
this.generalErrorTitle = "There was a problem submitting your information";
|
|
2473
|
-
this.generalErrorDescription = "Please review your information and try again. If
|
|
2482
|
+
this.generalErrorDescription = "This is usually temporary. Please review your information and try again in a few minutes. If the problem continues, contact our {supportLink}.";
|
|
2474
2483
|
this.loadingErrorAlertHeader = "There was a problem loading your form";
|
|
2475
2484
|
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
2476
2485
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
@@ -3474,7 +3483,7 @@ const TaxAndCashDashboard = class {
|
|
|
3474
3483
|
this.termsAndConditions = "Terms and Conditions";
|
|
3475
3484
|
this.w9RequiredButtonText = "Submit W-9";
|
|
3476
3485
|
this.generalErrorTitle = "There was a problem submitting your information";
|
|
3477
|
-
this.generalErrorDescription = "Please review your information and try again. If
|
|
3486
|
+
this.generalErrorDescription = "This is usually temporary. Please review your information and try again in a few minutes. If the problem continues, contact our {supportLink}.";
|
|
3478
3487
|
this.payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
|
|
3479
3488
|
this.loadingErrorAlertHeader = "There was a problem loading your form";
|
|
3480
3489
|
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
@@ -3606,18 +3615,15 @@ function useUserInfoForm(props) {
|
|
|
3606
3615
|
window.location.hash = "";
|
|
3607
3616
|
}, []);
|
|
3608
3617
|
useEffect(() => {
|
|
3609
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o
|
|
3618
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
3610
3619
|
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
3611
3620
|
if (!user || step !== "/1")
|
|
3612
3621
|
return;
|
|
3613
3622
|
// If form already filled out, skip initialising it
|
|
3614
3623
|
if (objectIsFull(userFormContext))
|
|
3615
3624
|
return;
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
? user.managedIdentity.email
|
|
3619
|
-
: user.email;
|
|
3620
|
-
if (((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) && ((_c = user.impactConnection) === null || _c === void 0 ? void 0 : _c.user)) {
|
|
3625
|
+
const email = getParticipantEmail(user);
|
|
3626
|
+
if (((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) && ((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.user)) {
|
|
3621
3627
|
// Initialise with partner information
|
|
3622
3628
|
setUserFormContext({
|
|
3623
3629
|
email,
|
|
@@ -3642,16 +3648,16 @@ function useUserInfoForm(props) {
|
|
|
3642
3648
|
// Initialise with user information
|
|
3643
3649
|
setUserFormContext({
|
|
3644
3650
|
email,
|
|
3645
|
-
firstName: ((
|
|
3646
|
-
lastName: ((
|
|
3651
|
+
firstName: ((_d = (_c = user.impactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.firstName) || user.firstName,
|
|
3652
|
+
lastName: ((_f = (_e = user.impactConnection) === null || _e === void 0 ? void 0 : _e.user) === null || _f === void 0 ? void 0 : _f.lastName) || user.lastName,
|
|
3647
3653
|
countryCode: user.countryCode || "US",
|
|
3648
|
-
currency: (
|
|
3649
|
-
phoneNumberCountryCode: ((
|
|
3650
|
-
phoneNumber: (
|
|
3651
|
-
address: (
|
|
3652
|
-
city: (
|
|
3653
|
-
state: (
|
|
3654
|
-
postalCode: (
|
|
3654
|
+
currency: (_g = user.customFields) === null || _g === void 0 ? void 0 : _g.currency,
|
|
3655
|
+
phoneNumberCountryCode: ((_h = user.customFields) === null || _h === void 0 ? void 0 : _h.phoneNumberCountryCode) || "US",
|
|
3656
|
+
phoneNumber: (_j = user.customFields) === null || _j === void 0 ? void 0 : _j.phoneNumber,
|
|
3657
|
+
address: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.address,
|
|
3658
|
+
city: (_l = user.customFields) === null || _l === void 0 ? void 0 : _l.city,
|
|
3659
|
+
state: (_m = user.customFields) === null || _m === void 0 ? void 0 : _m.state,
|
|
3660
|
+
postalCode: (_o = user.customFields) === null || _o === void 0 ? void 0 : _o.postalCode,
|
|
3655
3661
|
});
|
|
3656
3662
|
}
|
|
3657
3663
|
}, [data, step, userFormContext]);
|
|
@@ -3910,10 +3916,10 @@ const TaxForm = class {
|
|
|
3910
3916
|
this.formStep = "Step {step} of {count}";
|
|
3911
3917
|
this.personalInformation = "Personal Information";
|
|
3912
3918
|
this.continueButton = "Continue";
|
|
3913
|
-
this.isPartnerAlertHeader = "
|
|
3914
|
-
this.isPartnerAlertDescription = "
|
|
3919
|
+
this.isPartnerAlertHeader = "Your email {emailAddress} already has an impact.com account";
|
|
3920
|
+
this.isPartnerAlertDescription = "This is normal if you’ve used impact.com before or participated in another referral program provided by them. Fill in any missing fields to continue.";
|
|
3915
3921
|
this.generalErrorTitle = "There was a problem submitting your information";
|
|
3916
|
-
this.generalErrorDescription = "Please review your information and try again. If
|
|
3922
|
+
this.generalErrorDescription = "This is usually temporary. Please review your information and try again in a few minutes. If the problem continues, contact our {supportLink}.";
|
|
3917
3923
|
this.allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
|
|
3918
3924
|
this.termsAndConditionsLabel = "terms and conditions";
|
|
3919
3925
|
this.termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
@@ -12,7 +12,7 @@ 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 { u as usePayoutStatus, C as COMPLETE_PARTNER } from './useIndirectTaxForm-
|
|
15
|
+
import { u as usePayoutStatus, C as COMPLETE_PARTNER } from './useIndirectTaxForm-09809605.js';
|
|
16
16
|
import { p as parseStates } from './parseStates-0c27f2de.js';
|
|
17
17
|
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-113e1969.js';
|
|
18
18
|
import { u as usePortalRegistrationForm } from './usePortalRegistrationForm-751b1f36.js';
|
|
@@ -22,7 +22,7 @@ import { E as EmailRegistrationView } from './email-registration-view-7a63a912.j
|
|
|
22
22
|
import { p as pathToRegexp } from './index-e6f5153e.js';
|
|
23
23
|
import { C as CopyTextView } from './copy-text-view-e1c3f2cd.js';
|
|
24
24
|
import { E as ErrorView } from './ErrorView-19af8137.js';
|
|
25
|
-
import { g as getCountryObj, i as isValidI18nPhoneNumber, L as LoadingView } from './subregions-
|
|
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';
|
|
@@ -6074,15 +6074,15 @@ const TaxAndCashMonolith = class {
|
|
|
6074
6074
|
this.dashboard_w9RequiredButtonText = "Submit W-9";
|
|
6075
6075
|
this.formStep = "Step {step} of {count}";
|
|
6076
6076
|
this.generalErrorTitle = "There was a problem submitting your information";
|
|
6077
|
-
this.generalErrorDescription = "Please review your information and try again. If
|
|
6077
|
+
this.generalErrorDescription = "This is usually temporary. Please review your information and try again in a few minutes. If the problem continues, contact our {supportLink}.";
|
|
6078
6078
|
this.fieldRequiredError = "{fieldName} is required";
|
|
6079
6079
|
this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
|
|
6080
6080
|
this.fieldInvalidError = "{fieldName} is invalid";
|
|
6081
6081
|
this.continueButton = "Continue";
|
|
6082
6082
|
this.backButton = "Back";
|
|
6083
6083
|
this.cancelButton = "Cancel";
|
|
6084
|
-
this.isPartnerAlertHeader = "
|
|
6085
|
-
this.isPartnerAlertDescription = "
|
|
6084
|
+
this.isPartnerAlertHeader = "Your email {emailAddress} already has an impact.com account";
|
|
6085
|
+
this.isPartnerAlertDescription = "This is normal if you’ve used impact.com before or participated in another referral program provided by them. Fill in any missing fields to continue.";
|
|
6086
6086
|
this.searchForCountryText = "Search for country..";
|
|
6087
6087
|
this.loadingErrorAlertHeader = "There was a problem loading your form";
|
|
6088
6088
|
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|