@saasquatch/mint-components 1.15.1-0 → 1.15.2-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/sqm-banking-info-form_17.cjs.entry.js +10 -1
- package/dist/cjs/sqm-big-stat_43.cjs.entry.js +1 -1
- package/dist/cjs/{usePayoutStatus-d459ddde.js → usePayoutStatus-d5acc301.js} +20 -9
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +20 -9
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +9 -0
- package/dist/esm/sqm-banking-info-form_17.entry.js +10 -1
- package/dist/esm/sqm-big-stat_43.entry.js +1 -1
- package/dist/esm/{usePayoutStatus-4a7625b9.js → usePayoutStatus-7c0f0567.js} +20 -9
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -1
- package/dist/esm-es5/{usePayoutStatus-4a7625b9.js → usePayoutStatus-7c0f0567.js} +2 -2
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-457fb652.entry.js → p-1e70b706.entry.js} +10 -1
- package/dist/mint-components/p-25501517.system.js +6 -0
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/{p-6122bf99.system.entry.js → p-48746a73.system.entry.js} +1 -1
- package/dist/mint-components/{p-3b2f1211.js → p-7d56b9e6.js} +11 -2
- package/dist/mint-components/{p-d78e7323.entry.js → p-8a9b8af2.entry.js} +1 -1
- package/dist/mint-components/p-ec09d0a0.system.entry.js +1 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/data.d.ts +9 -0
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/mint-components/p-9f22f58a.system.js +0 -6
- package/dist/mint-components/p-b965147c.system.entry.js +0 -1
|
@@ -21,7 +21,7 @@ const ErrorView = require('./ErrorView-b2fcf954.js');
|
|
|
21
21
|
const sqmInvoiceTableView = require('./sqm-invoice-table-view-5c74607f.js');
|
|
22
22
|
const extractProps = require('./extractProps-fd93ba62.js');
|
|
23
23
|
const keys = require('./keys-cff24974.js');
|
|
24
|
-
const usePayoutStatus = require('./usePayoutStatus-
|
|
24
|
+
const usePayoutStatus = require('./usePayoutStatus-d5acc301.js');
|
|
25
25
|
const useVerificationEmail = require('./useVerificationEmail-95a82767.js');
|
|
26
26
|
|
|
27
27
|
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
@@ -44,6 +44,15 @@ const GET_USER = index_module.dist.gql `
|
|
|
44
44
|
email
|
|
45
45
|
countryCode
|
|
46
46
|
customFields
|
|
47
|
+
rewards(limit: 2000) {
|
|
48
|
+
data {
|
|
49
|
+
statuses
|
|
50
|
+
partnerFundsTransfer {
|
|
51
|
+
id
|
|
52
|
+
status
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
47
56
|
managedIdentity {
|
|
48
57
|
uid
|
|
49
58
|
email
|
|
@@ -26,7 +26,7 @@ const AsYouType = require('./AsYouType-6788393a.js');
|
|
|
26
26
|
const utilities = require('./utilities-78f5e169.js');
|
|
27
27
|
const ShadowViewAddon = require('./ShadowViewAddon-28865623.js');
|
|
28
28
|
require('./sqm-portal-container-view-4f15143a.js');
|
|
29
|
-
const usePayoutStatus = require('./usePayoutStatus-
|
|
29
|
+
const usePayoutStatus = require('./usePayoutStatus-d5acc301.js');
|
|
30
30
|
|
|
31
31
|
const BigStat = class {
|
|
32
32
|
constructor(hostRef) {
|
|
@@ -981,6 +981,15 @@ const GET_USER_STATUS = index_module.dist.gql `
|
|
|
981
981
|
}
|
|
982
982
|
}
|
|
983
983
|
}
|
|
984
|
+
rewards(limit: 2000) {
|
|
985
|
+
data {
|
|
986
|
+
statuses
|
|
987
|
+
partnerFundsTransfer {
|
|
988
|
+
id
|
|
989
|
+
status
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
}
|
|
984
993
|
}
|
|
985
994
|
}
|
|
986
995
|
}
|
|
@@ -993,22 +1002,24 @@ const GET_TAX_SETTING = index_module.dist.gql `
|
|
|
993
1002
|
}
|
|
994
1003
|
`;
|
|
995
1004
|
function getStatus(data) {
|
|
996
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1005
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
997
1006
|
const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
|
|
998
|
-
|
|
1007
|
+
const hasTransferredReward = (_e = (_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.rewards) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.find((reward) => reward.statuses.includes("REDEEMED") &&
|
|
1008
|
+
reward.partnerFundsTransfer.status === "TRANSFERRED");
|
|
1009
|
+
if (!((_g = (_f = data.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.connected) || !account)
|
|
999
1010
|
return "INFORMATION_REQUIRED";
|
|
1000
|
-
const currentTaxDocument = (
|
|
1001
|
-
if (((
|
|
1011
|
+
const currentTaxDocument = (_j = (_h = data.user.impactConnection) === null || _h === void 0 ? void 0 : _h.publisher) === null || _j === void 0 ? void 0 : _j.currentTaxDocument;
|
|
1012
|
+
if (((_k = account.holdReasons) === null || _k === void 0 ? void 0 : _k.includes("NO_W9_DOCUMENT")) && !currentTaxDocument)
|
|
1002
1013
|
return "OVER_W9_THRESHOLD";
|
|
1003
|
-
if ((
|
|
1014
|
+
if ((_l = account.holdReasons) === null || _l === void 0 ? void 0 : _l.includes("IDV_CHECK_REQUIRED"))
|
|
1004
1015
|
return "VERIFICATION:REQUIRED";
|
|
1005
|
-
if ((
|
|
1016
|
+
if ((_m = account.holdReasons) === null || _m === void 0 ? void 0 : _m.includes("IDV_CHECK_REQUIRED_INTERNAL"))
|
|
1006
1017
|
return "VERIFICATION:INTERNAL";
|
|
1007
|
-
if ((
|
|
1018
|
+
if ((_o = account.holdReasons) === null || _o === void 0 ? void 0 : _o.includes("IDV_CHECK_REVIEW_INTERNAL"))
|
|
1008
1019
|
return "VERIFICATION:REVIEW";
|
|
1009
|
-
if ((
|
|
1020
|
+
if ((_p = account.holdReasons) === null || _p === void 0 ? void 0 : _p.includes("IDV_CHECK_FAILED_INTERNAL"))
|
|
1010
1021
|
return "VERIFICATION:FAILED";
|
|
1011
|
-
if ((
|
|
1022
|
+
if (((_q = account.holdReasons) === null || _q === void 0 ? void 0 : _q.includes("NEW_PAYEE_REVIEW")) && hasTransferredReward)
|
|
1012
1023
|
return "ACCOUNT_REVIEW";
|
|
1013
1024
|
if (account.hold)
|
|
1014
1025
|
return "HOLD";
|
|
@@ -18,6 +18,15 @@ const GET_USER_STATUS = gql `
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
+
rewards(limit: 2000) {
|
|
22
|
+
data {
|
|
23
|
+
statuses
|
|
24
|
+
partnerFundsTransfer {
|
|
25
|
+
id
|
|
26
|
+
status
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
21
30
|
}
|
|
22
31
|
}
|
|
23
32
|
}
|
|
@@ -30,22 +39,24 @@ const GET_TAX_SETTING = gql `
|
|
|
30
39
|
}
|
|
31
40
|
`;
|
|
32
41
|
export function getStatus(data) {
|
|
33
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
42
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
34
43
|
const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
|
|
35
|
-
|
|
44
|
+
const hasTransferredReward = (_e = (_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.rewards) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.find((reward) => reward.statuses.includes("REDEEMED") &&
|
|
45
|
+
reward.partnerFundsTransfer.status === "TRANSFERRED");
|
|
46
|
+
if (!((_g = (_f = data.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.connected) || !account)
|
|
36
47
|
return "INFORMATION_REQUIRED";
|
|
37
|
-
const currentTaxDocument = (
|
|
38
|
-
if (((
|
|
48
|
+
const currentTaxDocument = (_j = (_h = data.user.impactConnection) === null || _h === void 0 ? void 0 : _h.publisher) === null || _j === void 0 ? void 0 : _j.currentTaxDocument;
|
|
49
|
+
if (((_k = account.holdReasons) === null || _k === void 0 ? void 0 : _k.includes("NO_W9_DOCUMENT")) && !currentTaxDocument)
|
|
39
50
|
return "OVER_W9_THRESHOLD";
|
|
40
|
-
if ((
|
|
51
|
+
if ((_l = account.holdReasons) === null || _l === void 0 ? void 0 : _l.includes("IDV_CHECK_REQUIRED"))
|
|
41
52
|
return "VERIFICATION:REQUIRED";
|
|
42
|
-
if ((
|
|
53
|
+
if ((_m = account.holdReasons) === null || _m === void 0 ? void 0 : _m.includes("IDV_CHECK_REQUIRED_INTERNAL"))
|
|
43
54
|
return "VERIFICATION:INTERNAL";
|
|
44
|
-
if ((
|
|
55
|
+
if ((_o = account.holdReasons) === null || _o === void 0 ? void 0 : _o.includes("IDV_CHECK_REVIEW_INTERNAL"))
|
|
45
56
|
return "VERIFICATION:REVIEW";
|
|
46
|
-
if ((
|
|
57
|
+
if ((_p = account.holdReasons) === null || _p === void 0 ? void 0 : _p.includes("IDV_CHECK_FAILED_INTERNAL"))
|
|
47
58
|
return "VERIFICATION:FAILED";
|
|
48
|
-
if ((
|
|
59
|
+
if (((_q = account.holdReasons) === null || _q === void 0 ? void 0 : _q.includes("NEW_PAYEE_REVIEW")) && hasTransferredReward)
|
|
49
60
|
return "ACCOUNT_REVIEW";
|
|
50
61
|
if (account.hold)
|
|
51
62
|
return "HOLD";
|
|
@@ -17,7 +17,7 @@ import { E as ErrorView } from './ErrorView-48e2b969.js';
|
|
|
17
17
|
import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-3491dd80.js';
|
|
18
18
|
import { e as extractProps } from './extractProps-ae1afbb3.js';
|
|
19
19
|
import { b as VERIFICATION_EVENT_KEY, V as VERIFICATION_EMAIL_NAMESPACE, S as SHOW_CODE_NAMESPACE, a as VERIFICATION_PARENT_NAMESPACE } from './keys-406491dc.js';
|
|
20
|
-
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-
|
|
20
|
+
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-7c0f0567.js';
|
|
21
21
|
import { u as useVerificationEmail } from './useVerificationEmail-edc318cb.js';
|
|
22
22
|
|
|
23
23
|
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
@@ -40,6 +40,15 @@ const GET_USER = dist.gql `
|
|
|
40
40
|
email
|
|
41
41
|
countryCode
|
|
42
42
|
customFields
|
|
43
|
+
rewards(limit: 2000) {
|
|
44
|
+
data {
|
|
45
|
+
statuses
|
|
46
|
+
partnerFundsTransfer {
|
|
47
|
+
id
|
|
48
|
+
status
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
43
52
|
managedIdentity {
|
|
44
53
|
uid
|
|
45
54
|
email
|
|
@@ -22,7 +22,7 @@ import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
|
22
22
|
import { i as isEmpty } from './utilities-5b0ca040.js';
|
|
23
23
|
import { b as useDemoBigStat, W as useBigStat, B as BigStatView, U as autoColorScaleCss, J as CardFeedView, i as CheckboxFieldView, K as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, Q as LeadDropdownFieldView, O as LeadFormView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, C as ChangeMarktingView, d as PortalChangePasswordView, h as PortalFooterView, P as PortalFrameView, e as PortalRegisterView, R as ReferralIframeView, Y as demoRewardExchange, j as RewardExchangeView, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-f2176779.js';
|
|
24
24
|
import './sqm-portal-container-view-1683ae32.js';
|
|
25
|
-
import { u as usePayoutStatus } from './usePayoutStatus-
|
|
25
|
+
import { u as usePayoutStatus } from './usePayoutStatus-7c0f0567.js';
|
|
26
26
|
|
|
27
27
|
const BigStat = class {
|
|
28
28
|
constructor(hostRef) {
|
|
@@ -979,6 +979,15 @@ const GET_USER_STATUS = dist.gql `
|
|
|
979
979
|
}
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
|
+
rewards(limit: 2000) {
|
|
983
|
+
data {
|
|
984
|
+
statuses
|
|
985
|
+
partnerFundsTransfer {
|
|
986
|
+
id
|
|
987
|
+
status
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
}
|
|
982
991
|
}
|
|
983
992
|
}
|
|
984
993
|
}
|
|
@@ -991,22 +1000,24 @@ const GET_TAX_SETTING = dist.gql `
|
|
|
991
1000
|
}
|
|
992
1001
|
`;
|
|
993
1002
|
function getStatus(data) {
|
|
994
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1003
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
995
1004
|
const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
|
|
996
|
-
|
|
1005
|
+
const hasTransferredReward = (_e = (_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.rewards) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.find((reward) => reward.statuses.includes("REDEEMED") &&
|
|
1006
|
+
reward.partnerFundsTransfer.status === "TRANSFERRED");
|
|
1007
|
+
if (!((_g = (_f = data.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.connected) || !account)
|
|
997
1008
|
return "INFORMATION_REQUIRED";
|
|
998
|
-
const currentTaxDocument = (
|
|
999
|
-
if (((
|
|
1009
|
+
const currentTaxDocument = (_j = (_h = data.user.impactConnection) === null || _h === void 0 ? void 0 : _h.publisher) === null || _j === void 0 ? void 0 : _j.currentTaxDocument;
|
|
1010
|
+
if (((_k = account.holdReasons) === null || _k === void 0 ? void 0 : _k.includes("NO_W9_DOCUMENT")) && !currentTaxDocument)
|
|
1000
1011
|
return "OVER_W9_THRESHOLD";
|
|
1001
|
-
if ((
|
|
1012
|
+
if ((_l = account.holdReasons) === null || _l === void 0 ? void 0 : _l.includes("IDV_CHECK_REQUIRED"))
|
|
1002
1013
|
return "VERIFICATION:REQUIRED";
|
|
1003
|
-
if ((
|
|
1014
|
+
if ((_m = account.holdReasons) === null || _m === void 0 ? void 0 : _m.includes("IDV_CHECK_REQUIRED_INTERNAL"))
|
|
1004
1015
|
return "VERIFICATION:INTERNAL";
|
|
1005
|
-
if ((
|
|
1016
|
+
if ((_o = account.holdReasons) === null || _o === void 0 ? void 0 : _o.includes("IDV_CHECK_REVIEW_INTERNAL"))
|
|
1006
1017
|
return "VERIFICATION:REVIEW";
|
|
1007
|
-
if ((
|
|
1018
|
+
if ((_p = account.holdReasons) === null || _p === void 0 ? void 0 : _p.includes("IDV_CHECK_FAILED_INTERNAL"))
|
|
1008
1019
|
return "VERIFICATION:FAILED";
|
|
1009
|
-
if ((
|
|
1020
|
+
if (((_q = account.holdReasons) === null || _q === void 0 ? void 0 : _q.includes("NEW_PAYEE_REVIEW")) && hasTransferredReward)
|
|
1010
1021
|
return "ACCOUNT_REVIEW";
|
|
1011
1022
|
if (account.hold)
|
|
1012
1023
|
return "HOLD";
|