@saasquatch/mint-components 2.5.10-0 → 2.5.11-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/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +27 -20
- package/dist/cjs/sqm-big-stat_47.cjs.entry.js +30 -10
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +83 -3
- package/dist/cjs/{sqm-user-info-form-view-df5b95be.js → sqm-user-info-form-view-9416da92.js} +9 -7
- package/dist/cjs/{subregions-fd4e4ee2.js → subregions-e18b324d.js} +36 -0
- package/dist/cjs/{useIndirectTaxForm-76b94531.js → useIndirectTaxForm-31c63877.js} +8 -6
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +1 -1
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -1
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +2 -0
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +35 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +9 -6
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +199 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +5 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +205 -7
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.js +34 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +9 -6
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +198 -0
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +13 -16
- package/dist/collection/components/tax-and-cash/utils.js +33 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +27 -20
- package/dist/esm/sqm-big-stat_47.entry.js +30 -10
- package/dist/esm/sqm-stencilbook.entry.js +83 -3
- package/dist/esm/{sqm-user-info-form-view-d35324ba.js → sqm-user-info-form-view-6693aa82.js} +9 -7
- package/dist/esm/{subregions-c7df98a1.js → subregions-7f834e40.js} +34 -1
- package/dist/esm/{useIndirectTaxForm-6ea561e4.js → useIndirectTaxForm-58b0ea4b.js} +8 -6
- 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_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-user-info-form-view-6693aa82.js +1 -0
- package/dist/esm-es5/subregions-7f834e40.js +1 -0
- package/dist/esm-es5/useIndirectTaxForm-58b0ea4b.js +6 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-0714330d.system.js +6 -0
- package/dist/mint-components/p-07f70909.system.entry.js +1 -0
- package/dist/mint-components/{p-4314e5c9.entry.js → p-11db4597.entry.js} +3 -3
- package/dist/mint-components/p-6116d239.js +108 -0
- package/dist/mint-components/p-7a324afd.entry.js +308 -0
- package/dist/mint-components/p-9098802a.entry.js +83 -0
- package/dist/mint-components/{p-477fe6fa.system.entry.js → p-97f5251b.system.entry.js} +1 -1
- package/dist/mint-components/p-9b9a9762.system.js +1 -0
- package/dist/mint-components/p-a1eb93fc.system.js +1 -0
- package/dist/mint-components/p-c9fc666c.system.entry.js +1 -0
- package/dist/mint-components/p-cb7d2088.js +1 -0
- package/dist/mint-components/p-d811796f.js +1 -0
- package/dist/mint-components/p-e78ec46b.system.js +1 -1
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +5 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +10 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +36 -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 +38 -2
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.d.ts +5 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +9 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +36 -0
- package/dist/types/components/tax-and-cash/utils.d.ts +38 -1
- package/dist/types/components.d.ts +220 -4
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/docs/stats.json +1588 -235
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/sqm-user-info-form-view-d35324ba.js +0 -1
- package/dist/esm-es5/subregions-c7df98a1.js +0 -1
- package/dist/esm-es5/useIndirectTaxForm-6ea561e4.js +0 -6
- package/dist/mint-components/p-089c0803.js +0 -1
- package/dist/mint-components/p-1cb0fc65.system.js +0 -6
- package/dist/mint-components/p-2401753b.js +0 -1
- package/dist/mint-components/p-59f9d9bb.js +0 -107
- package/dist/mint-components/p-615dbc66.system.entry.js +0 -1
- package/dist/mint-components/p-98659a12.system.js +0 -1
- package/dist/mint-components/p-9e90f38e.entry.js +0 -83
- package/dist/mint-components/p-aaf05ef1.entry.js +0 -308
- package/dist/mint-components/p-db8e74e0.system.entry.js +0 -1
- package/dist/mint-components/p-ed18f6a0.system.js +0 -1
|
@@ -345,7 +345,7 @@ export class ShareCode {
|
|
|
345
345
|
"mutable": false,
|
|
346
346
|
"complexType": {
|
|
347
347
|
"original": "DemoData<CopyTextViewProps>",
|
|
348
|
-
"resolved": "{ error?: boolean; backgroundColor?: string; textAlign?: \"left\" | \"right\" | \"center\"; borderColor?: string; borderRadius?: string; open?: boolean; disabled?: boolean;
|
|
348
|
+
"resolved": "{ error?: boolean; backgroundColor?: string; textAlign?: \"left\" | \"right\" | \"center\"; borderColor?: string; borderRadius?: string; open?: boolean; disabled?: boolean; onClick?: () => void; loading?: boolean; textColor?: string; buttonStyle?: \"icon\" | \"button-outside\" | \"button-below\"; buttonType?: \"primary\" | \"secondary\"; tooltiptext?: string; copyButtonLabel?: string; copyString?: string; errorText?: string; notificationText?: string; showNotificationText?: boolean; inputPlaceholderText?: string; dateAvailable?: string; isCopied?: boolean; }",
|
|
349
349
|
"references": {
|
|
350
350
|
"DemoData": {
|
|
351
351
|
"location": "import",
|
package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js
CHANGED
|
@@ -188,11 +188,11 @@ export const BankingInfoFormView = (props) => {
|
|
|
188
188
|
}))), states.isPartner && !states.hideSteps && (h("sqm-form-message", { type: "info", transparent: true }, h("p", { part: "alert-title" }, intl.formatMessage({
|
|
189
189
|
id: "isPartnerAlertHeader",
|
|
190
190
|
defaultMessage: text.isPartnerAlertHeader,
|
|
191
|
-
}, { emailAddress: states.
|
|
191
|
+
}, { emailAddress: states.partnerEmail || "" })), h("p", null, intl.formatMessage({
|
|
192
192
|
id: "isPartnerAlertDescription",
|
|
193
193
|
defaultMessage: text.isPartnerAlertDescription,
|
|
194
194
|
}, {
|
|
195
|
-
emailAddress: states.
|
|
195
|
+
emailAddress: states.partnerEmail || "",
|
|
196
196
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
197
197
|
})))), h("div", null, h("h4", null, text.paymentMethod), h("p", { class: classes.DescriptionText }, text.paymentMethodSubtext))), h("div", null, h("div", { class: classes.CheckboxContainer }, states.loading && formState.paymentMethodChecked === undefined ? (getLoadingSkeleton(undefined)) : (h("div", { class: classes.RadioContainer }, states.hasPayPal && (h("sl-radio", { class: classes.Checkbox, exportparts: "base: radio-base", checked: formState.paymentMethodChecked === "toBankAccount", onInput: () => callbacks.setPaymentMethodChecked("toBankAccount"), disabled: states.disabled, id: "toBankAccount", name: "/toBankAccount" }, text.directlyToBankAccount)), formState.paymentMethodChecked === "toBankAccount" && (h("div", { class: classes.InputContainer, style: states.hideBanking ? { display: "none" } : {} }, states.loading
|
|
198
198
|
? getLoadingSkeleton("toBankAccount", slots.formInputsSlot.length + 3)
|
package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js
CHANGED
|
@@ -2098,7 +2098,7 @@ export class BankingInfoForm {
|
|
|
2098
2098
|
"mutable": false,
|
|
2099
2099
|
"complexType": {
|
|
2100
2100
|
"original": "DemoData<BankingInfoFormViewProps>",
|
|
2101
|
-
"resolved": "{ states?: { showVerification: boolean; step?: string; locale?: string; loading: boolean; saveLoading?: boolean; disabled: boolean; saveDisabled: boolean; hideSteps?: boolean; hasPayPal: boolean; hideBanking?: boolean; hidePayPal?: boolean; hideBalanceThreshold?: boolean; hideFixedDay?: boolean; hideBackButton: boolean; feeCap?: string; isPartner: boolean; paymentMethodFeeLabel?: string; loadingError: boolean; formState: BankingInfoFormData & { paymentMethodChecked?: \"toPayPalAccount\" | \"toBankAccount\"; paymentScheduleChecked?: \"BALANCE_THRESHOLD\" | \"FIXED_DAY\"; errors?: { general?: boolean; inputErrors?: { [field: string]: { type: \"invalid\" | \"required\"; errorCode?: string; }; }; }; }; bitset?: number; currency?: string; thresholds: string[]; countries?: { countryCode: string; displayName: string; }[]; allCountries?: { countryCode: string; displayName: string; }[]; currentPaymentOption?: any; showInputs?: boolean; bankCountry?: string; countrySearch?: string; email?: string; showModal: boolean; }; slots?: { verificationDialogSlot?: VNode; formInputsSlot?: VNode[]; countryInputSlot?: VNode; paymentMethodSlot?: VNode; paymentThresholdSelectSlot?: VNode; paymentFixedDaySelectSlot?: VNode; paypalInputSlot?: VNode; }; refs?: { formRef: any; }; }",
|
|
2101
|
+
"resolved": "{ states?: { showVerification: boolean; step?: string; locale?: string; loading: boolean; saveLoading?: boolean; disabled: boolean; saveDisabled: boolean; hideSteps?: boolean; hasPayPal: boolean; hideBanking?: boolean; hidePayPal?: boolean; hideBalanceThreshold?: boolean; hideFixedDay?: boolean; hideBackButton: boolean; feeCap?: string; isPartner: boolean; paymentMethodFeeLabel?: string; loadingError: boolean; formState: BankingInfoFormData & { paymentMethodChecked?: \"toPayPalAccount\" | \"toBankAccount\"; paymentScheduleChecked?: \"BALANCE_THRESHOLD\" | \"FIXED_DAY\"; errors?: { general?: boolean; inputErrors?: { [field: string]: { type: \"invalid\" | \"required\"; errorCode?: string; }; }; }; }; bitset?: number; currency?: string; thresholds: string[]; countries?: { countryCode: string; displayName: string; }[]; allCountries?: { countryCode: string; displayName: string; }[]; currentPaymentOption?: any; showInputs?: boolean; bankCountry?: string; countrySearch?: string; email?: string; partnerEmail?: string; showModal: boolean; }; slots?: { verificationDialogSlot?: VNode; formInputsSlot?: VNode[]; countryInputSlot?: VNode; paymentMethodSlot?: VNode; paymentThresholdSelectSlot?: VNode; paymentFixedDaySelectSlot?: VNode; paypalInputSlot?: VNode; }; refs?: { formRef: any; }; }",
|
|
2102
2102
|
"references": {
|
|
2103
2103
|
"DemoData": {
|
|
2104
2104
|
"location": "import",
|
|
@@ -6,6 +6,7 @@ import { intl } from "../../../global/global";
|
|
|
6
6
|
import { VERIFICATION_EVENT_KEY } from "../../sqm-widget-verification/keys";
|
|
7
7
|
import { FINANCE_NETWORK_SETTINGS_NAMESPACE, SORTED_COUNTRIES_NAMESPACE, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../data";
|
|
8
8
|
import { TAX_FORM_UPDATED_EVENT_KEY } from "../eventKeys";
|
|
9
|
+
import { getParticipantEmail } from "../utils";
|
|
9
10
|
// Hardcoded in Impact backend
|
|
10
11
|
export const paypalFeeMap = {
|
|
11
12
|
USD: "USD20.00",
|
|
@@ -468,6 +469,7 @@ export function useBankingInfoForm(props) {
|
|
|
468
469
|
bankCountry: formState.bankCountry,
|
|
469
470
|
countrySearch,
|
|
470
471
|
email: (_j = userData === null || userData === void 0 ? void 0 : userData.user) === null || _j === void 0 ? void 0 : _j.email,
|
|
472
|
+
partnerEmail: getParticipantEmail(userData === null || userData === void 0 ? void 0 : userData.user),
|
|
471
473
|
showModal,
|
|
472
474
|
},
|
|
473
475
|
refs: {
|
|
@@ -5,7 +5,7 @@ import JSONPointer from "jsonpointer";
|
|
|
5
5
|
import { COUNTRIES_QUERY_NAMESPACE, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../data";
|
|
6
6
|
import { TAX_FORM_UPDATED_EVENT_KEY } from "../eventKeys";
|
|
7
7
|
import { INDIRECT_TAX_PROVINCES, INDIRECT_TAX_SPAIN_REGIONS, } from "../subregions";
|
|
8
|
-
import { getCountryObj, validTaxDocument } from "../utils";
|
|
8
|
+
import { getCountryObj, getParticipantEmail, validTaxDocument } from "../utils";
|
|
9
9
|
export const CONNECT_PARTNER = gql `
|
|
10
10
|
mutation createImpactConnection($vars: ImpactConnectionInput!) {
|
|
11
11
|
createImpactConnection(impactConnectionInput: $vars) {
|
|
@@ -71,7 +71,7 @@ function getOption(countries, countryCode) {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
export function useIndirectTaxForm(props) {
|
|
74
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
|
74
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
75
75
|
const user = useUserIdentity();
|
|
76
76
|
const locale = useLocale();
|
|
77
77
|
const formRef = useRef(null);
|
|
@@ -262,7 +262,7 @@ export function useIndirectTaxForm(props) {
|
|
|
262
262
|
isPartner: !!((_e = (_d = userData === null || userData === void 0 ? void 0 : userData.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher),
|
|
263
263
|
isPartnerLegacy: !!((_g = (_f = userData === null || userData === void 0 ? void 0 : userData.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.publisher) &&
|
|
264
264
|
((_j = (_h = userData === null || userData === void 0 ? void 0 : userData.user) === null || _h === void 0 ? void 0 : _h.impactConnection) === null || _j === void 0 ? void 0 : _j.connectionStatus) !== "STARTED",
|
|
265
|
-
email: (userForm === null || userForm === void 0 ? void 0 : userForm.email) || (
|
|
265
|
+
email: (userForm === null || userForm === void 0 ? void 0 : userForm.email) || getParticipantEmail(userData === null || userData === void 0 ? void 0 : userData.user),
|
|
266
266
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
267
267
|
formState: {
|
|
268
268
|
checked: option,
|
package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js
CHANGED
|
@@ -57,3 +57,38 @@ export const WithdrawalSettingsInvalid = () => (h("sqm-payout-status-alert", { d
|
|
|
57
57
|
states: { ...defaultProps, status: "WITHDRAWAL_SETTINGS_INVALID" },
|
|
58
58
|
} }));
|
|
59
59
|
export const PaymentReturned = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, status: "PAYMENT_RETURNED" } } }));
|
|
60
|
+
export const BeneficiaryNameInvalidNonBranded = () => (h("sqm-payout-status-alert", { demoData: {
|
|
61
|
+
states: {
|
|
62
|
+
...defaultProps,
|
|
63
|
+
status: "BENEFICIARY_NAME_INVALID",
|
|
64
|
+
canEditPayoutInfo: false,
|
|
65
|
+
},
|
|
66
|
+
} }));
|
|
67
|
+
export const BeneficiaryNameMismatchNonBranded = () => (h("sqm-payout-status-alert", { demoData: {
|
|
68
|
+
states: {
|
|
69
|
+
...defaultProps,
|
|
70
|
+
status: "BENEFICIARY_NAME_MISMATCH",
|
|
71
|
+
canEditPayoutInfo: false,
|
|
72
|
+
},
|
|
73
|
+
} }));
|
|
74
|
+
export const BankTaxNameMismatchNonBranded = () => (h("sqm-payout-status-alert", { demoData: {
|
|
75
|
+
states: {
|
|
76
|
+
...defaultProps,
|
|
77
|
+
status: "BANK_TAX_NAME_MISMATCH",
|
|
78
|
+
canEditPayoutInfo: false,
|
|
79
|
+
},
|
|
80
|
+
} }));
|
|
81
|
+
export const WithdrawalSettingsInvalidNonBranded = () => (h("sqm-payout-status-alert", { demoData: {
|
|
82
|
+
states: {
|
|
83
|
+
...defaultProps,
|
|
84
|
+
status: "WITHDRAWAL_SETTINGS_INVALID",
|
|
85
|
+
canEditPayoutInfo: false,
|
|
86
|
+
},
|
|
87
|
+
} }));
|
|
88
|
+
export const PaymentReturnedNonBranded = () => (h("sqm-payout-status-alert", { demoData: {
|
|
89
|
+
states: {
|
|
90
|
+
...defaultProps,
|
|
91
|
+
status: "PAYMENT_RETURNED",
|
|
92
|
+
canEditPayoutInfo: false,
|
|
93
|
+
},
|
|
94
|
+
} }));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { intl } from "../../../global/global";
|
|
3
3
|
import { createStyleSheet } from "../../../styling/JSS";
|
|
4
|
+
import { getEditPayoutInfoButtonProps, withPaymentInfoAlertCopy, } from "../utils";
|
|
4
5
|
const style = {
|
|
5
6
|
ButtonContainer: {
|
|
6
7
|
display: "flex",
|
|
@@ -41,7 +42,9 @@ const vanillaStyle = `
|
|
|
41
42
|
const sheet = createStyleSheet(style);
|
|
42
43
|
const styleString = sheet.toString();
|
|
43
44
|
export function PayoutStatusAlertView(props) {
|
|
44
|
-
const {
|
|
45
|
+
const { states, data, callbacks } = props;
|
|
46
|
+
const text = withPaymentInfoAlertCopy(props.text, states.canEditPayoutInfo);
|
|
47
|
+
const editPayoutInfoButtonProps = getEditPayoutInfoButtonProps(states.canEditPayoutInfo, callbacks.onPaymentInfoClick);
|
|
45
48
|
function getAlert(status) {
|
|
46
49
|
if (states.error)
|
|
47
50
|
return {
|
|
@@ -167,7 +170,7 @@ export function PayoutStatusAlertView(props) {
|
|
|
167
170
|
}, {
|
|
168
171
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
169
172
|
}),
|
|
170
|
-
button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base",
|
|
173
|
+
button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", ...editPayoutInfoButtonProps }, text.editPaymentInformationButton), h("sl-button", { disabled: states.loading, type: "secondary", exportparts: "base: secondarybutton-base", onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
171
174
|
alertType: "warning",
|
|
172
175
|
icon: "exclamation-triangle",
|
|
173
176
|
};
|
|
@@ -180,7 +183,7 @@ export function PayoutStatusAlertView(props) {
|
|
|
180
183
|
}, {
|
|
181
184
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
182
185
|
}),
|
|
183
|
-
button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base",
|
|
186
|
+
button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", ...editPayoutInfoButtonProps }, text.editPaymentInformationButton), h("sl-button", { disabled: states.loading, type: "secondary", exportparts: "base: secondarybutton-base", onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
184
187
|
alertType: "warning",
|
|
185
188
|
icon: "exclamation-triangle",
|
|
186
189
|
};
|
|
@@ -193,7 +196,7 @@ export function PayoutStatusAlertView(props) {
|
|
|
193
196
|
}, {
|
|
194
197
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
195
198
|
}),
|
|
196
|
-
button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base",
|
|
199
|
+
button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", ...editPayoutInfoButtonProps }, text.editPaymentInformationButton), h("sl-button", { disabled: states.loading, type: "secondary", exportparts: "base: secondarybutton-base", onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
197
200
|
alertType: "warning",
|
|
198
201
|
icon: "exclamation-triangle",
|
|
199
202
|
};
|
|
@@ -206,7 +209,7 @@ export function PayoutStatusAlertView(props) {
|
|
|
206
209
|
}, {
|
|
207
210
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
208
211
|
}),
|
|
209
|
-
button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base",
|
|
212
|
+
button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", ...editPayoutInfoButtonProps }, text.editPaymentInformationButton))),
|
|
210
213
|
alertType: "warning",
|
|
211
214
|
icon: "exclamation-triangle",
|
|
212
215
|
};
|
|
@@ -219,7 +222,7 @@ export function PayoutStatusAlertView(props) {
|
|
|
219
222
|
}, {
|
|
220
223
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
221
224
|
}),
|
|
222
|
-
button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base",
|
|
225
|
+
button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", ...editPayoutInfoButtonProps }, text.editPaymentInformationButton))),
|
|
223
226
|
alertType: "error",
|
|
224
227
|
icon: "exclamation-triangle",
|
|
225
228
|
};
|
package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js
CHANGED
|
@@ -41,14 +41,23 @@ export class PayoutStatusAlert {
|
|
|
41
41
|
this.paymentHoldOnChangeDescription = "Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.";
|
|
42
42
|
this.beneficiaryNameInvalidHeader = "Your payment information does not match your tax form";
|
|
43
43
|
this.beneficiaryNameInvalidDescription = "The account holder (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.";
|
|
44
|
+
this.beneficiaryNameInvalidNonBrandedHeader = "Account holder name contains invalid characters";
|
|
45
|
+
this.beneficiaryNameInvalidNonBrandedDescription = "The account holder name in your payment information contains characters we can't accept. Go to impact.com to update it so it is valid and matches the name on your tax form. Your payouts are on hold until this is resolved.";
|
|
44
46
|
this.beneficiaryNameMismatchHeader = "Your payment information does not match your tax form";
|
|
45
47
|
this.beneficiaryNameMismatchDescription = "The account holder (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.";
|
|
48
|
+
this.beneficiaryNameMismatchNonBrandedHeader = "Account holder name doesn't match your tax form";
|
|
49
|
+
this.beneficiaryNameMismatchNonBrandedDescription = "The account holder name in your payment information doesn't match the name on your tax form. Go to impact.com to update one or both so the names match exactly. Your payouts are on hold until this is resolved.";
|
|
46
50
|
this.bankTaxNameMismatchHeader = "Your payment information does not match your tax form";
|
|
47
51
|
this.bankTaxNameMismatchDescription = "The bank account (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.";
|
|
52
|
+
this.bankTaxNameMismatchNonBrandedHeader = "Bank account name doesn't match your tax form";
|
|
53
|
+
this.bankTaxNameMismatchNonBrandedDescription = "The name on your bank account doesn't match the name on your tax form. Go to impact.com to update your payment information or your tax form so the two names match exactly. Your payouts are on hold until this is resolved.";
|
|
48
54
|
this.withdrawalSettingsInvalidHeader = "Your payment information is incomplete or includes invalid characters";
|
|
49
55
|
this.withdrawalSettingsInvalidDescription = "There are missing fields or invalid characters in your payment information. Please review your information and make sure it is correct. Your payouts are on hold until this is resolved.";
|
|
56
|
+
this.withdrawalSettingsInvalidNonBrandedHeader = "Payment information is incomplete or contains errors";
|
|
57
|
+
this.withdrawalSettingsInvalidNonBrandedDescription = "Some required details in your payment information are missing or contain invalid characters. Go to impact.com to review and complete your information. Your payouts are on hold until this is resolved.";
|
|
50
58
|
this.paymentReturnedHeader = "Payout unsuccessful";
|
|
51
59
|
this.paymentReturnedDescription = "Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.";
|
|
60
|
+
this.paymentReturnedNonBrandedDescription = "Your most recent payment for your earnings was returned. Go to impact.com to check that your payment information is correct and up to date.";
|
|
52
61
|
this.w9RequiredHeader = "Your next payout is on hold";
|
|
53
62
|
this.w9RequiredDescription = "You have surpassed the $2000 threshold requiring a W-9 form or have multiple accounts with impact.com. To remove the hold, please submit your W-9 form.";
|
|
54
63
|
this.w9RequiredButtonText = "Submit W-9";
|
|
@@ -539,6 +548,48 @@ export class PayoutStatusAlert {
|
|
|
539
548
|
"reflect": false,
|
|
540
549
|
"defaultValue": "\"The account holder (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.\""
|
|
541
550
|
},
|
|
551
|
+
"beneficiaryNameInvalidNonBrandedHeader": {
|
|
552
|
+
"type": "string",
|
|
553
|
+
"mutable": false,
|
|
554
|
+
"complexType": {
|
|
555
|
+
"original": "string",
|
|
556
|
+
"resolved": "string",
|
|
557
|
+
"references": {}
|
|
558
|
+
},
|
|
559
|
+
"required": false,
|
|
560
|
+
"optional": false,
|
|
561
|
+
"docs": {
|
|
562
|
+
"tags": [{
|
|
563
|
+
"name": "uiName",
|
|
564
|
+
"text": "Beneficiary name invalid alert header (non-branded partners)"
|
|
565
|
+
}],
|
|
566
|
+
"text": ""
|
|
567
|
+
},
|
|
568
|
+
"attribute": "beneficiary-name-invalid-non-branded-header",
|
|
569
|
+
"reflect": false,
|
|
570
|
+
"defaultValue": "\"Account holder name contains invalid characters\""
|
|
571
|
+
},
|
|
572
|
+
"beneficiaryNameInvalidNonBrandedDescription": {
|
|
573
|
+
"type": "string",
|
|
574
|
+
"mutable": false,
|
|
575
|
+
"complexType": {
|
|
576
|
+
"original": "string",
|
|
577
|
+
"resolved": "string",
|
|
578
|
+
"references": {}
|
|
579
|
+
},
|
|
580
|
+
"required": false,
|
|
581
|
+
"optional": false,
|
|
582
|
+
"docs": {
|
|
583
|
+
"tags": [{
|
|
584
|
+
"name": "uiName",
|
|
585
|
+
"text": "Beneficiary name invalid alert description (non-branded partners)"
|
|
586
|
+
}],
|
|
587
|
+
"text": ""
|
|
588
|
+
},
|
|
589
|
+
"attribute": "beneficiary-name-invalid-non-branded-description",
|
|
590
|
+
"reflect": false,
|
|
591
|
+
"defaultValue": "\"The account holder name in your payment information contains characters we can't accept. Go to impact.com to update it so it is valid and matches the name on your tax form. Your payouts are on hold until this is resolved.\""
|
|
592
|
+
},
|
|
542
593
|
"beneficiaryNameMismatchHeader": {
|
|
543
594
|
"type": "string",
|
|
544
595
|
"mutable": false,
|
|
@@ -581,6 +632,48 @@ export class PayoutStatusAlert {
|
|
|
581
632
|
"reflect": false,
|
|
582
633
|
"defaultValue": "\"The account holder (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.\""
|
|
583
634
|
},
|
|
635
|
+
"beneficiaryNameMismatchNonBrandedHeader": {
|
|
636
|
+
"type": "string",
|
|
637
|
+
"mutable": false,
|
|
638
|
+
"complexType": {
|
|
639
|
+
"original": "string",
|
|
640
|
+
"resolved": "string",
|
|
641
|
+
"references": {}
|
|
642
|
+
},
|
|
643
|
+
"required": false,
|
|
644
|
+
"optional": false,
|
|
645
|
+
"docs": {
|
|
646
|
+
"tags": [{
|
|
647
|
+
"name": "uiName",
|
|
648
|
+
"text": "Beneficiary name mismatch alert header (non-branded partners)"
|
|
649
|
+
}],
|
|
650
|
+
"text": ""
|
|
651
|
+
},
|
|
652
|
+
"attribute": "beneficiary-name-mismatch-non-branded-header",
|
|
653
|
+
"reflect": false,
|
|
654
|
+
"defaultValue": "\"Account holder name doesn't match your tax form\""
|
|
655
|
+
},
|
|
656
|
+
"beneficiaryNameMismatchNonBrandedDescription": {
|
|
657
|
+
"type": "string",
|
|
658
|
+
"mutable": false,
|
|
659
|
+
"complexType": {
|
|
660
|
+
"original": "string",
|
|
661
|
+
"resolved": "string",
|
|
662
|
+
"references": {}
|
|
663
|
+
},
|
|
664
|
+
"required": false,
|
|
665
|
+
"optional": false,
|
|
666
|
+
"docs": {
|
|
667
|
+
"tags": [{
|
|
668
|
+
"name": "uiName",
|
|
669
|
+
"text": "Beneficiary name mismatch alert description (non-branded partners)"
|
|
670
|
+
}],
|
|
671
|
+
"text": ""
|
|
672
|
+
},
|
|
673
|
+
"attribute": "beneficiary-name-mismatch-non-branded-description",
|
|
674
|
+
"reflect": false,
|
|
675
|
+
"defaultValue": "\"The account holder name in your payment information doesn't match the name on your tax form. Go to impact.com to update one or both so the names match exactly. Your payouts are on hold until this is resolved.\""
|
|
676
|
+
},
|
|
584
677
|
"bankTaxNameMismatchHeader": {
|
|
585
678
|
"type": "string",
|
|
586
679
|
"mutable": false,
|
|
@@ -623,6 +716,48 @@ export class PayoutStatusAlert {
|
|
|
623
716
|
"reflect": false,
|
|
624
717
|
"defaultValue": "\"The bank account (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.\""
|
|
625
718
|
},
|
|
719
|
+
"bankTaxNameMismatchNonBrandedHeader": {
|
|
720
|
+
"type": "string",
|
|
721
|
+
"mutable": false,
|
|
722
|
+
"complexType": {
|
|
723
|
+
"original": "string",
|
|
724
|
+
"resolved": "string",
|
|
725
|
+
"references": {}
|
|
726
|
+
},
|
|
727
|
+
"required": false,
|
|
728
|
+
"optional": false,
|
|
729
|
+
"docs": {
|
|
730
|
+
"tags": [{
|
|
731
|
+
"name": "uiName",
|
|
732
|
+
"text": "Bank name mismatch alert header (non-branded partners)"
|
|
733
|
+
}],
|
|
734
|
+
"text": ""
|
|
735
|
+
},
|
|
736
|
+
"attribute": "bank-tax-name-mismatch-non-branded-header",
|
|
737
|
+
"reflect": false,
|
|
738
|
+
"defaultValue": "\"Bank account name doesn't match your tax form\""
|
|
739
|
+
},
|
|
740
|
+
"bankTaxNameMismatchNonBrandedDescription": {
|
|
741
|
+
"type": "string",
|
|
742
|
+
"mutable": false,
|
|
743
|
+
"complexType": {
|
|
744
|
+
"original": "string",
|
|
745
|
+
"resolved": "string",
|
|
746
|
+
"references": {}
|
|
747
|
+
},
|
|
748
|
+
"required": false,
|
|
749
|
+
"optional": false,
|
|
750
|
+
"docs": {
|
|
751
|
+
"tags": [{
|
|
752
|
+
"name": "uiName",
|
|
753
|
+
"text": "Bank name mismatch alert description (non-branded partners)"
|
|
754
|
+
}],
|
|
755
|
+
"text": ""
|
|
756
|
+
},
|
|
757
|
+
"attribute": "bank-tax-name-mismatch-non-branded-description",
|
|
758
|
+
"reflect": false,
|
|
759
|
+
"defaultValue": "\"The name on your bank account doesn't match the name on your tax form. Go to impact.com to update your payment information or your tax form so the two names match exactly. Your payouts are on hold until this is resolved.\""
|
|
760
|
+
},
|
|
626
761
|
"withdrawalSettingsInvalidHeader": {
|
|
627
762
|
"type": "string",
|
|
628
763
|
"mutable": false,
|
|
@@ -665,6 +800,48 @@ export class PayoutStatusAlert {
|
|
|
665
800
|
"reflect": false,
|
|
666
801
|
"defaultValue": "\"There are missing fields or invalid characters in your payment information. Please review your information and make sure it is correct. Your payouts are on hold until this is resolved.\""
|
|
667
802
|
},
|
|
803
|
+
"withdrawalSettingsInvalidNonBrandedHeader": {
|
|
804
|
+
"type": "string",
|
|
805
|
+
"mutable": false,
|
|
806
|
+
"complexType": {
|
|
807
|
+
"original": "string",
|
|
808
|
+
"resolved": "string",
|
|
809
|
+
"references": {}
|
|
810
|
+
},
|
|
811
|
+
"required": false,
|
|
812
|
+
"optional": false,
|
|
813
|
+
"docs": {
|
|
814
|
+
"tags": [{
|
|
815
|
+
"name": "uiName",
|
|
816
|
+
"text": "Withdrawal settings invalid alert header (non-branded partners)"
|
|
817
|
+
}],
|
|
818
|
+
"text": ""
|
|
819
|
+
},
|
|
820
|
+
"attribute": "withdrawal-settings-invalid-non-branded-header",
|
|
821
|
+
"reflect": false,
|
|
822
|
+
"defaultValue": "\"Payment information is incomplete or contains errors\""
|
|
823
|
+
},
|
|
824
|
+
"withdrawalSettingsInvalidNonBrandedDescription": {
|
|
825
|
+
"type": "string",
|
|
826
|
+
"mutable": false,
|
|
827
|
+
"complexType": {
|
|
828
|
+
"original": "string",
|
|
829
|
+
"resolved": "string",
|
|
830
|
+
"references": {}
|
|
831
|
+
},
|
|
832
|
+
"required": false,
|
|
833
|
+
"optional": false,
|
|
834
|
+
"docs": {
|
|
835
|
+
"tags": [{
|
|
836
|
+
"name": "uiName",
|
|
837
|
+
"text": "Withdrawal settings invalid alert description (non-branded partners)"
|
|
838
|
+
}],
|
|
839
|
+
"text": ""
|
|
840
|
+
},
|
|
841
|
+
"attribute": "withdrawal-settings-invalid-non-branded-description",
|
|
842
|
+
"reflect": false,
|
|
843
|
+
"defaultValue": "\"Some required details in your payment information are missing or contain invalid characters. Go to impact.com to review and complete your information. Your payouts are on hold until this is resolved.\""
|
|
844
|
+
},
|
|
668
845
|
"paymentReturnedHeader": {
|
|
669
846
|
"type": "string",
|
|
670
847
|
"mutable": false,
|
|
@@ -707,6 +884,27 @@ export class PayoutStatusAlert {
|
|
|
707
884
|
"reflect": false,
|
|
708
885
|
"defaultValue": "\"Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.\""
|
|
709
886
|
},
|
|
887
|
+
"paymentReturnedNonBrandedDescription": {
|
|
888
|
+
"type": "string",
|
|
889
|
+
"mutable": false,
|
|
890
|
+
"complexType": {
|
|
891
|
+
"original": "string",
|
|
892
|
+
"resolved": "string",
|
|
893
|
+
"references": {}
|
|
894
|
+
},
|
|
895
|
+
"required": false,
|
|
896
|
+
"optional": false,
|
|
897
|
+
"docs": {
|
|
898
|
+
"tags": [{
|
|
899
|
+
"name": "uiName",
|
|
900
|
+
"text": "Payment returned alert description (non-branded partners)"
|
|
901
|
+
}],
|
|
902
|
+
"text": ""
|
|
903
|
+
},
|
|
904
|
+
"attribute": "payment-returned-non-branded-description",
|
|
905
|
+
"reflect": false,
|
|
906
|
+
"defaultValue": "\"Your most recent payment for your earnings was returned. Go to impact.com to check that your payment information is correct and up to date.\""
|
|
907
|
+
},
|
|
710
908
|
"w9RequiredHeader": {
|
|
711
909
|
"type": "string",
|
|
712
910
|
"mutable": false,
|
|
@@ -955,7 +1153,7 @@ export class PayoutStatusAlert {
|
|
|
955
1153
|
"mutable": false,
|
|
956
1154
|
"complexType": {
|
|
957
1155
|
"original": "DemoData<PayoutStatusAlertViewProps>",
|
|
958
|
-
"resolved": "{ data?: { type: \"SquatchJS2\" | \"SquatchAndroid\" | \"SquatchIOS\" | \"SquatchPortal\" | \"SquatchAdmin\" | \"None\"; }; states?: { error: boolean; loading: boolean; status: PayoutStatus; veriffLoading: boolean; belowPayoutThreshold?: boolean; minPayoutAmount?: string; enforceUsTaxComplianceOption?: EnforceUsTaxComplianceOption; }; }",
|
|
1156
|
+
"resolved": "{ data?: { type: \"SquatchJS2\" | \"SquatchAndroid\" | \"SquatchIOS\" | \"SquatchPortal\" | \"SquatchAdmin\" | \"None\"; }; states?: { error: boolean; loading: boolean; status: PayoutStatus; veriffLoading: boolean; belowPayoutThreshold?: boolean; minPayoutAmount?: string; enforceUsTaxComplianceOption?: EnforceUsTaxComplianceOption; canEditPayoutInfo?: boolean; }; }",
|
|
959
1157
|
"references": {
|
|
960
1158
|
"DemoData": {
|
|
961
1159
|
"location": "import",
|
|
@@ -14,6 +14,7 @@ const GET_USER_STATUS = gql `
|
|
|
14
14
|
publisher {
|
|
15
15
|
id
|
|
16
16
|
currency
|
|
17
|
+
brandedSignup
|
|
17
18
|
currentTaxDocument {
|
|
18
19
|
status
|
|
19
20
|
type
|
|
@@ -88,7 +89,7 @@ export function getStatus(data) {
|
|
|
88
89
|
return "DONE";
|
|
89
90
|
}
|
|
90
91
|
export function usePayoutStatus(props) {
|
|
91
|
-
var _a, _b, _c, _d, _e;
|
|
92
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
92
93
|
const { type } = getEnvironmentSDK();
|
|
93
94
|
const { loading, data, errors, refetch } = useQuery(GET_USER_STATUS, {});
|
|
94
95
|
const { data: taxSettingRes } = useQuery(GET_TAX_SETTING, {});
|
|
@@ -138,8 +139,9 @@ export function usePayoutStatus(props) {
|
|
|
138
139
|
status,
|
|
139
140
|
error: !!errors,
|
|
140
141
|
enforceUsTaxComplianceOption,
|
|
141
|
-
|
|
142
|
-
|
|
142
|
+
canEditPayoutInfo: (_d = (_c = (_b = data === null || data === void 0 ? void 0 : data.user) === null || _b === void 0 ? void 0 : _b.impactConnection) === null || _c === void 0 ? void 0 : _c.publisher) === null || _d === void 0 ? void 0 : _d.brandedSignup,
|
|
143
|
+
belowPayoutThreshold: isBalanceUnderPayoutThreshold((_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.publisher),
|
|
144
|
+
minPayoutAmount: formatPayoutThreshold((_h = (_g = data === null || data === void 0 ? void 0 : data.user) === null || _g === void 0 ? void 0 : _g.impactConnection) === null || _h === void 0 ? void 0 : _h.publisher),
|
|
143
145
|
},
|
|
144
146
|
data: { type },
|
|
145
147
|
text: props.getTextProps(),
|