@saasquatch/mint-components 1.14.6-31 → 1.14.6-33
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-cfd0e201.js → ShadowViewAddon-3c344355.js} +4 -3
- package/dist/cjs/sqm-big-stat_43.cjs.entry.js +1 -4
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field-view.js +4 -2
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field.js +1 -3
- package/dist/collection/components/sqm-lead-form/sqm-lead-form-view.js +0 -1
- package/dist/collection/components/sqm-lead-form/sqm-lead-form.js +1 -1
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field.js +0 -2
- package/dist/collection/components/sqm-lead-form/useLeadForm.js +0 -3
- package/dist/esm/{ShadowViewAddon-00515b50.js → ShadowViewAddon-64194d20.js} +4 -3
- package/dist/esm/sqm-big-stat_43.entry.js +1 -4
- package/dist/esm/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/{ShadowViewAddon-00515b50.js → ShadowViewAddon-64194d20.js} +1 -1
- package/dist/esm-es5/sqm-big-stat_43.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-cc9ec01e.entry.js → p-0a4f1306.entry.js} +11 -11
- package/dist/mint-components/{p-6544656d.system.js → p-0d94d81a.system.js} +1 -1
- package/dist/mint-components/{p-eb9ecf25.js → p-30a11ec0.js} +4 -4
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/p-74fdf750.system.entry.js +1 -0
- package/dist/mint-components/{p-d3144467.system.entry.js → p-eaf1a8a6.system.entry.js} +1 -1
- package/dist/mint-components/{p-ad24132a.entry.js → p-f60d1ae9.entry.js} +1 -1
- package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field.d.ts +1 -3
- package/dist/types/components/sqm-lead-form/sqm-lead-form.d.ts +1 -1
- package/dist/types/components/sqm-lead-form/sqm-lead-input-field.d.ts +0 -2
- 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/package.json +1 -1
- package/dist/mint-components/p-c2375fad.system.entry.js +0 -1
|
@@ -4104,7 +4104,6 @@ const styleString$d = sheet$d.toString();
|
|
|
4104
4104
|
function LeadFormView(props) {
|
|
4105
4105
|
var _a, _b, _c, _d;
|
|
4106
4106
|
const { states, refs, callbacks, content } = props;
|
|
4107
|
-
console.log({ states });
|
|
4108
4107
|
if (states.error) {
|
|
4109
4108
|
window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
|
|
4110
4109
|
}
|
|
@@ -4192,6 +4191,9 @@ sl-select::part(label){
|
|
|
4192
4191
|
font-size: var(--sl-input-label-font-size-small);
|
|
4193
4192
|
font-weight: var(--sl-font-weight-semibold);
|
|
4194
4193
|
}
|
|
4194
|
+
sl-select::part(menu){
|
|
4195
|
+
max-height: 300px;
|
|
4196
|
+
}
|
|
4195
4197
|
`;
|
|
4196
4198
|
JSS.jss.setup(JSS.create());
|
|
4197
4199
|
const sheet$e = JSS.jss.createStyleSheet(style$e);
|
|
@@ -4200,7 +4202,6 @@ function LeadDropdownFieldView(props) {
|
|
|
4200
4202
|
var _a, _b, _c, _d, _e;
|
|
4201
4203
|
const { states, content } = props;
|
|
4202
4204
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.leadFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
4203
|
-
console.log({ validationErrors });
|
|
4204
4205
|
const getRequiredFieldErrorMessage = ({ dropdownLabel, }) => global.intl.formatMessage({
|
|
4205
4206
|
id: `requiredFieldErrorMessage-${dropdownLabel}`,
|
|
4206
4207
|
defaultMessage: content.requiredFieldErrorMessage,
|
|
@@ -4211,7 +4212,7 @@ function LeadDropdownFieldView(props) {
|
|
|
4211
4212
|
index.h("style", { type: "text/css" },
|
|
4212
4213
|
vanillaStyle$9,
|
|
4213
4214
|
styleString$e),
|
|
4214
|
-
index.h("sl-select", Object.assign({ exportparts: "label: input-label, base: input-base", label: `${content.dropdownLabel}${content.dropdownOptional ? ` ${content.optionalLabel}` : ""}`, name: `/${content.dropdownName}`, multiple: content.multiple }, (!content.dropdownOptional ? { required: true } : []), { disabled: ((_b = states.leadFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.leadFormState) === null || _c === void 0 ? void 0 : _c.disabled), validationError: ({ value }) => {
|
|
4215
|
+
index.h("sl-select", Object.assign({ style: { maxHeight: "100px" }, exportparts: "label: input-label, base: input-base", label: `${content.dropdownLabel}${content.dropdownOptional ? ` ${content.optionalLabel}` : ""}`, name: `/${content.dropdownName}`, multiple: content.multiple }, (!content.dropdownOptional ? { required: true } : []), { disabled: ((_b = states.leadFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.leadFormState) === null || _c === void 0 ? void 0 : _c.disabled), validationError: ({ value }) => {
|
|
4215
4216
|
if (!value && !content.dropdownOptional) {
|
|
4216
4217
|
return getRequiredFieldErrorMessage({
|
|
4217
4218
|
dropdownLabel: content.dropdownLabel,
|
|
@@ -23,7 +23,7 @@ const sqmPortalLoginView = require('./sqm-portal-login-view-761a4d8e.js');
|
|
|
23
23
|
const usePortalLogin = require('./usePortalLogin-63d896d1.js');
|
|
24
24
|
const AsYouType = require('./AsYouType-6788393a.js');
|
|
25
25
|
const utilities = require('./utilities-78f5e169.js');
|
|
26
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
26
|
+
const ShadowViewAddon = require('./ShadowViewAddon-3c344355.js');
|
|
27
27
|
require('./sqm-portal-container-view-4f15143a.js');
|
|
28
28
|
const useLeadFormState = require('./useLeadFormState-c83d2034.js');
|
|
29
29
|
const usePayoutStatus = require('./usePayoutStatus-feeac99b.js');
|
|
@@ -1391,7 +1391,6 @@ function useLeadForm(props) {
|
|
|
1391
1391
|
const programId = index_module.H();
|
|
1392
1392
|
const user = index_module.J();
|
|
1393
1393
|
const { data: userDetails } = index_module.wn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
1394
|
-
console.log({ userDetails });
|
|
1395
1394
|
const [submitLead, { loading, errors, data }] = index_module.$e(SUBMIT_LEAD);
|
|
1396
1395
|
const [success, setSuccess] = stencilHooks_module.useState(false);
|
|
1397
1396
|
stencilHooks_module.useEffect(() => {
|
|
@@ -1436,7 +1435,6 @@ function useLeadForm(props) {
|
|
|
1436
1435
|
error: "",
|
|
1437
1436
|
validationErrors: {},
|
|
1438
1437
|
});
|
|
1439
|
-
formData = { ...formData };
|
|
1440
1438
|
const variables = {
|
|
1441
1439
|
key: props.formKey,
|
|
1442
1440
|
formData,
|
|
@@ -1494,7 +1492,6 @@ function useLeadForm(props) {
|
|
|
1494
1492
|
errorMessage =
|
|
1495
1493
|
((_f = (_e = (_d = (_c = errors === null || errors === void 0 ? void 0 : errors.response) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.extensions) === null || _f === void 0 ? void 0 : _f.message) || ((_j = (_h = (_g = errors === null || errors === void 0 ? void 0 : errors.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) || (leadFormState === null || leadFormState === void 0 ? void 0 : leadFormState.error);
|
|
1496
1494
|
}
|
|
1497
|
-
console.log({ errors, errorMessage });
|
|
1498
1495
|
return {
|
|
1499
1496
|
states: {
|
|
1500
1497
|
loading,
|
|
@@ -35,7 +35,7 @@ const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-fe6
|
|
|
35
35
|
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-7b678f34.js');
|
|
36
36
|
require('./ErrorView-b2fcf954.js');
|
|
37
37
|
const sqmQrCodeView = require('./sqm-qr-code-view-15dfc0b6.js');
|
|
38
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
38
|
+
const ShadowViewAddon = require('./ShadowViewAddon-3c344355.js');
|
|
39
39
|
const sqmPortalContainerView = require('./sqm-portal-container-view-4f15143a.js');
|
|
40
40
|
const sqmInvoiceTableView = require('./sqm-invoice-table-view-0f7fa309.js');
|
|
41
41
|
const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-89308aab.js');
|
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
"./components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js",
|
|
44
44
|
"./components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js",
|
|
45
45
|
"./components/sqm-lead-form/sqm-lead-dropdown-field.js",
|
|
46
|
-
"./components/sqm-referral-iframe/sqm-referral-iframe.js",
|
|
47
46
|
"./components/sqm-lead-form/sqm-lead-form.js",
|
|
48
47
|
"./components/sqm-lead-form/sqm-lead-input-field.js",
|
|
49
48
|
"./components/sqm-leaderboard/sqm-leaderboard.js",
|
|
@@ -79,6 +78,7 @@
|
|
|
79
78
|
"./components/sqm-qr-code/sqm-qr-code.js",
|
|
80
79
|
"./components/sqm-referral-card/sqm-referral-card.js",
|
|
81
80
|
"./components/sqm-referral-code/sqm-referral-code.js",
|
|
81
|
+
"./components/sqm-referral-iframe/sqm-referral-iframe.js",
|
|
82
82
|
"./components/sqm-referral-table/cells/sqm-referral-table-cell.js",
|
|
83
83
|
"./components/sqm-referral-table/cells/sqm-referral-table-date-cell.js",
|
|
84
84
|
"./components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js",
|
|
@@ -28,6 +28,9 @@ sl-select::part(label){
|
|
|
28
28
|
font-size: var(--sl-input-label-font-size-small);
|
|
29
29
|
font-weight: var(--sl-font-weight-semibold);
|
|
30
30
|
}
|
|
31
|
+
sl-select::part(menu){
|
|
32
|
+
max-height: 300px;
|
|
33
|
+
}
|
|
31
34
|
`;
|
|
32
35
|
jss.setup(preset());
|
|
33
36
|
const sheet = jss.createStyleSheet(style);
|
|
@@ -36,7 +39,6 @@ export function LeadDropdownFieldView(props) {
|
|
|
36
39
|
var _a, _b, _c, _d, _e;
|
|
37
40
|
const { states, content } = props;
|
|
38
41
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.leadFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
39
|
-
console.log({ validationErrors });
|
|
40
42
|
const getRequiredFieldErrorMessage = ({ dropdownLabel, }) => intl.formatMessage({
|
|
41
43
|
id: `requiredFieldErrorMessage-${dropdownLabel}`,
|
|
42
44
|
defaultMessage: content.requiredFieldErrorMessage,
|
|
@@ -47,7 +49,7 @@ export function LeadDropdownFieldView(props) {
|
|
|
47
49
|
h("style", { type: "text/css" },
|
|
48
50
|
vanillaStyle,
|
|
49
51
|
styleString),
|
|
50
|
-
h("sl-select", Object.assign({ exportparts: "label: input-label, base: input-base", label: `${content.dropdownLabel}${content.dropdownOptional ? ` ${content.optionalLabel}` : ""}`, name: `/${content.dropdownName}`, multiple: content.multiple }, (!content.dropdownOptional ? { required: true } : []), { disabled: ((_b = states.leadFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.leadFormState) === null || _c === void 0 ? void 0 : _c.disabled), validationError: ({ value }) => {
|
|
52
|
+
h("sl-select", Object.assign({ style: { maxHeight: "100px" }, exportparts: "label: input-label, base: input-base", label: `${content.dropdownLabel}${content.dropdownOptional ? ` ${content.optionalLabel}` : ""}`, name: `/${content.dropdownName}`, multiple: content.multiple }, (!content.dropdownOptional ? { required: true } : []), { disabled: ((_b = states.leadFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.leadFormState) === null || _c === void 0 ? void 0 : _c.disabled), validationError: ({ value }) => {
|
|
51
53
|
if (!value && !content.dropdownOptional) {
|
|
52
54
|
return getRequiredFieldErrorMessage({
|
|
53
55
|
dropdownLabel: content.dropdownLabel,
|
|
@@ -9,9 +9,7 @@ import { useLeadDropdownField } from "./useLeadDropdownField";
|
|
|
9
9
|
/**
|
|
10
10
|
* @uiName Lead Form Dropdown Field
|
|
11
11
|
* @validParents ["sqm-lead-form"]
|
|
12
|
-
* @slots [{"name":"", "title":"
|
|
13
|
-
* @exampleGroup Microsite Components
|
|
14
|
-
* @example Lead Form Dropdown Field - <sqm-lead-dropdown-field dropdown-label="Select an option" required-field-error-message="Please select an option"><sl-menu-item value="option-1">Option 1</sl-menu-item><sl-menu-item value="option-2">Option 2</sl-menu-item><sl-menu-item value="option-3">Option 3</sl-menu-item></sqm-lead-dropdown-field>
|
|
12
|
+
* @slots [{"name":"", "title":"Dropdown Option"}]
|
|
15
13
|
*/
|
|
16
14
|
export class LeadDropdownField {
|
|
17
15
|
constructor() {
|
|
@@ -61,7 +61,6 @@ const styleString = sheet.toString();
|
|
|
61
61
|
export function LeadFormView(props) {
|
|
62
62
|
var _a, _b, _c, _d;
|
|
63
63
|
const { states, refs, callbacks, content } = props;
|
|
64
|
-
console.log({ states });
|
|
65
64
|
if (states.error) {
|
|
66
65
|
window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
|
|
67
66
|
}
|
|
@@ -6,7 +6,7 @@ import { LeadFormView } from "./sqm-lead-form-view";
|
|
|
6
6
|
import { useLeadForm } from "./useLeadForm";
|
|
7
7
|
/**
|
|
8
8
|
* @uiName Lead Form
|
|
9
|
-
* @slots [{"name":"formData","title":"Additional Fields"}
|
|
9
|
+
* @slots [{"name":"formData","title":"Additional Fields"}]
|
|
10
10
|
*/
|
|
11
11
|
export class LeadForm {
|
|
12
12
|
constructor() {
|
|
@@ -9,8 +9,6 @@ import { useLeadInputField } from "./useLeadInputField";
|
|
|
9
9
|
/**
|
|
10
10
|
* @uiName Lead Form Input Field
|
|
11
11
|
* @validParents ["sqm-lead-form"]
|
|
12
|
-
* @exampleGroup Microsite Components
|
|
13
|
-
* @example Lead Form Input Field - <sqm-input-field input-label="Field Label" field-type="text" error-message="Cannot be empty"></sqm-input-field>
|
|
14
12
|
*/
|
|
15
13
|
export class LeadInputField {
|
|
16
14
|
constructor() {
|
|
@@ -27,7 +27,6 @@ export function useLeadForm(props) {
|
|
|
27
27
|
const programId = useProgramId();
|
|
28
28
|
const user = useUserIdentity();
|
|
29
29
|
const { data: userDetails } = useQuery(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
30
|
-
console.log({ userDetails });
|
|
31
30
|
const [submitLead, { loading, errors, data }] = useMutation(SUBMIT_LEAD);
|
|
32
31
|
const [success, setSuccess] = useState(false);
|
|
33
32
|
useEffect(() => {
|
|
@@ -72,7 +71,6 @@ export function useLeadForm(props) {
|
|
|
72
71
|
error: "",
|
|
73
72
|
validationErrors: {},
|
|
74
73
|
});
|
|
75
|
-
formData = { ...formData };
|
|
76
74
|
const variables = {
|
|
77
75
|
key: props.formKey,
|
|
78
76
|
formData,
|
|
@@ -130,7 +128,6 @@ export function useLeadForm(props) {
|
|
|
130
128
|
errorMessage =
|
|
131
129
|
((_f = (_e = (_d = (_c = errors === null || errors === void 0 ? void 0 : errors.response) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.extensions) === null || _f === void 0 ? void 0 : _f.message) || ((_j = (_h = (_g = errors === null || errors === void 0 ? void 0 : errors.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) || (leadFormState === null || leadFormState === void 0 ? void 0 : leadFormState.error);
|
|
132
130
|
}
|
|
133
|
-
console.log({ errors, errorMessage });
|
|
134
131
|
return {
|
|
135
132
|
states: {
|
|
136
133
|
loading,
|
|
@@ -4102,7 +4102,6 @@ const styleString$d = sheet$d.toString();
|
|
|
4102
4102
|
function LeadFormView(props) {
|
|
4103
4103
|
var _a, _b, _c, _d;
|
|
4104
4104
|
const { states, refs, callbacks, content } = props;
|
|
4105
|
-
console.log({ states });
|
|
4106
4105
|
if (states.error) {
|
|
4107
4106
|
window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
|
|
4108
4107
|
}
|
|
@@ -4190,6 +4189,9 @@ sl-select::part(label){
|
|
|
4190
4189
|
font-size: var(--sl-input-label-font-size-small);
|
|
4191
4190
|
font-weight: var(--sl-font-weight-semibold);
|
|
4192
4191
|
}
|
|
4192
|
+
sl-select::part(menu){
|
|
4193
|
+
max-height: 300px;
|
|
4194
|
+
}
|
|
4193
4195
|
`;
|
|
4194
4196
|
jss.setup(create());
|
|
4195
4197
|
const sheet$e = jss.createStyleSheet(style$e);
|
|
@@ -4198,7 +4200,6 @@ function LeadDropdownFieldView(props) {
|
|
|
4198
4200
|
var _a, _b, _c, _d, _e;
|
|
4199
4201
|
const { states, content } = props;
|
|
4200
4202
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.leadFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
4201
|
-
console.log({ validationErrors });
|
|
4202
4203
|
const getRequiredFieldErrorMessage = ({ dropdownLabel, }) => intl.formatMessage({
|
|
4203
4204
|
id: `requiredFieldErrorMessage-${dropdownLabel}`,
|
|
4204
4205
|
defaultMessage: content.requiredFieldErrorMessage,
|
|
@@ -4209,7 +4210,7 @@ function LeadDropdownFieldView(props) {
|
|
|
4209
4210
|
h("style", { type: "text/css" },
|
|
4210
4211
|
vanillaStyle$9,
|
|
4211
4212
|
styleString$e),
|
|
4212
|
-
h("sl-select", Object.assign({ exportparts: "label: input-label, base: input-base", label: `${content.dropdownLabel}${content.dropdownOptional ? ` ${content.optionalLabel}` : ""}`, name: `/${content.dropdownName}`, multiple: content.multiple }, (!content.dropdownOptional ? { required: true } : []), { disabled: ((_b = states.leadFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.leadFormState) === null || _c === void 0 ? void 0 : _c.disabled), validationError: ({ value }) => {
|
|
4213
|
+
h("sl-select", Object.assign({ style: { maxHeight: "100px" }, exportparts: "label: input-label, base: input-base", label: `${content.dropdownLabel}${content.dropdownOptional ? ` ${content.optionalLabel}` : ""}`, name: `/${content.dropdownName}`, multiple: content.multiple }, (!content.dropdownOptional ? { required: true } : []), { disabled: ((_b = states.leadFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.leadFormState) === null || _c === void 0 ? void 0 : _c.disabled), validationError: ({ value }) => {
|
|
4213
4214
|
if (!value && !content.dropdownOptional) {
|
|
4214
4215
|
return getRequiredFieldErrorMessage({
|
|
4215
4216
|
dropdownLabel: content.dropdownLabel,
|
|
@@ -19,7 +19,7 @@ import { P as PortalLoginView } from './sqm-portal-login-view-7e49609a.js';
|
|
|
19
19
|
import { u as usePortalLogin } from './usePortalLogin-ef647a50.js';
|
|
20
20
|
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
21
21
|
import { i as isEmpty } from './utilities-5b0ca040.js';
|
|
22
|
-
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-
|
|
22
|
+
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-64194d20.js';
|
|
23
23
|
import './sqm-portal-container-view-1683ae32.js';
|
|
24
24
|
import { R as RequiredPropsError, L as LEAD_FORM_STATE_CONTEXT, u as useLeadFormState } from './useLeadFormState-9016d812.js';
|
|
25
25
|
import { u as usePayoutStatus } from './usePayoutStatus-fed17fc9.js';
|
|
@@ -1387,7 +1387,6 @@ function useLeadForm(props) {
|
|
|
1387
1387
|
const programId = H();
|
|
1388
1388
|
const user = J();
|
|
1389
1389
|
const { data: userDetails } = wn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
1390
|
-
console.log({ userDetails });
|
|
1391
1390
|
const [submitLead, { loading, errors, data }] = $e(SUBMIT_LEAD);
|
|
1392
1391
|
const [success, setSuccess] = useState(false);
|
|
1393
1392
|
useEffect(() => {
|
|
@@ -1432,7 +1431,6 @@ function useLeadForm(props) {
|
|
|
1432
1431
|
error: "",
|
|
1433
1432
|
validationErrors: {},
|
|
1434
1433
|
});
|
|
1435
|
-
formData = { ...formData };
|
|
1436
1434
|
const variables = {
|
|
1437
1435
|
key: props.formKey,
|
|
1438
1436
|
formData,
|
|
@@ -1490,7 +1488,6 @@ function useLeadForm(props) {
|
|
|
1490
1488
|
errorMessage =
|
|
1491
1489
|
((_f = (_e = (_d = (_c = errors === null || errors === void 0 ? void 0 : errors.response) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.extensions) === null || _f === void 0 ? void 0 : _f.message) || ((_j = (_h = (_g = errors === null || errors === void 0 ? void 0 : errors.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) || (leadFormState === null || leadFormState === void 0 ? void 0 : leadFormState.error);
|
|
1492
1490
|
}
|
|
1493
|
-
console.log({ errors, errorMessage });
|
|
1494
1491
|
return {
|
|
1495
1492
|
states: {
|
|
1496
1493
|
loading,
|
|
@@ -31,7 +31,7 @@ import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-5
|
|
|
31
31
|
import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-b12cb894.js';
|
|
32
32
|
import './ErrorView-48e2b969.js';
|
|
33
33
|
import { Q as QrCodeView } from './sqm-qr-code-view-f1d0763b.js';
|
|
34
|
-
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-
|
|
34
|
+
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-64194d20.js';
|
|
35
35
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-1683ae32.js';
|
|
36
36
|
import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-7f376a75.js';
|
|
37
37
|
import { L as LeadInputFieldView } from './sqm-lead-input-field-view-4ede5d7f.js';
|