@saasquatch/mint-components 2.5.6-1 → 2.5.7-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{data-77273531.js → data-962310e1.js} +0 -12
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +3 -3
- package/dist/cjs/sqm-big-stat_47.cjs.entry.js +2 -2
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-user-info-form-view-e878a9a3.js → sqm-user-info-form-view-92d8d19a.js} +1 -1
- package/dist/cjs/{useIndirectTaxForm-691691c2.js → useIndirectTaxForm-638adefa.js} +18 -24
- package/dist/collection/components/tax-and-cash/data.js +0 -12
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +18 -24
- package/dist/esm/{data-510cc9b7.js → data-b0e80fd9.js} +0 -12
- package/dist/esm/sqm-banking-info-form_10.entry.js +3 -3
- package/dist/esm/sqm-big-stat_47.entry.js +2 -2
- package/dist/esm/sqm-email-verification_2.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +2 -2
- package/dist/esm/{sqm-user-info-form-view-c044a385.js → sqm-user-info-form-view-59473bfd.js} +1 -1
- package/dist/esm/{useIndirectTaxForm-64a3ca69.js → useIndirectTaxForm-4bcd91f9.js} +18 -24
- package/dist/esm-es5/data-b0e80fd9.js +1 -0
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/{sqm-user-info-form-view-c044a385.js → sqm-user-info-form-view-59473bfd.js} +1 -1
- package/dist/esm-es5/{useIndirectTaxForm-64a3ca69.js → useIndirectTaxForm-4bcd91f9.js} +2 -2
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-75b7496e.js → p-00e588d3.js} +2 -14
- package/dist/mint-components/p-076af819.system.js +1 -0
- package/dist/mint-components/p-119b9680.system.js +1 -1
- package/dist/mint-components/{p-ec00bb5f.js → p-2bea87fd.js} +1 -1
- package/dist/mint-components/p-610cf45c.js +107 -0
- package/dist/mint-components/{p-0bc61e27.system.entry.js → p-822aae93.system.entry.js} +1 -1
- package/dist/mint-components/{p-5a1be3aa.entry.js → p-863bb414.entry.js} +1 -1
- package/dist/mint-components/{p-bbb494a8.system.js → p-9a7b1c63.system.js} +1 -1
- package/dist/mint-components/{p-7127e360.system.entry.js → p-9c9cee02.system.entry.js} +1 -1
- package/dist/mint-components/{p-c7dd2eaa.system.entry.js → p-a40e05d2.system.entry.js} +1 -1
- package/dist/mint-components/{p-f0e1d538.entry.js → p-af8833df.entry.js} +1 -1
- package/dist/mint-components/{p-9d1659c4.entry.js → p-b6a9c9de.entry.js} +1 -1
- package/dist/mint-components/{p-c30dfd5d.entry.js → p-c90d06ab.entry.js} +1 -1
- package/dist/mint-components/p-c9ebc285.system.js +6 -0
- package/dist/mint-components/{p-32b3c92e.system.entry.js → p-e38b09a0.system.entry.js} +1 -1
- package/dist/types/components/tax-and-cash/data.d.ts +0 -9
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +10 -2
- package/dist/types/components/tax-and-cash/utils.d.ts +2 -2
- package/docs/docs.docx +0 -0
- package/docs/stats.json +209 -209
- package/package.json +1 -1
- package/dist/esm-es5/data-510cc9b7.js +0 -1
- package/dist/mint-components/p-7d992af1.system.js +0 -6
- package/dist/mint-components/p-ae5f7df6.system.js +0 -1
- package/dist/mint-components/p-cdf099fe.js +0 -108
|
@@ -23,18 +23,6 @@ const GET_USER = index.dist.gql `
|
|
|
23
23
|
email
|
|
24
24
|
countryCode
|
|
25
25
|
customFields
|
|
26
|
-
rewards(limit: 1000) {
|
|
27
|
-
data {
|
|
28
|
-
statuses
|
|
29
|
-
partnerFundsTransfer {
|
|
30
|
-
id
|
|
31
|
-
status
|
|
32
|
-
dateScheduled
|
|
33
|
-
dateCreated
|
|
34
|
-
dateTransferred
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
26
|
managedIdentity {
|
|
39
27
|
uid
|
|
40
28
|
email
|
|
@@ -9,13 +9,13 @@ const demoMerge = require('./demoMerge-6f125494.js');
|
|
|
9
9
|
const global = require('./global-973bc63c.js');
|
|
10
10
|
const JSS = require('./JSS-bf8078e9.js');
|
|
11
11
|
const utils = require('./utils-6847bc06.js');
|
|
12
|
-
const data = require('./data-
|
|
12
|
+
const data = require('./data-962310e1.js');
|
|
13
13
|
const jsonpointer = require('./jsonpointer-0db21316.js');
|
|
14
14
|
const keys = require('./keys-5a2c9ed2.js');
|
|
15
15
|
const parseStates = require('./parseStates-35013ba4.js');
|
|
16
16
|
const subregions = require('./subregions-3dbacb18.js');
|
|
17
|
-
const sqmUserInfoFormView = require('./sqm-user-info-form-view-
|
|
18
|
-
const useIndirectTaxForm = require('./useIndirectTaxForm-
|
|
17
|
+
const sqmUserInfoFormView = require('./sqm-user-info-form-view-92d8d19a.js');
|
|
18
|
+
const useIndirectTaxForm = require('./useIndirectTaxForm-638adefa.js');
|
|
19
19
|
const GenericTableView = require('./GenericTableView-12d35117.js');
|
|
20
20
|
const reRender = require('./re-render-51c48d7c.js');
|
|
21
21
|
const useReferralTable = require('./useReferralTable-32b3541b.js');
|
|
@@ -16,7 +16,7 @@ const utilities = require('./utilities-04345466.js');
|
|
|
16
16
|
const imageUrl = require('./imageUrl-a7880cab.js');
|
|
17
17
|
const jsonpointer = require('./jsonpointer-0db21316.js');
|
|
18
18
|
const AsYouType = require('./AsYouType-5f15a922.js');
|
|
19
|
-
const useIndirectTaxForm = require('./useIndirectTaxForm-
|
|
19
|
+
const useIndirectTaxForm = require('./useIndirectTaxForm-638adefa.js');
|
|
20
20
|
const parseStates = require('./parseStates-35013ba4.js');
|
|
21
21
|
const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-5473e24d.js');
|
|
22
22
|
const usePortalRegistrationForm = require('./usePortalRegistrationForm-b3c0451b.js');
|
|
@@ -27,7 +27,7 @@ const index$2 = require('./index-f1dd6136.js');
|
|
|
27
27
|
const copyTextView = require('./copy-text-view-49517b2a.js');
|
|
28
28
|
const ErrorView = require('./ErrorView-8f6cf1cb.js');
|
|
29
29
|
const subregions = require('./subregions-3dbacb18.js');
|
|
30
|
-
const data = require('./data-
|
|
30
|
+
const data = require('./data-962310e1.js');
|
|
31
31
|
const reRender = require('./re-render-51c48d7c.js');
|
|
32
32
|
const luxon = require('./luxon-d3612a3d.js');
|
|
33
33
|
const keys = require('./keys-5a2c9ed2.js');
|
|
@@ -14,7 +14,7 @@ const utils = require('./utils-6847bc06.js');
|
|
|
14
14
|
const demoMerge = require('./demoMerge-6f125494.js');
|
|
15
15
|
const parseStates = require('./parseStates-35013ba4.js');
|
|
16
16
|
const sqmPartnerInfoModalView = require('./sqm-partner-info-modal-view-c8972001.js');
|
|
17
|
-
const data = require('./data-
|
|
17
|
+
const data = require('./data-962310e1.js');
|
|
18
18
|
|
|
19
19
|
const UpsertUserEmailMutation = index.dist.gql `
|
|
20
20
|
mutation upsertUser($userInput: UserInput!) {
|
|
@@ -15,7 +15,7 @@ const index$1 = require('./index-8530c62f.js');
|
|
|
15
15
|
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-7efa70c9.js');
|
|
16
16
|
const sqmCloseButtonView = require('./sqm-close-button-view-74e5e1e9.js');
|
|
17
17
|
const GenericTableView = require('./GenericTableView-12d35117.js');
|
|
18
|
-
const sqmUserInfoFormView = require('./sqm-user-info-form-view-
|
|
18
|
+
const sqmUserInfoFormView = require('./sqm-user-info-form-view-92d8d19a.js');
|
|
19
19
|
const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-e992762c.js');
|
|
20
20
|
const sqmLogoutCurrentUserView = require('./sqm-logout-current-user-view-ebee238e.js');
|
|
21
21
|
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-92866725.js');
|
|
@@ -38,7 +38,7 @@ require('./utils-6847bc06.js');
|
|
|
38
38
|
require('./utilities-04345466.js');
|
|
39
39
|
require('./imageUrl-a7880cab.js');
|
|
40
40
|
require('./useReferralCodes-5794a177.js');
|
|
41
|
-
require('./data-
|
|
41
|
+
require('./data-962310e1.js');
|
|
42
42
|
require('./AsYouType-5f15a922.js');
|
|
43
43
|
require('./ErrorView-8f6cf1cb.js');
|
|
44
44
|
|
package/dist/cjs/{sqm-user-info-form-view-e878a9a3.js → sqm-user-info-form-view-92d8d19a.js}
RENAMED
|
@@ -4,7 +4,7 @@ const index = require('./index-d41c2c94.js');
|
|
|
4
4
|
const JSS = require('./JSS-bf8078e9.js');
|
|
5
5
|
const global = require('./global-973bc63c.js');
|
|
6
6
|
const subregions = require('./subregions-3dbacb18.js');
|
|
7
|
-
const data = require('./data-
|
|
7
|
+
const data = require('./data-962310e1.js');
|
|
8
8
|
const AsYouType = require('./AsYouType-5f15a922.js');
|
|
9
9
|
|
|
10
10
|
const style$3 = {
|
|
@@ -5,7 +5,7 @@ const domContextHooks_module = require('./dom-context-hooks.module-735c3942.js')
|
|
|
5
5
|
const parseStates = require('./parseStates-35013ba4.js');
|
|
6
6
|
const subregions = require('./subregions-3dbacb18.js');
|
|
7
7
|
const jsonpointer = require('./jsonpointer-0db21316.js');
|
|
8
|
-
const data = require('./data-
|
|
8
|
+
const data = require('./data-962310e1.js');
|
|
9
9
|
|
|
10
10
|
var toArray = function toArray(a) {
|
|
11
11
|
var ret = Array(a.length);
|
|
@@ -978,8 +978,19 @@ const GET_USER_STATUS = index.dist.gql `
|
|
|
978
978
|
publisher {
|
|
979
979
|
id
|
|
980
980
|
currency
|
|
981
|
+
currentTaxDocument {
|
|
982
|
+
status
|
|
983
|
+
type
|
|
984
|
+
dateCreated
|
|
985
|
+
}
|
|
981
986
|
withdrawalSettings {
|
|
987
|
+
paymentMethod
|
|
988
|
+
paypalEmailAddress
|
|
989
|
+
bankCountry
|
|
990
|
+
bankAccountNumber
|
|
991
|
+
paymentSchedulingType
|
|
982
992
|
paymentThreshold
|
|
993
|
+
paymentDay
|
|
983
994
|
}
|
|
984
995
|
payoutsAccount {
|
|
985
996
|
hold
|
|
@@ -990,18 +1001,6 @@ const GET_USER_STATUS = index.dist.gql `
|
|
|
990
1001
|
}
|
|
991
1002
|
}
|
|
992
1003
|
}
|
|
993
|
-
rewards(limit: 1000) {
|
|
994
|
-
data {
|
|
995
|
-
statuses
|
|
996
|
-
partnerFundsTransfer {
|
|
997
|
-
id
|
|
998
|
-
status
|
|
999
|
-
dateScheduled
|
|
1000
|
-
dateCreated
|
|
1001
|
-
dateTransferred
|
|
1002
|
-
}
|
|
1003
|
-
}
|
|
1004
|
-
}
|
|
1005
1004
|
}
|
|
1006
1005
|
}
|
|
1007
1006
|
}
|
|
@@ -1014,19 +1013,14 @@ const GET_TAX_SETTING = index.dist.gql `
|
|
|
1014
1013
|
}
|
|
1015
1014
|
`;
|
|
1016
1015
|
function getStatus(data) {
|
|
1017
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
1016
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1018
1017
|
const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
|
|
1019
|
-
|
|
1020
|
-
var _a;
|
|
1021
|
-
return reward.statuses.includes("REDEEMED") &&
|
|
1022
|
-
((_a = reward.partnerFundsTransfer) === null || _a === void 0 ? void 0 : _a.status) === "TRANSFERRED";
|
|
1023
|
-
});
|
|
1024
|
-
if (!((_g = (_f = data.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.connected) || !account)
|
|
1018
|
+
if (!((_d = (_c = data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.connected) || !account)
|
|
1025
1019
|
return "INFORMATION_REQUIRED";
|
|
1026
|
-
const currentTaxDocument = (
|
|
1020
|
+
const currentTaxDocument = (_f = (_e = data.user.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher) === null || _f === void 0 ? void 0 : _f.currentTaxDocument;
|
|
1027
1021
|
// A new-payee review only starts once funds reach Impact, so until then nobody can act on it
|
|
1028
|
-
const reviewIsLive =
|
|
1029
|
-
const holdReasons = ((
|
|
1022
|
+
const reviewIsLive = account.balanceAmount > 0;
|
|
1023
|
+
const holdReasons = ((_g = account.holdReasons) !== null && _g !== void 0 ? _g : []).filter((reason) => reason !== "NEW_PAYEE_REVIEW" || reviewIsLive);
|
|
1030
1024
|
if (holdReasons.includes("NO_W9_DOCUMENT") && !currentTaxDocument)
|
|
1031
1025
|
return "OVER_W9_THRESHOLD";
|
|
1032
1026
|
if (holdReasons.includes("IDV_CHECK_REQUIRED"))
|
|
@@ -1052,7 +1046,7 @@ function getStatus(data) {
|
|
|
1052
1046
|
if (holdReasons.includes("PAYMENT_RETURNED"))
|
|
1053
1047
|
return "PAYMENT_RETURNED";
|
|
1054
1048
|
// A hold whose every reason was suppressed leaves nothing to report
|
|
1055
|
-
const unattributedHold = !((
|
|
1049
|
+
const unattributedHold = !((_h = account.holdReasons) === null || _h === void 0 ? void 0 : _h.length);
|
|
1056
1050
|
if (account.hold && (holdReasons.length > 0 || unattributedHold))
|
|
1057
1051
|
return "HOLD";
|
|
1058
1052
|
return "DONE";
|
|
@@ -20,18 +20,6 @@ export const GET_USER = gql `
|
|
|
20
20
|
email
|
|
21
21
|
countryCode
|
|
22
22
|
customFields
|
|
23
|
-
rewards(limit: 1000) {
|
|
24
|
-
data {
|
|
25
|
-
statuses
|
|
26
|
-
partnerFundsTransfer {
|
|
27
|
-
id
|
|
28
|
-
status
|
|
29
|
-
dateScheduled
|
|
30
|
-
dateCreated
|
|
31
|
-
dateTransferred
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
23
|
managedIdentity {
|
|
36
24
|
uid
|
|
37
25
|
email
|
|
@@ -3,7 +3,7 @@ import { useEffect, useState } from "@saasquatch/stencil-hooks";
|
|
|
3
3
|
import { gql } from "graphql-request";
|
|
4
4
|
import { TAX_FORM_UPDATED_EVENT_KEY } from "../eventKeys";
|
|
5
5
|
import { useVeriffApp, VERIFF_COMPLETE_EVENT_KEY } from "../useVeriffApp";
|
|
6
|
-
import { formatPayoutThreshold, isBalanceUnderPayoutThreshold
|
|
6
|
+
import { formatPayoutThreshold, isBalanceUnderPayoutThreshold } from "../utils";
|
|
7
7
|
const GET_USER_STATUS = gql `
|
|
8
8
|
query getUserStatus {
|
|
9
9
|
user: viewer {
|
|
@@ -14,8 +14,19 @@ const GET_USER_STATUS = gql `
|
|
|
14
14
|
publisher {
|
|
15
15
|
id
|
|
16
16
|
currency
|
|
17
|
+
currentTaxDocument {
|
|
18
|
+
status
|
|
19
|
+
type
|
|
20
|
+
dateCreated
|
|
21
|
+
}
|
|
17
22
|
withdrawalSettings {
|
|
23
|
+
paymentMethod
|
|
24
|
+
paypalEmailAddress
|
|
25
|
+
bankCountry
|
|
26
|
+
bankAccountNumber
|
|
27
|
+
paymentSchedulingType
|
|
18
28
|
paymentThreshold
|
|
29
|
+
paymentDay
|
|
19
30
|
}
|
|
20
31
|
payoutsAccount {
|
|
21
32
|
hold
|
|
@@ -26,18 +37,6 @@ const GET_USER_STATUS = gql `
|
|
|
26
37
|
}
|
|
27
38
|
}
|
|
28
39
|
}
|
|
29
|
-
rewards(limit: 1000) {
|
|
30
|
-
data {
|
|
31
|
-
statuses
|
|
32
|
-
partnerFundsTransfer {
|
|
33
|
-
id
|
|
34
|
-
status
|
|
35
|
-
dateScheduled
|
|
36
|
-
dateCreated
|
|
37
|
-
dateTransferred
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
40
|
}
|
|
42
41
|
}
|
|
43
42
|
}
|
|
@@ -50,19 +49,14 @@ const GET_TAX_SETTING = gql `
|
|
|
50
49
|
}
|
|
51
50
|
`;
|
|
52
51
|
export function getStatus(data) {
|
|
53
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
52
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
54
53
|
const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
|
|
55
|
-
|
|
56
|
-
var _a;
|
|
57
|
-
return reward.statuses.includes("REDEEMED") &&
|
|
58
|
-
((_a = reward.partnerFundsTransfer) === null || _a === void 0 ? void 0 : _a.status) === "TRANSFERRED";
|
|
59
|
-
});
|
|
60
|
-
if (!((_g = (_f = data.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.connected) || !account)
|
|
54
|
+
if (!((_d = (_c = data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.connected) || !account)
|
|
61
55
|
return "INFORMATION_REQUIRED";
|
|
62
|
-
const currentTaxDocument = (
|
|
56
|
+
const currentTaxDocument = (_f = (_e = data.user.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher) === null || _f === void 0 ? void 0 : _f.currentTaxDocument;
|
|
63
57
|
// A new-payee review only starts once funds reach Impact, so until then nobody can act on it
|
|
64
|
-
const reviewIsLive =
|
|
65
|
-
const holdReasons = ((
|
|
58
|
+
const reviewIsLive = account.balanceAmount > 0;
|
|
59
|
+
const holdReasons = ((_g = account.holdReasons) !== null && _g !== void 0 ? _g : []).filter((reason) => reason !== "NEW_PAYEE_REVIEW" || reviewIsLive);
|
|
66
60
|
if (holdReasons.includes("NO_W9_DOCUMENT") && !currentTaxDocument)
|
|
67
61
|
return "OVER_W9_THRESHOLD";
|
|
68
62
|
if (holdReasons.includes("IDV_CHECK_REQUIRED"))
|
|
@@ -88,7 +82,7 @@ export function getStatus(data) {
|
|
|
88
82
|
if (holdReasons.includes("PAYMENT_RETURNED"))
|
|
89
83
|
return "PAYMENT_RETURNED";
|
|
90
84
|
// A hold whose every reason was suppressed leaves nothing to report
|
|
91
|
-
const unattributedHold = !((
|
|
85
|
+
const unattributedHold = !((_h = account.holdReasons) === null || _h === void 0 ? void 0 : _h.length);
|
|
92
86
|
if (account.hold && (holdReasons.length > 0 || unattributedHold))
|
|
93
87
|
return "HOLD";
|
|
94
88
|
return "DONE";
|
|
@@ -21,18 +21,6 @@ const GET_USER = dist.gql `
|
|
|
21
21
|
email
|
|
22
22
|
countryCode
|
|
23
23
|
customFields
|
|
24
|
-
rewards(limit: 1000) {
|
|
25
|
-
data {
|
|
26
|
-
statuses
|
|
27
|
-
partnerFundsTransfer {
|
|
28
|
-
id
|
|
29
|
-
status
|
|
30
|
-
dateScheduled
|
|
31
|
-
dateCreated
|
|
32
|
-
dateTransferred
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
24
|
managedIdentity {
|
|
37
25
|
uid
|
|
38
26
|
email
|
|
@@ -5,13 +5,13 @@ import { d as demoMerge } from './demoMerge-a0320a8e.js';
|
|
|
5
5
|
import { i as intl } from './global-cf0cc6b1.js';
|
|
6
6
|
import { c as createStyleSheet } from './JSS-e97b34f4.js';
|
|
7
7
|
import { g as getProps } from './utils-334c1e34.js';
|
|
8
|
-
import { F as FORM_STEPS, T as TAX_CONTEXT_NAMESPACE, a as TAX_FORM_CONTEXT_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, f as FINANCE_NETWORK_SETTINGS_NAMESPACE, c as USER_QUERY_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, C as CURRENCIES_NAMESPACE } from './data-
|
|
8
|
+
import { F as FORM_STEPS, T as TAX_CONTEXT_NAMESPACE, a as TAX_FORM_CONTEXT_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, f as FINANCE_NETWORK_SETTINGS_NAMESPACE, c as USER_QUERY_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, C as CURRENCIES_NAMESPACE } from './data-b0e80fd9.js';
|
|
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
12
|
import { t as taxTypeToName, d as validTaxDocument, I as INDIRECT_TAX_SPAIN_REGIONS, a as INDIRECT_TAX_PROVINCES, c as formatPayoutThreshold, b as isBalanceUnderPayoutThreshold, o as objectIsFull, e as toDomesticNumber, A as ADDRESS_REGIONS } from './subregions-d9f177f6.js';
|
|
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-
|
|
13
|
+
import { O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, T as TaxAndCashDashboardView, U as UserInfoFormView } from './sqm-user-info-form-view-59473bfd.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-4bcd91f9.js';
|
|
15
15
|
import { G as GenericTableView } from './GenericTableView-4f7ac63d.js';
|
|
16
16
|
import { u as useRerenderListener, a as useRequestRerender } from './re-render-e911a0f7.js';
|
|
17
17
|
import { g as generateUserError, d as dropZoneColumnIndexes } from './useReferralTable-214dff06.js';
|
|
@@ -12,7 +12,7 @@ import { i as isEmpty } from './utilities-ceab25cd.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-4bcd91f9.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-c6519939.js';
|
|
@@ -23,7 +23,7 @@ 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
25
|
import { g as getCountryObj, i as isValidI18nPhoneNumber, L as LoadingView } from './subregions-d9f177f6.js';
|
|
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-
|
|
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-b0e80fd9.js';
|
|
27
27
|
import { a as useRequestRerender } from './re-render-e911a0f7.js';
|
|
28
28
|
import { l as luxon } from './luxon-40b943cb.js';
|
|
29
29
|
import { S as SHOW_CODE_NAMESPACE, a as VERIFICATION_EMAIL_NAMESPACE, V as VERIFICATION_PARENT_NAMESPACE, b as SHOW_PARTNER_MODAL_NAMESPACE, P as PARTNER_CREATED_NAMESPACE } from './keys-1054056a.js';
|
|
@@ -10,7 +10,7 @@ import { g as getProps } from './utils-334c1e34.js';
|
|
|
10
10
|
import { d as demoMerge } from './demoMerge-a0320a8e.js';
|
|
11
11
|
import { T as TAX_FORM_UPDATED_EVENT_KEY, p as parseStates } from './parseStates-0c27f2de.js';
|
|
12
12
|
import { a as PartnerInfoModalContentView, P as PartnerInfoModalView } from './sqm-partner-info-modal-view-3b59be37.js';
|
|
13
|
-
import { g as GET_FINANCE_NETWORK_SETTINGS } from './data-
|
|
13
|
+
import { g as GET_FINANCE_NETWORK_SETTINGS } from './data-b0e80fd9.js';
|
|
14
14
|
|
|
15
15
|
const UpsertUserEmailMutation = dist.gql `
|
|
16
16
|
mutation upsertUser($userInput: UserInput!) {
|
|
@@ -11,7 +11,7 @@ import { n as navigation, t as setUserIdentity, J as setProgramId, D as useCurre
|
|
|
11
11
|
import { b as PortalRegisterView, P as PortalForgotPasswordView, a as PortalLoginView, c as PortalVerifyEmailView } from './sqm-portal-verify-email-view-ee40e3f2.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-59473bfd.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-88fbf496.js';
|
|
@@ -34,7 +34,7 @@ import './utils-334c1e34.js';
|
|
|
34
34
|
import './utilities-ceab25cd.js';
|
|
35
35
|
import './imageUrl-4775f17b.js';
|
|
36
36
|
import './useReferralCodes-d0a384e4.js';
|
|
37
|
-
import './data-
|
|
37
|
+
import './data-b0e80fd9.js';
|
|
38
38
|
import './AsYouType-cc09fa68.js';
|
|
39
39
|
import './ErrorView-19af8137.js';
|
|
40
40
|
|
package/dist/esm/{sqm-user-info-form-view-c044a385.js → sqm-user-info-form-view-59473bfd.js}
RENAMED
|
@@ -2,7 +2,7 @@ import { h } from './index-7a8b0c0b.js';
|
|
|
2
2
|
import { c as createStyleSheet } from './JSS-e97b34f4.js';
|
|
3
3
|
import { i as intl } from './global-cf0cc6b1.js';
|
|
4
4
|
import { f as formatErrorMessage, a as INDIRECT_TAX_PROVINCES, L as LoadingView, i as isValidI18nPhoneNumber, v as validateBillingField } from './subregions-d9f177f6.js';
|
|
5
|
-
import { F as FORM_STEPS } from './data-
|
|
5
|
+
import { F as FORM_STEPS } from './data-b0e80fd9.js';
|
|
6
6
|
import { A as AsYouType } from './AsYouType-cc09fa68.js';
|
|
7
7
|
|
|
8
8
|
const style$3 = {
|
|
@@ -3,7 +3,7 @@ import { k as useState, j as useEffect, m as useRef, u as useMemo } from './dom-
|
|
|
3
3
|
import { T as TAX_FORM_UPDATED_EVENT_KEY } from './parseStates-0c27f2de.js';
|
|
4
4
|
import { b as isBalanceUnderPayoutThreshold, c as formatPayoutThreshold, I as INDIRECT_TAX_SPAIN_REGIONS, a as INDIRECT_TAX_PROVINCES, g as getCountryObj, d as validTaxDocument } from './subregions-d9f177f6.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-c5423376.js';
|
|
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-
|
|
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-b0e80fd9.js';
|
|
7
7
|
|
|
8
8
|
var toArray = function toArray(a) {
|
|
9
9
|
var ret = Array(a.length);
|
|
@@ -976,8 +976,19 @@ const GET_USER_STATUS = dist.gql `
|
|
|
976
976
|
publisher {
|
|
977
977
|
id
|
|
978
978
|
currency
|
|
979
|
+
currentTaxDocument {
|
|
980
|
+
status
|
|
981
|
+
type
|
|
982
|
+
dateCreated
|
|
983
|
+
}
|
|
979
984
|
withdrawalSettings {
|
|
985
|
+
paymentMethod
|
|
986
|
+
paypalEmailAddress
|
|
987
|
+
bankCountry
|
|
988
|
+
bankAccountNumber
|
|
989
|
+
paymentSchedulingType
|
|
980
990
|
paymentThreshold
|
|
991
|
+
paymentDay
|
|
981
992
|
}
|
|
982
993
|
payoutsAccount {
|
|
983
994
|
hold
|
|
@@ -988,18 +999,6 @@ const GET_USER_STATUS = dist.gql `
|
|
|
988
999
|
}
|
|
989
1000
|
}
|
|
990
1001
|
}
|
|
991
|
-
rewards(limit: 1000) {
|
|
992
|
-
data {
|
|
993
|
-
statuses
|
|
994
|
-
partnerFundsTransfer {
|
|
995
|
-
id
|
|
996
|
-
status
|
|
997
|
-
dateScheduled
|
|
998
|
-
dateCreated
|
|
999
|
-
dateTransferred
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
|
-
}
|
|
1003
1002
|
}
|
|
1004
1003
|
}
|
|
1005
1004
|
}
|
|
@@ -1012,19 +1011,14 @@ const GET_TAX_SETTING = dist.gql `
|
|
|
1012
1011
|
}
|
|
1013
1012
|
`;
|
|
1014
1013
|
function getStatus(data) {
|
|
1015
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
1014
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1016
1015
|
const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
|
|
1017
|
-
|
|
1018
|
-
var _a;
|
|
1019
|
-
return reward.statuses.includes("REDEEMED") &&
|
|
1020
|
-
((_a = reward.partnerFundsTransfer) === null || _a === void 0 ? void 0 : _a.status) === "TRANSFERRED";
|
|
1021
|
-
});
|
|
1022
|
-
if (!((_g = (_f = data.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.connected) || !account)
|
|
1016
|
+
if (!((_d = (_c = data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.connected) || !account)
|
|
1023
1017
|
return "INFORMATION_REQUIRED";
|
|
1024
|
-
const currentTaxDocument = (
|
|
1018
|
+
const currentTaxDocument = (_f = (_e = data.user.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher) === null || _f === void 0 ? void 0 : _f.currentTaxDocument;
|
|
1025
1019
|
// A new-payee review only starts once funds reach Impact, so until then nobody can act on it
|
|
1026
|
-
const reviewIsLive =
|
|
1027
|
-
const holdReasons = ((
|
|
1020
|
+
const reviewIsLive = account.balanceAmount > 0;
|
|
1021
|
+
const holdReasons = ((_g = account.holdReasons) !== null && _g !== void 0 ? _g : []).filter((reason) => reason !== "NEW_PAYEE_REVIEW" || reviewIsLive);
|
|
1028
1022
|
if (holdReasons.includes("NO_W9_DOCUMENT") && !currentTaxDocument)
|
|
1029
1023
|
return "OVER_W9_THRESHOLD";
|
|
1030
1024
|
if (holdReasons.includes("IDV_CHECK_REQUIRED"))
|
|
@@ -1050,7 +1044,7 @@ function getStatus(data) {
|
|
|
1050
1044
|
if (holdReasons.includes("PAYMENT_RETURNED"))
|
|
1051
1045
|
return "PAYMENT_RETURNED";
|
|
1052
1046
|
// A hold whose every reason was suppressed leaves nothing to report
|
|
1053
|
-
const unattributedHold = !((
|
|
1047
|
+
const unattributedHold = !((_h = account.holdReasons) === null || _h === void 0 ? void 0 : _h.length);
|
|
1054
1048
|
if (account.hold && (holdReasons.length > 0 || unattributedHold))
|
|
1055
1049
|
return "HOLD";
|
|
1056
1050
|
return "DONE";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __makeTemplateObject=this&&this.__makeTemplateObject||function(n,e){if(Object.defineProperty){Object.defineProperty(n,"raw",{value:e})}else{n.raw=e}return n};import{d as dist}from"./index-b04013cc.js";var TAX_CONTEXT_NAMESPACE="sq:tax-and-cash";var TAX_FORM_CONTEXT_NAMESPACE="sq:tax-form-context";var USER_QUERY_NAMESPACE="sq:user-info-query";var USER_FORM_CONTEXT_NAMESPACE="sq:user-form-context";var FINANCE_NETWORK_SETTINGS_NAMESPACE="sq:finance-network-settings";var COUNTRIES_NAMESPACE="sq:countries:list";var SORTED_COUNTRIES_NAMESPACE="sq:countries:sorted";var COUNTRIES_QUERY_NAMESPACE="sq:countries:query";var CURRENCIES_NAMESPACE="sq:currencies:list";var CURRENCIES_QUERY_NAMESPACE="sq:currencies:query";var GET_USER=dist.gql(templateObject_1||(templateObject_1=__makeTemplateObject(["\n query getUserTaxInfo {\n user: viewer {\n ... on User {\n id\n accountId\n firstName\n lastName\n email\n countryCode\n customFields\n managedIdentity {\n uid\n email\n emailVerified\n }\n impactConnection {\n connected\n connectionStatus\n user {\n firstName\n lastName\n }\n publisher {\n id\n brandedSignup\n countryCode\n currency\n billingAddress\n billingCity\n billingState\n billingCountryCode\n billingPostalCode\n phoneNumberCountryCode\n phoneNumber\n taxInformation {\n indirectTaxId\n indirectTaxCountryCode\n indirectTaxRegion\n additionalTaxId\n withholdingTaxId\n withholdingTaxCountryCode\n }\n requiredTaxDocumentType\n currentTaxDocument {\n status\n type\n dateCreated\n }\n withdrawalSettings {\n paymentMethod\n paypalEmailAddress\n bankCountry\n bankAccountNumber\n paymentSchedulingType\n paymentThreshold\n paymentDay\n }\n payoutsAccount {\n hold\n holdReasons\n balance\n balanceAmount\n currencyCode\n }\n }\n }\n }\n }\n }\n"],["\n query getUserTaxInfo {\n user: viewer {\n ... on User {\n id\n accountId\n firstName\n lastName\n email\n countryCode\n customFields\n managedIdentity {\n uid\n email\n emailVerified\n }\n impactConnection {\n connected\n connectionStatus\n user {\n firstName\n lastName\n }\n publisher {\n id\n brandedSignup\n countryCode\n currency\n billingAddress\n billingCity\n billingState\n billingCountryCode\n billingPostalCode\n phoneNumberCountryCode\n phoneNumber\n taxInformation {\n indirectTaxId\n indirectTaxCountryCode\n indirectTaxRegion\n additionalTaxId\n withholdingTaxId\n withholdingTaxCountryCode\n }\n requiredTaxDocumentType\n currentTaxDocument {\n status\n type\n dateCreated\n }\n withdrawalSettings {\n paymentMethod\n paypalEmailAddress\n bankCountry\n bankAccountNumber\n paymentSchedulingType\n paymentThreshold\n paymentDay\n }\n payoutsAccount {\n hold\n holdReasons\n balance\n balanceAmount\n currencyCode\n }\n }\n }\n }\n }\n }\n"])));var GET_COUNTRIES=dist.gql(templateObject_2||(templateObject_2=__makeTemplateObject(["\n query getCountries {\n impactPayoutCountries(limit: 1000) {\n data {\n countryCode\n displayName\n }\n }\n }\n"],["\n query getCountries {\n impactPayoutCountries(limit: 1000) {\n data {\n countryCode\n displayName\n }\n }\n }\n"])));var GET_CURRENCIES=dist.gql(templateObject_3||(templateObject_3=__makeTemplateObject(["\n query currencies($locale: RSLocale) {\n currencies(limit: 300) {\n data {\n displayName(locale: $locale)\n currencyCode\n }\n }\n }\n"],["\n query currencies($locale: RSLocale) {\n currencies(limit: 300) {\n data {\n displayName(locale: $locale)\n currencyCode\n }\n }\n }\n"])));var GET_FINANCE_NETWORK_SETTINGS=dist.gql(templateObject_4||(templateObject_4=__makeTemplateObject(["\n query impactFinanceNetworkSettings(\n $filter: ImpactFinanceNetworkSettingsFilterInput\n ) {\n impactFinanceNetworkSettings(filter: $filter, limit: 1000) {\n data {\n countryCode\n currency\n defaultFinancePaymentMethodId\n thresholdOptions\n withdrawalSettingId\n internationalEftFee\n foreignFxFee\n defaultFxFee\n }\n totalCount\n }\n }\n"],["\n query impactFinanceNetworkSettings(\n $filter: ImpactFinanceNetworkSettingsFilterInput\n ) {\n impactFinanceNetworkSettings(filter: $filter, limit: 1000) {\n data {\n countryCode\n currency\n defaultFinancePaymentMethodId\n thresholdOptions\n withdrawalSettingId\n internationalEftFee\n foreignFxFee\n defaultFxFee\n }\n totalCount\n }\n }\n"])));var FORM_STEPS=4;export{CURRENCIES_NAMESPACE as C,FORM_STEPS as F,GET_USER as G,SORTED_COUNTRIES_NAMESPACE as S,TAX_CONTEXT_NAMESPACE as T,USER_FORM_CONTEXT_NAMESPACE as U,TAX_FORM_CONTEXT_NAMESPACE as a,COUNTRIES_NAMESPACE as b,USER_QUERY_NAMESPACE as c,COUNTRIES_QUERY_NAMESPACE as d,GET_COUNTRIES as e,FINANCE_NETWORK_SETTINGS_NAMESPACE as f,GET_FINANCE_NETWORK_SETTINGS as g,CURRENCIES_QUERY_NAMESPACE as h,GET_CURRENCIES as i};var templateObject_1,templateObject_2,templateObject_3,templateObject_4;
|