@saasquatch/mint-components 1.14.7-8 → 1.14.7
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-3c344355.js → ShadowViewAddon-28865623.js} +12 -4
- package/dist/cjs/sqm-big-stat_43.cjs.entry.js +3 -3
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.e2e.js +168 -0
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +11 -4
- package/dist/collection/components/sqm-context-router/sqm-context-router.e2e.js +180 -0
- package/dist/collection/components/sqm-lead-form/useLeadForm.js +2 -2
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.e2e.js +113 -0
- package/dist/collection/components/sqm-router/sqm-router.e2e.js +180 -0
- package/dist/collection/utils/utils.spec.js +71 -0
- package/dist/esm/{ShadowViewAddon-64194d20.js → ShadowViewAddon-f2176779.js} +12 -4
- package/dist/esm/sqm-big-stat_43.entry.js +3 -3
- package/dist/esm/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/ShadowViewAddon-f2176779.js +1 -0
- 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-0d939b73.system.js +1 -0
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/{p-1d8c24d9.system.entry.js → p-4cff3345.system.entry.js} +1 -1
- package/dist/mint-components/{p-8855bb68.entry.js → p-653a8a7b.entry.js} +2 -2
- package/dist/mint-components/p-a01e3c3d.system.entry.js +1 -0
- package/dist/mint-components/p-c1b074b6.js +394 -0
- package/dist/mint-components/{p-a94b5fc6.entry.js → p-c4ce8578.entry.js} +1 -1
- package/dist/types/components/sqm-big-stat/sqm-big-stat.e2e.d.ts +1 -0
- package/dist/types/components/sqm-context-router/sqm-context-router.e2e.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.e2e.d.ts +1 -0
- package/dist/types/components/sqm-router/sqm-router.e2e.d.ts +1 -0
- package/dist/types/utils/utils.spec.d.ts +1 -0
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/esm-es5/ShadowViewAddon-64194d20.js +0 -1
- package/dist/mint-components/p-0d94d81a.system.js +0 -1
- package/dist/mint-components/p-30a11ec0.js +0 -394
- package/dist/mint-components/p-5c35ab32.system.entry.js +0 -1
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
+
function newRoute(id, path) {
|
|
3
|
+
return /*html*/ `
|
|
4
|
+
<sqm-route path="${path}">
|
|
5
|
+
<div id=${id}></div>
|
|
6
|
+
</sqm-route>`;
|
|
7
|
+
}
|
|
8
|
+
function newTemplate(id, path) {
|
|
9
|
+
return /*html*/ `
|
|
10
|
+
<template path="${path}">
|
|
11
|
+
<div id=${id}></div>
|
|
12
|
+
</template>`;
|
|
13
|
+
}
|
|
14
|
+
function newPageFunctions(page) {
|
|
15
|
+
return {
|
|
16
|
+
expectElement: async (selector) => { var _a;
|
|
17
|
+
// convert to string because jest pretty printing the object causes errors
|
|
18
|
+
return expect((_a = (await page.find(selector))) === null || _a === void 0 ? void 0 : _a.id).not.toBeUndefined(); },
|
|
19
|
+
dontExpectElement: async (selector) => { var _a; return expect((_a = (await page.find(selector))) === null || _a === void 0 ? void 0 : _a.id).toBeUndefined(); },
|
|
20
|
+
expectTemplate: async (selector) => { var _a; return expect((_a = (await page.find("#" + selector))) === null || _a === void 0 ? void 0 : _a.id).not.toBeUndefined(); },
|
|
21
|
+
dontExpectTemplate: async (selector) => { var _a; return expect((_a = (await page.find("#" + selector))) === null || _a === void 0 ? void 0 : _a.id).toBeUndefined(); },
|
|
22
|
+
expectRoute: async (selector) => {
|
|
23
|
+
var _a;
|
|
24
|
+
return expect((_a = (await page.find('div[style="display: contents;"] > div#' + selector))) === null || _a === void 0 ? void 0 : _a.id).not.toBeUndefined();
|
|
25
|
+
},
|
|
26
|
+
dontExpectRoute: async (selector) => {
|
|
27
|
+
var _a;
|
|
28
|
+
return expect((_a = (await page.find('div[style="display: contents;"] > div#' + selector))) === null || _a === void 0 ? void 0 : _a.id).toBeUndefined();
|
|
29
|
+
},
|
|
30
|
+
history: {
|
|
31
|
+
push: (path) => page.evaluate((x) => window.squatchHistory.push(x), path),
|
|
32
|
+
back: () => page.evaluate(() => window.squatchHistory.back()),
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
describe("sqm-router", () => {
|
|
37
|
+
test("Default route", async () => {
|
|
38
|
+
const html = /*html*/ `
|
|
39
|
+
<sqm-router>
|
|
40
|
+
${newRoute("RouteA", "/")}
|
|
41
|
+
${newRoute("RouteB", "/B")}
|
|
42
|
+
</sqm-router>
|
|
43
|
+
`;
|
|
44
|
+
const page = await newE2EPage();
|
|
45
|
+
await page.setContent(html);
|
|
46
|
+
const { expectElement, expectRoute, dontExpectRoute } = newPageFunctions(page);
|
|
47
|
+
await expectElement("sqm-router");
|
|
48
|
+
await expectRoute("RouteA");
|
|
49
|
+
await dontExpectRoute("RouteB");
|
|
50
|
+
page.close();
|
|
51
|
+
});
|
|
52
|
+
test("Changing pages", async () => {
|
|
53
|
+
const html = /*html*/ `
|
|
54
|
+
<sqm-router>
|
|
55
|
+
${newRoute("RouteA", "/")}
|
|
56
|
+
${newRoute("RouteB", "/B")}
|
|
57
|
+
</sqm-router>
|
|
58
|
+
`;
|
|
59
|
+
const page = await newE2EPage();
|
|
60
|
+
await page.setContent(html);
|
|
61
|
+
const { expectElement, expectRoute, dontExpectRoute, history, } = newPageFunctions(page);
|
|
62
|
+
await expectElement("sqm-router");
|
|
63
|
+
await expectRoute("RouteA");
|
|
64
|
+
await dontExpectRoute("RouteB");
|
|
65
|
+
await history.push("/B");
|
|
66
|
+
await page.waitForChanges();
|
|
67
|
+
await dontExpectRoute("RouteA");
|
|
68
|
+
await expectRoute("RouteB");
|
|
69
|
+
await history.push("/");
|
|
70
|
+
await page.waitForChanges();
|
|
71
|
+
await expectRoute("RouteA");
|
|
72
|
+
await dontExpectRoute("RouteB");
|
|
73
|
+
page.close();
|
|
74
|
+
});
|
|
75
|
+
test("Going back", async () => {
|
|
76
|
+
const html = /*html*/ `
|
|
77
|
+
<sqm-router>
|
|
78
|
+
${newRoute("RouteA", "/")}
|
|
79
|
+
${newRoute("RouteB", "/B")}
|
|
80
|
+
${newRoute("RouteC", "/C")}
|
|
81
|
+
</sqm-router>
|
|
82
|
+
`;
|
|
83
|
+
const page = await newE2EPage();
|
|
84
|
+
await page.setContent(html);
|
|
85
|
+
const { expectElement, expectRoute, dontExpectRoute, history, } = newPageFunctions(page);
|
|
86
|
+
await expectElement("sqm-router");
|
|
87
|
+
await expectRoute("RouteA");
|
|
88
|
+
await dontExpectRoute("RouteB");
|
|
89
|
+
await dontExpectRoute("RouteC");
|
|
90
|
+
await history.push("/B");
|
|
91
|
+
await page.waitForChanges();
|
|
92
|
+
await dontExpectRoute("RouteA");
|
|
93
|
+
await expectRoute("RouteB");
|
|
94
|
+
await dontExpectRoute("RouteC");
|
|
95
|
+
await history.push("/C");
|
|
96
|
+
await page.waitForChanges();
|
|
97
|
+
await dontExpectRoute("RouteA");
|
|
98
|
+
await dontExpectRoute("RouteB");
|
|
99
|
+
await expectRoute("RouteC");
|
|
100
|
+
await history.back();
|
|
101
|
+
await page.waitForChanges();
|
|
102
|
+
await dontExpectRoute("RouteA");
|
|
103
|
+
await expectRoute("RouteB");
|
|
104
|
+
await dontExpectRoute("RouteC");
|
|
105
|
+
await history.back();
|
|
106
|
+
await page.waitForChanges();
|
|
107
|
+
await expectRoute("RouteA");
|
|
108
|
+
await dontExpectRoute("RouteB");
|
|
109
|
+
await dontExpectRoute("RouteC");
|
|
110
|
+
page.close();
|
|
111
|
+
});
|
|
112
|
+
test("Template has precedence over route", async () => {
|
|
113
|
+
const html = /*html*/ `
|
|
114
|
+
<sqm-router>
|
|
115
|
+
${newRoute("RouteA", "/")}
|
|
116
|
+
${newTemplate("RouteB", "/")}
|
|
117
|
+
${newRoute("RouteC", "/B")}
|
|
118
|
+
</sqm-router>
|
|
119
|
+
`;
|
|
120
|
+
const page = await newE2EPage();
|
|
121
|
+
await page.setContent(html);
|
|
122
|
+
const { expectElement, expectTemplate, dontExpectTemplate, expectRoute, dontExpectRoute, history, } = newPageFunctions(page);
|
|
123
|
+
await expectElement("sqm-router");
|
|
124
|
+
await dontExpectRoute("RouteA");
|
|
125
|
+
await expectTemplate("RouteB");
|
|
126
|
+
await dontExpectRoute("RouteC");
|
|
127
|
+
await history.push("/B");
|
|
128
|
+
await page.waitForChanges();
|
|
129
|
+
await dontExpectRoute("RouteA");
|
|
130
|
+
await dontExpectTemplate("RouteB");
|
|
131
|
+
await expectRoute("RouteC");
|
|
132
|
+
await history.push("/");
|
|
133
|
+
await page.waitForChanges();
|
|
134
|
+
await dontExpectRoute("RouteA");
|
|
135
|
+
await expectTemplate("RouteB");
|
|
136
|
+
await dontExpectRoute("RouteC");
|
|
137
|
+
page.close();
|
|
138
|
+
});
|
|
139
|
+
test("First matching element is chosen, with precedence", async () => {
|
|
140
|
+
const html = /*html*/ `
|
|
141
|
+
<sqm-router>
|
|
142
|
+
${newRoute("RootA", "/")}
|
|
143
|
+
${newRoute("RootB", "/")}
|
|
144
|
+
${newTemplate("RootC", "/")}
|
|
145
|
+
${newTemplate("RootD", "/")}
|
|
146
|
+
${newRoute("StuffA", "/stuff")}
|
|
147
|
+
${newRoute("StuffB", "/stuff")}
|
|
148
|
+
</sqm-router>
|
|
149
|
+
`;
|
|
150
|
+
const page = await newE2EPage();
|
|
151
|
+
await page.setContent(html);
|
|
152
|
+
const { expectElement, expectTemplate, dontExpectTemplate, expectRoute, dontExpectRoute, history, } = newPageFunctions(page);
|
|
153
|
+
await expectElement("sqm-router");
|
|
154
|
+
await dontExpectRoute("RootA");
|
|
155
|
+
await dontExpectRoute("RootB");
|
|
156
|
+
await expectTemplate("RootC");
|
|
157
|
+
await dontExpectTemplate("RootD");
|
|
158
|
+
await dontExpectRoute("StuffA");
|
|
159
|
+
await dontExpectRoute("StuffB");
|
|
160
|
+
await history.push("/stuff");
|
|
161
|
+
await page.waitForChanges();
|
|
162
|
+
await dontExpectRoute("RootA");
|
|
163
|
+
await dontExpectRoute("RootB");
|
|
164
|
+
await dontExpectTemplate("RootC");
|
|
165
|
+
await dontExpectTemplate("RootD");
|
|
166
|
+
await expectRoute("StuffA");
|
|
167
|
+
await dontExpectRoute("StuffB");
|
|
168
|
+
await history.push("/");
|
|
169
|
+
await page.waitForChanges();
|
|
170
|
+
await dontExpectRoute("RootA");
|
|
171
|
+
await dontExpectRoute("RootB");
|
|
172
|
+
await expectTemplate("RootC");
|
|
173
|
+
await dontExpectTemplate("RootD");
|
|
174
|
+
await dontExpectRoute("StuffA");
|
|
175
|
+
await dontExpectRoute("StuffB");
|
|
176
|
+
page.close();
|
|
177
|
+
});
|
|
178
|
+
});
|
|
179
|
+
// nice debugging tool
|
|
180
|
+
// console.log(await page.evaluate(()=>document.body.innerHTML))
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { newSpecPage } from "@stencil/core/testing";
|
|
2
|
+
import { format, sanitizeUrlPath } from "./utils";
|
|
3
|
+
describe("format", () => {
|
|
4
|
+
it("returns empty string for no names defined", () => {
|
|
5
|
+
expect(format(undefined, undefined, undefined)).toEqual("");
|
|
6
|
+
});
|
|
7
|
+
it("formats just first names", () => {
|
|
8
|
+
expect(format("Joseph", undefined, undefined)).toEqual("Joseph");
|
|
9
|
+
});
|
|
10
|
+
it("formats first and last names", () => {
|
|
11
|
+
expect(format("Joseph", undefined, "Publique")).toEqual("Joseph Publique");
|
|
12
|
+
});
|
|
13
|
+
it("formats first, middle and last names", () => {
|
|
14
|
+
expect(format("Joseph", "Quincy", "Publique")).toEqual("Joseph Quincy Publique");
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
describe("Users are redirected to the value of the nextPage url parameter as if it were a relative path", () => {
|
|
18
|
+
const expectUrlToRedirectTo = async (currentUrl, expectedUrl) => {
|
|
19
|
+
await newSpecPage({
|
|
20
|
+
components: [],
|
|
21
|
+
html: ``,
|
|
22
|
+
url: currentUrl,
|
|
23
|
+
});
|
|
24
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
25
|
+
const nextPage = urlParams.get("nextPage");
|
|
26
|
+
const url = sanitizeUrlPath(nextPage);
|
|
27
|
+
expect(url.href).toEqual(expectedUrl);
|
|
28
|
+
};
|
|
29
|
+
it("https://www.example.com?nextPage=activity --> https://www.example.com/activity", async () => {
|
|
30
|
+
await expectUrlToRedirectTo("https://www.example.com?nextPage=activity", "https://www.example.com/activity");
|
|
31
|
+
});
|
|
32
|
+
it("https://www.example.com?nextPage=./activity --> https://www.example.com/activity", async () => {
|
|
33
|
+
await expectUrlToRedirectTo("https://www.example.com?nextPage=./activity", "https://www.example.com/activity");
|
|
34
|
+
});
|
|
35
|
+
it("https://www.example.com?nextPage=/activity --> https://www.example.com/activity", async () => {
|
|
36
|
+
await expectUrlToRedirectTo("https://www.example.com?nextPage=/activity", "https://www.example.com/activity");
|
|
37
|
+
});
|
|
38
|
+
it("http://www.example.com/nest/page?oob=123&other&nextPage=activity#heading-1 --> http://www.example.com/activity", async () => {
|
|
39
|
+
await expectUrlToRedirectTo("http://www.example.com/nest/page?oob=123&other&nextPage=activity#heading-1", "http://www.example.com/activity");
|
|
40
|
+
});
|
|
41
|
+
it("https://www.example.com?nextPage=www.google.com --> https://www.example.com/www.google.com", async () => {
|
|
42
|
+
await expectUrlToRedirectTo("https://www.example.com?nextPage=www.google.com", "https://www.example.com/www.google.com");
|
|
43
|
+
});
|
|
44
|
+
it("https://www.example.com?nextPage=//foo.com --> https://www.example.com/", async () => {
|
|
45
|
+
await expectUrlToRedirectTo("https://www.example.com?nextPage=//foo.com", "https://www.example.com/");
|
|
46
|
+
});
|
|
47
|
+
it("https://www.example.com?nextPage=https://malicious.example.com --> https://www.example.com/", async () => {
|
|
48
|
+
await expectUrlToRedirectTo("https://www.example.com?nextPage=https://malicious.example.com", "https://www.example.com/");
|
|
49
|
+
});
|
|
50
|
+
it("https://www.example.com?nextPage=activity?foo=bar --> https://www.example.com/activity", async () => {
|
|
51
|
+
await expectUrlToRedirectTo("https://www.example.com?nextPage=activity?foo=bar", "https://www.example.com/activity?foo=bar");
|
|
52
|
+
});
|
|
53
|
+
it("https://www.example.com?nextPage=%2Factivity%3Ffoo%3Dbar --> https://www.example.com/activity?foo=bar", async () => {
|
|
54
|
+
await expectUrlToRedirectTo("https://www.example.com?nextPage=%2Factivity%3Ffoo%3Dbar", "https://www.example.com/activity?foo=bar");
|
|
55
|
+
});
|
|
56
|
+
it("https://www.example.com?nextPage=%2Factivity%3Ffoo%3Dbar#hash --> https://www.example.com/activity?foo=bar", async () => {
|
|
57
|
+
await expectUrlToRedirectTo("https://www.example.com?nextPage=%2Factivity%3Ffoo%3Dbar#hash", "https://www.example.com/activity?foo=bar");
|
|
58
|
+
});
|
|
59
|
+
it("https://www.example.com?nextPage=%2Factivity%3Ffoo%3Dbar%23hash --> https://www.example.com/activity?foo=bar#hash", async () => {
|
|
60
|
+
await expectUrlToRedirectTo("https://www.example.com?nextPage=%2Factivity%3Ffoo%3Dbar%23hash", "https://www.example.com/activity?foo=bar#hash");
|
|
61
|
+
});
|
|
62
|
+
it("https://www.example.com:1337?nextPage=activity --> https://www.example.com:1337/activity", async () => {
|
|
63
|
+
await expectUrlToRedirectTo("https://www.example.com:1337?nextPage=activity", "https://www.example.com:1337/activity");
|
|
64
|
+
});
|
|
65
|
+
it("http://1.1.1.1:1111?nextPage=activity --> http://1.1.1.1:1111/activity", async () => {
|
|
66
|
+
await expectUrlToRedirectTo("http://1.1.1.1:1111?nextPage=activity", "http://1.1.1.1:1111/activity");
|
|
67
|
+
});
|
|
68
|
+
it("@landmine https://user:pass@www.example.com:444?nextPage=activity --> https://www.example.com:444/activity", async () => {
|
|
69
|
+
await expectUrlToRedirectTo("https://user:pass@www.example.com:444?nextPage=activity", "https://www.example.com:444/activity");
|
|
70
|
+
});
|
|
71
|
+
});
|
|
@@ -1663,7 +1663,6 @@ function PortalRegisterView(props) {
|
|
|
1663
1663
|
const style$4 = {
|
|
1664
1664
|
ErrorStyle: {
|
|
1665
1665
|
"&::part(control)": {
|
|
1666
|
-
background: "var(--sl-color-danger-10)",
|
|
1667
1666
|
borderColor: "var(--sl-color-danger-500)",
|
|
1668
1667
|
outline: "var(--sl-color-danger-500)",
|
|
1669
1668
|
},
|
|
@@ -1702,8 +1701,9 @@ jss.setup(create());
|
|
|
1702
1701
|
const sheet$4 = jss.createStyleSheet(style$4);
|
|
1703
1702
|
const styleString$4 = sheet$4.toString();
|
|
1704
1703
|
function CheckboxFieldView(props) {
|
|
1705
|
-
var _b, _c;
|
|
1704
|
+
var _a, _b, _c, _d, _e;
|
|
1706
1705
|
const { states, content, callbacks } = props;
|
|
1706
|
+
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
1707
1707
|
return (h("div", { class: sheet$4.classes.FieldContainer, part: "sqm-base" },
|
|
1708
1708
|
h("style", { type: "text/css" },
|
|
1709
1709
|
vanillaStyle$2,
|
|
@@ -1711,12 +1711,20 @@ function CheckboxFieldView(props) {
|
|
|
1711
1711
|
h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
|
|
1712
1712
|
e.target.value = e.target.checked;
|
|
1713
1713
|
callbacks.setChecked(e.target.value);
|
|
1714
|
-
} }, (!content.checkboxOptional ? { required: false } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled),
|
|
1714
|
+
} }, (!content.checkboxOptional ? { required: false } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled), validationError: ({ value }) => {
|
|
1715
|
+
if (!value && !content.checkboxOptional) {
|
|
1716
|
+
return content.errorMessage;
|
|
1717
|
+
}
|
|
1718
|
+
} }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.validationErrors) === null || _e === void 0 ? void 0 : _e[content.checkboxName]) ? {
|
|
1719
|
+
class: sheet$4.classes.ErrorStyle,
|
|
1720
|
+
}
|
|
1721
|
+
: [])), intl.formatMessage({
|
|
1715
1722
|
id: content.checkboxName + "-message",
|
|
1716
1723
|
defaultMessage: content.checkboxLabel,
|
|
1717
1724
|
}, {
|
|
1718
1725
|
labelLink: (h("a", { href: content.checkboxLabelLink, target: "_blank" }, content.checkboxLabelLinkText || content.checkboxLabelLink)),
|
|
1719
|
-
}))
|
|
1726
|
+
})),
|
|
1727
|
+
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName]) && (h("p", { class: sheet$4.classes.ErrorMessageStyle }, content.errorMessage))));
|
|
1720
1728
|
}
|
|
1721
1729
|
|
|
1722
1730
|
function ChangeMarktingView(props) {
|
|
@@ -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-f2176779.js';
|
|
24
24
|
import './sqm-portal-container-view-1683ae32.js';
|
|
25
25
|
import { u as usePayoutStatus } from './usePayoutStatus-fed17fc9.js';
|
|
26
26
|
|
|
@@ -1473,8 +1473,8 @@ function useLeadForm(props) {
|
|
|
1473
1473
|
validationErrors: {},
|
|
1474
1474
|
});
|
|
1475
1475
|
(_b = (_a = formRef.current) === null || _a === void 0 ? void 0 : _a.getFormControls()) === null || _b === void 0 ? void 0 : _b.forEach((c) => {
|
|
1476
|
-
|
|
1477
|
-
if (c.type === "checkbox") {
|
|
1476
|
+
var _a;
|
|
1477
|
+
if (((_a = c.input) === null || _a === void 0 ? void 0 : _a.type) === "checkbox") {
|
|
1478
1478
|
c.checked = false;
|
|
1479
1479
|
c.value = false;
|
|
1480
1480
|
}
|
|
@@ -32,7 +32,7 @@ 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-f2176779.js';
|
|
36
36
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-1683ae32.js';
|
|
37
37
|
import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-7f376a75.js';
|
|
38
38
|
import { L as LeadInputFieldView } from './sqm-lead-input-field-view-4ede5d7f.js';
|