@saasquatch/mint-components 1.15.5-5 → 1.15.6
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/{ShadowViewAddon-28865623.js → ShadowViewAddon-e9dc77e3.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +234 -384
- package/dist/cjs/{sqm-base-registration-form-view-8029d30e.js → sqm-base-registration-form-view-66f99821.js} +9 -4
- package/dist/cjs/sqm-big-stat_43.cjs.entry.js +10 -150
- package/dist/cjs/sqm-header-logo.cjs.entry.js +1 -8
- package/dist/cjs/{sqm-invoice-table-view-3f60fba9.js → sqm-invoice-table-view-5c74607f.js} +0 -1
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +25 -18
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +8 -5
- package/dist/cjs/{usePayoutStatus-7892433f.js → usePayoutStatus-1ffd1cd4.js} +4 -176
- package/dist/collection/components/sqm-base-registration/BaseRegistrationForm.stories.js +2 -2
- package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +9 -4
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +1 -1
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +1 -1
- package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +3 -73
- package/dist/collection/components/sqm-input-field/sqm-input-field.js +1 -1
- package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +1 -1
- package/dist/collection/components/sqm-name-fields/NameFields.stories.js +2 -0
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +3 -3
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +31 -1
- package/dist/collection/components/sqm-name-fields/useNameFields.js +1 -0
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +2 -2
- package/dist/collection/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.js +1 -0
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +4 -4
- package/dist/collection/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.js +22 -15
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +0 -1
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +40 -46
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +2 -90
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +0 -353
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +5 -36
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +0 -300
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +2 -92
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +0 -300
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +12 -23
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +9 -92
- package/dist/esm/{ShadowViewAddon-f2176779.js → ShadowViewAddon-e0d5f1c9.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_17.entry.js +189 -339
- package/dist/esm/{sqm-base-registration-form-view-dafba287.js → sqm-base-registration-form-view-d81e316a.js} +9 -4
- package/dist/esm/sqm-big-stat_43.entry.js +11 -151
- package/dist/esm/sqm-header-logo.entry.js +1 -8
- package/dist/esm/{sqm-invoice-table-view-01453fa3.js → sqm-invoice-table-view-3491dd80.js} +0 -1
- package/dist/esm/sqm-portal-google-registration-form.entry.js +25 -18
- package/dist/esm/sqm-stencilbook.entry.js +8 -5
- package/dist/esm/{usePayoutStatus-c21ef382.js → usePayoutStatus-f09f2ec8.js} +6 -163
- package/dist/esm-es5/{ShadowViewAddon-f2176779.js → ShadowViewAddon-e0d5f1c9.js} +1 -1
- 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_17.entry.js +1 -1
- package/dist/esm-es5/sqm-base-registration-form-view-d81e316a.js +1 -0
- package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-3491dd80.js +1 -0
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/usePayoutStatus-f09f2ec8.js +6 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-15364635.entry.js +273 -0
- package/dist/mint-components/{p-4a731079.entry.js → p-1edebab1.entry.js} +2 -2
- package/dist/mint-components/p-2d8045c2.entry.js +220 -0
- package/dist/mint-components/p-3439af2f.system.entry.js +1 -0
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/{p-02832118.system.entry.js → p-3ac8613d.system.entry.js} +1 -1
- package/dist/mint-components/{p-c1b074b6.js → p-3b6dccec.js} +1 -1
- package/dist/mint-components/p-3df72337.js +46 -0
- package/dist/mint-components/p-43e274e9.entry.js +1 -0
- package/dist/mint-components/p-49932f12.system.js +1 -0
- package/dist/mint-components/p-5cda9960.system.entry.js +1 -0
- package/dist/mint-components/p-7dabdca6.system.entry.js +1 -0
- package/dist/mint-components/p-8db18561.system.entry.js +1 -0
- package/dist/mint-components/p-9308221f.js +1 -0
- package/dist/mint-components/p-bc021969.system.js +1 -0
- package/dist/mint-components/{p-0d939b73.system.js → p-d15b642f.system.js} +1 -1
- package/dist/mint-components/p-e8e48982.js +1 -0
- package/dist/mint-components/p-f82e3152.system.js +6 -0
- package/dist/mint-components/p-faba3198.entry.js +1 -0
- package/dist/types/components/sqm-base-registration/sqm-base-registration-form-view.d.ts +2 -1
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +1 -1
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +1 -1
- package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +1 -14
- package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +1 -1
- package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +1 -1
- package/dist/types/components/sqm-name-fields/sqm-name-fields-view.d.ts +1 -0
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +5 -0
- package/dist/types/components/sqm-name-fields/useNameFields.d.ts +1 -0
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +1 -1
- package/dist/types/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.d.ts +2 -1
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +0 -23
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +0 -16
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +0 -57
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -3
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +0 -48
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +0 -12
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +0 -48
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +0 -2
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +0 -1
- package/dist/types/components.d.ts +11 -331
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +2 -0
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/sqm-base-registration-form-view-dafba287.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-01453fa3.js +0 -1
- package/dist/esm-es5/usePayoutStatus-c21ef382.js +0 -6
- package/dist/mint-components/p-2651ef99.system.js +0 -1
- package/dist/mint-components/p-35701119.js +0 -1
- package/dist/mint-components/p-48552798.system.entry.js +0 -1
- package/dist/mint-components/p-498bbce7.system.entry.js +0 -1
- package/dist/mint-components/p-59fe6066.js +0 -1
- package/dist/mint-components/p-67035b70.system.entry.js +0 -1
- package/dist/mint-components/p-86a5db85.system.js +0 -1
- package/dist/mint-components/p-9c4f4cd6.entry.js +0 -1
- package/dist/mint-components/p-a3647f70.system.entry.js +0 -1
- package/dist/mint-components/p-aa595246.system.js +0 -6
- package/dist/mint-components/p-bdbf26da.entry.js +0 -273
- package/dist/mint-components/p-cb87eadd.entry.js +0 -1
- package/dist/mint-components/p-d289d251.entry.js +0 -109
- package/dist/mint-components/p-d9da598f.js +0 -157
|
@@ -1,135 +1,8 @@
|
|
|
1
1
|
import { k as useState, f as useEffect } from './stencil-hooks.module-4bc38af4.js';
|
|
2
|
-
import { d as dist, J, $ as $e, g as getEnvironmentSDK, w as wn
|
|
2
|
+
import { d as dist, J, $ as $e, g as getEnvironmentSDK, w as wn } from './index.module-89a79f66.js';
|
|
3
3
|
|
|
4
4
|
const TAX_FORM_UPDATED_EVENT_KEY = "sqm:tax-form-updated";
|
|
5
5
|
|
|
6
|
-
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
7
|
-
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
8
|
-
const USER_QUERY_NAMESPACE = "sq:user-info-query";
|
|
9
|
-
const USER_FORM_CONTEXT_NAMESPACE = "sq:user-form-context";
|
|
10
|
-
const FINANCE_NETWORK_SETTINGS_NAMESPACE = "sq:finance-network-settings";
|
|
11
|
-
const COUNTRIES_NAMESPACE = "sq:countries:list";
|
|
12
|
-
const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
|
|
13
|
-
const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
|
|
14
|
-
const CURRENCIES_NAMESPACE = "sq:currencies:list";
|
|
15
|
-
const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
|
|
16
|
-
const GET_USER = dist.gql `
|
|
17
|
-
query getUserTaxInfo {
|
|
18
|
-
user: viewer {
|
|
19
|
-
... on User {
|
|
20
|
-
id
|
|
21
|
-
firstName
|
|
22
|
-
lastName
|
|
23
|
-
email
|
|
24
|
-
countryCode
|
|
25
|
-
customFields
|
|
26
|
-
rewards(limit: 1000) {
|
|
27
|
-
data {
|
|
28
|
-
statuses
|
|
29
|
-
partnerFundsTransfer {
|
|
30
|
-
id
|
|
31
|
-
status
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
managedIdentity {
|
|
36
|
-
uid
|
|
37
|
-
email
|
|
38
|
-
emailVerified
|
|
39
|
-
}
|
|
40
|
-
impactConnection {
|
|
41
|
-
connected
|
|
42
|
-
user {
|
|
43
|
-
firstName
|
|
44
|
-
lastName
|
|
45
|
-
}
|
|
46
|
-
publisher {
|
|
47
|
-
id
|
|
48
|
-
brandedSignup
|
|
49
|
-
countryCode
|
|
50
|
-
currency
|
|
51
|
-
billingAddress
|
|
52
|
-
billingCity
|
|
53
|
-
billingState
|
|
54
|
-
billingCountryCode
|
|
55
|
-
billingPostalCode
|
|
56
|
-
phoneNumberCountryCode
|
|
57
|
-
phoneNumber
|
|
58
|
-
taxInformation {
|
|
59
|
-
indirectTaxId
|
|
60
|
-
indirectTaxCountryCode
|
|
61
|
-
indirectTaxRegion
|
|
62
|
-
additionalTaxId
|
|
63
|
-
withholdingTaxId
|
|
64
|
-
withholdingTaxCountryCode
|
|
65
|
-
}
|
|
66
|
-
requiredTaxDocumentType
|
|
67
|
-
currentTaxDocument {
|
|
68
|
-
status
|
|
69
|
-
type
|
|
70
|
-
dateCreated
|
|
71
|
-
}
|
|
72
|
-
withdrawalSettings {
|
|
73
|
-
paymentMethod
|
|
74
|
-
paypalEmailAddress
|
|
75
|
-
bankCountry
|
|
76
|
-
bankAccountNumber
|
|
77
|
-
paymentSchedulingType
|
|
78
|
-
paymentThreshold
|
|
79
|
-
paymentDay
|
|
80
|
-
}
|
|
81
|
-
payoutsAccount {
|
|
82
|
-
hold
|
|
83
|
-
holdReasons
|
|
84
|
-
balance
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
`;
|
|
92
|
-
const GET_COUNTRIES = dist.gql `
|
|
93
|
-
query getCountries {
|
|
94
|
-
impactPayoutCountries(limit: 1000) {
|
|
95
|
-
data {
|
|
96
|
-
countryCode
|
|
97
|
-
displayName
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
`;
|
|
102
|
-
const GET_CURRENCIES = dist.gql `
|
|
103
|
-
query currencies($locale: RSLocale) {
|
|
104
|
-
currencies(limit: 300) {
|
|
105
|
-
data {
|
|
106
|
-
displayName(locale: $locale)
|
|
107
|
-
currencyCode
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
`;
|
|
112
|
-
const GET_FINANCE_NETWORK_SETTINGS = dist.gql `
|
|
113
|
-
query impactFinanceNetworkSettings(
|
|
114
|
-
$filter: ImpactFinanceNetworkSettingsFilterInput
|
|
115
|
-
) {
|
|
116
|
-
impactFinanceNetworkSettings(filter: $filter, limit: 1000) {
|
|
117
|
-
data {
|
|
118
|
-
countryCode
|
|
119
|
-
currency
|
|
120
|
-
defaultFinancePaymentMethodId
|
|
121
|
-
thresholdOptions
|
|
122
|
-
withdrawalSettingId
|
|
123
|
-
internationalEftFee
|
|
124
|
-
foreignFxFee
|
|
125
|
-
defaultFxFee
|
|
126
|
-
}
|
|
127
|
-
totalCount
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
`;
|
|
131
|
-
const FORM_STEPS = 4;
|
|
132
|
-
|
|
133
6
|
var toArray = function toArray(a) {
|
|
134
7
|
var ret = Array(a.length);
|
|
135
8
|
for (var i = 0; i < a.length; ++i) {
|
|
@@ -1127,7 +1000,7 @@ const GET_TAX_SETTING = dist.gql `
|
|
|
1127
1000
|
}
|
|
1128
1001
|
`;
|
|
1129
1002
|
function getStatus(data) {
|
|
1130
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r
|
|
1003
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
1131
1004
|
const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
|
|
1132
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") &&
|
|
1133
1006
|
reward.partnerFundsTransfer.status === "TRANSFERRED");
|
|
@@ -1145,19 +1018,9 @@ function getStatus(data) {
|
|
|
1145
1018
|
if ((_p = account.holdReasons) === null || _p === void 0 ? void 0 : _p.includes("IDV_CHECK_FAILED_INTERNAL"))
|
|
1146
1019
|
return "VERIFICATION:FAILED";
|
|
1147
1020
|
if (((_q = account.holdReasons) === null || _q === void 0 ? void 0 : _q.includes("NEW_PAYEE_REVIEW")) && hasTransferredReward)
|
|
1148
|
-
return "
|
|
1149
|
-
if ((_r = account.holdReasons) === null || _r === void 0 ? void 0 : _r.includes("
|
|
1150
|
-
return "
|
|
1151
|
-
if ((_s = account.holdReasons) === null || _s === void 0 ? void 0 : _s.includes("BENEFICIARY_NAME_INVALID"))
|
|
1152
|
-
return "BENEFICIARY_NAME_INVALID";
|
|
1153
|
-
if ((_t = account.holdReasons) === null || _t === void 0 ? void 0 : _t.includes("BENEFICIARY_NAME_MISMATCH"))
|
|
1154
|
-
return "BENEFICIARY_NAME_MISMATCH";
|
|
1155
|
-
if ((_u = account.holdReasons) === null || _u === void 0 ? void 0 : _u.includes("BANK_TAX_NAME_MISMATCH"))
|
|
1156
|
-
return "BANK_TAX_NAME_MISMATCH";
|
|
1157
|
-
if ((_v = account.holdReasons) === null || _v === void 0 ? void 0 : _v.includes("WITHDRAWAL_SETTINGS_INVALID"))
|
|
1158
|
-
return "WITHDRAWAL_SETTINGS_INVALID";
|
|
1159
|
-
if ((_w = account.holdReasons) === null || _w === void 0 ? void 0 : _w.includes("PAYMENT_RETURNED"))
|
|
1160
|
-
return "PAYMENT_RETURNED";
|
|
1021
|
+
return "ACCOUNT_REVIEW";
|
|
1022
|
+
if ((_r = account.holdReasons) === null || _r === void 0 ? void 0 : _r.includes("NEW_PAYEE_REVIEW"))
|
|
1023
|
+
return "DONE";
|
|
1161
1024
|
if (account.hold)
|
|
1162
1025
|
return "HOLD";
|
|
1163
1026
|
return "DONE";
|
|
@@ -1169,8 +1032,6 @@ function usePayoutStatus(props) {
|
|
|
1169
1032
|
const { data: taxSettingRes } = wn(GET_TAX_SETTING, {});
|
|
1170
1033
|
const { render, loading: veriffLoading, errors: veriffErrors, } = useVeriffApp();
|
|
1171
1034
|
const [status, setStatus] = useState(undefined);
|
|
1172
|
-
const setContext = En(TAX_FORM_CONTEXT_NAMESPACE);
|
|
1173
|
-
const setStep = En(TAX_CONTEXT_NAMESPACE);
|
|
1174
1035
|
const enforceUsTaxComplianceOption = (_a = taxSettingRes === null || taxSettingRes === void 0 ? void 0 : taxSettingRes.tenantSettings) === null || _a === void 0 ? void 0 : _a.enforceUsTaxCompliance;
|
|
1175
1036
|
useEffect(() => {
|
|
1176
1037
|
if (!data)
|
|
@@ -1198,22 +1059,6 @@ function usePayoutStatus(props) {
|
|
|
1198
1059
|
url += "#3";
|
|
1199
1060
|
window.history.pushState(null, "", url);
|
|
1200
1061
|
};
|
|
1201
|
-
const onPaymentInfoClick = () => {
|
|
1202
|
-
setContext({
|
|
1203
|
-
overrideNextStep: "/dashboard",
|
|
1204
|
-
overrideBackStep: "/dashboard",
|
|
1205
|
-
hideSteps: true,
|
|
1206
|
-
});
|
|
1207
|
-
setStep("/4");
|
|
1208
|
-
};
|
|
1209
|
-
const onNewFormClick = () => {
|
|
1210
|
-
setContext({
|
|
1211
|
-
overrideNextStep: "/dashboard",
|
|
1212
|
-
overrideBackStep: "/dashboard",
|
|
1213
|
-
hideSteps: true,
|
|
1214
|
-
});
|
|
1215
|
-
setStep("/3");
|
|
1216
|
-
};
|
|
1217
1062
|
return {
|
|
1218
1063
|
states: {
|
|
1219
1064
|
loading,
|
|
@@ -1227,10 +1072,8 @@ function usePayoutStatus(props) {
|
|
|
1227
1072
|
callbacks: {
|
|
1228
1073
|
onTermsClick,
|
|
1229
1074
|
onClick: render,
|
|
1230
|
-
onPaymentInfoClick,
|
|
1231
|
-
onNewFormClick,
|
|
1232
1075
|
},
|
|
1233
1076
|
};
|
|
1234
1077
|
}
|
|
1235
1078
|
|
|
1236
|
-
export {
|
|
1079
|
+
export { TAX_FORM_UPDATED_EVENT_KEY as T, VERIFF_COMPLETE_EVENT_KEY as V, useVeriffApp as a, getStatus as g, usePayoutStatus as u };
|