@saasquatch/mint-components 1.15.4 → 1.15.5-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/{ShadowViewAddon-e9dc77e3.js → ShadowViewAddon-28865623.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 +265 -193
- package/dist/cjs/{sqm-base-registration-form-view-66f99821.js → sqm-base-registration-form-view-8029d30e.js} +4 -9
- package/dist/cjs/sqm-big-stat_43.cjs.entry.js +143 -10
- package/dist/cjs/{sqm-invoice-table-view-5c74607f.js → sqm-invoice-table-view-3f60fba9.js} +1 -0
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +19 -28
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +5 -8
- package/dist/cjs/{usePayoutStatus-733ef29a.js → usePayoutStatus-fc4e609e.js} +167 -2
- 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 +4 -9
- 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-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 +0 -2
- 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 +1 -31
- package/dist/collection/components/sqm-name-fields/useNameFields.js +0 -1
- 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 +0 -1
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +5 -7
- package/dist/collection/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.js +15 -22
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +87 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +327 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +27 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +300 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +85 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +300 -0
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +23 -12
- 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 +19 -4
- package/dist/esm/{ShadowViewAddon-e0d5f1c9.js → ShadowViewAddon-f2176779.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 +218 -146
- package/dist/esm/{sqm-base-registration-form-view-d81e316a.js → sqm-base-registration-form-view-dafba287.js} +4 -9
- package/dist/esm/sqm-big-stat_43.entry.js +143 -10
- package/dist/esm/{sqm-invoice-table-view-3491dd80.js → sqm-invoice-table-view-01453fa3.js} +1 -0
- package/dist/esm/sqm-portal-google-registration-form.entry.js +19 -28
- package/dist/esm/sqm-stencilbook.entry.js +5 -8
- package/dist/esm/{usePayoutStatus-b89e8c49.js → usePayoutStatus-b4bdbfa7.js} +154 -4
- package/dist/esm-es5/{ShadowViewAddon-e0d5f1c9.js → ShadowViewAddon-f2176779.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-dafba287.js +1 -0
- package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-01453fa3.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-b4bdbfa7.js +6 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-3ac8613d.system.entry.js → p-02832118.system.entry.js} +1 -1
- package/dist/mint-components/{p-d15b642f.system.js → p-0d939b73.system.js} +1 -1
- package/dist/mint-components/p-2651ef99.system.js +1 -0
- package/dist/mint-components/p-28131538.entry.js +109 -0
- package/dist/mint-components/p-35701119.js +1 -0
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/{p-1edebab1.entry.js → p-4a731079.entry.js} +2 -2
- package/dist/mint-components/p-59fe6066.js +1 -0
- package/dist/mint-components/p-86a5db85.system.js +1 -0
- package/dist/mint-components/p-93db61eb.system.js +6 -0
- package/dist/mint-components/p-9c4f4cd6.entry.js +1 -0
- package/dist/mint-components/p-a3647f70.system.entry.js +1 -0
- package/dist/mint-components/p-a4f494ee.system.entry.js +1 -0
- package/dist/mint-components/p-b24fae32.system.entry.js +1 -0
- package/dist/mint-components/{p-3b6dccec.js → p-c1b074b6.js} +1 -1
- package/dist/mint-components/p-e3deed72.entry.js +273 -0
- package/dist/mint-components/p-fde41ad1.js +157 -0
- package/dist/types/components/sqm-base-registration/sqm-base-registration-form-view.d.ts +1 -2
- 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-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 +0 -1
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +0 -5
- package/dist/types/components/sqm-name-fields/useNameFields.d.ts +0 -1
- 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 +1 -2
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +14 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +53 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +2 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +48 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +12 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +48 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +2 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -0
- package/dist/types/components.d.ts +296 -10
- 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-d81e316a.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-3491dd80.js +0 -1
- package/dist/esm-es5/usePayoutStatus-b89e8c49.js +0 -6
- package/dist/mint-components/p-021b0540.js +0 -46
- package/dist/mint-components/p-3d73cd84.entry.js +0 -220
- package/dist/mint-components/p-49932f12.system.js +0 -1
- package/dist/mint-components/p-7176a952.entry.js +0 -1
- package/dist/mint-components/p-8d0393d9.system.entry.js +0 -1
- package/dist/mint-components/p-9308221f.js +0 -1
- package/dist/mint-components/p-959c42b2.system.entry.js +0 -1
- package/dist/mint-components/p-a6494752.system.js +0 -6
- package/dist/mint-components/p-bc021969.system.js +0 -1
- package/dist/mint-components/p-c78e6066.entry.js +0 -273
- package/dist/mint-components/p-e64e8354.system.entry.js +0 -1
- package/dist/mint-components/p-e8e48982.js +0 -1
|
@@ -18,139 +18,12 @@ const luxon = require('./luxon-2926d85f.js');
|
|
|
18
18
|
const useReferralTable = require('./useReferralTable-7c3f9600.js');
|
|
19
19
|
const sqmTextSpanView = require('./sqm-text-span-view-0aa82125.js');
|
|
20
20
|
const ErrorView = require('./ErrorView-b2fcf954.js');
|
|
21
|
-
const sqmInvoiceTableView = require('./sqm-invoice-table-view-
|
|
21
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-3f60fba9.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-fc4e609e.js');
|
|
25
25
|
const useVerificationEmail = require('./useVerificationEmail-95a82767.js');
|
|
26
26
|
|
|
27
|
-
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
28
|
-
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
29
|
-
const USER_QUERY_NAMESPACE = "sq:user-info-query";
|
|
30
|
-
const USER_FORM_CONTEXT_NAMESPACE = "sq:user-form-context";
|
|
31
|
-
const FINANCE_NETWORK_SETTINGS_NAMESPACE = "sq:finance-network-settings";
|
|
32
|
-
const COUNTRIES_NAMESPACE = "sq:countries:list";
|
|
33
|
-
const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
|
|
34
|
-
const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
|
|
35
|
-
const CURRENCIES_NAMESPACE = "sq:currencies:list";
|
|
36
|
-
const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
|
|
37
|
-
const GET_USER = index_module.dist.gql `
|
|
38
|
-
query getUserTaxInfo {
|
|
39
|
-
user: viewer {
|
|
40
|
-
... on User {
|
|
41
|
-
id
|
|
42
|
-
firstName
|
|
43
|
-
lastName
|
|
44
|
-
email
|
|
45
|
-
countryCode
|
|
46
|
-
customFields
|
|
47
|
-
rewards(limit: 1000) {
|
|
48
|
-
data {
|
|
49
|
-
statuses
|
|
50
|
-
partnerFundsTransfer {
|
|
51
|
-
id
|
|
52
|
-
status
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
managedIdentity {
|
|
57
|
-
uid
|
|
58
|
-
email
|
|
59
|
-
emailVerified
|
|
60
|
-
}
|
|
61
|
-
impactConnection {
|
|
62
|
-
connected
|
|
63
|
-
user {
|
|
64
|
-
firstName
|
|
65
|
-
lastName
|
|
66
|
-
}
|
|
67
|
-
publisher {
|
|
68
|
-
id
|
|
69
|
-
brandedSignup
|
|
70
|
-
countryCode
|
|
71
|
-
currency
|
|
72
|
-
billingAddress
|
|
73
|
-
billingCity
|
|
74
|
-
billingState
|
|
75
|
-
billingCountryCode
|
|
76
|
-
billingPostalCode
|
|
77
|
-
phoneNumberCountryCode
|
|
78
|
-
phoneNumber
|
|
79
|
-
taxInformation {
|
|
80
|
-
indirectTaxId
|
|
81
|
-
indirectTaxCountryCode
|
|
82
|
-
indirectTaxRegion
|
|
83
|
-
additionalTaxId
|
|
84
|
-
withholdingTaxId
|
|
85
|
-
withholdingTaxCountryCode
|
|
86
|
-
}
|
|
87
|
-
requiredTaxDocumentType
|
|
88
|
-
currentTaxDocument {
|
|
89
|
-
status
|
|
90
|
-
type
|
|
91
|
-
dateCreated
|
|
92
|
-
}
|
|
93
|
-
withdrawalSettings {
|
|
94
|
-
paymentMethod
|
|
95
|
-
paypalEmailAddress
|
|
96
|
-
bankCountry
|
|
97
|
-
bankAccountNumber
|
|
98
|
-
paymentSchedulingType
|
|
99
|
-
paymentThreshold
|
|
100
|
-
paymentDay
|
|
101
|
-
}
|
|
102
|
-
payoutsAccount {
|
|
103
|
-
hold
|
|
104
|
-
holdReasons
|
|
105
|
-
balance
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
`;
|
|
113
|
-
const GET_COUNTRIES = index_module.dist.gql `
|
|
114
|
-
query getCountries {
|
|
115
|
-
impactPayoutCountries(limit: 1000) {
|
|
116
|
-
data {
|
|
117
|
-
countryCode
|
|
118
|
-
displayName
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
`;
|
|
123
|
-
const GET_CURRENCIES = index_module.dist.gql `
|
|
124
|
-
query currencies($locale: RSLocale) {
|
|
125
|
-
currencies(limit: 300) {
|
|
126
|
-
data {
|
|
127
|
-
displayName(locale: $locale)
|
|
128
|
-
currencyCode
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
`;
|
|
133
|
-
const GET_FINANCE_NETWORK_SETTINGS = index_module.dist.gql `
|
|
134
|
-
query impactFinanceNetworkSettings(
|
|
135
|
-
$filter: ImpactFinanceNetworkSettingsFilterInput
|
|
136
|
-
) {
|
|
137
|
-
impactFinanceNetworkSettings(filter: $filter, limit: 1000) {
|
|
138
|
-
data {
|
|
139
|
-
countryCode
|
|
140
|
-
currency
|
|
141
|
-
defaultFinancePaymentMethodId
|
|
142
|
-
thresholdOptions
|
|
143
|
-
withdrawalSettingId
|
|
144
|
-
internationalEftFee
|
|
145
|
-
foreignFxFee
|
|
146
|
-
defaultFxFee
|
|
147
|
-
}
|
|
148
|
-
totalCount
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
`;
|
|
152
|
-
const FORM_STEPS = 4;
|
|
153
|
-
|
|
154
27
|
function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
155
28
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32;
|
|
156
29
|
const { errors, ...formState } = props.states.formState;
|
|
@@ -904,7 +777,7 @@ const BankingInfoFormView = (props) => {
|
|
|
904
777
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
905
778
|
id: "formStep",
|
|
906
779
|
defaultMessage: text.formStep,
|
|
907
|
-
}, { step: states.step, count: FORM_STEPS }))),
|
|
780
|
+
}, { step: states.step, count: usePayoutStatus.FORM_STEPS }))),
|
|
908
781
|
index.h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
|
|
909
782
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
|
|
910
783
|
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet.classes.AlertContainer },
|
|
@@ -1045,12 +918,12 @@ function useBankingInfoForm(props) {
|
|
|
1045
918
|
const host = index_module._();
|
|
1046
919
|
const locale = index_module.L();
|
|
1047
920
|
const user = index_module.J();
|
|
1048
|
-
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
1049
|
-
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
1050
|
-
const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
|
|
921
|
+
const [step, setStep] = index_module.Pn(usePayoutStatus.TAX_CONTEXT_NAMESPACE);
|
|
922
|
+
const context = index_module.Fn(usePayoutStatus.TAX_FORM_CONTEXT_NAMESPACE);
|
|
923
|
+
const countries = index_module.Fn(usePayoutStatus.SORTED_COUNTRIES_NAMESPACE);
|
|
1051
924
|
const formRef = stencilHooks_module.useRef(null);
|
|
1052
|
-
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(FINANCE_NETWORK_SETTINGS_NAMESPACE);
|
|
1053
|
-
const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
925
|
+
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(usePayoutStatus.FINANCE_NETWORK_SETTINGS_NAMESPACE);
|
|
926
|
+
const { data: userData, refetch, errors: userError, } = index_module.$n(usePayoutStatus.USER_QUERY_NAMESPACE);
|
|
1054
927
|
const [saveWithdrawalSettings] = index_module.$e(SAVE_WITHDRAWAL_SETTINGS);
|
|
1055
928
|
const [updateWithdrawalSettings] = index_module.$e(UPDATE_WITHDRAWAL_SETTINGS);
|
|
1056
929
|
const [showVerification, setShowVerification] = stencilHooks_module.useState(false);
|
|
@@ -1746,7 +1619,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1746
1619
|
const defaultPaymentScheduleChecked = (_f = (_e = (_d = props.demoData) === null || _d === void 0 ? void 0 : _d.states) === null || _e === void 0 ? void 0 : _e.formState) === null || _f === void 0 ? void 0 : _f.paymentScheduleChecked;
|
|
1747
1620
|
const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
|
|
1748
1621
|
const defaultCountry = (_l = (_k = (_j = props.demoData) === null || _j === void 0 ? void 0 : _j.states) === null || _k === void 0 ? void 0 : _k.formState) === null || _l === void 0 ? void 0 : _l.bankCountry;
|
|
1749
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
1622
|
+
const setStep = index_module.En(usePayoutStatus.TAX_CONTEXT_NAMESPACE);
|
|
1750
1623
|
const [paymentMethodChecked, setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
|
|
1751
1624
|
const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
|
|
1752
1625
|
const [currency, setCurrency] = stencilHooks_module.useState(defaultCurrency);
|
|
@@ -2195,9 +2068,9 @@ const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
|
|
|
2195
2068
|
function useDocusignForm(props) {
|
|
2196
2069
|
var _a, _b, _c;
|
|
2197
2070
|
const user = index_module.J();
|
|
2198
|
-
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2199
|
-
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
2200
|
-
const { data, loading: userLoading, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
2071
|
+
const context = index_module.Fn(usePayoutStatus.TAX_FORM_CONTEXT_NAMESPACE);
|
|
2072
|
+
const [step, setStep] = index_module.Pn(usePayoutStatus.TAX_CONTEXT_NAMESPACE);
|
|
2073
|
+
const { data, loading: userLoading, refetch, } = index_module.$n(usePayoutStatus.USER_QUERY_NAMESPACE);
|
|
2201
2074
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
2202
2075
|
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module.$e(GET_TAX_DOCUMENT);
|
|
2203
2076
|
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module.$e(COMPLETE_TAX_DOCUMENT);
|
|
@@ -2621,7 +2494,7 @@ const DocusignFormView = (props) => {
|
|
|
2621
2494
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
2622
2495
|
id: "formStep",
|
|
2623
2496
|
defaultMessage: text.formStep,
|
|
2624
|
-
}, { step: states.step, count: FORM_STEPS }))),
|
|
2497
|
+
}, { step: states.step, count: usePayoutStatus.FORM_STEPS }))),
|
|
2625
2498
|
index.h("h3", null, text.taxForm),
|
|
2626
2499
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2627
2500
|
states.loadingError && (index.h("div", null,
|
|
@@ -2818,7 +2691,7 @@ const DocusignForm = class {
|
|
|
2818
2691
|
get el() { return index.getElement(this); }
|
|
2819
2692
|
};
|
|
2820
2693
|
function useDocusignFormDemo(props) {
|
|
2821
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
2694
|
+
const setStep = index_module.En(usePayoutStatus.TAX_CONTEXT_NAMESPACE);
|
|
2822
2695
|
return cjs.cjs({
|
|
2823
2696
|
text: props.getTextProps(),
|
|
2824
2697
|
states: {
|
|
@@ -3009,7 +2882,7 @@ const IndirectTaxFormView = (props) => {
|
|
|
3009
2882
|
global.intl.formatMessage({
|
|
3010
2883
|
id: "formStep",
|
|
3011
2884
|
defaultMessage: text.formStep,
|
|
3012
|
-
}, { step: states.step, count: FORM_STEPS }))),
|
|
2885
|
+
}, { step: states.step, count: usePayoutStatus.FORM_STEPS }))),
|
|
3013
2886
|
index.h("h3", null, text.indirectTax),
|
|
3014
2887
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
3015
2888
|
index.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
@@ -3112,12 +2985,12 @@ function useIndirectTaxForm(props) {
|
|
|
3112
2985
|
const user = index_module.J();
|
|
3113
2986
|
const locale = index_module.L();
|
|
3114
2987
|
const formRef = stencilHooks_module.useRef(null);
|
|
3115
|
-
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
3116
|
-
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
2988
|
+
const context = index_module.Fn(usePayoutStatus.TAX_FORM_CONTEXT_NAMESPACE);
|
|
2989
|
+
const [step, setStep] = index_module.Pn(usePayoutStatus.TAX_CONTEXT_NAMESPACE);
|
|
3117
2990
|
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
|
|
3118
|
-
const userForm = index_module.Fn(USER_FORM_CONTEXT_NAMESPACE);
|
|
3119
|
-
const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
3120
|
-
const { data: _countriesRes, loading: countriesLoading } = index_module.$n(COUNTRIES_QUERY_NAMESPACE);
|
|
2991
|
+
const userForm = index_module.Fn(usePayoutStatus.USER_FORM_CONTEXT_NAMESPACE);
|
|
2992
|
+
const { data: userData, refetch, errors: userError, } = index_module.$n(usePayoutStatus.USER_QUERY_NAMESPACE);
|
|
2993
|
+
const { data: _countriesRes, loading: countriesLoading } = index_module.$n(usePayoutStatus.COUNTRIES_QUERY_NAMESPACE);
|
|
3121
2994
|
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
3122
2995
|
const _countries = stencilHooks_module.useMemo(() => { var _a, _b; return (_b = (_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((country) => sqmInvoiceTableView.getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
|
|
3123
2996
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
@@ -3516,7 +3389,7 @@ const IndirectTaxForm = class {
|
|
|
3516
3389
|
}
|
|
3517
3390
|
};
|
|
3518
3391
|
function useDemoIndirectTaxForm(props) {
|
|
3519
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
3392
|
+
const setStep = index_module.En(usePayoutStatus.TAX_CONTEXT_NAMESPACE);
|
|
3520
3393
|
const [option, setOption] = stencilHooks_module.useState(null);
|
|
3521
3394
|
const [demoFormState, setDemoFormState] = stencilHooks_module.useState({});
|
|
3522
3395
|
return cjs.cjs({
|
|
@@ -4198,7 +4071,7 @@ function PayoutDetailsCardView(props) {
|
|
|
4198
4071
|
|
|
4199
4072
|
function usePayoutDetailsCard(props) {
|
|
4200
4073
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
4201
|
-
const { data, loading } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
4074
|
+
const { data, loading } = index_module.$n(usePayoutStatus.USER_QUERY_NAMESPACE);
|
|
4202
4075
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
4203
4076
|
function getPayoutDetailedStatusText(paymentDay) {
|
|
4204
4077
|
var _a;
|
|
@@ -4365,17 +4238,17 @@ function useTaxAndCash() {
|
|
|
4365
4238
|
const locale = index_module.L();
|
|
4366
4239
|
// State for current step of form
|
|
4367
4240
|
const [step, setStep] = index_module.In({
|
|
4368
|
-
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4241
|
+
namespace: usePayoutStatus.TAX_CONTEXT_NAMESPACE,
|
|
4369
4242
|
initialValue: "/loading",
|
|
4370
4243
|
});
|
|
4371
4244
|
// State for when to hide steps, or override certain actions
|
|
4372
4245
|
const [context, _setContext] = index_module.In({
|
|
4373
|
-
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
4246
|
+
namespace: usePayoutStatus.TAX_FORM_CONTEXT_NAMESPACE,
|
|
4374
4247
|
initialValue: {},
|
|
4375
4248
|
});
|
|
4376
4249
|
// State to carry user form information into step 2
|
|
4377
4250
|
const [userFormContext, _setUserFormContext] = index_module.In({
|
|
4378
|
-
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
4251
|
+
namespace: usePayoutStatus.USER_FORM_CONTEXT_NAMESPACE,
|
|
4379
4252
|
initialValue: {
|
|
4380
4253
|
firstName: undefined,
|
|
4381
4254
|
lastName: undefined,
|
|
@@ -4385,20 +4258,20 @@ function useTaxAndCash() {
|
|
|
4385
4258
|
},
|
|
4386
4259
|
});
|
|
4387
4260
|
const [_currenciesContext, setCurrenciesContext] = index_module.In({
|
|
4388
|
-
namespace: CURRENCIES_NAMESPACE,
|
|
4261
|
+
namespace: usePayoutStatus.CURRENCIES_NAMESPACE,
|
|
4389
4262
|
initialValue: [],
|
|
4390
4263
|
});
|
|
4391
4264
|
const [_countriesContext, _setCountriesContext] = index_module.In({
|
|
4392
|
-
namespace: COUNTRIES_NAMESPACE,
|
|
4265
|
+
namespace: usePayoutStatus.COUNTRIES_NAMESPACE,
|
|
4393
4266
|
initialValue: [],
|
|
4394
4267
|
});
|
|
4395
4268
|
const [_sortedCountriesContext, setSortedCountriesContext] = index_module.In({
|
|
4396
|
-
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
4269
|
+
namespace: usePayoutStatus.SORTED_COUNTRIES_NAMESPACE,
|
|
4397
4270
|
initialValue: [],
|
|
4398
4271
|
});
|
|
4399
4272
|
const { data, errors } = index_module.Sn({
|
|
4400
|
-
namespace: USER_QUERY_NAMESPACE,
|
|
4401
|
-
query: GET_USER,
|
|
4273
|
+
namespace: usePayoutStatus.USER_QUERY_NAMESPACE,
|
|
4274
|
+
query: usePayoutStatus.GET_USER,
|
|
4402
4275
|
skip: !user,
|
|
4403
4276
|
options: {
|
|
4404
4277
|
batch: false,
|
|
@@ -4407,21 +4280,21 @@ function useTaxAndCash() {
|
|
|
4407
4280
|
const countryCode = ((_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.countryCode) ||
|
|
4408
4281
|
userFormContext.countryCode;
|
|
4409
4282
|
index_module.Sn({
|
|
4410
|
-
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
4411
|
-
query: GET_COUNTRIES,
|
|
4283
|
+
namespace: usePayoutStatus.COUNTRIES_QUERY_NAMESPACE,
|
|
4284
|
+
query: usePayoutStatus.GET_COUNTRIES,
|
|
4412
4285
|
skip: !user,
|
|
4413
4286
|
});
|
|
4414
4287
|
const { data: financeNetworkData, refetch } = index_module.Sn({
|
|
4415
|
-
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
4416
|
-
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
4288
|
+
namespace: usePayoutStatus.FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
4289
|
+
query: usePayoutStatus.GET_FINANCE_NETWORK_SETTINGS,
|
|
4417
4290
|
skip: !user,
|
|
4418
4291
|
variables: {
|
|
4419
4292
|
filter: getFinanceNetworkFilter(),
|
|
4420
4293
|
},
|
|
4421
4294
|
});
|
|
4422
4295
|
const { data: currenciesData } = index_module.Sn({
|
|
4423
|
-
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
4424
|
-
query: GET_CURRENCIES,
|
|
4296
|
+
namespace: usePayoutStatus.CURRENCIES_QUERY_NAMESPACE,
|
|
4297
|
+
query: usePayoutStatus.GET_CURRENCIES,
|
|
4425
4298
|
skip: !user,
|
|
4426
4299
|
variables: {
|
|
4427
4300
|
locale,
|
|
@@ -4500,7 +4373,7 @@ function useTaxAndCash() {
|
|
|
4500
4373
|
step,
|
|
4501
4374
|
setStep,
|
|
4502
4375
|
context,
|
|
4503
|
-
namespace: index_module.Mn(TAX_CONTEXT_NAMESPACE),
|
|
4376
|
+
namespace: index_module.Mn(usePayoutStatus.TAX_CONTEXT_NAMESPACE),
|
|
4504
4377
|
loading: step === "/loading",
|
|
4505
4378
|
};
|
|
4506
4379
|
}
|
|
@@ -5432,6 +5305,54 @@ const TaxAndCashMonolith = class {
|
|
|
5432
5305
|
* @uiName Account review alert description
|
|
5433
5306
|
*/
|
|
5434
5307
|
this.dashboard_accountReviewDescription = "This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.";
|
|
5308
|
+
/**
|
|
5309
|
+
* @uiName Account review alert header
|
|
5310
|
+
*/
|
|
5311
|
+
this.dashboard_paymentOnHoldHeader = "We are reviewing your new payout settings";
|
|
5312
|
+
/**
|
|
5313
|
+
* @uiName Account review alert description
|
|
5314
|
+
*/
|
|
5315
|
+
this.dashboard_paymentOnHoldDescription = "Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.";
|
|
5316
|
+
/**
|
|
5317
|
+
* @uiName Account review alert header
|
|
5318
|
+
*/
|
|
5319
|
+
this.dashboard_beneficiaryNameInvalidHeader = "Your payment information does not match your tax form";
|
|
5320
|
+
/**
|
|
5321
|
+
* @uiName Account review alert description
|
|
5322
|
+
*/
|
|
5323
|
+
this.dashboard_beneficiaryNameInvalidDescription = "The beneficiary name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
|
|
5324
|
+
/**
|
|
5325
|
+
* @uiName Account review alert header
|
|
5326
|
+
*/
|
|
5327
|
+
this.dashboard_beneficiaryNameMismatchHeader = "Your payment information does not match your tax form";
|
|
5328
|
+
/**
|
|
5329
|
+
* @uiName Account review alert description
|
|
5330
|
+
*/
|
|
5331
|
+
this.dashboard_beneficiaryNameMismatchDescription = "The beneficiary name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
|
|
5332
|
+
/**
|
|
5333
|
+
* @uiName Account review alert header
|
|
5334
|
+
*/
|
|
5335
|
+
this.dashboard_bankNameMismatchHeader = "Your payment information does not match your tax form";
|
|
5336
|
+
/**
|
|
5337
|
+
* @uiName Account review alert description
|
|
5338
|
+
*/
|
|
5339
|
+
this.dashboard_bankNameMismatchDescription = "The bank name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
|
|
5340
|
+
/**
|
|
5341
|
+
* @uiName Account review alert header
|
|
5342
|
+
*/
|
|
5343
|
+
this.dashboard_withdrawalSettingsInvalidHeader = "Your payment information includes invalid characters";
|
|
5344
|
+
/**
|
|
5345
|
+
* @uiName Account review alert description
|
|
5346
|
+
*/
|
|
5347
|
+
this.dashboard_withdrawalSettingsInvalidDescription = "There are invalid characters in your payment information. Please review your information and make sure it is correct with no invalid characters. Your payouts are on hold until this is resolved.";
|
|
5348
|
+
/**
|
|
5349
|
+
* @uiName Account review alert header
|
|
5350
|
+
*/
|
|
5351
|
+
this.dashboard_paymentReturnedHeader = "Payout unsuccessful";
|
|
5352
|
+
/**
|
|
5353
|
+
* @uiName Account review alert description
|
|
5354
|
+
*/
|
|
5355
|
+
this.dashboard_paymentReturnedDescription = "Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.";
|
|
5435
5356
|
/**
|
|
5436
5357
|
* @uiName Terms and Conditions text
|
|
5437
5358
|
* @uiGroup Dashboard Properties
|
|
@@ -5612,7 +5533,7 @@ const TaxAndCashMonolith = class {
|
|
|
5612
5533
|
};
|
|
5613
5534
|
function useDemoTaxAndCash(props) {
|
|
5614
5535
|
const [step, setStep] = index_module.In({
|
|
5615
|
-
namespace: TAX_CONTEXT_NAMESPACE,
|
|
5536
|
+
namespace: usePayoutStatus.TAX_CONTEXT_NAMESPACE,
|
|
5616
5537
|
initialValue: "/1",
|
|
5617
5538
|
});
|
|
5618
5539
|
return cjs.cjs({
|
|
@@ -5903,7 +5824,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5903
5824
|
icon: "exclamation-octagon",
|
|
5904
5825
|
class: sheet$5.classes.ErrorHoldAlertContainer,
|
|
5905
5826
|
};
|
|
5906
|
-
case "
|
|
5827
|
+
case "NEW_PAYEE_REVIEW":
|
|
5907
5828
|
return {
|
|
5908
5829
|
header: text.accountReviewHeader,
|
|
5909
5830
|
description: global.intl.formatMessage({
|
|
@@ -5917,6 +5838,90 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5917
5838
|
icon: "exclamation-triangle",
|
|
5918
5839
|
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5919
5840
|
};
|
|
5841
|
+
case "PAYMENT_HOLD_ON_CHANGE":
|
|
5842
|
+
return {
|
|
5843
|
+
header: text.paymentHoldOnChangeHeader,
|
|
5844
|
+
description: global.intl.formatMessage({
|
|
5845
|
+
id: "accountReviewDescription",
|
|
5846
|
+
defaultMessage: text.paymentHoldOnChangeDescription,
|
|
5847
|
+
}, {
|
|
5848
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5849
|
+
}),
|
|
5850
|
+
buttonText: null,
|
|
5851
|
+
alertType: "warning",
|
|
5852
|
+
icon: "exclamation-triangle",
|
|
5853
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5854
|
+
};
|
|
5855
|
+
case "BENEFICIARY_NAME_INVALID":
|
|
5856
|
+
return {
|
|
5857
|
+
header: text.beneficiaryNameInvalidHeader,
|
|
5858
|
+
description: global.intl.formatMessage({
|
|
5859
|
+
id: "accountReviewDescription",
|
|
5860
|
+
defaultMessage: text.beneficiaryNameInvalidDescription,
|
|
5861
|
+
}, {
|
|
5862
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5863
|
+
}),
|
|
5864
|
+
button: (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
|
|
5865
|
+
alertType: "warning",
|
|
5866
|
+
icon: "exclamation-triangle",
|
|
5867
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5868
|
+
};
|
|
5869
|
+
case "BENEFICIARY_NAME_MISMATCH":
|
|
5870
|
+
return {
|
|
5871
|
+
header: text.beneficiaryNameMismatchHeader,
|
|
5872
|
+
description: global.intl.formatMessage({
|
|
5873
|
+
id: "accountReviewDescription",
|
|
5874
|
+
defaultMessage: text.beneficiaryNameMismatchDescription,
|
|
5875
|
+
}, {
|
|
5876
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5877
|
+
}),
|
|
5878
|
+
button: (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
|
|
5879
|
+
alertType: "warning",
|
|
5880
|
+
icon: "exclamation-triangle",
|
|
5881
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5882
|
+
};
|
|
5883
|
+
case "BANK_TAX_NAME_MISMATCH":
|
|
5884
|
+
return {
|
|
5885
|
+
header: text.bankTaxNameMismatchHeader,
|
|
5886
|
+
description: global.intl.formatMessage({
|
|
5887
|
+
id: "accountReviewDescription",
|
|
5888
|
+
defaultMessage: text.bankTaxNameMismatchDescription,
|
|
5889
|
+
}, {
|
|
5890
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5891
|
+
}),
|
|
5892
|
+
button: (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
|
|
5893
|
+
alertType: "warning",
|
|
5894
|
+
icon: "exclamation-triangle",
|
|
5895
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5896
|
+
};
|
|
5897
|
+
case "WITHDRAWAL_SETTINGS_INVALID":
|
|
5898
|
+
return {
|
|
5899
|
+
header: text.withdrawalSettingsInvalidHeader,
|
|
5900
|
+
description: global.intl.formatMessage({
|
|
5901
|
+
id: "accountReviewDescription",
|
|
5902
|
+
defaultMessage: text.withdrawalSettingsInvalidDescription,
|
|
5903
|
+
}, {
|
|
5904
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5905
|
+
}),
|
|
5906
|
+
button: (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
|
|
5907
|
+
alertType: "warning",
|
|
5908
|
+
icon: "exclamation-triangle",
|
|
5909
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5910
|
+
};
|
|
5911
|
+
case "PAYMENT_RETURNED":
|
|
5912
|
+
return {
|
|
5913
|
+
header: text.paymentReturnedHeader,
|
|
5914
|
+
description: global.intl.formatMessage({
|
|
5915
|
+
id: "accountReviewDescription",
|
|
5916
|
+
defaultMessage: text.paymentReturnedDescription,
|
|
5917
|
+
}, {
|
|
5918
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5919
|
+
}),
|
|
5920
|
+
button: (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
|
|
5921
|
+
alertType: "warning",
|
|
5922
|
+
icon: "exclamation-triangle",
|
|
5923
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5924
|
+
};
|
|
5920
5925
|
case "HOLD":
|
|
5921
5926
|
return {
|
|
5922
5927
|
header: text.payoutHoldAlertHeader,
|
|
@@ -6163,8 +6168,8 @@ function getIndirectTaxType(taxInformation) {
|
|
|
6163
6168
|
}
|
|
6164
6169
|
const useTaxAndCashDashboard = (props) => {
|
|
6165
6170
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
6166
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
6167
|
-
const setContext = index_module.En(TAX_FORM_CONTEXT_NAMESPACE);
|
|
6171
|
+
const setStep = index_module.En(usePayoutStatus.TAX_CONTEXT_NAMESPACE);
|
|
6172
|
+
const setContext = index_module.En(usePayoutStatus.TAX_FORM_CONTEXT_NAMESPACE);
|
|
6168
6173
|
const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
|
|
6169
6174
|
const { render, loading: veriffLoading, errors: veriffErrors, } = usePayoutStatus.useVeriffApp();
|
|
6170
6175
|
const { data: taxSettingRes } = index_module.wn(GET_TAX_SETTING, {});
|
|
@@ -6175,7 +6180,7 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
6175
6180
|
if (window.location.hash)
|
|
6176
6181
|
setStep(`/${window.location.hash.replace("#", "")}`);
|
|
6177
6182
|
}, []);
|
|
6178
|
-
const { data, loading, errors: userError, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
6183
|
+
const { data, loading, errors: userError, refetch, } = index_module.$n(usePayoutStatus.USER_QUERY_NAMESPACE);
|
|
6179
6184
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
6180
6185
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
6181
6186
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
@@ -6486,6 +6491,54 @@ const TaxAndCashDashboard = class {
|
|
|
6486
6491
|
* @uiName Account review alert description
|
|
6487
6492
|
*/
|
|
6488
6493
|
this.accountReviewDescription = "This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.";
|
|
6494
|
+
/**
|
|
6495
|
+
* @uiName Payment hold on change alert header
|
|
6496
|
+
*/
|
|
6497
|
+
this.paymentHoldOnChangeHeader = "We are reviewing your new payout settings";
|
|
6498
|
+
/**
|
|
6499
|
+
* @uiName Payment hold on change alert description
|
|
6500
|
+
*/
|
|
6501
|
+
this.paymentHoldOnChangeDescription = "Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.";
|
|
6502
|
+
/**
|
|
6503
|
+
* @uiName Beneficiary name invalid alert header
|
|
6504
|
+
*/
|
|
6505
|
+
this.beneficiaryNameInvalidHeader = "Your payment information does not match your tax form";
|
|
6506
|
+
/**
|
|
6507
|
+
* @uiName Beneficiary name invalid description
|
|
6508
|
+
*/
|
|
6509
|
+
this.beneficiaryNameInvalidDescription = "The beneficiary name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
|
|
6510
|
+
/**
|
|
6511
|
+
* @uiName Beneficiary name mismatch alert header
|
|
6512
|
+
*/
|
|
6513
|
+
this.beneficiaryNameMismatchHeader = "Your payment information does not match your tax form";
|
|
6514
|
+
/**
|
|
6515
|
+
* @uiName Beneficiary name mismatch alert description
|
|
6516
|
+
*/
|
|
6517
|
+
this.beneficiaryNameMismatchDescription = "The beneficiary name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
|
|
6518
|
+
/**
|
|
6519
|
+
* @uiName Bank name mismatch alert header
|
|
6520
|
+
*/
|
|
6521
|
+
this.bankTaxNameMismatchHeader = "Your payment information does not match your tax form";
|
|
6522
|
+
/**
|
|
6523
|
+
* @uiName Bank name mismatch alert description
|
|
6524
|
+
*/
|
|
6525
|
+
this.bankTaxNameMismatchDescription = "The bank name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
|
|
6526
|
+
/**
|
|
6527
|
+
* @uiName Withdrawal settings invalid alert header
|
|
6528
|
+
*/
|
|
6529
|
+
this.withdrawalSettingsInvalidHeader = "Your payment information includes invalid characters";
|
|
6530
|
+
/**
|
|
6531
|
+
* @uiName Withdrawal settings invalid alert description
|
|
6532
|
+
*/
|
|
6533
|
+
this.withdrawalSettingsInvalidDescription = "There are invalid characters in your payment information. Please review your information and make sure it is correct with no invalid characters. Your payouts are on hold until this is resolved.";
|
|
6534
|
+
/**
|
|
6535
|
+
* @uiName Payment returned alert header
|
|
6536
|
+
*/
|
|
6537
|
+
this.paymentReturnedHeader = "Payout unsuccessful";
|
|
6538
|
+
/**
|
|
6539
|
+
* @uiName Payment returned alert description
|
|
6540
|
+
*/
|
|
6541
|
+
this.paymentReturnedDescription = "Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.";
|
|
6489
6542
|
/**
|
|
6490
6543
|
* @uiName Terms and Conditions text
|
|
6491
6544
|
*/
|
|
@@ -7751,6 +7804,12 @@ const UserInfoFormView = (props) => {
|
|
|
7751
7804
|
default:
|
|
7752
7805
|
regionLabel = text.state;
|
|
7753
7806
|
}
|
|
7807
|
+
function isDisabledInput(field) {
|
|
7808
|
+
var _a;
|
|
7809
|
+
if (states.isPartner && !!((_a = data.partnerData) === null || _a === void 0 ? void 0 : _a[field]))
|
|
7810
|
+
return true;
|
|
7811
|
+
return false;
|
|
7812
|
+
}
|
|
7754
7813
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
7755
7814
|
index.h("style", { type: "text/css" },
|
|
7756
7815
|
styleString$6,
|
|
@@ -7773,7 +7832,7 @@ const UserInfoFormView = (props) => {
|
|
|
7773
7832
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
7774
7833
|
id: "formStep",
|
|
7775
7834
|
defaultMessage: text.formStep,
|
|
7776
|
-
}, { step: states.step, count: FORM_STEPS }))),
|
|
7835
|
+
}, { step: states.step, count: usePayoutStatus.FORM_STEPS }))),
|
|
7777
7836
|
index.h("h3", null, text.personalInformation),
|
|
7778
7837
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
7779
7838
|
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$6.classes.AlertContainer },
|
|
@@ -7798,18 +7857,22 @@ const UserInfoFormView = (props) => {
|
|
|
7798
7857
|
}))),
|
|
7799
7858
|
index.h("div", null,
|
|
7800
7859
|
index.h("div", { class: classes.InputContainer },
|
|
7801
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled ||
|
|
7860
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled ||
|
|
7861
|
+
states.isUser ||
|
|
7862
|
+
isDisabledInput("firstName") }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
|
|
7802
7863
|
class: classes.ErrorInput,
|
|
7803
7864
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.firstName, formState.errors.firstName),
|
|
7804
7865
|
}
|
|
7805
7866
|
: {}), { id: "firstName", name: "/firstName", required: true })),
|
|
7806
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.lastName, label: text.lastName, disabled: states.disabled ||
|
|
7867
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.lastName, label: text.lastName, disabled: states.disabled ||
|
|
7868
|
+
states.isUser ||
|
|
7869
|
+
isDisabledInput("lastName") }, (((_c = formState.errors) === null || _c === void 0 ? void 0 : _c.lastName) ? {
|
|
7807
7870
|
class: classes.ErrorInput,
|
|
7808
7871
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.lastName, formState.errors.lastName),
|
|
7809
7872
|
}
|
|
7810
7873
|
: {}), { id: "lastName", name: "/lastName", required: true })),
|
|
7811
7874
|
index.h("sl-input", { exportparts: "label: input-label, base: input-base", value: formState.email, label: text.email, disabled: true, id: "email", name: "/email", required: true }),
|
|
7812
|
-
index.h("sl-select", Object.assign({ id: "countryCode", exportparts: "label: input-label, base: input-base", name: "/countryCode", label: text.country, value: formState.countryCode, disabled: states.disabled ||
|
|
7875
|
+
index.h("sl-select", Object.assign({ id: "countryCode", exportparts: "label: input-label, base: input-base", name: "/countryCode", label: text.country, value: formState.countryCode, disabled: states.disabled || isDisabledInput("countryCode") }, (((_d = formState.errors) === null || _d === void 0 ? void 0 : _d.countryCode) ? {
|
|
7813
7876
|
class: classes.ErrorInput,
|
|
7814
7877
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.country, formState.errors.countryCode),
|
|
7815
7878
|
}
|
|
@@ -7825,7 +7888,8 @@ const UserInfoFormView = (props) => {
|
|
|
7825
7888
|
index.h("div", { class: classes.PhoneInputsSection },
|
|
7826
7889
|
index.h("p", null, text.phoneNumber),
|
|
7827
7890
|
index.h("div", { class: classes.PhoneInputsContainer },
|
|
7828
|
-
index.h("sl-select", Object.assign({ id: "phoneNumberCountryCode", exportparts: "label: input-label, base: input-base", name: "/phoneNumberCountryCode", value: formState.phoneNumberCountryCode, disabled: states.disabled ||
|
|
7891
|
+
index.h("sl-select", Object.assign({ id: "phoneNumberCountryCode", exportparts: "label: input-label, base: input-base", name: "/phoneNumberCountryCode", value: formState.phoneNumberCountryCode, disabled: states.disabled ||
|
|
7892
|
+
isDisabledInput("phoneNumberCountryCode"), ref: (el) => (refs.phoneCountryRef.current = el) }, (((_g = formState.errors) === null || _g === void 0 ? void 0 : _g.phoneNumberCountryCode) ? {
|
|
7829
7893
|
class: classes.ErrorInput,
|
|
7830
7894
|
}
|
|
7831
7895
|
: {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("phoneCountry", e) }),
|
|
@@ -7851,7 +7915,7 @@ const UserInfoFormView = (props) => {
|
|
|
7851
7915
|
// Naive phone number validation
|
|
7852
7916
|
sqmInvoiceTableView.validateBillingField(/[a-zA-Z]+/, value) &&
|
|
7853
7917
|
sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
|
|
7854
|
-
}, disabled: states.disabled ||
|
|
7918
|
+
}, disabled: states.disabled || isDisabledInput("phoneNumber") }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
|
|
7855
7919
|
class: classes.ErrorInput,
|
|
7856
7920
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
|
|
7857
7921
|
}
|
|
@@ -7859,7 +7923,7 @@ const UserInfoFormView = (props) => {
|
|
|
7859
7923
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.address, id: "address", name: "/address", value: formState.address, validationError: ({ value }) =>
|
|
7860
7924
|
// Checks for non-ASCII characters
|
|
7861
7925
|
!sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
7862
|
-
sqmInvoiceTableView.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled ||
|
|
7926
|
+
sqmInvoiceTableView.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || isDisabledInput("address") }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
|
|
7863
7927
|
class: classes.ErrorInput,
|
|
7864
7928
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.address, formState.errors.address),
|
|
7865
7929
|
}
|
|
@@ -7867,22 +7931,22 @@ const UserInfoFormView = (props) => {
|
|
|
7867
7931
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.city, id: "city", name: "/city", value: formState.city, validationError: ({ value }) =>
|
|
7868
7932
|
// Checks for non-ASCII characters
|
|
7869
7933
|
!sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
7870
|
-
sqmInvoiceTableView.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled ||
|
|
7934
|
+
sqmInvoiceTableView.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || isDisabledInput("city") }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
|
|
7871
7935
|
class: classes.ErrorInput,
|
|
7872
7936
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.city, formState.errors.city),
|
|
7873
7937
|
}
|
|
7874
7938
|
: {}), { required: true })),
|
|
7875
|
-
!states.hideState && (index.h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label, base: input-base", id: "state", name: "/state", value: formState.state, disabled: states.disabled ||
|
|
7939
|
+
!states.hideState && (index.h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label, base: input-base", id: "state", name: "/state", value: formState.state, disabled: states.disabled || isDisabledInput("state") }, (((_o = formState.errors) === null || _o === void 0 ? void 0 : _o.state) ? {
|
|
7876
7940
|
class: classes.ErrorInput,
|
|
7877
7941
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.state, formState.errors.state),
|
|
7878
7942
|
}
|
|
7879
7943
|
: {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
|
|
7880
|
-
index.h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label, base: input-base", id: "postalCode", name: "/postalCode", value: formState.postalCode, disabled: states.disabled ||
|
|
7944
|
+
index.h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label, base: input-base", id: "postalCode", name: "/postalCode", value: formState.postalCode, disabled: states.disabled || isDisabledInput("postalCode") }, (((_q = formState.errors) === null || _q === void 0 ? void 0 : _q.postalCode) ? {
|
|
7881
7945
|
class: classes.ErrorInput,
|
|
7882
7946
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.postalCode, formState.errors.postalCode),
|
|
7883
7947
|
}
|
|
7884
7948
|
: {}), { required: true })),
|
|
7885
|
-
index.h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label, base: input-base", name: "/currency", label: text.currency, menu: true, value: formState.currency, disabled: states.disabled ||
|
|
7949
|
+
index.h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label, base: input-base", name: "/currency", label: text.currency, menu: true, value: formState.currency, disabled: states.disabled || isDisabledInput("currency"), helpText: text.currencyHelpText }, (((_r = formState.errors) === null || _r === void 0 ? void 0 : _r.currency) ? {
|
|
7886
7950
|
class: classes.ErrorInput,
|
|
7887
7951
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.currency, formState.errors.currency),
|
|
7888
7952
|
}
|
|
@@ -7904,22 +7968,22 @@ const UserInfoFormView = (props) => {
|
|
|
7904
7968
|
index.h("div", { class: classes.CheckboxWrapper },
|
|
7905
7969
|
index.h("sl-checkbox", { exportparts: "label: input-label, base: input-base", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
7906
7970
|
e.target.value = e.target.checked;
|
|
7907
|
-
}, disabled: states.
|
|
7971
|
+
}, disabled: states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
|
|
7908
7972
|
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText }, sqmInvoiceTableView.formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
|
|
7909
|
-
index.h("sl-button", { type: "primary", disabled: states.
|
|
7973
|
+
index.h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
|
|
7910
7974
|
};
|
|
7911
7975
|
|
|
7912
7976
|
function useUserInfoForm(props) {
|
|
7913
|
-
var _a, _b, _c, _d;
|
|
7977
|
+
var _a, _b, _c, _d, _e, _f;
|
|
7914
7978
|
const currencyRef = stencilHooks_module.useRef(undefined);
|
|
7915
7979
|
const phoneCountryRef = stencilHooks_module.useRef(undefined);
|
|
7916
7980
|
const formRef = stencilHooks_module.useRef(null);
|
|
7917
|
-
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
7918
|
-
const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
|
|
7919
|
-
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
7920
|
-
const [userFormContext, setUserFormContext] = index_module.Pn(USER_FORM_CONTEXT_NAMESPACE);
|
|
7921
|
-
const { data, loading, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
7922
|
-
const _currencies = index_module.Fn(CURRENCIES_NAMESPACE);
|
|
7981
|
+
const context = index_module.Fn(usePayoutStatus.TAX_FORM_CONTEXT_NAMESPACE);
|
|
7982
|
+
const countries = index_module.Fn(usePayoutStatus.SORTED_COUNTRIES_NAMESPACE);
|
|
7983
|
+
const [step, setStep] = index_module.Pn(usePayoutStatus.TAX_CONTEXT_NAMESPACE);
|
|
7984
|
+
const [userFormContext, setUserFormContext] = index_module.Pn(usePayoutStatus.USER_FORM_CONTEXT_NAMESPACE);
|
|
7985
|
+
const { data, loading, errors: userError, } = index_module.$n(usePayoutStatus.USER_QUERY_NAMESPACE);
|
|
7986
|
+
const _currencies = index_module.Fn(usePayoutStatus.CURRENCIES_NAMESPACE);
|
|
7923
7987
|
const currencies = stencilHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
7924
7988
|
const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
|
|
7925
7989
|
const [phoneCountrySearch, setPhoneCountrySearch] = stencilHooks_module.useState("");
|
|
@@ -8062,9 +8126,16 @@ function useUserInfoForm(props) {
|
|
|
8062
8126
|
postalCode: userData.postalCode,
|
|
8063
8127
|
currency: userData.currency,
|
|
8064
8128
|
});
|
|
8065
|
-
const
|
|
8129
|
+
const skipNextStep = getSkipNextStep(userData);
|
|
8130
|
+
console.log({ skipNextStep });
|
|
8131
|
+
const nextStep = context.overrideNextStep || skipNextStep ? "/3" : "/2";
|
|
8066
8132
|
setStep(nextStep);
|
|
8067
8133
|
}
|
|
8134
|
+
function getSkipNextStep(userData) {
|
|
8135
|
+
if (userData.countryCode === "US")
|
|
8136
|
+
return true;
|
|
8137
|
+
return true;
|
|
8138
|
+
}
|
|
8068
8139
|
const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
|
|
8069
8140
|
const regionObj = hasStates
|
|
8070
8141
|
? sqmInvoiceTableView.ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
|
|
@@ -8092,6 +8163,7 @@ function useUserInfoForm(props) {
|
|
|
8092
8163
|
allCountries: countries,
|
|
8093
8164
|
regionLabelEnum: regionObj === null || regionObj === void 0 ? void 0 : regionObj.labelEnum,
|
|
8094
8165
|
regions: (regionObj === null || regionObj === void 0 ? void 0 : regionObj.regions) || [],
|
|
8166
|
+
partnerData: (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher,
|
|
8095
8167
|
},
|
|
8096
8168
|
states: {
|
|
8097
8169
|
step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
|
|
@@ -8100,8 +8172,8 @@ function useUserInfoForm(props) {
|
|
|
8100
8172
|
disabled: loading,
|
|
8101
8173
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
8102
8174
|
loading: loading,
|
|
8103
|
-
isPartner: !!((
|
|
8104
|
-
isUser: !!((
|
|
8175
|
+
isPartner: !!((_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.publisher),
|
|
8176
|
+
isUser: !!((_f = (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.impactConnection) === null || _f === void 0 ? void 0 : _f.user),
|
|
8105
8177
|
formState: {
|
|
8106
8178
|
...userFormContext,
|
|
8107
8179
|
errors: formErrors,
|
|
@@ -8293,7 +8365,7 @@ const TaxForm = class {
|
|
|
8293
8365
|
}
|
|
8294
8366
|
};
|
|
8295
8367
|
function useDemoUserInfoForm(props) {
|
|
8296
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
8368
|
+
const setStep = index_module.En(usePayoutStatus.TAX_CONTEXT_NAMESPACE);
|
|
8297
8369
|
return cjs.cjs({
|
|
8298
8370
|
setStep,
|
|
8299
8371
|
onSubmit: () => {
|