@saasquatch/mint-components 2.0.0-53 → 2.0.0-55
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/sqm-banking-info-form_10.cjs.entry.js +30 -21
- package/dist/cjs/{sqm-base-registration-form-view-8847804c.js → sqm-base-registration-form-view-7b95ae7a.js} +1 -0
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +7 -6
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
- package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +1 -0
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +2 -2
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +7 -4
- package/dist/collection/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.js +4 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +29 -18
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +1 -3
- package/dist/esm/sqm-banking-info-form_10.entry.js +30 -21
- package/dist/esm/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-1a6bb4b4.js} +1 -0
- package/dist/esm/sqm-portal-google-registration-form.entry.js +7 -6
- package/dist/esm/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-1a6bb4b4.js} +1 -1
- 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/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-ddf3c05e.js → p-1522a7d1.js} +1 -1
- package/dist/mint-components/{p-3ea29bac.system.entry.js → p-1ba34945.system.entry.js} +1 -1
- package/dist/mint-components/p-71a6e549.system.entry.js +1 -0
- package/dist/mint-components/p-967a9040.system.js +1 -1
- package/dist/mint-components/p-9ad75de2.system.entry.js +1 -0
- package/dist/mint-components/{p-e110688b.entry.js → p-9df7c27f.entry.js} +1 -1
- package/dist/mint-components/p-ac4271a9.entry.js +99 -0
- package/dist/mint-components/{p-be88596c.system.js → p-b21c5311.system.js} +1 -1
- package/dist/mint-components/p-c2ac14b7.entry.js +1 -0
- package/dist/types/components/sqm-base-registration/sqm-base-registration-form-view.d.ts +1 -0
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +2 -2
- package/dist/types/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.d.ts +5 -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/mint-components/p-0121d708.entry.js +0 -99
- package/dist/mint-components/p-43d9c1c5.system.entry.js +0 -1
- package/dist/mint-components/p-a9655498.system.entry.js +0 -1
- package/dist/mint-components/p-ea063d99.entry.js +0 -1
|
@@ -18,7 +18,6 @@ const luxon = require('./luxon-949beaf2.js');
|
|
|
18
18
|
const useReferralTable = require('./useReferralTable-90d4d6e9.js');
|
|
19
19
|
const IndirectTaxDetailsView = require('./IndirectTaxDetailsView-e5f70b8b.js');
|
|
20
20
|
const utils$1 = require('./utils-83d125fa.js');
|
|
21
|
-
const parseStates = require('./parseStates-d1effc19.js');
|
|
22
21
|
const data = require('./data-88adb95b.js');
|
|
23
22
|
const keys = require('./keys-cff24974.js');
|
|
24
23
|
const usePayoutStatus = require('./usePayoutStatus-fe32dd1a.js');
|
|
@@ -3724,9 +3723,6 @@ const style$5 = {
|
|
|
3724
3723
|
borderTop: "none",
|
|
3725
3724
|
maxWidth: "600px",
|
|
3726
3725
|
},
|
|
3727
|
-
"& sl-icon::part(base)": {
|
|
3728
|
-
color: "var(--sl-color-warning-500)",
|
|
3729
|
-
},
|
|
3730
3726
|
},
|
|
3731
3727
|
WarningHoldAlertContainer: {
|
|
3732
3728
|
marginLeft: "-20px",
|
|
@@ -3736,7 +3732,7 @@ const style$5 = {
|
|
|
3736
3732
|
backgroundColor: "transparent",
|
|
3737
3733
|
},
|
|
3738
3734
|
"& sl-icon::part(base)": {
|
|
3739
|
-
color: "var(--
|
|
3735
|
+
color: "var(--sqm-warning-color-icon)",
|
|
3740
3736
|
},
|
|
3741
3737
|
},
|
|
3742
3738
|
ErrorHoldAlertContainer: {
|
|
@@ -3746,9 +3742,6 @@ const style$5 = {
|
|
|
3746
3742
|
border: "none",
|
|
3747
3743
|
backgroundColor: "transparent",
|
|
3748
3744
|
},
|
|
3749
|
-
"& sl-icon::part(base)": {
|
|
3750
|
-
color: "var(--sl-color-danger-500)",
|
|
3751
|
-
},
|
|
3752
3745
|
},
|
|
3753
3746
|
ExpiringSoonAlertContainer: {
|
|
3754
3747
|
"&::part(base)": {
|
|
@@ -3898,6 +3891,27 @@ const style$5 = {
|
|
|
3898
3891
|
},
|
|
3899
3892
|
},
|
|
3900
3893
|
DialogButton: { margin: "auto", width: "100%" },
|
|
3894
|
+
SuccessBadge: {
|
|
3895
|
+
"&::part(base)": {
|
|
3896
|
+
textAlign: "center",
|
|
3897
|
+
whiteSpace: "pre-line",
|
|
3898
|
+
background: "var(--sqm-success-color-icon)",
|
|
3899
|
+
},
|
|
3900
|
+
},
|
|
3901
|
+
WarningBadge: {
|
|
3902
|
+
"&::part(base)": {
|
|
3903
|
+
textAlign: "center",
|
|
3904
|
+
whiteSpace: "pre-line",
|
|
3905
|
+
background: "var(--sqm-warning-color-icon)",
|
|
3906
|
+
},
|
|
3907
|
+
},
|
|
3908
|
+
ErrorBadge: {
|
|
3909
|
+
"&::part(base)": {
|
|
3910
|
+
textAlign: "center",
|
|
3911
|
+
whiteSpace: "pre-line",
|
|
3912
|
+
background: "var(--sqm-danger-color-icon)",
|
|
3913
|
+
},
|
|
3914
|
+
},
|
|
3901
3915
|
};
|
|
3902
3916
|
const sheet$4 = JSS.createStyleSheet(style$5);
|
|
3903
3917
|
const styleString$4 = sheet$4.toString();
|
|
@@ -4006,7 +4020,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4006
4020
|
}, {
|
|
4007
4021
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
4008
4022
|
}),
|
|
4009
|
-
alertType: "
|
|
4023
|
+
alertType: "danger",
|
|
4010
4024
|
icon: "exclamation-octagon",
|
|
4011
4025
|
class: sheet$4.classes.ErrorHoldAlertContainer,
|
|
4012
4026
|
};
|
|
@@ -4044,7 +4058,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4044
4058
|
}
|
|
4045
4059
|
const statusMap = {
|
|
4046
4060
|
NOT_VERIFIED: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4047
|
-
index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
4061
|
+
index.h("sl-badge", { class: sheet$4.classes.WarningBadge, type: "warning", pill: true }, text.statusTextNotVerified),
|
|
4048
4062
|
index.h("p", null, global.intl.formatMessage({
|
|
4049
4063
|
id: `badgeTextAwaitingReview`,
|
|
4050
4064
|
defaultMessage: text.badgeTextAwaitingReview,
|
|
@@ -4052,7 +4066,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4052
4066
|
dateSubmitted: states.dateSubmitted,
|
|
4053
4067
|
})))),
|
|
4054
4068
|
ACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4055
|
-
index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
4069
|
+
index.h("sl-badge", { class: sheet$4.classes.SuccessBadge, type: "success", pill: true }, text.statusTextActive),
|
|
4056
4070
|
index.h("p", null, global.intl.formatMessage({
|
|
4057
4071
|
id: `badgeTextSubmittedOn`,
|
|
4058
4072
|
defaultMessage: states.documentType === "W9"
|
|
@@ -4062,7 +4076,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4062
4076
|
dateSubmitted: states.dateSubmitted,
|
|
4063
4077
|
})))),
|
|
4064
4078
|
INACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4065
|
-
index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
4079
|
+
index.h("sl-badge", { class: sheet$4.classes.ErrorBadge, type: "danger", pill: true }, text.statusTextNotActive),
|
|
4066
4080
|
index.h("p", null, text.invalidForm))),
|
|
4067
4081
|
undefined: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4068
4082
|
index.h("sl-badge", { type: "danger", pill: true }, text.statusTextRequired),
|
|
@@ -4127,10 +4141,9 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4127
4141
|
index.h("div", null,
|
|
4128
4142
|
index.h("style", { type: "text/css" },
|
|
4129
4143
|
styleString$4,
|
|
4130
|
-
" ",
|
|
4131
4144
|
vanillaStyle$3),
|
|
4132
4145
|
states.loadingError && (index.h("div", null,
|
|
4133
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true },
|
|
4146
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
|
|
4134
4147
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
4135
4148
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
4136
4149
|
index.h("br", null),
|
|
@@ -4150,7 +4163,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4150
4163
|
}, {
|
|
4151
4164
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
4152
4165
|
}))),
|
|
4153
|
-
alertInfo && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, open: true, class: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.class },
|
|
4166
|
+
alertInfo && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, open: true, class: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.class },
|
|
4154
4167
|
index.h("sl-icon", { slot: "icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.icon }),
|
|
4155
4168
|
index.h("strong", null, alertInfo.header),
|
|
4156
4169
|
index.h("p", { style: { margin: "0" } }, alertInfo.description),
|
|
@@ -4166,10 +4179,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4166
4179
|
index.h("div", { class: sheet$4.classes.BankingInformationContainer },
|
|
4167
4180
|
slots.payoutDetailsCardSlot,
|
|
4168
4181
|
!states.loading && (index.h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
|
|
4169
|
-
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, exportparts: "base: secondarybutton-base", type: "secondary",
|
|
4170
|
-
// style={{ backgroundColor: "green" }}
|
|
4171
|
-
// class={sheet.classes.EditBankDetailsButton}
|
|
4172
|
-
onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
4182
|
+
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, exportparts: "base: secondarybutton-base", type: "secondary", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
4173
4183
|
(!states.noFormNeeded || states.status === "NOT_VERIFIED") && (index.h("div", { class: sheet$4.classes.TaxDocumentsContainer },
|
|
4174
4184
|
index.h("div", null, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
4175
4185
|
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
@@ -4720,7 +4730,6 @@ const TaxAndCashDashboard = class {
|
|
|
4720
4730
|
}
|
|
4721
4731
|
};
|
|
4722
4732
|
function useDemoTaxAndCashDashboard(props) {
|
|
4723
|
-
const stateController = parseStates.parseStates(props.stateController);
|
|
4724
4733
|
// @ts-ignore
|
|
4725
4734
|
return cjs.cjs({
|
|
4726
4735
|
states: {
|
|
@@ -4762,7 +4771,7 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
4762
4771
|
},
|
|
4763
4772
|
} })),
|
|
4764
4773
|
},
|
|
4765
|
-
},
|
|
4774
|
+
}, props.demoData || props.stateController || {}, { arrayMerge: (_, a) => a });
|
|
4766
4775
|
}
|
|
4767
4776
|
|
|
4768
4777
|
const PHONE_EXTENSIONS = {
|
|
@@ -49,6 +49,7 @@ function BaseRegistrationFormView(props) {
|
|
|
49
49
|
index.h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.handleEmailSubmit, novalidate: true },
|
|
50
50
|
states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
51
51
|
index.h("div", { part: "erroralert-text" }, props.states.error))),
|
|
52
|
+
content.formData,
|
|
52
53
|
index.h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", required: true, validationError: ({ value }) => {
|
|
53
54
|
if (!value) {
|
|
54
55
|
return content.requiredFieldErrorMessage;
|
|
@@ -11,7 +11,7 @@ const JSS = require('./JSS-8503a151.js');
|
|
|
11
11
|
require('./mixins-4761d472.js');
|
|
12
12
|
require('./sqm-text-span-view-7a61ae4c.js');
|
|
13
13
|
const useRegistrationFormState = require('./useRegistrationFormState-bbee6e7b.js');
|
|
14
|
-
const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-
|
|
14
|
+
const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-7b95ae7a.js');
|
|
15
15
|
const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-5a96c2f5.js');
|
|
16
16
|
require('./AsYouType-6788393a.js');
|
|
17
17
|
const usePortalRegistrationForm = require('./usePortalRegistrationForm-75b647fe.js');
|
|
@@ -85,9 +85,12 @@ function usePortalGoogleRegistrationForm(props) {
|
|
|
85
85
|
let formData = {};
|
|
86
86
|
let errorMessage = null;
|
|
87
87
|
formControls.forEach((control) => {
|
|
88
|
-
if (!control.name
|
|
88
|
+
if (!control.name)
|
|
89
89
|
return;
|
|
90
90
|
jsonpointer.jsonpointer.set(formData, control.name, control.value);
|
|
91
|
+
// only validate email field
|
|
92
|
+
if (control.name !== "/email")
|
|
93
|
+
return;
|
|
91
94
|
if (control.required && !control.value)
|
|
92
95
|
errorMessage = props.requiredFieldErrorMessage;
|
|
93
96
|
if (typeof control.validationError === "function") {
|
|
@@ -325,9 +328,7 @@ const PortalGoogleRegistrationForm = class {
|
|
|
325
328
|
...states,
|
|
326
329
|
emailDisabled: true,
|
|
327
330
|
hidePasswords: showRegistrationForm.mode === "google",
|
|
328
|
-
}, callbacks: callbacks, content:
|
|
329
|
-
...content,
|
|
330
|
-
}, refs: refs }));
|
|
331
|
+
}, callbacks: callbacks, content: content, refs: refs }));
|
|
331
332
|
}
|
|
332
333
|
};
|
|
333
334
|
function useRegisterDemo(props) {
|
|
@@ -363,7 +364,7 @@ function useGoogleDemo(props) {
|
|
|
363
364
|
mode: "base",
|
|
364
365
|
});
|
|
365
366
|
return cjs.cjs({
|
|
366
|
-
emailValidationError:
|
|
367
|
+
emailValidationError: false,
|
|
367
368
|
handleEmailSubmit: () => setShowRegistrationForm({ mode: "manual" }),
|
|
368
369
|
showRegistrationForm,
|
|
369
370
|
handleGoogleInit: () => setShowRegistrationForm({ mode: "google" }),
|
|
@@ -26,7 +26,7 @@ const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-de90ef03
|
|
|
26
26
|
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-4e88f774.js');
|
|
27
27
|
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-5518eb0d.js');
|
|
28
28
|
const sqmPortalLoginView = require('./sqm-portal-login-view-bb50304c.js');
|
|
29
|
-
const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-
|
|
29
|
+
const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-7b95ae7a.js');
|
|
30
30
|
const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-5a96c2f5.js');
|
|
31
31
|
const sqmPortalProfileView = require('./sqm-portal-profile-view-615e6975.js');
|
|
32
32
|
require('./utilities-9a0c5e91.js');
|
|
@@ -46,6 +46,7 @@ export function BaseRegistrationFormView(props) {
|
|
|
46
46
|
h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.handleEmailSubmit, novalidate: true },
|
|
47
47
|
states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
48
48
|
h("div", { part: "erroralert-text" }, props.states.error))),
|
|
49
|
+
content.formData,
|
|
49
50
|
h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", required: true, validationError: ({ value }) => {
|
|
50
51
|
if (!value) {
|
|
51
52
|
return content.requiredFieldErrorMessage;
|
|
@@ -6,8 +6,8 @@ import { HeroImageView } from "./sqm-hero-image-view";
|
|
|
6
6
|
* @uiName Hero Image
|
|
7
7
|
* @validParents ["sqm-portal-container","sqm-brand", "div"]
|
|
8
8
|
* @exampleGroup Common Components
|
|
9
|
-
* @example Two Column Hero Image - <sqm-hero-image image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png" header="MyCompany Rewards" description="Refer a friend and earn up to $1200 in rewards" layout="columns" image-pos="right"
|
|
10
|
-
* @example Overlay Hero Image - <sqm-hero-image image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png" header="MyCompany Rewards" description="Refer a friend and earn up to $1200 in rewards" layout="overlay" image-pos="center"
|
|
9
|
+
* @example Two Column Hero Image - <sqm-hero-image image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png" header="MyCompany Rewards" description="Refer a friend and earn up to $1200 in rewards" layout="columns" image-pos="right"></sqm-hero-image>
|
|
10
|
+
* @example Overlay Hero Image - <sqm-hero-image image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png" header="MyCompany Rewards" description="Refer a friend and earn up to $1200 in rewards" layout="overlay" image-pos="center" button-link="https://www.example.com" button-new-tab button-text="Earn!" image-percentage="45" overlay-opacity=".5" padding-image="small" padding-text="xxxx-large"></sqm-hero-image>
|
|
11
11
|
*/
|
|
12
12
|
export class HeroImage {
|
|
13
13
|
constructor() {
|
|
@@ -7,6 +7,11 @@ import { PortalRegistrationFormView, } from "../sqm-portal-registration-form/sqm
|
|
|
7
7
|
import { usePortalRegistrationForm } from "../sqm-portal-registration-form/usePortalRegistrationForm";
|
|
8
8
|
import { usePortalGoogleRegistrationForm } from "./usePortalGoogleRegistrationForm";
|
|
9
9
|
import { createStyleSheet } from "../../styling/JSS";
|
|
10
|
+
/**
|
|
11
|
+
* @uiName Google Registration
|
|
12
|
+
* @canvasRenderer always-replace
|
|
13
|
+
* @slots [{"name":"formData","title":"Additional Fields"},{"name":"terms","title":"Terms And Conditions Fields"}]
|
|
14
|
+
*/
|
|
10
15
|
export class PortalGoogleRegistrationForm {
|
|
11
16
|
constructor() {
|
|
12
17
|
this.ignored = true;
|
|
@@ -194,9 +199,7 @@ export class PortalGoogleRegistrationForm {
|
|
|
194
199
|
...states,
|
|
195
200
|
emailDisabled: true,
|
|
196
201
|
hidePasswords: showRegistrationForm.mode === "google",
|
|
197
|
-
}, callbacks: callbacks, content:
|
|
198
|
-
...content,
|
|
199
|
-
}, refs: refs }));
|
|
202
|
+
}, callbacks: callbacks, content: content, refs: refs }));
|
|
200
203
|
}
|
|
201
204
|
static get is() { return "sqm-portal-google-registration-form"; }
|
|
202
205
|
static get encapsulation() { return "shadow"; }
|
|
@@ -871,7 +874,7 @@ function useGoogleDemo(props) {
|
|
|
871
874
|
mode: "base",
|
|
872
875
|
});
|
|
873
876
|
return deepmerge({
|
|
874
|
-
emailValidationError:
|
|
877
|
+
emailValidationError: false,
|
|
875
878
|
handleEmailSubmit: () => setShowRegistrationForm({ mode: "manual" }),
|
|
876
879
|
showRegistrationForm,
|
|
877
880
|
handleGoogleInit: () => setShowRegistrationForm({ mode: "google" }),
|
|
@@ -13,9 +13,12 @@ export function usePortalGoogleRegistrationForm(props) {
|
|
|
13
13
|
let formData = {};
|
|
14
14
|
let errorMessage = null;
|
|
15
15
|
formControls.forEach((control) => {
|
|
16
|
-
if (!control.name
|
|
16
|
+
if (!control.name)
|
|
17
17
|
return;
|
|
18
18
|
jsonpointer.set(formData, control.name, control.value);
|
|
19
|
+
// only validate email field
|
|
20
|
+
if (control.name !== "/email")
|
|
21
|
+
return;
|
|
19
22
|
if (control.required && !control.value)
|
|
20
23
|
errorMessage = props.requiredFieldErrorMessage;
|
|
21
24
|
if (typeof control.validationError === "function") {
|
|
@@ -17,9 +17,6 @@ const style = {
|
|
|
17
17
|
borderTop: "none",
|
|
18
18
|
maxWidth: "600px",
|
|
19
19
|
},
|
|
20
|
-
"& sl-icon::part(base)": {
|
|
21
|
-
color: "var(--sl-color-warning-500)",
|
|
22
|
-
},
|
|
23
20
|
},
|
|
24
21
|
WarningHoldAlertContainer: {
|
|
25
22
|
marginLeft: "-20px",
|
|
@@ -29,7 +26,7 @@ const style = {
|
|
|
29
26
|
backgroundColor: "transparent",
|
|
30
27
|
},
|
|
31
28
|
"& sl-icon::part(base)": {
|
|
32
|
-
color: "var(--
|
|
29
|
+
color: "var(--sqm-warning-color-icon)",
|
|
33
30
|
},
|
|
34
31
|
},
|
|
35
32
|
ErrorHoldAlertContainer: {
|
|
@@ -39,9 +36,6 @@ const style = {
|
|
|
39
36
|
border: "none",
|
|
40
37
|
backgroundColor: "transparent",
|
|
41
38
|
},
|
|
42
|
-
"& sl-icon::part(base)": {
|
|
43
|
-
color: "var(--sl-color-danger-500)",
|
|
44
|
-
},
|
|
45
39
|
},
|
|
46
40
|
ExpiringSoonAlertContainer: {
|
|
47
41
|
"&::part(base)": {
|
|
@@ -191,6 +185,27 @@ const style = {
|
|
|
191
185
|
},
|
|
192
186
|
},
|
|
193
187
|
DialogButton: { margin: "auto", width: "100%" },
|
|
188
|
+
SuccessBadge: {
|
|
189
|
+
"&::part(base)": {
|
|
190
|
+
textAlign: "center",
|
|
191
|
+
whiteSpace: "pre-line",
|
|
192
|
+
background: "var(--sqm-success-color-icon)",
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
WarningBadge: {
|
|
196
|
+
"&::part(base)": {
|
|
197
|
+
textAlign: "center",
|
|
198
|
+
whiteSpace: "pre-line",
|
|
199
|
+
background: "var(--sqm-warning-color-icon)",
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
ErrorBadge: {
|
|
203
|
+
"&::part(base)": {
|
|
204
|
+
textAlign: "center",
|
|
205
|
+
whiteSpace: "pre-line",
|
|
206
|
+
background: "var(--sqm-danger-color-icon)",
|
|
207
|
+
},
|
|
208
|
+
},
|
|
194
209
|
};
|
|
195
210
|
const sheet = createStyleSheet(style);
|
|
196
211
|
const styleString = sheet.toString();
|
|
@@ -299,7 +314,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
299
314
|
}, {
|
|
300
315
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
301
316
|
}),
|
|
302
|
-
alertType: "
|
|
317
|
+
alertType: "danger",
|
|
303
318
|
icon: "exclamation-octagon",
|
|
304
319
|
class: sheet.classes.ErrorHoldAlertContainer,
|
|
305
320
|
};
|
|
@@ -337,7 +352,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
337
352
|
}
|
|
338
353
|
const statusMap = {
|
|
339
354
|
NOT_VERIFIED: (h("div", { class: sheet.classes.TaxFormDetailsContainer },
|
|
340
|
-
h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
355
|
+
h("sl-badge", { class: sheet.classes.WarningBadge, type: "warning", pill: true }, text.statusTextNotVerified),
|
|
341
356
|
h("p", null, intl.formatMessage({
|
|
342
357
|
id: `badgeTextAwaitingReview`,
|
|
343
358
|
defaultMessage: text.badgeTextAwaitingReview,
|
|
@@ -345,7 +360,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
345
360
|
dateSubmitted: states.dateSubmitted,
|
|
346
361
|
})))),
|
|
347
362
|
ACTIVE: (h("div", { class: sheet.classes.TaxFormDetailsContainer },
|
|
348
|
-
h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
363
|
+
h("sl-badge", { class: sheet.classes.SuccessBadge, type: "success", pill: true }, text.statusTextActive),
|
|
349
364
|
h("p", null, intl.formatMessage({
|
|
350
365
|
id: `badgeTextSubmittedOn`,
|
|
351
366
|
defaultMessage: states.documentType === "W9"
|
|
@@ -355,7 +370,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
355
370
|
dateSubmitted: states.dateSubmitted,
|
|
356
371
|
})))),
|
|
357
372
|
INACTIVE: (h("div", { class: sheet.classes.TaxFormDetailsContainer },
|
|
358
|
-
h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
373
|
+
h("sl-badge", { class: sheet.classes.ErrorBadge, type: "danger", pill: true }, text.statusTextNotActive),
|
|
359
374
|
h("p", null, text.invalidForm))),
|
|
360
375
|
undefined: (h("div", { class: sheet.classes.TaxFormDetailsContainer },
|
|
361
376
|
h("sl-badge", { type: "danger", pill: true }, text.statusTextRequired),
|
|
@@ -420,10 +435,9 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
420
435
|
h("div", null,
|
|
421
436
|
h("style", { type: "text/css" },
|
|
422
437
|
styleString,
|
|
423
|
-
" ",
|
|
424
438
|
vanillaStyle),
|
|
425
439
|
states.loadingError && (h("div", null,
|
|
426
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true },
|
|
440
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet.classes.ErrorAlertContainer },
|
|
427
441
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
428
442
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
429
443
|
h("br", null),
|
|
@@ -443,7 +457,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
443
457
|
}, {
|
|
444
458
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
445
459
|
}))),
|
|
446
|
-
alertInfo && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, open: true, class: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.class },
|
|
460
|
+
alertInfo && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, open: true, class: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.class },
|
|
447
461
|
h("sl-icon", { slot: "icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.icon }),
|
|
448
462
|
h("strong", null, alertInfo.header),
|
|
449
463
|
h("p", { style: { margin: "0" } }, alertInfo.description),
|
|
@@ -459,10 +473,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
459
473
|
h("div", { class: sheet.classes.BankingInformationContainer },
|
|
460
474
|
slots.payoutDetailsCardSlot,
|
|
461
475
|
!states.loading && (h("p", { class: sheet.classes.DescriptionText }, text.payoutFromImpact)),
|
|
462
|
-
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, exportparts: "base: secondarybutton-base", type: "secondary",
|
|
463
|
-
// style={{ backgroundColor: "green" }}
|
|
464
|
-
// class={sheet.classes.EditBankDetailsButton}
|
|
465
|
-
onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
476
|
+
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, exportparts: "base: secondarybutton-base", type: "secondary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
466
477
|
(!states.noFormNeeded || states.status === "NOT_VERIFIED") && (h("div", { class: sheet.classes.TaxDocumentsContainer },
|
|
467
478
|
h("div", null, states.loading ? (h("div", { class: sheet.classes.TaxSectionSkeletonContainer },
|
|
468
479
|
h("sl-skeleton", { class: sheet.classes.SkeletonOne }),
|
|
@@ -2,7 +2,6 @@ import { isDemo } from "@saasquatch/component-boilerplate";
|
|
|
2
2
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
3
3
|
import { Component, h, Host, Prop } from "@stencil/core";
|
|
4
4
|
import deepmerge from "deepmerge";
|
|
5
|
-
import { parseStates } from "../../../utils/parseStates";
|
|
6
5
|
import { getProps } from "../../../utils/utils";
|
|
7
6
|
import { TaxAndCashDashboardView } from "./sqm-tax-and-cash-dashboard-view";
|
|
8
7
|
import { useTaxAndCashDashboard, } from "./useTaxAndCashDashboard";
|
|
@@ -1901,7 +1900,6 @@ export class TaxAndCashDashboard {
|
|
|
1901
1900
|
}; }
|
|
1902
1901
|
}
|
|
1903
1902
|
function useDemoTaxAndCashDashboard(props) {
|
|
1904
|
-
const stateController = parseStates(props.stateController);
|
|
1905
1903
|
// @ts-ignore
|
|
1906
1904
|
return deepmerge({
|
|
1907
1905
|
states: {
|
|
@@ -1943,5 +1941,5 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
1943
1941
|
},
|
|
1944
1942
|
} })),
|
|
1945
1943
|
},
|
|
1946
|
-
},
|
|
1944
|
+
}, props.demoData || props.stateController || {}, { arrayMerge: (_, a) => a });
|
|
1947
1945
|
}
|
|
@@ -14,7 +14,6 @@ import { l as luxon } from './luxon-bbf75a9d.js';
|
|
|
14
14
|
import { g as generateUserError } from './useReferralTable-909ccb28.js';
|
|
15
15
|
import { a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, A as ADDRESS_REGIONS } from './IndirectTaxDetailsView-0a57b622.js';
|
|
16
16
|
import { t as taxTypeToName, v as validTaxDocument, g as getCountryObj, L as LoadingView, f as formatErrorMessage, a as validateBillingField, o as objectIsFull } from './utils-6122971b.js';
|
|
17
|
-
import { p as parseStates } from './parseStates-ed75e224.js';
|
|
18
17
|
import { i as FORM_STEPS, a as TAX_FORM_CONTEXT_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, T as TAX_CONTEXT_NAMESPACE, F as FINANCE_NETWORK_SETTINGS_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, d as COUNTRIES_QUERY_NAMESPACE, C as CURRENCIES_NAMESPACE } from './data-807686c2.js';
|
|
19
18
|
import { b as VERIFICATION_EVENT_KEY } from './keys-406491dc.js';
|
|
20
19
|
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-42cc6a2c.js';
|
|
@@ -3720,9 +3719,6 @@ const style$5 = {
|
|
|
3720
3719
|
borderTop: "none",
|
|
3721
3720
|
maxWidth: "600px",
|
|
3722
3721
|
},
|
|
3723
|
-
"& sl-icon::part(base)": {
|
|
3724
|
-
color: "var(--sl-color-warning-500)",
|
|
3725
|
-
},
|
|
3726
3722
|
},
|
|
3727
3723
|
WarningHoldAlertContainer: {
|
|
3728
3724
|
marginLeft: "-20px",
|
|
@@ -3732,7 +3728,7 @@ const style$5 = {
|
|
|
3732
3728
|
backgroundColor: "transparent",
|
|
3733
3729
|
},
|
|
3734
3730
|
"& sl-icon::part(base)": {
|
|
3735
|
-
color: "var(--
|
|
3731
|
+
color: "var(--sqm-warning-color-icon)",
|
|
3736
3732
|
},
|
|
3737
3733
|
},
|
|
3738
3734
|
ErrorHoldAlertContainer: {
|
|
@@ -3742,9 +3738,6 @@ const style$5 = {
|
|
|
3742
3738
|
border: "none",
|
|
3743
3739
|
backgroundColor: "transparent",
|
|
3744
3740
|
},
|
|
3745
|
-
"& sl-icon::part(base)": {
|
|
3746
|
-
color: "var(--sl-color-danger-500)",
|
|
3747
|
-
},
|
|
3748
3741
|
},
|
|
3749
3742
|
ExpiringSoonAlertContainer: {
|
|
3750
3743
|
"&::part(base)": {
|
|
@@ -3894,6 +3887,27 @@ const style$5 = {
|
|
|
3894
3887
|
},
|
|
3895
3888
|
},
|
|
3896
3889
|
DialogButton: { margin: "auto", width: "100%" },
|
|
3890
|
+
SuccessBadge: {
|
|
3891
|
+
"&::part(base)": {
|
|
3892
|
+
textAlign: "center",
|
|
3893
|
+
whiteSpace: "pre-line",
|
|
3894
|
+
background: "var(--sqm-success-color-icon)",
|
|
3895
|
+
},
|
|
3896
|
+
},
|
|
3897
|
+
WarningBadge: {
|
|
3898
|
+
"&::part(base)": {
|
|
3899
|
+
textAlign: "center",
|
|
3900
|
+
whiteSpace: "pre-line",
|
|
3901
|
+
background: "var(--sqm-warning-color-icon)",
|
|
3902
|
+
},
|
|
3903
|
+
},
|
|
3904
|
+
ErrorBadge: {
|
|
3905
|
+
"&::part(base)": {
|
|
3906
|
+
textAlign: "center",
|
|
3907
|
+
whiteSpace: "pre-line",
|
|
3908
|
+
background: "var(--sqm-danger-color-icon)",
|
|
3909
|
+
},
|
|
3910
|
+
},
|
|
3897
3911
|
};
|
|
3898
3912
|
const sheet$4 = createStyleSheet(style$5);
|
|
3899
3913
|
const styleString$4 = sheet$4.toString();
|
|
@@ -4002,7 +4016,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4002
4016
|
}, {
|
|
4003
4017
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
4004
4018
|
}),
|
|
4005
|
-
alertType: "
|
|
4019
|
+
alertType: "danger",
|
|
4006
4020
|
icon: "exclamation-octagon",
|
|
4007
4021
|
class: sheet$4.classes.ErrorHoldAlertContainer,
|
|
4008
4022
|
};
|
|
@@ -4040,7 +4054,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4040
4054
|
}
|
|
4041
4055
|
const statusMap = {
|
|
4042
4056
|
NOT_VERIFIED: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4043
|
-
h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
4057
|
+
h("sl-badge", { class: sheet$4.classes.WarningBadge, type: "warning", pill: true }, text.statusTextNotVerified),
|
|
4044
4058
|
h("p", null, intl.formatMessage({
|
|
4045
4059
|
id: `badgeTextAwaitingReview`,
|
|
4046
4060
|
defaultMessage: text.badgeTextAwaitingReview,
|
|
@@ -4048,7 +4062,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4048
4062
|
dateSubmitted: states.dateSubmitted,
|
|
4049
4063
|
})))),
|
|
4050
4064
|
ACTIVE: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4051
|
-
h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
4065
|
+
h("sl-badge", { class: sheet$4.classes.SuccessBadge, type: "success", pill: true }, text.statusTextActive),
|
|
4052
4066
|
h("p", null, intl.formatMessage({
|
|
4053
4067
|
id: `badgeTextSubmittedOn`,
|
|
4054
4068
|
defaultMessage: states.documentType === "W9"
|
|
@@ -4058,7 +4072,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4058
4072
|
dateSubmitted: states.dateSubmitted,
|
|
4059
4073
|
})))),
|
|
4060
4074
|
INACTIVE: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4061
|
-
h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
4075
|
+
h("sl-badge", { class: sheet$4.classes.ErrorBadge, type: "danger", pill: true }, text.statusTextNotActive),
|
|
4062
4076
|
h("p", null, text.invalidForm))),
|
|
4063
4077
|
undefined: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4064
4078
|
h("sl-badge", { type: "danger", pill: true }, text.statusTextRequired),
|
|
@@ -4123,10 +4137,9 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4123
4137
|
h("div", null,
|
|
4124
4138
|
h("style", { type: "text/css" },
|
|
4125
4139
|
styleString$4,
|
|
4126
|
-
" ",
|
|
4127
4140
|
vanillaStyle$3),
|
|
4128
4141
|
states.loadingError && (h("div", null,
|
|
4129
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true },
|
|
4142
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
|
|
4130
4143
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
4131
4144
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
4132
4145
|
h("br", null),
|
|
@@ -4146,7 +4159,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4146
4159
|
}, {
|
|
4147
4160
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
4148
4161
|
}))),
|
|
4149
|
-
alertInfo && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, open: true, class: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.class },
|
|
4162
|
+
alertInfo && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, open: true, class: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.class },
|
|
4150
4163
|
h("sl-icon", { slot: "icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.icon }),
|
|
4151
4164
|
h("strong", null, alertInfo.header),
|
|
4152
4165
|
h("p", { style: { margin: "0" } }, alertInfo.description),
|
|
@@ -4162,10 +4175,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4162
4175
|
h("div", { class: sheet$4.classes.BankingInformationContainer },
|
|
4163
4176
|
slots.payoutDetailsCardSlot,
|
|
4164
4177
|
!states.loading && (h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
|
|
4165
|
-
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, exportparts: "base: secondarybutton-base", type: "secondary",
|
|
4166
|
-
// style={{ backgroundColor: "green" }}
|
|
4167
|
-
// class={sheet.classes.EditBankDetailsButton}
|
|
4168
|
-
onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
4178
|
+
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, exportparts: "base: secondarybutton-base", type: "secondary", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
4169
4179
|
(!states.noFormNeeded || states.status === "NOT_VERIFIED") && (h("div", { class: sheet$4.classes.TaxDocumentsContainer },
|
|
4170
4180
|
h("div", null, states.loading ? (h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
4171
4181
|
h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
@@ -4716,7 +4726,6 @@ const TaxAndCashDashboard = class {
|
|
|
4716
4726
|
}
|
|
4717
4727
|
};
|
|
4718
4728
|
function useDemoTaxAndCashDashboard(props) {
|
|
4719
|
-
const stateController = parseStates(props.stateController);
|
|
4720
4729
|
// @ts-ignore
|
|
4721
4730
|
return cjs({
|
|
4722
4731
|
states: {
|
|
@@ -4758,7 +4767,7 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
4758
4767
|
},
|
|
4759
4768
|
} })),
|
|
4760
4769
|
},
|
|
4761
|
-
},
|
|
4770
|
+
}, props.demoData || props.stateController || {}, { arrayMerge: (_, a) => a });
|
|
4762
4771
|
}
|
|
4763
4772
|
|
|
4764
4773
|
const PHONE_EXTENSIONS = {
|
|
@@ -47,6 +47,7 @@ function BaseRegistrationFormView(props) {
|
|
|
47
47
|
h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.handleEmailSubmit, novalidate: true },
|
|
48
48
|
states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
49
49
|
h("div", { part: "erroralert-text" }, props.states.error))),
|
|
50
|
+
content.formData,
|
|
50
51
|
h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", required: true, validationError: ({ value }) => {
|
|
51
52
|
if (!value) {
|
|
52
53
|
return content.requiredFieldErrorMessage;
|
|
@@ -7,7 +7,7 @@ import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
|
7
7
|
import './mixins-f750863a.js';
|
|
8
8
|
import './sqm-text-span-view-4c17b8c9.js';
|
|
9
9
|
import { a as useRegistrationForm } from './useRegistrationFormState-24d594ea.js';
|
|
10
|
-
import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-
|
|
10
|
+
import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-1a6bb4b4.js';
|
|
11
11
|
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-8bdc3804.js';
|
|
12
12
|
import './AsYouType-46f67d0d.js';
|
|
13
13
|
import { u as usePortalRegistrationForm } from './usePortalRegistrationForm-1eb3cd72.js';
|
|
@@ -81,9 +81,12 @@ function usePortalGoogleRegistrationForm(props) {
|
|
|
81
81
|
let formData = {};
|
|
82
82
|
let errorMessage = null;
|
|
83
83
|
formControls.forEach((control) => {
|
|
84
|
-
if (!control.name
|
|
84
|
+
if (!control.name)
|
|
85
85
|
return;
|
|
86
86
|
jsonpointer.set(formData, control.name, control.value);
|
|
87
|
+
// only validate email field
|
|
88
|
+
if (control.name !== "/email")
|
|
89
|
+
return;
|
|
87
90
|
if (control.required && !control.value)
|
|
88
91
|
errorMessage = props.requiredFieldErrorMessage;
|
|
89
92
|
if (typeof control.validationError === "function") {
|
|
@@ -321,9 +324,7 @@ const PortalGoogleRegistrationForm = class {
|
|
|
321
324
|
...states,
|
|
322
325
|
emailDisabled: true,
|
|
323
326
|
hidePasswords: showRegistrationForm.mode === "google",
|
|
324
|
-
}, callbacks: callbacks, content:
|
|
325
|
-
...content,
|
|
326
|
-
}, refs: refs }));
|
|
327
|
+
}, callbacks: callbacks, content: content, refs: refs }));
|
|
327
328
|
}
|
|
328
329
|
};
|
|
329
330
|
function useRegisterDemo(props) {
|
|
@@ -359,7 +360,7 @@ function useGoogleDemo(props) {
|
|
|
359
360
|
mode: "base",
|
|
360
361
|
});
|
|
361
362
|
return cjs({
|
|
362
|
-
emailValidationError:
|
|
363
|
+
emailValidationError: false,
|
|
363
364
|
handleEmailSubmit: () => setShowRegistrationForm({ mode: "manual" }),
|
|
364
365
|
showRegistrationForm,
|
|
365
366
|
handleGoogleInit: () => setShowRegistrationForm({ mode: "google" }),
|
|
@@ -22,7 +22,7 @@ import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-0a2ec5
|
|
|
22
22
|
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-5a452423.js';
|
|
23
23
|
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-7d86299c.js';
|
|
24
24
|
import { P as PortalLoginView } from './sqm-portal-login-view-7670cd86.js';
|
|
25
|
-
import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-
|
|
25
|
+
import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-1a6bb4b4.js';
|
|
26
26
|
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-8bdc3804.js';
|
|
27
27
|
import { P as PortalProfileView } from './sqm-portal-profile-view-3ed13e4d.js';
|
|
28
28
|
import './utilities-72c07b09.js';
|