@saasquatch/mint-components 1.15.4-0 → 1.15.4-2
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 +17 -35
- 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 +8 -1
- 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 +29 -19
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +8 -5
- package/dist/collection/components/sqm-base-registration/BaseRegistrationForm.stories.js +2 -2
- package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +9 -4
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +1 -1
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +1 -1
- package/dist/collection/components/sqm-input-field/sqm-input-field.js +1 -1
- package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +1 -1
- package/dist/collection/components/sqm-name-fields/NameFields.stories.js +2 -0
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +3 -3
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +31 -1
- package/dist/collection/components/sqm-name-fields/useNameFields.js +1 -0
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +2 -2
- package/dist/collection/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.js +1 -0
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +7 -5
- package/dist/collection/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.js +23 -15
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +0 -1
- 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 +4 -18
- 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 +17 -35
- 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 +8 -1
- 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 +29 -19
- package/dist/esm/sqm-stencilbook.entry.js +8 -5
- package/dist/esm-es5/{ShadowViewAddon-f2176779.js → ShadowViewAddon-e0d5f1c9.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
- package/dist/esm-es5/sqm-base-registration-form-view-d81e316a.js +1 -0
- package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-3491dd80.js +1 -0
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-4a731079.entry.js → p-1edebab1.entry.js} +2 -2
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/{p-02832118.system.entry.js → p-3ac8613d.system.entry.js} +1 -1
- package/dist/mint-components/{p-c1b074b6.js → p-3b6dccec.js} +1 -1
- package/dist/mint-components/{p-6f6cd994.entry.js → p-3d73cd84.entry.js} +2 -2
- package/dist/mint-components/p-49932f12.system.js +1 -0
- package/dist/mint-components/p-7176a952.entry.js +1 -0
- package/dist/mint-components/p-8d0393d9.system.entry.js +1 -0
- package/dist/mint-components/p-9308221f.js +1 -0
- package/dist/mint-components/p-959c42b2.system.entry.js +1 -0
- package/dist/mint-components/p-bc021969.system.js +1 -0
- package/dist/mint-components/{p-945a5883.entry.js → p-c78e6066.entry.js} +2 -2
- package/dist/mint-components/{p-0d939b73.system.js → p-d15b642f.system.js} +1 -1
- package/dist/mint-components/{p-2ba713d6.system.entry.js → p-e64e8354.system.entry.js} +1 -1
- package/dist/mint-components/p-e8e48982.js +1 -0
- package/dist/types/components/sqm-base-registration/sqm-base-registration-form-view.d.ts +2 -1
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +1 -1
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +1 -1
- package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +1 -1
- package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +1 -1
- package/dist/types/components/sqm-name-fields/sqm-name-fields-view.d.ts +1 -0
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +5 -0
- package/dist/types/components/sqm-name-fields/useNameFields.d.ts +1 -0
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +1 -1
- package/dist/types/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.d.ts +2 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +0 -2
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +0 -1
- package/dist/types/components.d.ts +10 -13
- 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/mint-components/p-2651ef99.system.js +0 -1
- package/dist/mint-components/p-35701119.js +0 -1
- package/dist/mint-components/p-59fe6066.js +0 -1
- package/dist/mint-components/p-86a5db85.system.js +0 -1
- package/dist/mint-components/p-9c4f4cd6.entry.js +0 -1
- package/dist/mint-components/p-a3647f70.system.entry.js +0 -1
- package/dist/mint-components/p-c1fc4838.system.entry.js +0 -1
|
@@ -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" } }),
|
|
@@ -20,7 +20,7 @@ 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
25
|
import { u as usePayoutStatus } from './usePayoutStatus-b89e8c49.js';
|
|
26
26
|
|
|
@@ -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,
|
|
@@ -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,41 @@ 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
|
+
}
|
|
91
|
+
// errorMessage = props.requiredFieldErrorMessage;
|
|
92
92
|
if (typeof control.validationError === "function") {
|
|
93
93
|
const validate = control.validationError;
|
|
94
94
|
const validationError = validate({
|
|
95
95
|
control,
|
|
96
|
-
key
|
|
97
|
-
value
|
|
96
|
+
key,
|
|
97
|
+
value,
|
|
98
98
|
});
|
|
99
99
|
if (validationError)
|
|
100
|
-
|
|
100
|
+
jsonpointer.set(validationErrors, key, validationError);
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
|
-
if (
|
|
104
|
-
|
|
103
|
+
if (Object.keys(validationErrors).length) {
|
|
104
|
+
// early return for validation errors
|
|
105
|
+
setRegistrationFormState({
|
|
106
|
+
...registrationFormState,
|
|
107
|
+
loading: false,
|
|
108
|
+
error: "",
|
|
109
|
+
validationErrors,
|
|
110
|
+
});
|
|
105
111
|
return;
|
|
106
112
|
}
|
|
107
113
|
setRegistrationFormState({
|
|
108
114
|
...registrationFormState,
|
|
115
|
+
validationErrors: {},
|
|
109
116
|
initialData: {
|
|
110
117
|
...registrationFormState === null || registrationFormState === void 0 ? void 0 : registrationFormState.initialData,
|
|
111
118
|
...formData,
|
|
@@ -135,8 +142,9 @@ function usePortalGoogleRegistrationForm(props) {
|
|
|
135
142
|
}
|
|
136
143
|
};
|
|
137
144
|
return {
|
|
145
|
+
registrationFormState,
|
|
138
146
|
showRegistrationForm,
|
|
139
|
-
|
|
147
|
+
validationErrors: registrationFormState.validationErrors,
|
|
140
148
|
handleGoogleInit,
|
|
141
149
|
handleEmailSubmit,
|
|
142
150
|
};
|
|
@@ -292,7 +300,7 @@ const PortalGoogleRegistrationForm = class {
|
|
|
292
300
|
};
|
|
293
301
|
const sheet = createStyleSheet(styles);
|
|
294
302
|
const styleString = sheet.toString();
|
|
295
|
-
const { handleGoogleInit, handleEmailSubmit, showRegistrationForm,
|
|
303
|
+
const { handleGoogleInit, handleEmailSubmit, showRegistrationForm, validationErrors, } = isDemo() ? useGoogleDemo(this) : usePortalGoogleRegistrationForm(this);
|
|
296
304
|
const content = {
|
|
297
305
|
formData: h$1("slot", { name: "formData" }),
|
|
298
306
|
googleButton: (h$1("sqm-google-sign-in", { text: this.googleButtonText, onInitComplete: handleGoogleInit })),
|
|
@@ -317,14 +325,16 @@ const PortalGoogleRegistrationForm = class {
|
|
|
317
325
|
};
|
|
318
326
|
if (showRegistrationForm.mode === "base") {
|
|
319
327
|
return (h$1(BaseRegistrationFormView, { states: {
|
|
320
|
-
|
|
328
|
+
validationErrors,
|
|
321
329
|
}, callbacks: { handleEmailSubmit }, content: content }));
|
|
322
330
|
}
|
|
323
331
|
return (h$1(PortalRegistrationFormView, { states: {
|
|
324
332
|
...states,
|
|
325
333
|
emailDisabled: true,
|
|
326
334
|
hidePasswords: showRegistrationForm.mode === "google",
|
|
327
|
-
}, callbacks: callbacks,
|
|
335
|
+
}, callbacks: callbacks,
|
|
336
|
+
// Show terms only on first screen
|
|
337
|
+
content: { ...content, terms: null }, refs: refs }));
|
|
328
338
|
}
|
|
329
339
|
};
|
|
330
340
|
function useRegisterDemo(props) {
|
|
@@ -360,7 +370,7 @@ function useGoogleDemo(props) {
|
|
|
360
370
|
mode: "base",
|
|
361
371
|
});
|
|
362
372
|
return cjs({
|
|
363
|
-
|
|
373
|
+
validationErrors: {},
|
|
364
374
|
handleEmailSubmit: () => setShowRegistrationForm({ mode: "manual" }),
|
|
365
375
|
showRegistrationForm,
|
|
366
376
|
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,
|