@saasquatch/mint-components 1.15.5-5 → 1.15.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-28865623.js → ShadowViewAddon-e9dc77e3.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +234 -384
- package/dist/cjs/{sqm-base-registration-form-view-8029d30e.js → sqm-base-registration-form-view-66f99821.js} +9 -4
- package/dist/cjs/sqm-big-stat_43.cjs.entry.js +10 -150
- package/dist/cjs/sqm-header-logo.cjs.entry.js +1 -8
- package/dist/cjs/{sqm-invoice-table-view-3f60fba9.js → sqm-invoice-table-view-5c74607f.js} +0 -1
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +25 -18
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +8 -5
- package/dist/cjs/{usePayoutStatus-7892433f.js → usePayoutStatus-1ffd1cd4.js} +4 -176
- package/dist/collection/components/sqm-base-registration/BaseRegistrationForm.stories.js +2 -2
- package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +9 -4
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +1 -1
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +1 -1
- package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +3 -73
- package/dist/collection/components/sqm-input-field/sqm-input-field.js +1 -1
- package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +1 -1
- package/dist/collection/components/sqm-name-fields/NameFields.stories.js +2 -0
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +3 -3
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +31 -1
- package/dist/collection/components/sqm-name-fields/useNameFields.js +1 -0
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +2 -2
- package/dist/collection/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.js +1 -0
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +4 -4
- package/dist/collection/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.js +22 -15
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +0 -1
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +40 -46
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +2 -90
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +0 -353
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +5 -36
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +0 -300
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +2 -92
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +0 -300
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +12 -23
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +9 -92
- package/dist/esm/{ShadowViewAddon-f2176779.js → ShadowViewAddon-e0d5f1c9.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_17.entry.js +189 -339
- package/dist/esm/{sqm-base-registration-form-view-dafba287.js → sqm-base-registration-form-view-d81e316a.js} +9 -4
- package/dist/esm/sqm-big-stat_43.entry.js +11 -151
- package/dist/esm/sqm-header-logo.entry.js +1 -8
- package/dist/esm/{sqm-invoice-table-view-01453fa3.js → sqm-invoice-table-view-3491dd80.js} +0 -1
- package/dist/esm/sqm-portal-google-registration-form.entry.js +25 -18
- package/dist/esm/sqm-stencilbook.entry.js +8 -5
- package/dist/esm/{usePayoutStatus-c21ef382.js → usePayoutStatus-f09f2ec8.js} +6 -163
- package/dist/esm-es5/{ShadowViewAddon-f2176779.js → ShadowViewAddon-e0d5f1c9.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
- package/dist/esm-es5/sqm-base-registration-form-view-d81e316a.js +1 -0
- package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-3491dd80.js +1 -0
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/usePayoutStatus-f09f2ec8.js +6 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-15364635.entry.js +273 -0
- package/dist/mint-components/{p-4a731079.entry.js → p-1edebab1.entry.js} +2 -2
- package/dist/mint-components/p-2d8045c2.entry.js +220 -0
- package/dist/mint-components/p-3439af2f.system.entry.js +1 -0
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/{p-02832118.system.entry.js → p-3ac8613d.system.entry.js} +1 -1
- package/dist/mint-components/{p-c1b074b6.js → p-3b6dccec.js} +1 -1
- package/dist/mint-components/p-3df72337.js +46 -0
- package/dist/mint-components/p-43e274e9.entry.js +1 -0
- package/dist/mint-components/p-49932f12.system.js +1 -0
- package/dist/mint-components/p-5cda9960.system.entry.js +1 -0
- package/dist/mint-components/p-7dabdca6.system.entry.js +1 -0
- package/dist/mint-components/p-8db18561.system.entry.js +1 -0
- package/dist/mint-components/p-9308221f.js +1 -0
- package/dist/mint-components/p-bc021969.system.js +1 -0
- package/dist/mint-components/{p-0d939b73.system.js → p-d15b642f.system.js} +1 -1
- package/dist/mint-components/p-e8e48982.js +1 -0
- package/dist/mint-components/p-f82e3152.system.js +6 -0
- package/dist/mint-components/p-faba3198.entry.js +1 -0
- package/dist/types/components/sqm-base-registration/sqm-base-registration-form-view.d.ts +2 -1
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +1 -1
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +1 -1
- package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +1 -14
- package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +1 -1
- package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +1 -1
- package/dist/types/components/sqm-name-fields/sqm-name-fields-view.d.ts +1 -0
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +5 -0
- package/dist/types/components/sqm-name-fields/useNameFields.d.ts +1 -0
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +1 -1
- package/dist/types/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.d.ts +2 -1
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +0 -23
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +0 -16
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +0 -57
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -3
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +0 -48
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +0 -12
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +0 -48
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +0 -2
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +0 -1
- package/dist/types/components.d.ts +11 -331
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +2 -0
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/sqm-base-registration-form-view-dafba287.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-01453fa3.js +0 -1
- package/dist/esm-es5/usePayoutStatus-c21ef382.js +0 -6
- package/dist/mint-components/p-2651ef99.system.js +0 -1
- package/dist/mint-components/p-35701119.js +0 -1
- package/dist/mint-components/p-48552798.system.entry.js +0 -1
- package/dist/mint-components/p-498bbce7.system.entry.js +0 -1
- package/dist/mint-components/p-59fe6066.js +0 -1
- package/dist/mint-components/p-67035b70.system.entry.js +0 -1
- package/dist/mint-components/p-86a5db85.system.js +0 -1
- package/dist/mint-components/p-9c4f4cd6.entry.js +0 -1
- package/dist/mint-components/p-a3647f70.system.entry.js +0 -1
- package/dist/mint-components/p-aa595246.system.js +0 -6
- package/dist/mint-components/p-bdbf26da.entry.js +0 -273
- package/dist/mint-components/p-cb87eadd.entry.js +0 -1
- package/dist/mint-components/p-d289d251.entry.js +0 -109
- package/dist/mint-components/p-d9da598f.js +0 -157
|
@@ -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-1ffd1cd4.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,92 +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
|
-
button: (index.h(index.Fragment, null,
|
|
2491
|
-
index.h("sl-button", { disabled: states.loading, type: "default", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
|
|
2492
|
-
index.h("sl-button", { disabled: states.loading, type: "default", onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
2493
|
-
alertType: "warning",
|
|
2494
|
-
icon: "exclamation-triangle",
|
|
2495
|
-
class: sheet$2.classes.WarningAlertContainer,
|
|
2496
|
-
};
|
|
2497
2418
|
case "HOLD":
|
|
2498
2419
|
return {
|
|
2499
2420
|
header: text.holdHeader,
|
|
@@ -2527,8 +2448,6 @@ function PayoutStatusAlertView(props) {
|
|
|
2527
2448
|
case "VERIFICATION:REQUIRED":
|
|
2528
2449
|
return (index.h("sl-button", { type: "default", loading: states.veriffLoading, onClick: callbacks.onClick }, text.verificationRequiredButtonText));
|
|
2529
2450
|
default:
|
|
2530
|
-
if (alertDetails.button)
|
|
2531
|
-
return alertDetails.button;
|
|
2532
2451
|
return;
|
|
2533
2452
|
}
|
|
2534
2453
|
}
|
|
@@ -2555,15 +2474,6 @@ const PayoutStatusAlert = class {
|
|
|
2555
2474
|
* @uiName Info required alert header
|
|
2556
2475
|
*/
|
|
2557
2476
|
this.informationRequiredHeader = "Payout and tax information required";
|
|
2558
|
-
/**
|
|
2559
|
-
*
|
|
2560
|
-
* @uiName Edit payment info button label
|
|
2561
|
-
*/
|
|
2562
|
-
this.editPaymentInformationButton = "Edit Payout Information";
|
|
2563
|
-
/**
|
|
2564
|
-
* @uiName Submit new tax form button label
|
|
2565
|
-
*/
|
|
2566
|
-
this.newFormButton = "Submit new form";
|
|
2567
2477
|
/**
|
|
2568
2478
|
* @uiName Info required alert description
|
|
2569
2479
|
*/
|
|
@@ -2616,54 +2526,6 @@ const PayoutStatusAlert = class {
|
|
|
2616
2526
|
* @uiName Account review alert description
|
|
2617
2527
|
*/
|
|
2618
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}.";
|
|
2619
|
-
/**
|
|
2620
|
-
* @uiName Payment on hold alert header
|
|
2621
|
-
*/
|
|
2622
|
-
this.paymentHoldOnChangeHeader = "We are reviewing your new payout settings";
|
|
2623
|
-
/**
|
|
2624
|
-
* @uiName Payment on hold alert description
|
|
2625
|
-
*/
|
|
2626
|
-
this.paymentHoldOnChangeDescription = "Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.";
|
|
2627
|
-
/**
|
|
2628
|
-
* @uiName Beneficiary name invalid alert header
|
|
2629
|
-
*/
|
|
2630
|
-
this.beneficiaryNameInvalidHeader = "Your payment information does not match your tax form";
|
|
2631
|
-
/**
|
|
2632
|
-
* @uiName Beneficiary name invalid description
|
|
2633
|
-
*/
|
|
2634
|
-
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.";
|
|
2635
|
-
/**
|
|
2636
|
-
* @uiName Beneficiary name mismatch alert header
|
|
2637
|
-
*/
|
|
2638
|
-
this.beneficiaryNameMismatchHeader = "Your payment information does not match your tax form";
|
|
2639
|
-
/**
|
|
2640
|
-
* @uiName Beneficiary name mismatch alert description
|
|
2641
|
-
*/
|
|
2642
|
-
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.";
|
|
2643
|
-
/**
|
|
2644
|
-
* @uiName Bank name mismatch alert header
|
|
2645
|
-
*/
|
|
2646
|
-
this.bankTaxNameMismatchHeader = "Your payment information does not match your tax form";
|
|
2647
|
-
/**
|
|
2648
|
-
* @uiName Bank name mismatch alert description
|
|
2649
|
-
*/
|
|
2650
|
-
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.";
|
|
2651
|
-
/**
|
|
2652
|
-
* @uiName Withdrawal settings invalid alert header
|
|
2653
|
-
*/
|
|
2654
|
-
this.withdrawalSettingsInvalidHeader = "Your payment information includes invalid characters";
|
|
2655
|
-
/**
|
|
2656
|
-
* @uiName Withdrawal settings invalid alert description
|
|
2657
|
-
*/
|
|
2658
|
-
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.";
|
|
2659
|
-
/**
|
|
2660
|
-
* @uiName Payment returned alert header
|
|
2661
|
-
*/
|
|
2662
|
-
this.paymentReturnedHeader = "Payout unsuccessful";
|
|
2663
|
-
/**
|
|
2664
|
-
* @uiName Payment returned alert description
|
|
2665
|
-
*/
|
|
2666
|
-
this.paymentReturnedDescription = "Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.";
|
|
2667
2529
|
/**
|
|
2668
2530
|
* @uiName W-9 payment threshold alert header
|
|
2669
2531
|
*/
|
|
@@ -2730,8 +2592,6 @@ function useDemoPayoutStatusAlert(props) {
|
|
|
2730
2592
|
callbacks: {
|
|
2731
2593
|
onTermsClick: () => { },
|
|
2732
2594
|
onClick: () => console.log("show"),
|
|
2733
|
-
onPaymentInfoClick: () => { },
|
|
2734
|
-
onNewFormClick: () => { },
|
|
2735
2595
|
},
|
|
2736
2596
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2737
2597
|
}
|
|
@@ -8,10 +8,6 @@ const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
|
|
|
8
8
|
const HeroImage = class {
|
|
9
9
|
constructor(hostRef) {
|
|
10
10
|
index.registerInstance(this, hostRef);
|
|
11
|
-
/**
|
|
12
|
-
* @uiName Logo text
|
|
13
|
-
*/
|
|
14
|
-
this.logoTextSize = "24px";
|
|
15
11
|
/**
|
|
16
12
|
* Page participants are navigated to after clicking the header logo.
|
|
17
13
|
*
|
|
@@ -27,10 +23,7 @@ const HeroImage = class {
|
|
|
27
23
|
}
|
|
28
24
|
disconnectedCallback() { }
|
|
29
25
|
render() {
|
|
30
|
-
return (index.h(index.Host, null, index.h("a", { href: this.nextPage, part: "sqm-link" },
|
|
31
|
-
fontSize: this.logoTextSize,
|
|
32
|
-
color: this.logoTextColor || "inherit",
|
|
33
|
-
} }, this.logoText)))));
|
|
26
|
+
return (index.h(index.Host, null, index.h("a", { href: this.nextPage, part: "sqm-link" }, index.h("img", { style: { height: `${this === null || this === void 0 ? void 0 : this.height}px` }, src: this === null || this === void 0 ? void 0 : this.imageUrl }))));
|
|
34
27
|
}
|
|
35
28
|
};
|
|
36
29
|
|
|
@@ -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,
|