@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
|
@@ -40,7 +40,6 @@ sqm-portal-register {
|
|
|
40
40
|
const sheet = JSS.createStyleSheet(style);
|
|
41
41
|
const styleString = sheet.toString();
|
|
42
42
|
function BaseRegistrationFormView(props) {
|
|
43
|
-
var _a, _b;
|
|
44
43
|
const { states, content, callbacks } = props;
|
|
45
44
|
return (index.h("div", { class: sheet.classes.Wrapper },
|
|
46
45
|
index.h("style", { type: "text/css" },
|
|
@@ -48,8 +47,10 @@ function BaseRegistrationFormView(props) {
|
|
|
48
47
|
styleString),
|
|
49
48
|
index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
|
|
50
49
|
index.h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.handleEmailSubmit, novalidate: true },
|
|
50
|
+
states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
51
|
+
index.h("div", { part: "erroralert-text" }, props.states.error))),
|
|
51
52
|
content.formData,
|
|
52
|
-
index.h("sl-input",
|
|
53
|
+
index.h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", required: true, validationError: ({ value }) => {
|
|
53
54
|
if (!value) {
|
|
54
55
|
return content.requiredFieldErrorMessage;
|
|
55
56
|
}
|
|
@@ -57,13 +58,7 @@ function BaseRegistrationFormView(props) {
|
|
|
57
58
|
if (!value.includes("@")) {
|
|
58
59
|
return content.invalidEmailErrorMessage;
|
|
59
60
|
}
|
|
60
|
-
} },
|
|
61
|
-
class: sheet.classes.ErrorStyle,
|
|
62
|
-
helpText: ((_b = states === null || states === void 0 ? void 0 : states.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ||
|
|
63
|
-
content.requiredFieldErrorMessage,
|
|
64
|
-
}
|
|
65
|
-
: []))),
|
|
66
|
-
content.terms,
|
|
61
|
+
} }),
|
|
67
62
|
index.h("div", { class: sheet.classes.ButtonsContainer },
|
|
68
63
|
index.h("sl-button", { submit: true, exportparts: "base: primarybutton-base", type: "primary", style: { margin: "0" } }, content.submitLabel || "Register"),
|
|
69
64
|
index.h("sl-menu-divider", { style: { margin: "0" } }),
|
|
@@ -24,9 +24,9 @@ const sqmPortalLoginView = require('./sqm-portal-login-view-761a4d8e.js');
|
|
|
24
24
|
const usePortalLogin = require('./usePortalLogin-63d896d1.js');
|
|
25
25
|
const AsYouType = require('./AsYouType-6788393a.js');
|
|
26
26
|
const utilities = require('./utilities-78f5e169.js');
|
|
27
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
27
|
+
const ShadowViewAddon = require('./ShadowViewAddon-28865623.js');
|
|
28
28
|
require('./sqm-portal-container-view-4f15143a.js');
|
|
29
|
-
const usePayoutStatus = require('./usePayoutStatus-
|
|
29
|
+
const usePayoutStatus = require('./usePayoutStatus-fc4e609e.js');
|
|
30
30
|
|
|
31
31
|
const BigStat = class {
|
|
32
32
|
constructor(hostRef) {
|
|
@@ -2029,7 +2029,6 @@ function useNameFields(props) {
|
|
|
2029
2029
|
const registrationFormState = stencilHooks_module.d(useRegistrationFormState.REGISTRATION_FORM_STATE_CONTEXT);
|
|
2030
2030
|
return {
|
|
2031
2031
|
states: {
|
|
2032
|
-
optional: props.optional,
|
|
2033
2032
|
registrationFormState,
|
|
2034
2033
|
content: {
|
|
2035
2034
|
lastNameLabel: props.lastNameLabel,
|
|
@@ -2051,11 +2050,6 @@ const NameFields = class {
|
|
|
2051
2050
|
* @uiName Last name label
|
|
2052
2051
|
*/
|
|
2053
2052
|
this.lastNameLabel = "Last Name";
|
|
2054
|
-
/**
|
|
2055
|
-
* @uiName Optional
|
|
2056
|
-
* @uiWidget
|
|
2057
|
-
*/
|
|
2058
|
-
this.optional = false;
|
|
2059
2053
|
stencilHooks_module.h$1(this);
|
|
2060
2054
|
}
|
|
2061
2055
|
disconnectedCallback() { }
|
|
@@ -2067,7 +2061,6 @@ const NameFields = class {
|
|
|
2067
2061
|
function useNameFieldsDemo(props) {
|
|
2068
2062
|
return cjs.cjs({
|
|
2069
2063
|
states: {
|
|
2070
|
-
optional: props.optional,
|
|
2071
2064
|
validationErrors: [],
|
|
2072
2065
|
content: {
|
|
2073
2066
|
firstNameLabel: props.firstNameLabel,
|
|
@@ -2401,7 +2394,7 @@ function PayoutStatusAlertView(props) {
|
|
|
2401
2394
|
class: sheet$2.classes.WarningAlertContainer,
|
|
2402
2395
|
};
|
|
2403
2396
|
}
|
|
2404
|
-
case "
|
|
2397
|
+
case "NEW_PAYEE_REVIEW":
|
|
2405
2398
|
return {
|
|
2406
2399
|
header: text.accountReviewHeader,
|
|
2407
2400
|
description: global.intl.formatMessage({
|
|
@@ -2415,6 +2408,90 @@ function PayoutStatusAlertView(props) {
|
|
|
2415
2408
|
icon: "exclamation-triangle",
|
|
2416
2409
|
class: sheet$2.classes.WarningAlertContainer,
|
|
2417
2410
|
};
|
|
2411
|
+
case "PAYMENT_HOLD_ON_CHANGE":
|
|
2412
|
+
return {
|
|
2413
|
+
header: text.paymentHoldOnChangeHeader,
|
|
2414
|
+
description: global.intl.formatMessage({
|
|
2415
|
+
id: "accountReviewDescription",
|
|
2416
|
+
defaultMessage: text.paymentHoldOnChangeDescription,
|
|
2417
|
+
}, {
|
|
2418
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2419
|
+
}),
|
|
2420
|
+
buttonText: null,
|
|
2421
|
+
alertType: "warning",
|
|
2422
|
+
icon: "exclamation-triangle",
|
|
2423
|
+
class: sheet$2.classes.WarningAlertContainer,
|
|
2424
|
+
};
|
|
2425
|
+
case "BENEFICIARY_NAME_INVALID":
|
|
2426
|
+
return {
|
|
2427
|
+
header: text.beneficiaryNameInvalidHeader,
|
|
2428
|
+
description: global.intl.formatMessage({
|
|
2429
|
+
id: "accountReviewDescription",
|
|
2430
|
+
defaultMessage: text.beneficiaryNameInvalidDescription,
|
|
2431
|
+
}, {
|
|
2432
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2433
|
+
}),
|
|
2434
|
+
buttonText: text.editPaymentInformationButton,
|
|
2435
|
+
alertType: "warning",
|
|
2436
|
+
icon: "exclamation-triangle",
|
|
2437
|
+
class: sheet$2.classes.WarningAlertContainer,
|
|
2438
|
+
};
|
|
2439
|
+
case "BENEFICIARY_NAME_MISMATCH":
|
|
2440
|
+
return {
|
|
2441
|
+
header: text.beneficiaryNameMismatchHeader,
|
|
2442
|
+
description: global.intl.formatMessage({
|
|
2443
|
+
id: "accountReviewDescription",
|
|
2444
|
+
defaultMessage: text.beneficiaryNameMismatchDescription,
|
|
2445
|
+
}, {
|
|
2446
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2447
|
+
}),
|
|
2448
|
+
buttonText: text.editPaymentInformationButton,
|
|
2449
|
+
alertType: "warning",
|
|
2450
|
+
icon: "exclamation-triangle",
|
|
2451
|
+
class: sheet$2.classes.WarningAlertContainer,
|
|
2452
|
+
};
|
|
2453
|
+
case "BANK_TAX_NAME_MISMATCH":
|
|
2454
|
+
return {
|
|
2455
|
+
header: text.bankTaxNameMismatchHeader,
|
|
2456
|
+
description: global.intl.formatMessage({
|
|
2457
|
+
id: "accountReviewDescription",
|
|
2458
|
+
defaultMessage: text.bankTaxNameMismatchDescription,
|
|
2459
|
+
}, {
|
|
2460
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2461
|
+
}),
|
|
2462
|
+
buttonText: text.editPaymentInformationButton,
|
|
2463
|
+
alertType: "warning",
|
|
2464
|
+
icon: "exclamation-triangle",
|
|
2465
|
+
class: sheet$2.classes.WarningAlertContainer,
|
|
2466
|
+
};
|
|
2467
|
+
case "WITHDRAWAL_SETTINGS_INVALID":
|
|
2468
|
+
return {
|
|
2469
|
+
header: text.withdrawalSettingsInvalidHeader,
|
|
2470
|
+
description: global.intl.formatMessage({
|
|
2471
|
+
id: "accountReviewDescription",
|
|
2472
|
+
defaultMessage: text.withdrawalSettingsInvalidDescription,
|
|
2473
|
+
}, {
|
|
2474
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2475
|
+
}),
|
|
2476
|
+
buttonText: text.editPaymentInformationButton,
|
|
2477
|
+
alertType: "warning",
|
|
2478
|
+
icon: "exclamation-triangle",
|
|
2479
|
+
class: sheet$2.classes.WarningAlertContainer,
|
|
2480
|
+
};
|
|
2481
|
+
case "PAYMENT_RETURNED":
|
|
2482
|
+
return {
|
|
2483
|
+
header: text.paymentReturnedHeader,
|
|
2484
|
+
description: global.intl.formatMessage({
|
|
2485
|
+
id: "accountReviewDescription",
|
|
2486
|
+
defaultMessage: text.paymentReturnedDescription,
|
|
2487
|
+
}, {
|
|
2488
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2489
|
+
}),
|
|
2490
|
+
buttonText: text.editPaymentInformationButton,
|
|
2491
|
+
alertType: "warning",
|
|
2492
|
+
icon: "exclamation-triangle",
|
|
2493
|
+
class: sheet$2.classes.WarningAlertContainer,
|
|
2494
|
+
};
|
|
2418
2495
|
case "HOLD":
|
|
2419
2496
|
return {
|
|
2420
2497
|
header: text.holdHeader,
|
|
@@ -2448,6 +2525,8 @@ function PayoutStatusAlertView(props) {
|
|
|
2448
2525
|
case "VERIFICATION:REQUIRED":
|
|
2449
2526
|
return (index.h("sl-button", { type: "default", loading: states.veriffLoading, onClick: callbacks.onClick }, text.verificationRequiredButtonText));
|
|
2450
2527
|
default:
|
|
2528
|
+
if (alertDetails.buttonText)
|
|
2529
|
+
return (index.h("sl-button", { type: "default", onClick: callbacks.onPaymentInfoClick }, alertDetails.buttonText));
|
|
2451
2530
|
return;
|
|
2452
2531
|
}
|
|
2453
2532
|
}
|
|
@@ -2474,6 +2553,11 @@ const PayoutStatusAlert = class {
|
|
|
2474
2553
|
* @uiName Info required alert header
|
|
2475
2554
|
*/
|
|
2476
2555
|
this.informationRequiredHeader = "Payout and tax information required";
|
|
2556
|
+
/**
|
|
2557
|
+
*
|
|
2558
|
+
* @uiName Edit payment info button label
|
|
2559
|
+
*/
|
|
2560
|
+
this.editPaymentInformationButton = "Edit Payout Information";
|
|
2477
2561
|
/**
|
|
2478
2562
|
* @uiName Info required alert description
|
|
2479
2563
|
*/
|
|
@@ -2526,6 +2610,54 @@ const PayoutStatusAlert = class {
|
|
|
2526
2610
|
* @uiName Account review alert description
|
|
2527
2611
|
*/
|
|
2528
2612
|
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}.";
|
|
2613
|
+
/**
|
|
2614
|
+
* @uiName Payment on hold alert header
|
|
2615
|
+
*/
|
|
2616
|
+
this.paymentHoldOnChangeHeader = "We are reviewing your new payout settings";
|
|
2617
|
+
/**
|
|
2618
|
+
* @uiName Payment on hold alert description
|
|
2619
|
+
*/
|
|
2620
|
+
this.paymentHoldOnChangeDescription = "Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.";
|
|
2621
|
+
/**
|
|
2622
|
+
* @uiName Beneficiary name invalid alert header
|
|
2623
|
+
*/
|
|
2624
|
+
this.beneficiaryNameInvalidHeader = "Your payment information does not match your tax form";
|
|
2625
|
+
/**
|
|
2626
|
+
* @uiName Beneficiary name invalid description
|
|
2627
|
+
*/
|
|
2628
|
+
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.";
|
|
2629
|
+
/**
|
|
2630
|
+
* @uiName Beneficiary name mismatch alert header
|
|
2631
|
+
*/
|
|
2632
|
+
this.beneficiaryNameMismatchHeader = "Your payment information does not match your tax form";
|
|
2633
|
+
/**
|
|
2634
|
+
* @uiName Beneficiary name mismatch alert description
|
|
2635
|
+
*/
|
|
2636
|
+
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.";
|
|
2637
|
+
/**
|
|
2638
|
+
* @uiName Bank name mismatch alert header
|
|
2639
|
+
*/
|
|
2640
|
+
this.bankTaxNameMismatchHeader = "Your payment information does not match your tax form";
|
|
2641
|
+
/**
|
|
2642
|
+
* @uiName Bank name mismatch alert description
|
|
2643
|
+
*/
|
|
2644
|
+
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.";
|
|
2645
|
+
/**
|
|
2646
|
+
* @uiName Withdrawal settings invalid alert header
|
|
2647
|
+
*/
|
|
2648
|
+
this.withdrawalSettingsInvalidHeader = "Your payment information includes invalid characters";
|
|
2649
|
+
/**
|
|
2650
|
+
* @uiName Withdrawal settings invalid alert description
|
|
2651
|
+
*/
|
|
2652
|
+
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.";
|
|
2653
|
+
/**
|
|
2654
|
+
* @uiName Payment returned alert header
|
|
2655
|
+
*/
|
|
2656
|
+
this.paymentReturnedHeader = "Payout unsuccessful";
|
|
2657
|
+
/**
|
|
2658
|
+
* @uiName Payment returned alert description
|
|
2659
|
+
*/
|
|
2660
|
+
this.paymentReturnedDescription = "Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.";
|
|
2529
2661
|
/**
|
|
2530
2662
|
* @uiName W-9 payment threshold alert header
|
|
2531
2663
|
*/
|
|
@@ -2592,6 +2724,7 @@ function useDemoPayoutStatusAlert(props) {
|
|
|
2592
2724
|
callbacks: {
|
|
2593
2725
|
onTermsClick: () => { },
|
|
2594
2726
|
onClick: () => console.log("show"),
|
|
2727
|
+
onPaymentInfoClick: () => { },
|
|
2595
2728
|
},
|
|
2596
2729
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2597
2730
|
}
|
|
@@ -11,7 +11,7 @@ const JSS = require('./JSS-8503a151.js');
|
|
|
11
11
|
require('./mixins-f7e0377a.js');
|
|
12
12
|
require('./sqm-text-span-view-0aa82125.js');
|
|
13
13
|
const useRegistrationFormState = require('./useRegistrationFormState-7b820f0c.js');
|
|
14
|
-
const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-
|
|
14
|
+
const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-8029d30e.js');
|
|
15
15
|
const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-637a4bf4.js');
|
|
16
16
|
require('./AsYouType-6788393a.js');
|
|
17
17
|
const usePortalRegistrationForm = require('./usePortalRegistrationForm-f25d89e7.js');
|
|
@@ -75,6 +75,7 @@ function jwtDecode(token, options) {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
function usePortalGoogleRegistrationForm(props) {
|
|
78
|
+
const [emailValidationError, setEmailValidationError] = stencilHooks_module.useState(null);
|
|
78
79
|
const [registrationFormState, setRegistrationFormState] = useRegistrationFormState.useRegistrationForm();
|
|
79
80
|
const [showRegistrationForm, setShowRegistrationForm] = stencilHooks_module.useState({
|
|
80
81
|
mode: "base",
|
|
@@ -82,40 +83,33 @@ function usePortalGoogleRegistrationForm(props) {
|
|
|
82
83
|
const handleEmailSubmit = async (event) => {
|
|
83
84
|
const formControls = event.target.getFormControls();
|
|
84
85
|
let formData = {};
|
|
85
|
-
let
|
|
86
|
+
let errorMessage = null;
|
|
86
87
|
formControls.forEach((control) => {
|
|
87
88
|
if (!control.name)
|
|
88
89
|
return;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
90
|
+
jsonpointer.jsonpointer.set(formData, control.name, control.value);
|
|
91
|
+
// only validate email field
|
|
92
|
+
if (control.name !== "/email")
|
|
93
|
+
return;
|
|
94
|
+
if (control.required && !control.value)
|
|
95
|
+
errorMessage = props.requiredFieldErrorMessage;
|
|
95
96
|
if (typeof control.validationError === "function") {
|
|
96
97
|
const validate = control.validationError;
|
|
97
98
|
const validationError = validate({
|
|
98
99
|
control,
|
|
99
|
-
key,
|
|
100
|
-
value,
|
|
100
|
+
key: "email",
|
|
101
|
+
value: control.value,
|
|
101
102
|
});
|
|
102
103
|
if (validationError)
|
|
103
|
-
|
|
104
|
+
errorMessage = validationError;
|
|
104
105
|
}
|
|
105
106
|
});
|
|
106
|
-
if (
|
|
107
|
-
|
|
108
|
-
setRegistrationFormState({
|
|
109
|
-
...registrationFormState,
|
|
110
|
-
loading: false,
|
|
111
|
-
error: "",
|
|
112
|
-
validationErrors,
|
|
113
|
-
});
|
|
107
|
+
if (errorMessage) {
|
|
108
|
+
setEmailValidationError(errorMessage);
|
|
114
109
|
return;
|
|
115
110
|
}
|
|
116
111
|
setRegistrationFormState({
|
|
117
112
|
...registrationFormState,
|
|
118
|
-
validationErrors: {},
|
|
119
113
|
initialData: {
|
|
120
114
|
...registrationFormState === null || registrationFormState === void 0 ? void 0 : registrationFormState.initialData,
|
|
121
115
|
...formData,
|
|
@@ -145,9 +139,8 @@ function usePortalGoogleRegistrationForm(props) {
|
|
|
145
139
|
}
|
|
146
140
|
};
|
|
147
141
|
return {
|
|
148
|
-
registrationFormState,
|
|
149
142
|
showRegistrationForm,
|
|
150
|
-
|
|
143
|
+
emailValidationError,
|
|
151
144
|
handleGoogleInit,
|
|
152
145
|
handleEmailSubmit,
|
|
153
146
|
};
|
|
@@ -303,7 +296,7 @@ const PortalGoogleRegistrationForm = class {
|
|
|
303
296
|
};
|
|
304
297
|
const sheet = JSS.createStyleSheet(styles);
|
|
305
298
|
const styleString = sheet.toString();
|
|
306
|
-
const { handleGoogleInit, handleEmailSubmit, showRegistrationForm,
|
|
299
|
+
const { handleGoogleInit, handleEmailSubmit, showRegistrationForm, emailValidationError, } = index_module.isDemo() ? useGoogleDemo(this) : usePortalGoogleRegistrationForm(this);
|
|
307
300
|
const content = {
|
|
308
301
|
formData: index.h("slot", { name: "formData" }),
|
|
309
302
|
googleButton: (index.h("sqm-google-sign-in", { text: this.googleButtonText, onInitComplete: handleGoogleInit })),
|
|
@@ -328,16 +321,14 @@ const PortalGoogleRegistrationForm = class {
|
|
|
328
321
|
};
|
|
329
322
|
if (showRegistrationForm.mode === "base") {
|
|
330
323
|
return (index.h(sqmBaseRegistrationFormView.BaseRegistrationFormView, { states: {
|
|
331
|
-
|
|
324
|
+
error: emailValidationError,
|
|
332
325
|
}, callbacks: { handleEmailSubmit }, content: content }));
|
|
333
326
|
}
|
|
334
327
|
return (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, { states: {
|
|
335
328
|
...states,
|
|
336
329
|
emailDisabled: true,
|
|
337
330
|
hidePasswords: showRegistrationForm.mode === "google",
|
|
338
|
-
}, callbacks: callbacks,
|
|
339
|
-
// Show terms only on first screen
|
|
340
|
-
content: { ...content, terms: null }, refs: refs }));
|
|
331
|
+
}, callbacks: callbacks, content: content, refs: refs }));
|
|
341
332
|
}
|
|
342
333
|
};
|
|
343
334
|
function useRegisterDemo(props) {
|
|
@@ -373,7 +364,7 @@ function useGoogleDemo(props) {
|
|
|
373
364
|
mode: "base",
|
|
374
365
|
});
|
|
375
366
|
return cjs.cjs({
|
|
376
|
-
|
|
367
|
+
emailValidationError: false,
|
|
377
368
|
handleEmailSubmit: () => setShowRegistrationForm({ mode: "manual" }),
|
|
378
369
|
showRegistrationForm,
|
|
379
370
|
handleGoogleInit: () => setShowRegistrationForm({ mode: "google" }),
|
|
@@ -28,7 +28,7 @@ const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view
|
|
|
28
28
|
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-7ebb426a.js');
|
|
29
29
|
const sqmPortalForgotPasswordView = require('./sqm-portal-forgot-password-view-78f19ef9.js');
|
|
30
30
|
const sqmPortalLoginView = require('./sqm-portal-login-view-761a4d8e.js');
|
|
31
|
-
const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-
|
|
31
|
+
const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-8029d30e.js');
|
|
32
32
|
const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-637a4bf4.js');
|
|
33
33
|
const sqmPortalProfileView = require('./sqm-portal-profile-view-33164798.js');
|
|
34
34
|
require('./utilities-78f5e169.js');
|
|
@@ -36,9 +36,9 @@ const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-fe6
|
|
|
36
36
|
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-7b678f34.js');
|
|
37
37
|
require('./ErrorView-b2fcf954.js');
|
|
38
38
|
const sqmQrCodeView = require('./sqm-qr-code-view-15dfc0b6.js');
|
|
39
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
39
|
+
const ShadowViewAddon = require('./ShadowViewAddon-28865623.js');
|
|
40
40
|
const sqmPortalContainerView = require('./sqm-portal-container-view-4f15143a.js');
|
|
41
|
-
const sqmInvoiceTableView = require('./sqm-invoice-table-view-
|
|
41
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-3f60fba9.js');
|
|
42
42
|
const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-89308aab.js');
|
|
43
43
|
|
|
44
44
|
/**
|
|
@@ -10833,7 +10833,6 @@ const NameFields_stories = {
|
|
|
10833
10833
|
};
|
|
10834
10834
|
const props$1 = {
|
|
10835
10835
|
states: {
|
|
10836
|
-
optional: false,
|
|
10837
10836
|
registrationFormState: {
|
|
10838
10837
|
validationErrors: undefined,
|
|
10839
10838
|
},
|
|
@@ -10845,7 +10844,6 @@ const props$1 = {
|
|
|
10845
10844
|
};
|
|
10846
10845
|
const errorProps$9 = {
|
|
10847
10846
|
states: {
|
|
10848
|
-
optional: false,
|
|
10849
10847
|
registrationFormState: {
|
|
10850
10848
|
validationErrors: {
|
|
10851
10849
|
firstName: "Cannot be empty",
|
|
@@ -15642,7 +15640,7 @@ const BaseRegistrationForm_stories = {
|
|
|
15642
15640
|
};
|
|
15643
15641
|
const defaultProps$q = {
|
|
15644
15642
|
states: {
|
|
15645
|
-
|
|
15643
|
+
error: "",
|
|
15646
15644
|
},
|
|
15647
15645
|
callbacks: {
|
|
15648
15646
|
handleEmailSubmit: () => console.log("Submit!"),
|
|
@@ -15662,7 +15660,7 @@ const defaultProps$q = {
|
|
|
15662
15660
|
const errorProps$a = {
|
|
15663
15661
|
...defaultProps$q,
|
|
15664
15662
|
states: {
|
|
15665
|
-
|
|
15663
|
+
error: "Something went wrong. Please try again.",
|
|
15666
15664
|
},
|
|
15667
15665
|
};
|
|
15668
15666
|
const Default$o = () => {
|
|
@@ -15709,7 +15707,6 @@ const defaultProps$r = {
|
|
|
15709
15707
|
formData: (index.h("div", null,
|
|
15710
15708
|
" ",
|
|
15711
15709
|
index.h(ShadowViewAddon.NameFieldsView, { states: {
|
|
15712
|
-
optional: false,
|
|
15713
15710
|
registrationFormState: {
|
|
15714
15711
|
validationErrors: undefined,
|
|
15715
15712
|
disabled: true,
|
|
@@ -5,6 +5,133 @@ const index_module = require('./index.module-ee84433d.js');
|
|
|
5
5
|
|
|
6
6
|
const TAX_FORM_UPDATED_EVENT_KEY = "sqm:tax-form-updated";
|
|
7
7
|
|
|
8
|
+
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
9
|
+
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
10
|
+
const USER_QUERY_NAMESPACE = "sq:user-info-query";
|
|
11
|
+
const USER_FORM_CONTEXT_NAMESPACE = "sq:user-form-context";
|
|
12
|
+
const FINANCE_NETWORK_SETTINGS_NAMESPACE = "sq:finance-network-settings";
|
|
13
|
+
const COUNTRIES_NAMESPACE = "sq:countries:list";
|
|
14
|
+
const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
|
|
15
|
+
const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
|
|
16
|
+
const CURRENCIES_NAMESPACE = "sq:currencies:list";
|
|
17
|
+
const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
|
|
18
|
+
const GET_USER = index_module.dist.gql `
|
|
19
|
+
query getUserTaxInfo {
|
|
20
|
+
user: viewer {
|
|
21
|
+
... on User {
|
|
22
|
+
id
|
|
23
|
+
firstName
|
|
24
|
+
lastName
|
|
25
|
+
email
|
|
26
|
+
countryCode
|
|
27
|
+
customFields
|
|
28
|
+
rewards(limit: 1000) {
|
|
29
|
+
data {
|
|
30
|
+
statuses
|
|
31
|
+
partnerFundsTransfer {
|
|
32
|
+
id
|
|
33
|
+
status
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
managedIdentity {
|
|
38
|
+
uid
|
|
39
|
+
email
|
|
40
|
+
emailVerified
|
|
41
|
+
}
|
|
42
|
+
impactConnection {
|
|
43
|
+
connected
|
|
44
|
+
user {
|
|
45
|
+
firstName
|
|
46
|
+
lastName
|
|
47
|
+
}
|
|
48
|
+
publisher {
|
|
49
|
+
id
|
|
50
|
+
brandedSignup
|
|
51
|
+
countryCode
|
|
52
|
+
currency
|
|
53
|
+
billingAddress
|
|
54
|
+
billingCity
|
|
55
|
+
billingState
|
|
56
|
+
billingCountryCode
|
|
57
|
+
billingPostalCode
|
|
58
|
+
phoneNumberCountryCode
|
|
59
|
+
phoneNumber
|
|
60
|
+
taxInformation {
|
|
61
|
+
indirectTaxId
|
|
62
|
+
indirectTaxCountryCode
|
|
63
|
+
indirectTaxRegion
|
|
64
|
+
additionalTaxId
|
|
65
|
+
withholdingTaxId
|
|
66
|
+
withholdingTaxCountryCode
|
|
67
|
+
}
|
|
68
|
+
requiredTaxDocumentType
|
|
69
|
+
currentTaxDocument {
|
|
70
|
+
status
|
|
71
|
+
type
|
|
72
|
+
dateCreated
|
|
73
|
+
}
|
|
74
|
+
withdrawalSettings {
|
|
75
|
+
paymentMethod
|
|
76
|
+
paypalEmailAddress
|
|
77
|
+
bankCountry
|
|
78
|
+
bankAccountNumber
|
|
79
|
+
paymentSchedulingType
|
|
80
|
+
paymentThreshold
|
|
81
|
+
paymentDay
|
|
82
|
+
}
|
|
83
|
+
payoutsAccount {
|
|
84
|
+
hold
|
|
85
|
+
holdReasons
|
|
86
|
+
balance
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
`;
|
|
94
|
+
const GET_COUNTRIES = index_module.dist.gql `
|
|
95
|
+
query getCountries {
|
|
96
|
+
impactPayoutCountries(limit: 1000) {
|
|
97
|
+
data {
|
|
98
|
+
countryCode
|
|
99
|
+
displayName
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
`;
|
|
104
|
+
const GET_CURRENCIES = index_module.dist.gql `
|
|
105
|
+
query currencies($locale: RSLocale) {
|
|
106
|
+
currencies(limit: 300) {
|
|
107
|
+
data {
|
|
108
|
+
displayName(locale: $locale)
|
|
109
|
+
currencyCode
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
`;
|
|
114
|
+
const GET_FINANCE_NETWORK_SETTINGS = index_module.dist.gql `
|
|
115
|
+
query impactFinanceNetworkSettings(
|
|
116
|
+
$filter: ImpactFinanceNetworkSettingsFilterInput
|
|
117
|
+
) {
|
|
118
|
+
impactFinanceNetworkSettings(filter: $filter, limit: 1000) {
|
|
119
|
+
data {
|
|
120
|
+
countryCode
|
|
121
|
+
currency
|
|
122
|
+
defaultFinancePaymentMethodId
|
|
123
|
+
thresholdOptions
|
|
124
|
+
withdrawalSettingId
|
|
125
|
+
internationalEftFee
|
|
126
|
+
foreignFxFee
|
|
127
|
+
defaultFxFee
|
|
128
|
+
}
|
|
129
|
+
totalCount
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
`;
|
|
133
|
+
const FORM_STEPS = 4;
|
|
134
|
+
|
|
8
135
|
var toArray = function toArray(a) {
|
|
9
136
|
var ret = Array(a.length);
|
|
10
137
|
for (var i = 0; i < a.length; ++i) {
|
|
@@ -1002,7 +1129,7 @@ const GET_TAX_SETTING = index_module.dist.gql `
|
|
|
1002
1129
|
}
|
|
1003
1130
|
`;
|
|
1004
1131
|
function getStatus(data) {
|
|
1005
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
1132
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
1006
1133
|
const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
|
|
1007
1134
|
const hasTransferredReward = (_e = (_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.rewards) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.find((reward) => reward.statuses.includes("REDEEMED") &&
|
|
1008
1135
|
reward.partnerFundsTransfer.status === "TRANSFERRED");
|
|
@@ -1020,7 +1147,19 @@ function getStatus(data) {
|
|
|
1020
1147
|
if ((_p = account.holdReasons) === null || _p === void 0 ? void 0 : _p.includes("IDV_CHECK_FAILED_INTERNAL"))
|
|
1021
1148
|
return "VERIFICATION:FAILED";
|
|
1022
1149
|
if (((_q = account.holdReasons) === null || _q === void 0 ? void 0 : _q.includes("NEW_PAYEE_REVIEW")) && hasTransferredReward)
|
|
1023
|
-
return "
|
|
1150
|
+
return "NEW_PAYEE_REVIEW";
|
|
1151
|
+
if ((_r = account.holdReasons) === null || _r === void 0 ? void 0 : _r.includes("PAYMENT_HOLD_ON_CHANGE"))
|
|
1152
|
+
return "PAYMENT_HOLD_ON_CHANGE";
|
|
1153
|
+
if ((_s = account.holdReasons) === null || _s === void 0 ? void 0 : _s.includes("BENEFICIARY_NAME_INVALID"))
|
|
1154
|
+
return "BENEFICIARY_NAME_INVALID";
|
|
1155
|
+
if ((_t = account.holdReasons) === null || _t === void 0 ? void 0 : _t.includes("BENEFICIARY_NAME_MISMATCH"))
|
|
1156
|
+
return "BENEFICIARY_NAME_MISMATCH";
|
|
1157
|
+
if ((_u = account.holdReasons) === null || _u === void 0 ? void 0 : _u.includes("BANK_TAX_NAME_MISMATCH"))
|
|
1158
|
+
return "BANK_TAX_NAME_MISMATCH";
|
|
1159
|
+
if ((_v = account.holdReasons) === null || _v === void 0 ? void 0 : _v.includes("WITHDRAWAL_SETTINGS_INVALID"))
|
|
1160
|
+
return "WITHDRAWAL_SETTINGS_INVALID";
|
|
1161
|
+
if ((_w = account.holdReasons) === null || _w === void 0 ? void 0 : _w.includes("PAYMENT_RETURNED"))
|
|
1162
|
+
return "PAYMENT_RETURNED";
|
|
1024
1163
|
if (account.hold)
|
|
1025
1164
|
return "HOLD";
|
|
1026
1165
|
return "DONE";
|
|
@@ -1032,6 +1171,8 @@ function usePayoutStatus(props) {
|
|
|
1032
1171
|
const { data: taxSettingRes } = index_module.wn(GET_TAX_SETTING, {});
|
|
1033
1172
|
const { render, loading: veriffLoading, errors: veriffErrors, } = useVeriffApp();
|
|
1034
1173
|
const [status, setStatus] = stencilHooks_module.useState(undefined);
|
|
1174
|
+
const setContext = index_module.En(TAX_FORM_CONTEXT_NAMESPACE);
|
|
1175
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
1035
1176
|
const enforceUsTaxComplianceOption = (_a = taxSettingRes === null || taxSettingRes === void 0 ? void 0 : taxSettingRes.tenantSettings) === null || _a === void 0 ? void 0 : _a.enforceUsTaxCompliance;
|
|
1036
1177
|
stencilHooks_module.useEffect(() => {
|
|
1037
1178
|
if (!data)
|
|
@@ -1059,6 +1200,14 @@ function usePayoutStatus(props) {
|
|
|
1059
1200
|
url += "#3";
|
|
1060
1201
|
window.history.pushState(null, "", url);
|
|
1061
1202
|
};
|
|
1203
|
+
const onPaymentInfoClick = () => {
|
|
1204
|
+
setContext({
|
|
1205
|
+
overrideNextStep: "/dashboard",
|
|
1206
|
+
overrideBackStep: "/dashboard",
|
|
1207
|
+
hideSteps: true,
|
|
1208
|
+
});
|
|
1209
|
+
setStep("/4");
|
|
1210
|
+
};
|
|
1062
1211
|
return {
|
|
1063
1212
|
states: {
|
|
1064
1213
|
loading,
|
|
@@ -1072,11 +1221,27 @@ function usePayoutStatus(props) {
|
|
|
1072
1221
|
callbacks: {
|
|
1073
1222
|
onTermsClick,
|
|
1074
1223
|
onClick: render,
|
|
1224
|
+
onPaymentInfoClick,
|
|
1075
1225
|
},
|
|
1076
1226
|
};
|
|
1077
1227
|
}
|
|
1078
1228
|
|
|
1229
|
+
exports.COUNTRIES_NAMESPACE = COUNTRIES_NAMESPACE;
|
|
1230
|
+
exports.COUNTRIES_QUERY_NAMESPACE = COUNTRIES_QUERY_NAMESPACE;
|
|
1231
|
+
exports.CURRENCIES_NAMESPACE = CURRENCIES_NAMESPACE;
|
|
1232
|
+
exports.CURRENCIES_QUERY_NAMESPACE = CURRENCIES_QUERY_NAMESPACE;
|
|
1233
|
+
exports.FINANCE_NETWORK_SETTINGS_NAMESPACE = FINANCE_NETWORK_SETTINGS_NAMESPACE;
|
|
1234
|
+
exports.FORM_STEPS = FORM_STEPS;
|
|
1235
|
+
exports.GET_COUNTRIES = GET_COUNTRIES;
|
|
1236
|
+
exports.GET_CURRENCIES = GET_CURRENCIES;
|
|
1237
|
+
exports.GET_FINANCE_NETWORK_SETTINGS = GET_FINANCE_NETWORK_SETTINGS;
|
|
1238
|
+
exports.GET_USER = GET_USER;
|
|
1239
|
+
exports.SORTED_COUNTRIES_NAMESPACE = SORTED_COUNTRIES_NAMESPACE;
|
|
1240
|
+
exports.TAX_CONTEXT_NAMESPACE = TAX_CONTEXT_NAMESPACE;
|
|
1241
|
+
exports.TAX_FORM_CONTEXT_NAMESPACE = TAX_FORM_CONTEXT_NAMESPACE;
|
|
1079
1242
|
exports.TAX_FORM_UPDATED_EVENT_KEY = TAX_FORM_UPDATED_EVENT_KEY;
|
|
1243
|
+
exports.USER_FORM_CONTEXT_NAMESPACE = USER_FORM_CONTEXT_NAMESPACE;
|
|
1244
|
+
exports.USER_QUERY_NAMESPACE = USER_QUERY_NAMESPACE;
|
|
1080
1245
|
exports.VERIFF_COMPLETE_EVENT_KEY = VERIFF_COMPLETE_EVENT_KEY;
|
|
1081
1246
|
exports.getStatus = getStatus;
|
|
1082
1247
|
exports.usePayoutStatus = usePayoutStatus;
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
};
|
|
6
6
|
const defaultProps = {
|
|
7
7
|
states: {
|
|
8
|
-
|
|
8
|
+
error: "",
|
|
9
9
|
},
|
|
10
10
|
callbacks: {
|
|
11
11
|
handleEmailSubmit: () => console.log("Submit!"),
|
|
@@ -25,7 +25,7 @@ const defaultProps = {
|
|
|
25
25
|
const errorProps = {
|
|
26
26
|
...defaultProps,
|
|
27
27
|
states: {
|
|
28
|
-
|
|
28
|
+
error: "Something went wrong. Please try again.",
|
|
29
29
|
},
|
|
30
30
|
};
|
|
31
31
|
export const Default = () => {
|