@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
|
@@ -38,6 +38,7 @@ sqm-portal-register {
|
|
|
38
38
|
const sheet = createStyleSheet(style);
|
|
39
39
|
const styleString = sheet.toString();
|
|
40
40
|
function BaseRegistrationFormView(props) {
|
|
41
|
+
var _a, _b;
|
|
41
42
|
const { states, content, callbacks } = props;
|
|
42
43
|
return (h("div", { class: sheet.classes.Wrapper },
|
|
43
44
|
h("style", { type: "text/css" },
|
|
@@ -45,10 +46,8 @@ function BaseRegistrationFormView(props) {
|
|
|
45
46
|
styleString),
|
|
46
47
|
h(TextSpanView, { type: "h3" }, content.pageLabel),
|
|
47
48
|
h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.handleEmailSubmit, novalidate: true },
|
|
48
|
-
states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
49
|
-
h("div", { part: "erroralert-text" }, props.states.error))),
|
|
50
49
|
content.formData,
|
|
51
|
-
h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", required: true, validationError: ({ value }) => {
|
|
50
|
+
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", required: true, validationError: ({ value }) => {
|
|
52
51
|
if (!value) {
|
|
53
52
|
return content.requiredFieldErrorMessage;
|
|
54
53
|
}
|
|
@@ -56,7 +55,13 @@ function BaseRegistrationFormView(props) {
|
|
|
56
55
|
if (!value.includes("@")) {
|
|
57
56
|
return content.invalidEmailErrorMessage;
|
|
58
57
|
}
|
|
59
|
-
} })
|
|
58
|
+
} }, (((_a = states === null || states === void 0 ? void 0 : states.validationErrors) === null || _a === void 0 ? void 0 : _a.email) ? {
|
|
59
|
+
class: sheet.classes.ErrorStyle,
|
|
60
|
+
helpText: ((_b = states === null || states === void 0 ? void 0 : states.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ||
|
|
61
|
+
content.requiredFieldErrorMessage,
|
|
62
|
+
}
|
|
63
|
+
: []))),
|
|
64
|
+
content.terms,
|
|
60
65
|
h("div", { class: sheet.classes.ButtonsContainer },
|
|
61
66
|
h("sl-button", { submit: true, exportparts: "base: primarybutton-base", type: "primary", style: { margin: "0" } }, content.submitLabel || "Register"),
|
|
62
67
|
h("sl-menu-divider", { style: { margin: "0" } }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1, c as Host
|
|
1
|
+
import { r as registerInstance, h as h$1, c as Host } from './index-91e7729f.js';
|
|
2
2
|
import { n as h, f as useEffect, i as d, k as useState, m as useRef, u as useMemo, b as browser, j as useReducer } from './stencil-hooks.module-4bc38af4.js';
|
|
3
3
|
import { i as intl } from './global-be1f9992.js';
|
|
4
4
|
import { i as isDemo, _, d as dist, J, H, $ as $e, w as wn, B, u as useCallback, L, y as yn, j as jn, r as Ue, V as Ve, Q as Qe, k as kn } from './index.module-89a79f66.js';
|
|
@@ -20,9 +20,9 @@ import { P as PortalLoginView } from './sqm-portal-login-view-7e49609a.js';
|
|
|
20
20
|
import { u as usePortalLogin } from './usePortalLogin-ef647a50.js';
|
|
21
21
|
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
22
22
|
import { i as isEmpty } from './utilities-5b0ca040.js';
|
|
23
|
-
import { b as useDemoBigStat, W as useBigStat, B as BigStatView, U as autoColorScaleCss, J as CardFeedView, i as CheckboxFieldView, K as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, Q as LeadDropdownFieldView, O as LeadFormView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, C as ChangeMarktingView, d as PortalChangePasswordView, h as PortalFooterView, P as PortalFrameView, e as PortalRegisterView, R as ReferralIframeView, Y as demoRewardExchange, j as RewardExchangeView, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-
|
|
23
|
+
import { b as useDemoBigStat, W as useBigStat, B as BigStatView, U as autoColorScaleCss, J as CardFeedView, i as CheckboxFieldView, K as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, Q as LeadDropdownFieldView, O as LeadFormView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, C as ChangeMarktingView, d as PortalChangePasswordView, h as PortalFooterView, P as PortalFrameView, e as PortalRegisterView, R as ReferralIframeView, Y as demoRewardExchange, j as RewardExchangeView, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-e0d5f1c9.js';
|
|
24
24
|
import './sqm-portal-container-view-1683ae32.js';
|
|
25
|
-
import { u as usePayoutStatus } from './usePayoutStatus-
|
|
25
|
+
import { u as usePayoutStatus } from './usePayoutStatus-f09f2ec8.js';
|
|
26
26
|
|
|
27
27
|
const BigStat = class {
|
|
28
28
|
constructor(hostRef) {
|
|
@@ -2025,6 +2025,7 @@ function useNameFields(props) {
|
|
|
2025
2025
|
const registrationFormState = d(REGISTRATION_FORM_STATE_CONTEXT);
|
|
2026
2026
|
return {
|
|
2027
2027
|
states: {
|
|
2028
|
+
optional: props.optional,
|
|
2028
2029
|
registrationFormState,
|
|
2029
2030
|
content: {
|
|
2030
2031
|
lastNameLabel: props.lastNameLabel,
|
|
@@ -2046,6 +2047,11 @@ const NameFields = class {
|
|
|
2046
2047
|
* @uiName Last name label
|
|
2047
2048
|
*/
|
|
2048
2049
|
this.lastNameLabel = "Last Name";
|
|
2050
|
+
/**
|
|
2051
|
+
* @uiName Optional
|
|
2052
|
+
* @uiWidget
|
|
2053
|
+
*/
|
|
2054
|
+
this.optional = false;
|
|
2049
2055
|
h(this);
|
|
2050
2056
|
}
|
|
2051
2057
|
disconnectedCallback() { }
|
|
@@ -2057,6 +2063,7 @@ const NameFields = class {
|
|
|
2057
2063
|
function useNameFieldsDemo(props) {
|
|
2058
2064
|
return cjs({
|
|
2059
2065
|
states: {
|
|
2066
|
+
optional: props.optional,
|
|
2060
2067
|
validationErrors: [],
|
|
2061
2068
|
content: {
|
|
2062
2069
|
firstNameLabel: props.firstNameLabel,
|
|
@@ -2390,7 +2397,7 @@ function PayoutStatusAlertView(props) {
|
|
|
2390
2397
|
class: sheet$2.classes.WarningAlertContainer,
|
|
2391
2398
|
};
|
|
2392
2399
|
}
|
|
2393
|
-
case "
|
|
2400
|
+
case "ACCOUNT_REVIEW":
|
|
2394
2401
|
return {
|
|
2395
2402
|
header: text.accountReviewHeader,
|
|
2396
2403
|
description: intl.formatMessage({
|
|
@@ -2404,92 +2411,6 @@ function PayoutStatusAlertView(props) {
|
|
|
2404
2411
|
icon: "exclamation-triangle",
|
|
2405
2412
|
class: sheet$2.classes.WarningAlertContainer,
|
|
2406
2413
|
};
|
|
2407
|
-
case "PAYMENT_HOLD_ON_CHANGE":
|
|
2408
|
-
return {
|
|
2409
|
-
header: text.paymentHoldOnChangeHeader,
|
|
2410
|
-
description: intl.formatMessage({
|
|
2411
|
-
id: "accountReviewDescription",
|
|
2412
|
-
defaultMessage: text.paymentHoldOnChangeDescription,
|
|
2413
|
-
}, {
|
|
2414
|
-
supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2415
|
-
}),
|
|
2416
|
-
buttonText: null,
|
|
2417
|
-
alertType: "warning",
|
|
2418
|
-
icon: "exclamation-triangle",
|
|
2419
|
-
class: sheet$2.classes.WarningAlertContainer,
|
|
2420
|
-
};
|
|
2421
|
-
case "BENEFICIARY_NAME_INVALID":
|
|
2422
|
-
return {
|
|
2423
|
-
header: text.beneficiaryNameInvalidHeader,
|
|
2424
|
-
description: intl.formatMessage({
|
|
2425
|
-
id: "accountReviewDescription",
|
|
2426
|
-
defaultMessage: text.beneficiaryNameInvalidDescription,
|
|
2427
|
-
}, {
|
|
2428
|
-
supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2429
|
-
}),
|
|
2430
|
-
buttonText: text.editPaymentInformationButton,
|
|
2431
|
-
alertType: "warning",
|
|
2432
|
-
icon: "exclamation-triangle",
|
|
2433
|
-
class: sheet$2.classes.WarningAlertContainer,
|
|
2434
|
-
};
|
|
2435
|
-
case "BENEFICIARY_NAME_MISMATCH":
|
|
2436
|
-
return {
|
|
2437
|
-
header: text.beneficiaryNameMismatchHeader,
|
|
2438
|
-
description: intl.formatMessage({
|
|
2439
|
-
id: "accountReviewDescription",
|
|
2440
|
-
defaultMessage: text.beneficiaryNameMismatchDescription,
|
|
2441
|
-
}, {
|
|
2442
|
-
supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2443
|
-
}),
|
|
2444
|
-
buttonText: text.editPaymentInformationButton,
|
|
2445
|
-
alertType: "warning",
|
|
2446
|
-
icon: "exclamation-triangle",
|
|
2447
|
-
class: sheet$2.classes.WarningAlertContainer,
|
|
2448
|
-
};
|
|
2449
|
-
case "BANK_TAX_NAME_MISMATCH":
|
|
2450
|
-
return {
|
|
2451
|
-
header: text.bankTaxNameMismatchHeader,
|
|
2452
|
-
description: intl.formatMessage({
|
|
2453
|
-
id: "accountReviewDescription",
|
|
2454
|
-
defaultMessage: text.bankTaxNameMismatchDescription,
|
|
2455
|
-
}, {
|
|
2456
|
-
supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2457
|
-
}),
|
|
2458
|
-
buttonText: text.editPaymentInformationButton,
|
|
2459
|
-
alertType: "warning",
|
|
2460
|
-
icon: "exclamation-triangle",
|
|
2461
|
-
class: sheet$2.classes.WarningAlertContainer,
|
|
2462
|
-
};
|
|
2463
|
-
case "WITHDRAWAL_SETTINGS_INVALID":
|
|
2464
|
-
return {
|
|
2465
|
-
header: text.withdrawalSettingsInvalidHeader,
|
|
2466
|
-
description: intl.formatMessage({
|
|
2467
|
-
id: "accountReviewDescription",
|
|
2468
|
-
defaultMessage: text.withdrawalSettingsInvalidDescription,
|
|
2469
|
-
}, {
|
|
2470
|
-
supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2471
|
-
}),
|
|
2472
|
-
buttonText: text.editPaymentInformationButton,
|
|
2473
|
-
alertType: "warning",
|
|
2474
|
-
icon: "exclamation-triangle",
|
|
2475
|
-
class: sheet$2.classes.WarningAlertContainer,
|
|
2476
|
-
};
|
|
2477
|
-
case "PAYMENT_RETURNED":
|
|
2478
|
-
return {
|
|
2479
|
-
header: text.paymentReturnedHeader,
|
|
2480
|
-
description: intl.formatMessage({
|
|
2481
|
-
id: "accountReviewDescription",
|
|
2482
|
-
defaultMessage: text.paymentReturnedDescription,
|
|
2483
|
-
}, {
|
|
2484
|
-
supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2485
|
-
}),
|
|
2486
|
-
button: (h$1(Fragment, null,
|
|
2487
|
-
h$1("sl-button", { disabled: states.loading, type: "default", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
|
|
2488
|
-
h$1("sl-button", { disabled: states.loading, type: "default", onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
2489
|
-
alertType: "warning",
|
|
2490
|
-
icon: "exclamation-triangle",
|
|
2491
|
-
class: sheet$2.classes.WarningAlertContainer,
|
|
2492
|
-
};
|
|
2493
2414
|
case "HOLD":
|
|
2494
2415
|
return {
|
|
2495
2416
|
header: text.holdHeader,
|
|
@@ -2523,8 +2444,6 @@ function PayoutStatusAlertView(props) {
|
|
|
2523
2444
|
case "VERIFICATION:REQUIRED":
|
|
2524
2445
|
return (h$1("sl-button", { type: "default", loading: states.veriffLoading, onClick: callbacks.onClick }, text.verificationRequiredButtonText));
|
|
2525
2446
|
default:
|
|
2526
|
-
if (alertDetails.button)
|
|
2527
|
-
return alertDetails.button;
|
|
2528
2447
|
return;
|
|
2529
2448
|
}
|
|
2530
2449
|
}
|
|
@@ -2551,15 +2470,6 @@ const PayoutStatusAlert = class {
|
|
|
2551
2470
|
* @uiName Info required alert header
|
|
2552
2471
|
*/
|
|
2553
2472
|
this.informationRequiredHeader = "Payout and tax information required";
|
|
2554
|
-
/**
|
|
2555
|
-
*
|
|
2556
|
-
* @uiName Edit payment info button label
|
|
2557
|
-
*/
|
|
2558
|
-
this.editPaymentInformationButton = "Edit Payout Information";
|
|
2559
|
-
/**
|
|
2560
|
-
* @uiName Submit new tax form button label
|
|
2561
|
-
*/
|
|
2562
|
-
this.newFormButton = "Submit new form";
|
|
2563
2473
|
/**
|
|
2564
2474
|
* @uiName Info required alert description
|
|
2565
2475
|
*/
|
|
@@ -2612,54 +2522,6 @@ const PayoutStatusAlert = class {
|
|
|
2612
2522
|
* @uiName Account review alert description
|
|
2613
2523
|
*/
|
|
2614
2524
|
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}.";
|
|
2615
|
-
/**
|
|
2616
|
-
* @uiName Payment on hold alert header
|
|
2617
|
-
*/
|
|
2618
|
-
this.paymentHoldOnChangeHeader = "We are reviewing your new payout settings";
|
|
2619
|
-
/**
|
|
2620
|
-
* @uiName Payment on hold alert description
|
|
2621
|
-
*/
|
|
2622
|
-
this.paymentHoldOnChangeDescription = "Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.";
|
|
2623
|
-
/**
|
|
2624
|
-
* @uiName Beneficiary name invalid alert header
|
|
2625
|
-
*/
|
|
2626
|
-
this.beneficiaryNameInvalidHeader = "Your payment information does not match your tax form";
|
|
2627
|
-
/**
|
|
2628
|
-
* @uiName Beneficiary name invalid description
|
|
2629
|
-
*/
|
|
2630
|
-
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.";
|
|
2631
|
-
/**
|
|
2632
|
-
* @uiName Beneficiary name mismatch alert header
|
|
2633
|
-
*/
|
|
2634
|
-
this.beneficiaryNameMismatchHeader = "Your payment information does not match your tax form";
|
|
2635
|
-
/**
|
|
2636
|
-
* @uiName Beneficiary name mismatch alert description
|
|
2637
|
-
*/
|
|
2638
|
-
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.";
|
|
2639
|
-
/**
|
|
2640
|
-
* @uiName Bank name mismatch alert header
|
|
2641
|
-
*/
|
|
2642
|
-
this.bankTaxNameMismatchHeader = "Your payment information does not match your tax form";
|
|
2643
|
-
/**
|
|
2644
|
-
* @uiName Bank name mismatch alert description
|
|
2645
|
-
*/
|
|
2646
|
-
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.";
|
|
2647
|
-
/**
|
|
2648
|
-
* @uiName Withdrawal settings invalid alert header
|
|
2649
|
-
*/
|
|
2650
|
-
this.withdrawalSettingsInvalidHeader = "Your payment information includes invalid characters";
|
|
2651
|
-
/**
|
|
2652
|
-
* @uiName Withdrawal settings invalid alert description
|
|
2653
|
-
*/
|
|
2654
|
-
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.";
|
|
2655
|
-
/**
|
|
2656
|
-
* @uiName Payment returned alert header
|
|
2657
|
-
*/
|
|
2658
|
-
this.paymentReturnedHeader = "Payout unsuccessful";
|
|
2659
|
-
/**
|
|
2660
|
-
* @uiName Payment returned alert description
|
|
2661
|
-
*/
|
|
2662
|
-
this.paymentReturnedDescription = "Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.";
|
|
2663
2525
|
/**
|
|
2664
2526
|
* @uiName W-9 payment threshold alert header
|
|
2665
2527
|
*/
|
|
@@ -2726,8 +2588,6 @@ function useDemoPayoutStatusAlert(props) {
|
|
|
2726
2588
|
callbacks: {
|
|
2727
2589
|
onTermsClick: () => { },
|
|
2728
2590
|
onClick: () => console.log("show"),
|
|
2729
|
-
onPaymentInfoClick: () => { },
|
|
2730
|
-
onNewFormClick: () => { },
|
|
2731
2591
|
},
|
|
2732
2592
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2733
2593
|
}
|
|
@@ -4,10 +4,6 @@ import { n as h } from './stencil-hooks.module-4bc38af4.js';
|
|
|
4
4
|
const HeroImage = class {
|
|
5
5
|
constructor(hostRef) {
|
|
6
6
|
registerInstance(this, hostRef);
|
|
7
|
-
/**
|
|
8
|
-
* @uiName Logo text
|
|
9
|
-
*/
|
|
10
|
-
this.logoTextSize = "24px";
|
|
11
7
|
/**
|
|
12
8
|
* Page participants are navigated to after clicking the header logo.
|
|
13
9
|
*
|
|
@@ -23,10 +19,7 @@ const HeroImage = class {
|
|
|
23
19
|
}
|
|
24
20
|
disconnectedCallback() { }
|
|
25
21
|
render() {
|
|
26
|
-
return (h$1(Host, null, h$1("a", { href: this.nextPage, part: "sqm-link" },
|
|
27
|
-
fontSize: this.logoTextSize,
|
|
28
|
-
color: this.logoTextColor || "inherit",
|
|
29
|
-
} }, this.logoText)))));
|
|
22
|
+
return (h$1(Host, null, h$1("a", { href: this.nextPage, part: "sqm-link" }, h$1("img", { style: { height: `${this === null || this === void 0 ? void 0 : this.height}px` }, src: this === null || this === void 0 ? void 0 : this.imageUrl }))));
|
|
30
23
|
}
|
|
31
24
|
};
|
|
32
25
|
|
|
@@ -7,7 +7,7 @@ import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
|
7
7
|
import './mixins-83f90fa1.js';
|
|
8
8
|
import './sqm-text-span-view-ca32495e.js';
|
|
9
9
|
import { a as useRegistrationForm } from './useRegistrationFormState-d6f33135.js';
|
|
10
|
-
import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-
|
|
10
|
+
import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-d81e316a.js';
|
|
11
11
|
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-3c1f6000.js';
|
|
12
12
|
import './AsYouType-46f67d0d.js';
|
|
13
13
|
import { u as usePortalRegistrationForm } from './usePortalRegistrationForm-4b35a357.js';
|
|
@@ -71,7 +71,6 @@ function jwtDecode(token, options) {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
function usePortalGoogleRegistrationForm(props) {
|
|
74
|
-
const [emailValidationError, setEmailValidationError] = useState(null);
|
|
75
74
|
const [registrationFormState, setRegistrationFormState] = useRegistrationForm();
|
|
76
75
|
const [showRegistrationForm, setShowRegistrationForm] = useState({
|
|
77
76
|
mode: "base",
|
|
@@ -79,33 +78,40 @@ function usePortalGoogleRegistrationForm(props) {
|
|
|
79
78
|
const handleEmailSubmit = async (event) => {
|
|
80
79
|
const formControls = event.target.getFormControls();
|
|
81
80
|
let formData = {};
|
|
82
|
-
let
|
|
81
|
+
let validationErrors = {};
|
|
83
82
|
formControls.forEach((control) => {
|
|
84
83
|
if (!control.name)
|
|
85
84
|
return;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
85
|
+
const key = control.name;
|
|
86
|
+
const value = control.value;
|
|
87
|
+
jsonpointer.set(formData, key, value);
|
|
88
|
+
if (control.required && !value) {
|
|
89
|
+
jsonpointer.set(validationErrors, key, props.requiredFieldErrorMessage);
|
|
90
|
+
}
|
|
92
91
|
if (typeof control.validationError === "function") {
|
|
93
92
|
const validate = control.validationError;
|
|
94
93
|
const validationError = validate({
|
|
95
94
|
control,
|
|
96
|
-
key
|
|
97
|
-
value
|
|
95
|
+
key,
|
|
96
|
+
value,
|
|
98
97
|
});
|
|
99
98
|
if (validationError)
|
|
100
|
-
|
|
99
|
+
jsonpointer.set(validationErrors, key, validationError);
|
|
101
100
|
}
|
|
102
101
|
});
|
|
103
|
-
if (
|
|
104
|
-
|
|
102
|
+
if (Object.keys(validationErrors).length) {
|
|
103
|
+
// early return for validation errors
|
|
104
|
+
setRegistrationFormState({
|
|
105
|
+
...registrationFormState,
|
|
106
|
+
loading: false,
|
|
107
|
+
error: "",
|
|
108
|
+
validationErrors,
|
|
109
|
+
});
|
|
105
110
|
return;
|
|
106
111
|
}
|
|
107
112
|
setRegistrationFormState({
|
|
108
113
|
...registrationFormState,
|
|
114
|
+
validationErrors: {},
|
|
109
115
|
initialData: {
|
|
110
116
|
...registrationFormState === null || registrationFormState === void 0 ? void 0 : registrationFormState.initialData,
|
|
111
117
|
...formData,
|
|
@@ -135,8 +141,9 @@ function usePortalGoogleRegistrationForm(props) {
|
|
|
135
141
|
}
|
|
136
142
|
};
|
|
137
143
|
return {
|
|
144
|
+
registrationFormState,
|
|
138
145
|
showRegistrationForm,
|
|
139
|
-
|
|
146
|
+
validationErrors: registrationFormState.validationErrors,
|
|
140
147
|
handleGoogleInit,
|
|
141
148
|
handleEmailSubmit,
|
|
142
149
|
};
|
|
@@ -292,7 +299,7 @@ const PortalGoogleRegistrationForm = class {
|
|
|
292
299
|
};
|
|
293
300
|
const sheet = createStyleSheet(styles);
|
|
294
301
|
const styleString = sheet.toString();
|
|
295
|
-
const { handleGoogleInit, handleEmailSubmit, showRegistrationForm,
|
|
302
|
+
const { handleGoogleInit, handleEmailSubmit, showRegistrationForm, validationErrors, } = isDemo() ? useGoogleDemo(this) : usePortalGoogleRegistrationForm(this);
|
|
296
303
|
const content = {
|
|
297
304
|
formData: h$1("slot", { name: "formData" }),
|
|
298
305
|
googleButton: (h$1("sqm-google-sign-in", { text: this.googleButtonText, onInitComplete: handleGoogleInit })),
|
|
@@ -317,7 +324,7 @@ const PortalGoogleRegistrationForm = class {
|
|
|
317
324
|
};
|
|
318
325
|
if (showRegistrationForm.mode === "base") {
|
|
319
326
|
return (h$1(BaseRegistrationFormView, { states: {
|
|
320
|
-
|
|
327
|
+
validationErrors,
|
|
321
328
|
}, callbacks: { handleEmailSubmit }, content: content }));
|
|
322
329
|
}
|
|
323
330
|
return (h$1(PortalRegistrationFormView, { states: {
|
|
@@ -360,7 +367,7 @@ function useGoogleDemo(props) {
|
|
|
360
367
|
mode: "base",
|
|
361
368
|
});
|
|
362
369
|
return cjs({
|
|
363
|
-
|
|
370
|
+
validationErrors: {},
|
|
364
371
|
handleEmailSubmit: () => setShowRegistrationForm({ mode: "manual" }),
|
|
365
372
|
showRegistrationForm,
|
|
366
373
|
handleGoogleInit: () => setShowRegistrationForm({ mode: "google" }),
|
|
@@ -24,7 +24,7 @@ import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-vi
|
|
|
24
24
|
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-35b4353b.js';
|
|
25
25
|
import { P as PortalForgotPasswordView } from './sqm-portal-forgot-password-view-3d3182f1.js';
|
|
26
26
|
import { P as PortalLoginView } from './sqm-portal-login-view-7e49609a.js';
|
|
27
|
-
import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-
|
|
27
|
+
import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-d81e316a.js';
|
|
28
28
|
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-3c1f6000.js';
|
|
29
29
|
import { P as PortalProfileView } from './sqm-portal-profile-view-93003974.js';
|
|
30
30
|
import './utilities-5b0ca040.js';
|
|
@@ -32,9 +32,9 @@ import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-5
|
|
|
32
32
|
import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-b12cb894.js';
|
|
33
33
|
import './ErrorView-48e2b969.js';
|
|
34
34
|
import { Q as QrCodeView } from './sqm-qr-code-view-f1d0763b.js';
|
|
35
|
-
import { S as ShareButtonView, L as LeaderboardView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalRegisterView, C as ChangeMarktingView, T as TaskCardView, f as ProgressBarView, g as PoweredByImg$1, h as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, i as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as CardFeedView, K as CouponCodeView, M as ProgressBar$2, O as LeadFormView, Q as LeadDropdownFieldView, U as autoColorScaleCss, V as ShadowViewAddon } from './ShadowViewAddon-
|
|
35
|
+
import { S as ShareButtonView, L as LeaderboardView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalRegisterView, C as ChangeMarktingView, T as TaskCardView, f as ProgressBarView, g as PoweredByImg$1, h as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, i as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as CardFeedView, K as CouponCodeView, M as ProgressBar$2, O as LeadFormView, Q as LeadDropdownFieldView, U as autoColorScaleCss, V as ShadowViewAddon } from './ShadowViewAddon-e0d5f1c9.js';
|
|
36
36
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-1683ae32.js';
|
|
37
|
-
import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-
|
|
37
|
+
import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-3491dd80.js';
|
|
38
38
|
import { L as LeadInputFieldView } from './sqm-lead-input-field-view-4ede5d7f.js';
|
|
39
39
|
|
|
40
40
|
/**
|
|
@@ -10829,6 +10829,7 @@ const NameFields_stories = {
|
|
|
10829
10829
|
};
|
|
10830
10830
|
const props$1 = {
|
|
10831
10831
|
states: {
|
|
10832
|
+
optional: false,
|
|
10832
10833
|
registrationFormState: {
|
|
10833
10834
|
validationErrors: undefined,
|
|
10834
10835
|
},
|
|
@@ -10840,6 +10841,7 @@ const props$1 = {
|
|
|
10840
10841
|
};
|
|
10841
10842
|
const errorProps$9 = {
|
|
10842
10843
|
states: {
|
|
10844
|
+
optional: false,
|
|
10843
10845
|
registrationFormState: {
|
|
10844
10846
|
validationErrors: {
|
|
10845
10847
|
firstName: "Cannot be empty",
|
|
@@ -15636,7 +15638,7 @@ const BaseRegistrationForm_stories = {
|
|
|
15636
15638
|
};
|
|
15637
15639
|
const defaultProps$q = {
|
|
15638
15640
|
states: {
|
|
15639
|
-
|
|
15641
|
+
validationErrors: {},
|
|
15640
15642
|
},
|
|
15641
15643
|
callbacks: {
|
|
15642
15644
|
handleEmailSubmit: () => console.log("Submit!"),
|
|
@@ -15656,7 +15658,7 @@ const defaultProps$q = {
|
|
|
15656
15658
|
const errorProps$a = {
|
|
15657
15659
|
...defaultProps$q,
|
|
15658
15660
|
states: {
|
|
15659
|
-
error: "Something went wrong. Please try again.",
|
|
15661
|
+
validationErrors: { error: "Something went wrong. Please try again." },
|
|
15660
15662
|
},
|
|
15661
15663
|
};
|
|
15662
15664
|
const Default$o = () => {
|
|
@@ -15703,6 +15705,7 @@ const defaultProps$r = {
|
|
|
15703
15705
|
formData: (h("div", null,
|
|
15704
15706
|
" ",
|
|
15705
15707
|
h(NameFieldsView, { states: {
|
|
15708
|
+
optional: false,
|
|
15706
15709
|
registrationFormState: {
|
|
15707
15710
|
validationErrors: undefined,
|
|
15708
15711
|
disabled: true,
|