@saasquatch/mint-components 1.15.5-2 → 1.15.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-28865623.js → ShadowViewAddon-e9dc77e3.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +234 -377
- package/dist/cjs/{sqm-base-registration-form-view-8029d30e.js → sqm-base-registration-form-view-66f99821.js} +9 -4
- package/dist/cjs/sqm-big-stat_43.cjs.entry.js +10 -143
- package/dist/cjs/{sqm-invoice-table-view-3f60fba9.js → sqm-invoice-table-view-5c74607f.js} +0 -1
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +25 -18
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +8 -5
- package/dist/cjs/{usePayoutStatus-fc4e609e.js → usePayoutStatus-733ef29a.js} +2 -167
- package/dist/collection/components/sqm-base-registration/BaseRegistrationForm.stories.js +2 -2
- package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +9 -4
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +1 -1
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +1 -1
- package/dist/collection/components/sqm-input-field/sqm-input-field.js +1 -1
- package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +1 -1
- package/dist/collection/components/sqm-name-fields/NameFields.stories.js +2 -0
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +3 -3
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +31 -1
- package/dist/collection/components/sqm-name-fields/useNameFields.js +1 -0
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +2 -2
- package/dist/collection/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.js +1 -0
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +4 -4
- package/dist/collection/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.js +22 -15
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +0 -1
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +40 -47
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +1 -87
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +0 -327
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +3 -27
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +0 -300
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +1 -85
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +0 -300
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +12 -23
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +9 -90
- package/dist/esm/{ShadowViewAddon-f2176779.js → ShadowViewAddon-e0d5f1c9.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_17.entry.js +188 -331
- package/dist/esm/{sqm-base-registration-form-view-dafba287.js → sqm-base-registration-form-view-d81e316a.js} +9 -4
- package/dist/esm/sqm-big-stat_43.entry.js +10 -143
- package/dist/esm/{sqm-invoice-table-view-01453fa3.js → sqm-invoice-table-view-3491dd80.js} +0 -1
- package/dist/esm/sqm-portal-google-registration-form.entry.js +25 -18
- package/dist/esm/sqm-stencilbook.entry.js +8 -5
- package/dist/esm/{usePayoutStatus-b4bdbfa7.js → usePayoutStatus-b89e8c49.js} +4 -154
- package/dist/esm-es5/{ShadowViewAddon-f2176779.js → ShadowViewAddon-e0d5f1c9.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
- package/dist/esm-es5/sqm-base-registration-form-view-d81e316a.js +1 -0
- package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-3491dd80.js +1 -0
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/usePayoutStatus-b89e8c49.js +6 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-021b0540.js +46 -0
- package/dist/mint-components/{p-4a731079.entry.js → p-1edebab1.entry.js} +2 -2
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/{p-02832118.system.entry.js → p-3ac8613d.system.entry.js} +1 -1
- package/dist/mint-components/{p-c1b074b6.js → p-3b6dccec.js} +1 -1
- package/dist/mint-components/p-3d73cd84.entry.js +220 -0
- package/dist/mint-components/p-43e274e9.entry.js +1 -0
- package/dist/mint-components/p-49932f12.system.js +1 -0
- package/dist/mint-components/p-8db18561.system.entry.js +1 -0
- package/dist/mint-components/p-9308221f.js +1 -0
- package/dist/mint-components/p-959c42b2.system.entry.js +1 -0
- package/dist/mint-components/p-a6494752.system.js +6 -0
- package/dist/mint-components/p-bc021969.system.js +1 -0
- package/dist/mint-components/p-c78e6066.entry.js +273 -0
- package/dist/mint-components/{p-0d939b73.system.js → p-d15b642f.system.js} +1 -1
- package/dist/mint-components/p-e64e8354.system.entry.js +1 -0
- package/dist/mint-components/p-e8e48982.js +1 -0
- package/dist/types/components/sqm-base-registration/sqm-base-registration-form-view.d.ts +2 -1
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +1 -1
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +1 -1
- package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +1 -1
- package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +1 -1
- package/dist/types/components/sqm-name-fields/sqm-name-fields-view.d.ts +1 -0
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +5 -0
- package/dist/types/components/sqm-name-fields/useNameFields.d.ts +1 -0
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +1 -1
- package/dist/types/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.d.ts +2 -1
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +0 -31
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +0 -14
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +0 -53
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -2
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +0 -48
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +0 -12
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +0 -48
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +0 -2
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +0 -1
- package/dist/types/components.d.ts +10 -296
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +2 -0
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/sqm-base-registration-form-view-dafba287.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-01453fa3.js +0 -1
- package/dist/esm-es5/usePayoutStatus-b4bdbfa7.js +0 -6
- package/dist/mint-components/p-2651ef99.system.js +0 -1
- package/dist/mint-components/p-35701119.js +0 -1
- package/dist/mint-components/p-59fe6066.js +0 -1
- package/dist/mint-components/p-86a5db85.system.js +0 -1
- package/dist/mint-components/p-93db61eb.system.js +0 -6
- package/dist/mint-components/p-9c4f4cd6.entry.js +0 -1
- package/dist/mint-components/p-a3647f70.system.entry.js +0 -1
- package/dist/mint-components/p-a4f494ee.system.entry.js +0 -1
- package/dist/mint-components/p-ba14b5f7.system.entry.js +0 -1
- package/dist/mint-components/p-d0b404d5.entry.js +0 -109
- package/dist/mint-components/p-e3deed72.entry.js +0 -273
- package/dist/mint-components/p-fde41ad1.js +0 -157
|
@@ -40,6 +40,7 @@ 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;
|
|
43
44
|
const { states, content, callbacks } = props;
|
|
44
45
|
return (index.h("div", { class: sheet.classes.Wrapper },
|
|
45
46
|
index.h("style", { type: "text/css" },
|
|
@@ -47,10 +48,8 @@ function BaseRegistrationFormView(props) {
|
|
|
47
48
|
styleString),
|
|
48
49
|
index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
|
|
49
50
|
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))),
|
|
52
51
|
content.formData,
|
|
53
|
-
index.h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", required: true, validationError: ({ value }) => {
|
|
52
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", required: true, validationError: ({ value }) => {
|
|
54
53
|
if (!value) {
|
|
55
54
|
return content.requiredFieldErrorMessage;
|
|
56
55
|
}
|
|
@@ -58,7 +57,13 @@ function BaseRegistrationFormView(props) {
|
|
|
58
57
|
if (!value.includes("@")) {
|
|
59
58
|
return content.invalidEmailErrorMessage;
|
|
60
59
|
}
|
|
61
|
-
} })
|
|
60
|
+
} }, (((_a = states === null || states === void 0 ? void 0 : states.validationErrors) === null || _a === void 0 ? void 0 : _a.email) ? {
|
|
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,
|
|
62
67
|
index.h("div", { class: sheet.classes.ButtonsContainer },
|
|
63
68
|
index.h("sl-button", { submit: true, exportparts: "base: primarybutton-base", type: "primary", style: { margin: "0" } }, content.submitLabel || "Register"),
|
|
64
69
|
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-e9dc77e3.js');
|
|
28
28
|
require('./sqm-portal-container-view-4f15143a.js');
|
|
29
|
-
const usePayoutStatus = require('./usePayoutStatus-
|
|
29
|
+
const usePayoutStatus = require('./usePayoutStatus-733ef29a.js');
|
|
30
30
|
|
|
31
31
|
const BigStat = class {
|
|
32
32
|
constructor(hostRef) {
|
|
@@ -2029,6 +2029,7 @@ 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,
|
|
2032
2033
|
registrationFormState,
|
|
2033
2034
|
content: {
|
|
2034
2035
|
lastNameLabel: props.lastNameLabel,
|
|
@@ -2050,6 +2051,11 @@ const NameFields = class {
|
|
|
2050
2051
|
* @uiName Last name label
|
|
2051
2052
|
*/
|
|
2052
2053
|
this.lastNameLabel = "Last Name";
|
|
2054
|
+
/**
|
|
2055
|
+
* @uiName Optional
|
|
2056
|
+
* @uiWidget
|
|
2057
|
+
*/
|
|
2058
|
+
this.optional = false;
|
|
2053
2059
|
stencilHooks_module.h$1(this);
|
|
2054
2060
|
}
|
|
2055
2061
|
disconnectedCallback() { }
|
|
@@ -2061,6 +2067,7 @@ const NameFields = class {
|
|
|
2061
2067
|
function useNameFieldsDemo(props) {
|
|
2062
2068
|
return cjs.cjs({
|
|
2063
2069
|
states: {
|
|
2070
|
+
optional: props.optional,
|
|
2064
2071
|
validationErrors: [],
|
|
2065
2072
|
content: {
|
|
2066
2073
|
firstNameLabel: props.firstNameLabel,
|
|
@@ -2394,7 +2401,7 @@ function PayoutStatusAlertView(props) {
|
|
|
2394
2401
|
class: sheet$2.classes.WarningAlertContainer,
|
|
2395
2402
|
};
|
|
2396
2403
|
}
|
|
2397
|
-
case "
|
|
2404
|
+
case "ACCOUNT_REVIEW":
|
|
2398
2405
|
return {
|
|
2399
2406
|
header: text.accountReviewHeader,
|
|
2400
2407
|
description: global.intl.formatMessage({
|
|
@@ -2408,90 +2415,6 @@ function PayoutStatusAlertView(props) {
|
|
|
2408
2415
|
icon: "exclamation-triangle",
|
|
2409
2416
|
class: sheet$2.classes.WarningAlertContainer,
|
|
2410
2417
|
};
|
|
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
|
-
};
|
|
2495
2418
|
case "HOLD":
|
|
2496
2419
|
return {
|
|
2497
2420
|
header: text.holdHeader,
|
|
@@ -2525,8 +2448,6 @@ function PayoutStatusAlertView(props) {
|
|
|
2525
2448
|
case "VERIFICATION:REQUIRED":
|
|
2526
2449
|
return (index.h("sl-button", { type: "default", loading: states.veriffLoading, onClick: callbacks.onClick }, text.verificationRequiredButtonText));
|
|
2527
2450
|
default:
|
|
2528
|
-
if (alertDetails.buttonText)
|
|
2529
|
-
return (index.h("sl-button", { type: "default", onClick: callbacks.onPaymentInfoClick }, alertDetails.buttonText));
|
|
2530
2451
|
return;
|
|
2531
2452
|
}
|
|
2532
2453
|
}
|
|
@@ -2553,11 +2474,6 @@ const PayoutStatusAlert = class {
|
|
|
2553
2474
|
* @uiName Info required alert header
|
|
2554
2475
|
*/
|
|
2555
2476
|
this.informationRequiredHeader = "Payout and tax information required";
|
|
2556
|
-
/**
|
|
2557
|
-
*
|
|
2558
|
-
* @uiName Edit payment info button label
|
|
2559
|
-
*/
|
|
2560
|
-
this.editPaymentInformationButton = "Edit Payout Information";
|
|
2561
2477
|
/**
|
|
2562
2478
|
* @uiName Info required alert description
|
|
2563
2479
|
*/
|
|
@@ -2610,54 +2526,6 @@ const PayoutStatusAlert = class {
|
|
|
2610
2526
|
* @uiName Account review alert description
|
|
2611
2527
|
*/
|
|
2612
2528
|
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.";
|
|
2661
2529
|
/**
|
|
2662
2530
|
* @uiName W-9 payment threshold alert header
|
|
2663
2531
|
*/
|
|
@@ -2724,7 +2592,6 @@ function useDemoPayoutStatusAlert(props) {
|
|
|
2724
2592
|
callbacks: {
|
|
2725
2593
|
onTermsClick: () => { },
|
|
2726
2594
|
onClick: () => console.log("show"),
|
|
2727
|
-
onPaymentInfoClick: () => { },
|
|
2728
2595
|
},
|
|
2729
2596
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2730
2597
|
}
|
|
@@ -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-66f99821.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,7 +75,6 @@ function jwtDecode(token, options) {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
function usePortalGoogleRegistrationForm(props) {
|
|
78
|
-
const [emailValidationError, setEmailValidationError] = stencilHooks_module.useState(null);
|
|
79
78
|
const [registrationFormState, setRegistrationFormState] = useRegistrationFormState.useRegistrationForm();
|
|
80
79
|
const [showRegistrationForm, setShowRegistrationForm] = stencilHooks_module.useState({
|
|
81
80
|
mode: "base",
|
|
@@ -83,33 +82,40 @@ function usePortalGoogleRegistrationForm(props) {
|
|
|
83
82
|
const handleEmailSubmit = async (event) => {
|
|
84
83
|
const formControls = event.target.getFormControls();
|
|
85
84
|
let formData = {};
|
|
86
|
-
let
|
|
85
|
+
let validationErrors = {};
|
|
87
86
|
formControls.forEach((control) => {
|
|
88
87
|
if (!control.name)
|
|
89
88
|
return;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
89
|
+
const key = control.name;
|
|
90
|
+
const value = control.value;
|
|
91
|
+
jsonpointer.jsonpointer.set(formData, key, value);
|
|
92
|
+
if (control.required && !value) {
|
|
93
|
+
jsonpointer.jsonpointer.set(validationErrors, key, props.requiredFieldErrorMessage);
|
|
94
|
+
}
|
|
96
95
|
if (typeof control.validationError === "function") {
|
|
97
96
|
const validate = control.validationError;
|
|
98
97
|
const validationError = validate({
|
|
99
98
|
control,
|
|
100
|
-
key
|
|
101
|
-
value
|
|
99
|
+
key,
|
|
100
|
+
value,
|
|
102
101
|
});
|
|
103
102
|
if (validationError)
|
|
104
|
-
|
|
103
|
+
jsonpointer.jsonpointer.set(validationErrors, key, validationError);
|
|
105
104
|
}
|
|
106
105
|
});
|
|
107
|
-
if (
|
|
108
|
-
|
|
106
|
+
if (Object.keys(validationErrors).length) {
|
|
107
|
+
// early return for validation errors
|
|
108
|
+
setRegistrationFormState({
|
|
109
|
+
...registrationFormState,
|
|
110
|
+
loading: false,
|
|
111
|
+
error: "",
|
|
112
|
+
validationErrors,
|
|
113
|
+
});
|
|
109
114
|
return;
|
|
110
115
|
}
|
|
111
116
|
setRegistrationFormState({
|
|
112
117
|
...registrationFormState,
|
|
118
|
+
validationErrors: {},
|
|
113
119
|
initialData: {
|
|
114
120
|
...registrationFormState === null || registrationFormState === void 0 ? void 0 : registrationFormState.initialData,
|
|
115
121
|
...formData,
|
|
@@ -139,8 +145,9 @@ function usePortalGoogleRegistrationForm(props) {
|
|
|
139
145
|
}
|
|
140
146
|
};
|
|
141
147
|
return {
|
|
148
|
+
registrationFormState,
|
|
142
149
|
showRegistrationForm,
|
|
143
|
-
|
|
150
|
+
validationErrors: registrationFormState.validationErrors,
|
|
144
151
|
handleGoogleInit,
|
|
145
152
|
handleEmailSubmit,
|
|
146
153
|
};
|
|
@@ -296,7 +303,7 @@ const PortalGoogleRegistrationForm = class {
|
|
|
296
303
|
};
|
|
297
304
|
const sheet = JSS.createStyleSheet(styles);
|
|
298
305
|
const styleString = sheet.toString();
|
|
299
|
-
const { handleGoogleInit, handleEmailSubmit, showRegistrationForm,
|
|
306
|
+
const { handleGoogleInit, handleEmailSubmit, showRegistrationForm, validationErrors, } = index_module.isDemo() ? useGoogleDemo(this) : usePortalGoogleRegistrationForm(this);
|
|
300
307
|
const content = {
|
|
301
308
|
formData: index.h("slot", { name: "formData" }),
|
|
302
309
|
googleButton: (index.h("sqm-google-sign-in", { text: this.googleButtonText, onInitComplete: handleGoogleInit })),
|
|
@@ -321,7 +328,7 @@ const PortalGoogleRegistrationForm = class {
|
|
|
321
328
|
};
|
|
322
329
|
if (showRegistrationForm.mode === "base") {
|
|
323
330
|
return (index.h(sqmBaseRegistrationFormView.BaseRegistrationFormView, { states: {
|
|
324
|
-
|
|
331
|
+
validationErrors,
|
|
325
332
|
}, callbacks: { handleEmailSubmit }, content: content }));
|
|
326
333
|
}
|
|
327
334
|
return (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, { states: {
|
|
@@ -364,7 +371,7 @@ function useGoogleDemo(props) {
|
|
|
364
371
|
mode: "base",
|
|
365
372
|
});
|
|
366
373
|
return cjs.cjs({
|
|
367
|
-
|
|
374
|
+
validationErrors: {},
|
|
368
375
|
handleEmailSubmit: () => setShowRegistrationForm({ mode: "manual" }),
|
|
369
376
|
showRegistrationForm,
|
|
370
377
|
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-66f99821.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-e9dc77e3.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-5c74607f.js');
|
|
42
42
|
const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-89308aab.js');
|
|
43
43
|
|
|
44
44
|
/**
|
|
@@ -10833,6 +10833,7 @@ const NameFields_stories = {
|
|
|
10833
10833
|
};
|
|
10834
10834
|
const props$1 = {
|
|
10835
10835
|
states: {
|
|
10836
|
+
optional: false,
|
|
10836
10837
|
registrationFormState: {
|
|
10837
10838
|
validationErrors: undefined,
|
|
10838
10839
|
},
|
|
@@ -10844,6 +10845,7 @@ const props$1 = {
|
|
|
10844
10845
|
};
|
|
10845
10846
|
const errorProps$9 = {
|
|
10846
10847
|
states: {
|
|
10848
|
+
optional: false,
|
|
10847
10849
|
registrationFormState: {
|
|
10848
10850
|
validationErrors: {
|
|
10849
10851
|
firstName: "Cannot be empty",
|
|
@@ -15640,7 +15642,7 @@ const BaseRegistrationForm_stories = {
|
|
|
15640
15642
|
};
|
|
15641
15643
|
const defaultProps$q = {
|
|
15642
15644
|
states: {
|
|
15643
|
-
|
|
15645
|
+
validationErrors: {},
|
|
15644
15646
|
},
|
|
15645
15647
|
callbacks: {
|
|
15646
15648
|
handleEmailSubmit: () => console.log("Submit!"),
|
|
@@ -15660,7 +15662,7 @@ const defaultProps$q = {
|
|
|
15660
15662
|
const errorProps$a = {
|
|
15661
15663
|
...defaultProps$q,
|
|
15662
15664
|
states: {
|
|
15663
|
-
error: "Something went wrong. Please try again.",
|
|
15665
|
+
validationErrors: { error: "Something went wrong. Please try again." },
|
|
15664
15666
|
},
|
|
15665
15667
|
};
|
|
15666
15668
|
const Default$o = () => {
|
|
@@ -15707,6 +15709,7 @@ const defaultProps$r = {
|
|
|
15707
15709
|
formData: (index.h("div", null,
|
|
15708
15710
|
" ",
|
|
15709
15711
|
index.h(ShadowViewAddon.NameFieldsView, { states: {
|
|
15712
|
+
optional: false,
|
|
15710
15713
|
registrationFormState: {
|
|
15711
15714
|
validationErrors: undefined,
|
|
15712
15715
|
disabled: true,
|
|
@@ -5,133 +5,6 @@ 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
|
-
|
|
135
8
|
var toArray = function toArray(a) {
|
|
136
9
|
var ret = Array(a.length);
|
|
137
10
|
for (var i = 0; i < a.length; ++i) {
|
|
@@ -1129,7 +1002,7 @@ const GET_TAX_SETTING = index_module.dist.gql `
|
|
|
1129
1002
|
}
|
|
1130
1003
|
`;
|
|
1131
1004
|
function getStatus(data) {
|
|
1132
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q
|
|
1005
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
1133
1006
|
const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
|
|
1134
1007
|
const hasTransferredReward = (_e = (_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.rewards) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.find((reward) => reward.statuses.includes("REDEEMED") &&
|
|
1135
1008
|
reward.partnerFundsTransfer.status === "TRANSFERRED");
|
|
@@ -1147,19 +1020,7 @@ function getStatus(data) {
|
|
|
1147
1020
|
if ((_p = account.holdReasons) === null || _p === void 0 ? void 0 : _p.includes("IDV_CHECK_FAILED_INTERNAL"))
|
|
1148
1021
|
return "VERIFICATION:FAILED";
|
|
1149
1022
|
if (((_q = account.holdReasons) === null || _q === void 0 ? void 0 : _q.includes("NEW_PAYEE_REVIEW")) && hasTransferredReward)
|
|
1150
|
-
return "
|
|
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";
|
|
1023
|
+
return "ACCOUNT_REVIEW";
|
|
1163
1024
|
if (account.hold)
|
|
1164
1025
|
return "HOLD";
|
|
1165
1026
|
return "DONE";
|
|
@@ -1171,8 +1032,6 @@ function usePayoutStatus(props) {
|
|
|
1171
1032
|
const { data: taxSettingRes } = index_module.wn(GET_TAX_SETTING, {});
|
|
1172
1033
|
const { render, loading: veriffLoading, errors: veriffErrors, } = useVeriffApp();
|
|
1173
1034
|
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);
|
|
1176
1035
|
const enforceUsTaxComplianceOption = (_a = taxSettingRes === null || taxSettingRes === void 0 ? void 0 : taxSettingRes.tenantSettings) === null || _a === void 0 ? void 0 : _a.enforceUsTaxCompliance;
|
|
1177
1036
|
stencilHooks_module.useEffect(() => {
|
|
1178
1037
|
if (!data)
|
|
@@ -1200,14 +1059,6 @@ function usePayoutStatus(props) {
|
|
|
1200
1059
|
url += "#3";
|
|
1201
1060
|
window.history.pushState(null, "", url);
|
|
1202
1061
|
};
|
|
1203
|
-
const onPaymentInfoClick = () => {
|
|
1204
|
-
setContext({
|
|
1205
|
-
overrideNextStep: "/dashboard",
|
|
1206
|
-
overrideBackStep: "/dashboard",
|
|
1207
|
-
hideSteps: true,
|
|
1208
|
-
});
|
|
1209
|
-
setStep("/4");
|
|
1210
|
-
};
|
|
1211
1062
|
return {
|
|
1212
1063
|
states: {
|
|
1213
1064
|
loading,
|
|
@@ -1221,27 +1072,11 @@ function usePayoutStatus(props) {
|
|
|
1221
1072
|
callbacks: {
|
|
1222
1073
|
onTermsClick,
|
|
1223
1074
|
onClick: render,
|
|
1224
|
-
onPaymentInfoClick,
|
|
1225
1075
|
},
|
|
1226
1076
|
};
|
|
1227
1077
|
}
|
|
1228
1078
|
|
|
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;
|
|
1242
1079
|
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;
|
|
1245
1080
|
exports.VERIFF_COMPLETE_EVENT_KEY = VERIFF_COMPLETE_EVENT_KEY;
|
|
1246
1081
|
exports.getStatus = getStatus;
|
|
1247
1082
|
exports.usePayoutStatus = usePayoutStatus;
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
};
|
|
6
6
|
const defaultProps = {
|
|
7
7
|
states: {
|
|
8
|
-
|
|
8
|
+
validationErrors: {},
|
|
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
|
-
error: "Something went wrong. Please try again.",
|
|
28
|
+
validationErrors: { error: "Something went wrong. Please try again." },
|
|
29
29
|
},
|
|
30
30
|
};
|
|
31
31
|
export const Default = () => {
|