@cuemath/leap 3.5.41 → 3.5.42
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/assets/illustrations/illustrations.js +2 -1
- package/dist/assets/illustrations/illustrations.js.map +1 -1
- package/dist/assets/line-icons/icons/apple-icon2.js +17 -0
- package/dist/assets/line-icons/icons/apple-icon2.js.map +1 -0
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js +14 -12
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js.map +1 -1
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js +45 -43
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js.map +1 -1
- package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text.js +14 -14
- package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text.js.map +1 -1
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +16 -15
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +1 -1
- package/dist/features/auth/comps/otp-input/otp-input-styled.js +10 -12
- package/dist/features/auth/comps/otp-input/otp-input-styled.js.map +1 -1
- package/dist/features/auth/comps/otp-input/otp-input.js +31 -20
- package/dist/features/auth/comps/otp-input/otp-input.js.map +1 -1
- package/dist/features/auth/comps/pill-button/pill-button-styled.js +22 -19
- package/dist/features/auth/comps/pill-button/pill-button-styled.js.map +1 -1
- package/dist/features/auth/comps/pill-button/pill-button.js +42 -39
- package/dist/features/auth/comps/pill-button/pill-button.js.map +1 -1
- package/dist/features/auth/comps/selectable-info-card/selectable-info-card-styled.js +6 -6
- package/dist/features/auth/comps/selectable-info-card/selectable-info-card-styled.js.map +1 -1
- package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js +42 -40
- package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js.map +1 -1
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-styled.js +19 -17
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-styled.js.map +1 -1
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide.js +34 -29
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide.js.map +1 -1
- package/dist/features/auth/pla-signup/pla-analytics-events.js +18 -20
- package/dist/features/auth/pla-signup/pla-analytics-events.js.map +1 -1
- package/dist/features/auth/pla-signup/signup-header/signup-header.js +18 -31
- package/dist/features/auth/pla-signup/signup-header/signup-header.js.map +1 -1
- package/dist/features/auth/pla-signup/signup-options/signup-options.js +56 -46
- package/dist/features/auth/pla-signup/signup-options/signup-options.js.map +1 -1
- package/dist/features/parent-dashboard/comps/compact-header/compact-header.js +19 -15
- package/dist/features/parent-dashboard/comps/compact-header/compact-header.js.map +1 -1
- package/dist/features/trial-session/trial-session-constants.js +9 -8
- package/dist/features/trial-session/trial-session-constants.js.map +1 -1
- package/dist/features/ui/tabs/tab-tem/tab-item.js +25 -22
- package/dist/features/ui/tabs/tab-tem/tab-item.js.map +1 -1
- package/dist/features/ui/tabs/tabs-styled.js +14 -18
- package/dist/features/ui/tabs/tabs-styled.js.map +1 -1
- package/dist/features/ui/tabs/tabs.js +17 -13
- package/dist/features/ui/tabs/tabs.js.map +1 -1
- package/dist/index.d.ts +33 -22
- package/dist/index.js +247 -247
- package/dist/static/stripe-blurple.7f233048.svg +1 -0
- package/dist/static/trustpilot-black.3878bb6f.svg +1 -0
- package/package.json +1 -1
- package/dist/assets/line-icons/icons/apple-icon-white.js +0 -42
- package/dist/assets/line-icons/icons/apple-icon-white.js.map +0 -1
- package/dist/static/stripe-blurple.6abf422f.svg +0 -1
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
theme: { colors: t, mediaQueries:
|
|
5
|
-
isHorizontalLayout:
|
|
1
|
+
import o from "styled-components";
|
|
2
|
+
import h from "../../../ui/layout/flex-view.js";
|
|
3
|
+
const x = o(h)(({
|
|
4
|
+
theme: { colors: t, mediaQueries: i },
|
|
5
|
+
isHorizontalLayout: e,
|
|
6
|
+
borderRight: r,
|
|
7
|
+
afterContentBackground: p
|
|
6
8
|
}) => `
|
|
7
9
|
position: relative;
|
|
8
10
|
|
|
9
|
-
${
|
|
10
|
-
border-right: 2px solid ${t
|
|
11
|
+
${e ? `
|
|
12
|
+
border-right: 2px solid ${t[r]};
|
|
11
13
|
&:first-child {
|
|
12
14
|
padding-left: 0;
|
|
13
15
|
}
|
|
@@ -22,7 +24,7 @@ const h = p(o)(({
|
|
|
22
24
|
height: 2px;
|
|
23
25
|
right: -20px;
|
|
24
26
|
top: 28px;
|
|
25
|
-
background-color: ${t
|
|
27
|
+
background-color: ${t[p]};
|
|
26
28
|
}
|
|
27
29
|
`}
|
|
28
30
|
|
|
@@ -33,8 +35,8 @@ const h = p(o)(({
|
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
37
|
|
|
36
|
-
${
|
|
37
|
-
${!
|
|
38
|
+
${i.minWidthSmallDesktop} {
|
|
39
|
+
${!e && `margin-bottom: 48px;
|
|
38
40
|
&::after {
|
|
39
41
|
content: '';
|
|
40
42
|
position: absolute;
|
|
@@ -43,26 +45,26 @@ const h = p(o)(({
|
|
|
43
45
|
height: 24px;
|
|
44
46
|
bottom: -36px;
|
|
45
47
|
left: 28px;
|
|
46
|
-
background-color: ${t
|
|
48
|
+
background-color: ${t[p]};
|
|
47
49
|
}
|
|
48
50
|
`}
|
|
49
51
|
|
|
50
52
|
}
|
|
51
|
-
`),
|
|
53
|
+
`), l = o(h)(({
|
|
52
54
|
theme: { mediaQueries: t },
|
|
53
|
-
isHorizontalLayout:
|
|
55
|
+
isHorizontalLayout: i
|
|
54
56
|
}) => `
|
|
55
57
|
width: 100%;
|
|
56
58
|
max-width: 350px;
|
|
57
59
|
${t.minWidthTablet} {
|
|
58
|
-
max-width: ${
|
|
60
|
+
max-width: ${i ? "100%" : "350px"};
|
|
59
61
|
}
|
|
60
62
|
${t.minWidthSmallDesktop} {
|
|
61
|
-
max-width: ${
|
|
63
|
+
max-width: ${i ? "100%" : "310px"};
|
|
62
64
|
}
|
|
63
65
|
`);
|
|
64
66
|
export {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
x as StepItem,
|
|
68
|
+
l as StepWrapper
|
|
67
69
|
};
|
|
68
70
|
//# sourceMappingURL=onboarding-guide-styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onboarding-guide-styled.js","sources":["../../../../../src/features/auth/pla-signup/onboarding-guide/onboarding-guide-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nexport const StepItem = styled(FlexView)<
|
|
1
|
+
{"version":3,"file":"onboarding-guide-styled.js","sources":["../../../../../src/features/auth/pla-signup/onboarding-guide/onboarding-guide-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport type { TColorNames } from '../../../ui/types';\n\ntype TStepItem = {\n isHorizontalLayout: boolean;\n borderRight: TColorNames;\n afterContentBackground: TColorNames;\n};\n\nexport const StepItem = styled(FlexView)<TStepItem>(({\n theme: { colors, mediaQueries },\n isHorizontalLayout,\n borderRight,\n afterContentBackground,\n}) => {\n return `\n position: relative;\n\n ${\n isHorizontalLayout\n ? `\n border-right: 2px solid ${colors[borderRight]};\n &:first-child {\n padding-left: 0;\n }\n &:last-child {\n padding-right: 0;\n }\n `\n : `\n &::after {\n content: '';\n position: absolute;\n width: 32px;\n height: 2px;\n right: -20px;\n top: 28px;\n background-color: ${colors[afterContentBackground]};\n }\n `\n }\n\n &:last-child {\n border-right: none;\n &::after {\n display: none;\n }\n }\n\n ${mediaQueries.minWidthSmallDesktop} {\n ${\n !isHorizontalLayout &&\n `margin-bottom: 48px;\n &::after {\n content: '';\n position: absolute;\n width: 2px;\n top: unset;\n height: 24px;\n bottom: -36px;\n left: 28px;\n background-color: ${colors[afterContentBackground]};\n }\n `\n }\n \n }\n `;\n});\n\nexport const StepWrapper = styled(FlexView)<{ isHorizontalLayout: boolean }>(({\n theme: { mediaQueries },\n isHorizontalLayout,\n}) => {\n return `\n width: 100%;\n max-width: 350px;\n ${mediaQueries.minWidthTablet} {\n max-width: ${isHorizontalLayout ? '100%' : '350px'};\n }\n ${mediaQueries.minWidthSmallDesktop} {\n max-width: ${isHorizontalLayout ? '100%' : '310px'};\n }\n`;\n});\n"],"names":["StepItem","styled","FlexView","colors","mediaQueries","isHorizontalLayout","borderRight","afterContentBackground","StepWrapper"],"mappings":";;AAWO,MAAMA,IAAWC,EAAOC,CAAQ,EAAa,CAAC;AAAA,EACnD,OAAO,EAAE,QAAAC,GAAQ,cAAAC,EAAa;AAAA,EAC9B,oBAAAC;AAAA,EACA,aAAAC;AAAA,EACA,wBAAAC;AACF,MACS;AAAA;AAAA;AAAA,QAIDF,IACI;AAAA,oCACwBF,EAAOG,CAAW,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAQ3C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCAQoBH,EAAOI,CAAsB,CAAC;AAAA;AAAA,SAGxD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QASEH,EAAa,oBAAoB;AAAA,UAE/B,CAACC,KACD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kCASwBF,EAAOI,CAAsB,CAAC;AAAA;AAAA,WAGxD;AAAA;AAAA;AAAA,KAIP,GAEYC,IAAcP,EAAOC,CAAQ,EAAmC,CAAC;AAAA,EAC5E,OAAO,EAAE,cAAAE,EAAa;AAAA,EACtB,oBAAAC;AACF,MACS;AAAA;AAAA;AAAA,IAGLD,EAAa,cAAc;AAAA,iBACdC,IAAqB,SAAS,OAAO;AAAA;AAAA,IAElDD,EAAa,oBAAoB;AAAA,iBACpBC,IAAqB,SAAS,OAAO;AAAA;AAAA,CAGrD;"}
|
|
@@ -1,81 +1,86 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { useTheme as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { EDeviceType as
|
|
8
|
-
import { onboardingGuideSteps as
|
|
9
|
-
import { StepWrapper as
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { memo as x } from "react";
|
|
3
|
+
import { useTheme as T } from "styled-components";
|
|
4
|
+
import s from "../../../ui/layout/flex-view.js";
|
|
5
|
+
import b from "../../../ui/separator/separator.js";
|
|
6
|
+
import d from "../../../ui/text/text.js";
|
|
7
|
+
import { EDeviceType as p } from "../../../ui/theme/constants.js";
|
|
8
|
+
import { onboardingGuideSteps as u } from "./onboarding-guide-constants.js";
|
|
9
|
+
import { StepWrapper as g, StepItem as A } from "./onboarding-guide-styled.js";
|
|
10
|
+
const C = ({
|
|
11
|
+
orientation: f = "vertical",
|
|
12
|
+
renderThemeAs: $ = "dark"
|
|
13
|
+
}) => {
|
|
14
|
+
const { device: n } = T(), t = n <= p.TABLET, h = n <= p.MOBILE, e = f === "horizontal" && !h, l = t || e ? "row" : "column", i = $ === "dark", a = i ? "WHITE" : "BLACK";
|
|
15
|
+
return /* @__PURE__ */ m(
|
|
16
|
+
s,
|
|
14
17
|
{
|
|
15
18
|
$flex: 1,
|
|
16
19
|
$alignItems: e ? "flex-start" : "center",
|
|
17
20
|
$justifyContent: "center",
|
|
18
21
|
children: [
|
|
19
22
|
/* @__PURE__ */ r(
|
|
20
|
-
|
|
23
|
+
d,
|
|
21
24
|
{
|
|
22
25
|
$whiteSpace: "pre-line",
|
|
23
26
|
$renderAs: "ah4-bold",
|
|
24
27
|
$renderOnTabletAs: "ab1-bold",
|
|
25
|
-
$color:
|
|
28
|
+
$color: a,
|
|
26
29
|
$align: e ? "left" : "center",
|
|
27
30
|
children: "Get started in 3 easy steps!"
|
|
28
31
|
}
|
|
29
32
|
),
|
|
30
|
-
/* @__PURE__ */ r(
|
|
33
|
+
/* @__PURE__ */ r(b, { heightX: e ? 1.25 : t ? 1 : 2.75 }),
|
|
31
34
|
/* @__PURE__ */ r(
|
|
32
|
-
|
|
35
|
+
g,
|
|
33
36
|
{
|
|
34
|
-
$flexDirection:
|
|
37
|
+
$flexDirection: l,
|
|
35
38
|
$flexColumnGapX: e ? 0 : 0.5,
|
|
36
39
|
isHorizontalLayout: e,
|
|
37
|
-
children:
|
|
38
|
-
|
|
40
|
+
children: u.map((o, c) => /* @__PURE__ */ m(
|
|
41
|
+
A,
|
|
39
42
|
{
|
|
40
43
|
$flex: 1,
|
|
41
|
-
$flexDirection:
|
|
44
|
+
$flexDirection: l === "row" ? "column" : "row",
|
|
42
45
|
$flexColumnGapX: 1.5,
|
|
43
46
|
$flexRowGapX: 0.5,
|
|
44
47
|
$alignItems: e ? "flex-start" : "center",
|
|
45
|
-
isHorizontalLayout: e,
|
|
46
48
|
$gutterX: e ? 1 : 0,
|
|
49
|
+
isHorizontalLayout: e,
|
|
50
|
+
borderRight: i ? "WHITE_T_15" : "REAL_BLACK_15",
|
|
51
|
+
afterContentBackground: i ? "WHITE_T_15" : "REAL_BLACK_15",
|
|
47
52
|
children: [
|
|
48
53
|
/* @__PURE__ */ r(
|
|
49
54
|
"img",
|
|
50
55
|
{
|
|
51
56
|
src: o.icon,
|
|
52
|
-
alt: `Step ${
|
|
57
|
+
alt: `Step ${c + 1}`,
|
|
53
58
|
width: e ? 80 : 56,
|
|
54
59
|
height: e ? 80 : 56
|
|
55
60
|
}
|
|
56
61
|
),
|
|
57
|
-
/* @__PURE__ */ r(
|
|
58
|
-
|
|
62
|
+
/* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(
|
|
63
|
+
d,
|
|
59
64
|
{
|
|
60
65
|
$whiteSpace: "pre-line",
|
|
61
66
|
$renderAs: "ab2",
|
|
62
67
|
$renderOnTabletAs: "ab3",
|
|
63
|
-
$color:
|
|
68
|
+
$color: a,
|
|
64
69
|
$align: t ? "center" : "left",
|
|
65
70
|
children: t && o.mobileTitle ? o.mobileTitle : o.title
|
|
66
71
|
}
|
|
67
72
|
) })
|
|
68
73
|
]
|
|
69
74
|
},
|
|
70
|
-
|
|
75
|
+
c
|
|
71
76
|
))
|
|
72
77
|
}
|
|
73
78
|
)
|
|
74
79
|
]
|
|
75
80
|
}
|
|
76
81
|
);
|
|
77
|
-
},
|
|
82
|
+
}, O = x(C);
|
|
78
83
|
export {
|
|
79
|
-
|
|
84
|
+
O as default
|
|
80
85
|
};
|
|
81
86
|
//# sourceMappingURL=onboarding-guide.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onboarding-guide.js","sources":["../../../../../src/features/auth/pla-signup/onboarding-guide/onboarding-guide.tsx"],"sourcesContent":["import { memo } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { EDeviceType } from '../../../ui/theme/constants';\nimport { onboardingGuideSteps } from './onboarding-guide-constants';\nimport * as Styled from './onboarding-guide-styled';\nimport type { IOnboardingGuideProps } from './onboarding-guide-types';\n\nconst OnboardingGuide = ({
|
|
1
|
+
{"version":3,"file":"onboarding-guide.js","sources":["../../../../../src/features/auth/pla-signup/onboarding-guide/onboarding-guide.tsx"],"sourcesContent":["import { memo } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { EDeviceType } from '../../../ui/theme/constants';\nimport { onboardingGuideSteps } from './onboarding-guide-constants';\nimport * as Styled from './onboarding-guide-styled';\nimport type { IOnboardingGuideProps } from './onboarding-guide-types';\n\nconst OnboardingGuide = ({\n orientation = 'vertical',\n renderThemeAs = 'dark',\n}: IOnboardingGuideProps) => {\n const { device } = useTheme();\n const isCompact = device <= EDeviceType.TABLET;\n const isMobile = device <= EDeviceType.MOBILE;\n const isHorizontalLayout = orientation === 'horizontal' && !isMobile;\n const flexDirection = isCompact || isHorizontalLayout ? 'row' : 'column';\n const isDarkTheme = renderThemeAs === 'dark';\n const textColor = isDarkTheme ? 'WHITE' : 'BLACK';\n\n return (\n <FlexView\n $flex={1}\n $alignItems={isHorizontalLayout ? 'flex-start' : 'center'}\n $justifyContent=\"center\"\n >\n <Text\n $whiteSpace=\"pre-line\"\n $renderAs=\"ah4-bold\"\n $renderOnTabletAs=\"ab1-bold\"\n $color={textColor}\n $align={isHorizontalLayout ? 'left' : 'center'}\n >\n Get started in 3 easy steps!\n </Text>\n\n <Separator heightX={isHorizontalLayout ? 1.25 : isCompact ? 1 : 2.75} />\n\n <Styled.StepWrapper\n $flexDirection={flexDirection}\n $flexColumnGapX={!isHorizontalLayout ? 0.5 : 0}\n isHorizontalLayout={isHorizontalLayout}\n >\n {onboardingGuideSteps.map((step, index) => (\n <Styled.StepItem\n key={index}\n $flex={1}\n $flexDirection={flexDirection === 'row' ? 'column' : 'row'}\n $flexColumnGapX={1.5}\n $flexRowGapX={0.5}\n $alignItems={isHorizontalLayout ? 'flex-start' : 'center'}\n $gutterX={isHorizontalLayout ? 1 : 0}\n isHorizontalLayout={isHorizontalLayout}\n borderRight={isDarkTheme ? 'WHITE_T_15' : 'REAL_BLACK_15'}\n afterContentBackground={isDarkTheme ? 'WHITE_T_15' : 'REAL_BLACK_15'}\n >\n <img\n src={step.icon}\n alt={`Step ${index + 1}`}\n width={isHorizontalLayout ? 80 : 56}\n height={isHorizontalLayout ? 80 : 56}\n />\n <FlexView>\n <Text\n $whiteSpace=\"pre-line\"\n $renderAs=\"ab2\"\n $renderOnTabletAs=\"ab3\"\n $color={textColor}\n $align={isCompact ? 'center' : 'left'}\n >\n {isCompact && step.mobileTitle ? step.mobileTitle : step.title}\n </Text>\n </FlexView>\n </Styled.StepItem>\n ))}\n </Styled.StepWrapper>\n </FlexView>\n );\n};\n\nexport default memo(OnboardingGuide);\n"],"names":["OnboardingGuide","orientation","renderThemeAs","device","useTheme","isCompact","EDeviceType","isMobile","isHorizontalLayout","flexDirection","isDarkTheme","textColor","jsxs","FlexView","jsx","Text","Separator","Styled.StepWrapper","onboardingGuideSteps","step","index","Styled.StepItem","OnboardingGuide$1","memo"],"mappings":";;;;;;;;;AAWA,MAAMA,IAAkB,CAAC;AAAA,EACvB,aAAAC,IAAc;AAAA,EACd,eAAAC,IAAgB;AAClB,MAA6B;AACrB,QAAA,EAAE,QAAAC,MAAWC,KACbC,IAAYF,KAAUG,EAAY,QAClCC,IAAWJ,KAAUG,EAAY,QACjCE,IAAqBP,MAAgB,gBAAgB,CAACM,GACtDE,IAAgBJ,KAAaG,IAAqB,QAAQ,UAC1DE,IAAcR,MAAkB,QAChCS,IAAYD,IAAc,UAAU;AAGxC,SAAA,gBAAAE;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,MACP,aAAaL,IAAqB,eAAe;AAAA,MACjD,iBAAgB;AAAA,MAEhB,UAAA;AAAA,QAAA,gBAAAM;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,aAAY;AAAA,YACZ,WAAU;AAAA,YACV,mBAAkB;AAAA,YAClB,QAAQJ;AAAA,YACR,QAAQH,IAAqB,SAAS;AAAA,YACvC,UAAA;AAAA,UAAA;AAAA,QAED;AAAA,0BAECQ,GAAU,EAAA,SAASR,IAAqB,OAAOH,IAAY,IAAI,MAAM;AAAA,QAEtE,gBAAAS;AAAA,UAACG;AAAAA,UAAA;AAAA,YACC,gBAAgBR;AAAA,YAChB,iBAAkBD,IAA2B,IAAN;AAAA,YACvC,oBAAAA;AAAA,YAEC,UAAqBU,EAAA,IAAI,CAACC,GAAMC,MAC/B,gBAAAR;AAAA,cAACS;AAAAA,cAAA;AAAA,gBAEC,OAAO;AAAA,gBACP,gBAAgBZ,MAAkB,QAAQ,WAAW;AAAA,gBACrD,iBAAiB;AAAA,gBACjB,cAAc;AAAA,gBACd,aAAaD,IAAqB,eAAe;AAAA,gBACjD,UAAUA,IAAqB,IAAI;AAAA,gBACnC,oBAAAA;AAAA,gBACA,aAAaE,IAAc,eAAe;AAAA,gBAC1C,wBAAwBA,IAAc,eAAe;AAAA,gBAErD,UAAA;AAAA,kBAAA,gBAAAI;AAAA,oBAAC;AAAA,oBAAA;AAAA,sBACC,KAAKK,EAAK;AAAA,sBACV,KAAK,QAAQC,IAAQ,CAAC;AAAA,sBACtB,OAAOZ,IAAqB,KAAK;AAAA,sBACjC,QAAQA,IAAqB,KAAK;AAAA,oBAAA;AAAA,kBACpC;AAAA,oCACCK,GACC,EAAA,UAAA,gBAAAC;AAAA,oBAACC;AAAA,oBAAA;AAAA,sBACC,aAAY;AAAA,sBACZ,WAAU;AAAA,sBACV,mBAAkB;AAAA,sBAClB,QAAQJ;AAAA,sBACR,QAAQN,IAAY,WAAW;AAAA,sBAE9B,UAAaA,KAAAc,EAAK,cAAcA,EAAK,cAAcA,EAAK;AAAA,oBAAA;AAAA,kBAAA,GAE7D;AAAA,gBAAA;AAAA,cAAA;AAAA,cA3BKC;AAAA,YAAA,CA6BR;AAAA,UAAA;AAAA,QACH;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN,GAEeE,IAAAC,EAAKvB,CAAe;"}
|
|
@@ -1,38 +1,36 @@
|
|
|
1
1
|
import { PLUGINS as _ } from "../../../node_modules/@cuemath/analytics-v2/dist/constants.js";
|
|
2
|
-
var t = /* @__PURE__ */ ((e) => (e.
|
|
3
|
-
const
|
|
4
|
-
start_signup_cta_clicked: [_.MIXPANEL],
|
|
5
|
-
ecna_step_viewed: [_.MIXPANEL],
|
|
2
|
+
var t = /* @__PURE__ */ ((e) => (e.ECNA_RESPONSE_RECORDED_DEBUG = "ecna_response_recorded_debug", e.ECNA_STEP_VIEWED = "ecna_step_viewed", e.PARENT_SIGNUP_CTA_CLICKED = "parent_signup_cta_clicked", e.PARENT_SIGNUP_FAILED = "parent_signup_failed", e.PARENT_SIGNUP_SUCCESSFUL = "parent_signup_successful", e.PAYMENT_PLAN_SELECTED = "payment_plan_selected", e.SIGNUP_OTP_ENTERED = "signup_otp_entered", e.SIGNUP_OTP_FAILED = "signup_otp_failed", e.SIGNUP_OTP_VERIFIED = "signup_otp_verified", e.SIGNUP_TO_LOGIN_CTA_CLICKED = "signup_to_login_cta_clicked", e.SLOTS_SHOWN = "slots_shown", e.SLOT_DATE_SELECTED = "slot_date_selected", e.SLOT_DATE_TIME_SUBMITED = "slot_date_time_submited", e.SLOT_DATE_TIME_SUBMITION_FAILED = "slot_date_time_submition_failed", e.SLOT_TIME_SELECTED = "slot_time_selected", e.START_SIGNUP_CTA_CLICKED = "start_signup_cta_clicked", e.STRIPE_INTENT_FAILED_RETRY = "stripe_intent_failed_retry", e.STRIPE_PAYMENT_ELEMENT_MOUNT_FAILED = "stripe_payment_element_mount_failed", e.STRIPE_PAYMENT_ELEMENT_READY = "stripe_payment_element_ready", e.STRIPE_PAYMENT_FAILED = "stripe_payment_failed", e.STRIPE_PAYMENT_SUCCESS = "stripe_payment_success", e.STUDENT_SIGNUP_FAILED = "student_signup_failed", e.STUDENT_SIGNUP_SUCCESSFUL = "student_signup_successful", e.SUBSCRIPTION_CANCELLATION_FAILED = "subscription_cancellation_failed", e.SUBSCRIPTION_CANCELLATION_SUCCESSFUL = "subscription_cancellation_successful", e.SUBSCRIPTION_INTENT_CREATED = "subscription_intent_created", e.SUBSCRIPTION_INTENT_FAILED = "subscription_intent_failed", e.TUTOR_CHANGE_REASON_SELECTED = "tutor_change_reason_selected", e))(t || {});
|
|
3
|
+
const i = {
|
|
6
4
|
ecna_response_recorded_debug: [_.MIXPANEL],
|
|
5
|
+
ecna_step_viewed: [_.MIXPANEL],
|
|
7
6
|
parent_signup_cta_clicked: [_.MIXPANEL],
|
|
8
|
-
parent_signup_successful: [_.MIXPANEL],
|
|
9
7
|
parent_signup_failed: [_.MIXPANEL],
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
parent_signup_successful: [_.MIXPANEL],
|
|
9
|
+
payment_plan_selected: [_.MIXPANEL],
|
|
12
10
|
signup_otp_entered: [_.MIXPANEL],
|
|
13
|
-
signup_otp_verified: [_.MIXPANEL],
|
|
14
11
|
signup_otp_failed: [_.MIXPANEL],
|
|
12
|
+
signup_otp_verified: [_.MIXPANEL],
|
|
15
13
|
slots_shown: [_.MIXPANEL],
|
|
16
14
|
slot_date_selected: [_.MIXPANEL],
|
|
17
|
-
slot_time_selected: [_.MIXPANEL],
|
|
18
15
|
slot_date_time_submited: [_.MIXPANEL],
|
|
19
16
|
slot_date_time_submition_failed: [_.MIXPANEL],
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
subscription_intent_created: [_.MIXPANEL],
|
|
17
|
+
slot_time_selected: [_.MIXPANEL],
|
|
18
|
+
start_signup_cta_clicked: [_.MIXPANEL],
|
|
19
|
+
stripe_intent_failed_retry: [_.MIXPANEL],
|
|
20
|
+
stripe_payment_element_mount_failed: [_.MIXPANEL],
|
|
25
21
|
stripe_payment_element_ready: [_.MIXPANEL],
|
|
26
22
|
stripe_payment_failed: [_.MIXPANEL],
|
|
27
23
|
stripe_payment_success: [_.MIXPANEL],
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
student_signup_failed: [_.MIXPANEL],
|
|
25
|
+
student_signup_successful: [_.MIXPANEL],
|
|
26
|
+
subscription_cancellation_failed: [_.MIXPANEL],
|
|
27
|
+
subscription_cancellation_successful: [_.MIXPANEL],
|
|
28
|
+
subscription_intent_created: [_.MIXPANEL],
|
|
29
|
+
subscription_intent_failed: [_.MIXPANEL],
|
|
30
|
+
tutor_change_reason_selected: [_.MIXPANEL]
|
|
33
31
|
};
|
|
34
32
|
export {
|
|
35
33
|
t as PLA_ANALYTICS_EVENTS,
|
|
36
|
-
|
|
34
|
+
i as PLA_ANALYTICS_WHITELIST_EVENTS
|
|
37
35
|
};
|
|
38
36
|
//# sourceMappingURL=pla-analytics-events.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pla-analytics-events.js","sources":["../../../../src/features/auth/pla-signup/pla-analytics-events.ts"],"sourcesContent":["import { PLUGINS } from '@cuemath/analytics-v2/dist/constants';\n\nexport enum PLA_ANALYTICS_EVENTS {\n
|
|
1
|
+
{"version":3,"file":"pla-analytics-events.js","sources":["../../../../src/features/auth/pla-signup/pla-analytics-events.ts"],"sourcesContent":["import { PLUGINS } from '@cuemath/analytics-v2/dist/constants';\n\nexport enum PLA_ANALYTICS_EVENTS {\n ECNA_RESPONSE_RECORDED_DEBUG = 'ecna_response_recorded_debug',\n ECNA_STEP_VIEWED = 'ecna_step_viewed',\n PARENT_SIGNUP_CTA_CLICKED = 'parent_signup_cta_clicked',\n PARENT_SIGNUP_FAILED = 'parent_signup_failed',\n PARENT_SIGNUP_SUCCESSFUL = 'parent_signup_successful',\n PAYMENT_PLAN_SELECTED = 'payment_plan_selected',\n SIGNUP_OTP_ENTERED = 'signup_otp_entered',\n SIGNUP_OTP_FAILED = 'signup_otp_failed',\n SIGNUP_OTP_VERIFIED = 'signup_otp_verified',\n SIGNUP_TO_LOGIN_CTA_CLICKED = 'signup_to_login_cta_clicked',\n SLOTS_SHOWN = 'slots_shown',\n SLOT_DATE_SELECTED = 'slot_date_selected',\n SLOT_DATE_TIME_SUBMITED = 'slot_date_time_submited',\n SLOT_DATE_TIME_SUBMITION_FAILED = 'slot_date_time_submition_failed',\n SLOT_TIME_SELECTED = 'slot_time_selected',\n START_SIGNUP_CTA_CLICKED = 'start_signup_cta_clicked',\n STRIPE_INTENT_FAILED_RETRY = 'stripe_intent_failed_retry',\n STRIPE_PAYMENT_ELEMENT_MOUNT_FAILED = 'stripe_payment_element_mount_failed',\n STRIPE_PAYMENT_ELEMENT_READY = 'stripe_payment_element_ready',\n STRIPE_PAYMENT_FAILED = 'stripe_payment_failed',\n STRIPE_PAYMENT_SUCCESS = 'stripe_payment_success',\n STUDENT_SIGNUP_FAILED = 'student_signup_failed',\n STUDENT_SIGNUP_SUCCESSFUL = 'student_signup_successful',\n SUBSCRIPTION_CANCELLATION_FAILED = 'subscription_cancellation_failed',\n SUBSCRIPTION_CANCELLATION_SUCCESSFUL = 'subscription_cancellation_successful',\n SUBSCRIPTION_INTENT_CREATED = 'subscription_intent_created',\n SUBSCRIPTION_INTENT_FAILED = 'subscription_intent_failed',\n TUTOR_CHANGE_REASON_SELECTED = 'tutor_change_reason_selected',\n}\n\nexport const PLA_ANALYTICS_WHITELIST_EVENTS = {\n [PLA_ANALYTICS_EVENTS.ECNA_RESPONSE_RECORDED_DEBUG]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.ECNA_STEP_VIEWED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.PARENT_SIGNUP_CTA_CLICKED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.PARENT_SIGNUP_FAILED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.PARENT_SIGNUP_SUCCESSFUL]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.PAYMENT_PLAN_SELECTED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SIGNUP_OTP_ENTERED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SIGNUP_OTP_FAILED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SIGNUP_OTP_VERIFIED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SLOTS_SHOWN]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SLOT_DATE_SELECTED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SLOT_DATE_TIME_SUBMITED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SLOT_DATE_TIME_SUBMITION_FAILED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SLOT_TIME_SELECTED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.START_SIGNUP_CTA_CLICKED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.STRIPE_INTENT_FAILED_RETRY]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.STRIPE_PAYMENT_ELEMENT_MOUNT_FAILED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.STRIPE_PAYMENT_ELEMENT_READY]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.STRIPE_PAYMENT_FAILED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.STRIPE_PAYMENT_SUCCESS]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.STUDENT_SIGNUP_FAILED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.STUDENT_SIGNUP_SUCCESSFUL]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SUBSCRIPTION_CANCELLATION_FAILED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SUBSCRIPTION_CANCELLATION_SUCCESSFUL]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SUBSCRIPTION_INTENT_CREATED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SUBSCRIPTION_INTENT_FAILED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.TUTOR_CHANGE_REASON_SELECTED]: [PLUGINS.MIXPANEL],\n};\n"],"names":["PLA_ANALYTICS_EVENTS","PLA_ANALYTICS_WHITELIST_EVENTS","PLUGINS"],"mappings":";AAEY,IAAAA,sBAAAA,OACVA,EAAA,+BAA+B,gCAC/BA,EAAA,mBAAmB,oBACnBA,EAAA,4BAA4B,6BAC5BA,EAAA,uBAAuB,wBACvBA,EAAA,2BAA2B,4BAC3BA,EAAA,wBAAwB,yBACxBA,EAAA,qBAAqB,sBACrBA,EAAA,oBAAoB,qBACpBA,EAAA,sBAAsB,uBACtBA,EAAA,8BAA8B,+BAC9BA,EAAA,cAAc,eACdA,EAAA,qBAAqB,sBACrBA,EAAA,0BAA0B,2BAC1BA,EAAA,kCAAkC,mCAClCA,EAAA,qBAAqB,sBACrBA,EAAA,2BAA2B,4BAC3BA,EAAA,6BAA6B,8BAC7BA,EAAA,sCAAsC,uCACtCA,EAAA,+BAA+B,gCAC/BA,EAAA,wBAAwB,yBACxBA,EAAA,yBAAyB,0BACzBA,EAAA,wBAAwB,yBACxBA,EAAA,4BAA4B,6BAC5BA,EAAA,mCAAmC,oCACnCA,EAAA,uCAAuC,wCACvCA,EAAA,8BAA8B,+BAC9BA,EAAA,6BAA6B,8BAC7BA,EAAA,+BAA+B,gCA5BrBA,IAAAA,KAAA,CAAA,CAAA;AA+BL,MAAMC,IAAiC;AAAA,EAC3C,8BAAoD,CAACC,EAAQ,QAAQ;AAAA,EACrE,kBAAwC,CAACA,EAAQ,QAAQ;AAAA,EACzD,2BAAiD,CAACA,EAAQ,QAAQ;AAAA,EAClE,sBAA4C,CAACA,EAAQ,QAAQ;AAAA,EAC7D,0BAAgD,CAACA,EAAQ,QAAQ;AAAA,EACjE,uBAA6C,CAACA,EAAQ,QAAQ;AAAA,EAC9D,oBAA0C,CAACA,EAAQ,QAAQ;AAAA,EAC3D,mBAAyC,CAACA,EAAQ,QAAQ;AAAA,EAC1D,qBAA2C,CAACA,EAAQ,QAAQ;AAAA,EAC5D,aAAmC,CAACA,EAAQ,QAAQ;AAAA,EACpD,oBAA0C,CAACA,EAAQ,QAAQ;AAAA,EAC3D,yBAA+C,CAACA,EAAQ,QAAQ;AAAA,EAChE,iCAAuD,CAACA,EAAQ,QAAQ;AAAA,EACxE,oBAA0C,CAACA,EAAQ,QAAQ;AAAA,EAC3D,0BAAgD,CAACA,EAAQ,QAAQ;AAAA,EACjE,4BAAkD,CAACA,EAAQ,QAAQ;AAAA,EACnE,qCAA2D,CAACA,EAAQ,QAAQ;AAAA,EAC5E,8BAAoD,CAACA,EAAQ,QAAQ;AAAA,EACrE,uBAA6C,CAACA,EAAQ,QAAQ;AAAA,EAC9D,wBAA8C,CAACA,EAAQ,QAAQ;AAAA,EAC/D,uBAA6C,CAACA,EAAQ,QAAQ;AAAA,EAC9D,2BAAiD,CAACA,EAAQ,QAAQ;AAAA,EAClE,kCAAwD,CAACA,EAAQ,QAAQ;AAAA,EACzE,sCAA4D,CAACA,EAAQ,QAAQ;AAAA,EAC7E,6BAAmD,CAACA,EAAQ,QAAQ;AAAA,EACpE,4BAAkD,CAACA,EAAQ,QAAQ;AAAA,EACnE,8BAAoD,CAACA,EAAQ,QAAQ;AACxE;"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { useTheme as
|
|
3
|
-
import { ILLUSTRATIONS as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
2
|
+
import { useTheme as d } from "styled-components";
|
|
3
|
+
import { ILLUSTRATIONS as n } from "../../../../assets/illustrations/illustrations.js";
|
|
4
|
+
import p from "../../../ui/image/image.js";
|
|
5
|
+
import m from "../../../ui/layout/flex-view.js";
|
|
6
|
+
import f from "../../../ui/separator/separator.js";
|
|
7
7
|
import l from "../../../ui/text/text.js";
|
|
8
|
-
import { EDeviceType as
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
import { EDeviceType as T } from "../../../ui/theme/constants.js";
|
|
9
|
+
import h from "../../../../assets/line-icons/icons/cuemath-logo.js";
|
|
10
|
+
const $ = ({ renderThemeAs: s = "dark" }) => {
|
|
11
|
+
const { device: a } = d(), e = a <= T.TABLET, i = s === "dark", c = i ? n.TRUSTPILOT : n.TRUSTPILOT_BLACK, o = i ? "BLACK" : "WHITE";
|
|
11
12
|
return /* @__PURE__ */ t(
|
|
12
|
-
|
|
13
|
+
m,
|
|
13
14
|
{
|
|
14
15
|
$flexDirection: e ? "row" : "column",
|
|
15
16
|
$alignItems: e ? "center" : "flex-start",
|
|
@@ -17,38 +18,24 @@ const d = () => {
|
|
|
17
18
|
$flexColumnGapX: 1,
|
|
18
19
|
$justifyContent: e ? "space-between" : "flex-start",
|
|
19
20
|
children: [
|
|
20
|
-
/* @__PURE__ */ r(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
src: o.CIRCLE_CUEMATH_LOGO_WHITE,
|
|
25
|
-
height: e ? 12 : 16
|
|
26
|
-
}
|
|
27
|
-
),
|
|
28
|
-
!e && /* @__PURE__ */ r(c, { heightX: 1 }),
|
|
29
|
-
/* @__PURE__ */ t(n, { $flexDirection: "row", $alignItems: "flex-end", children: [
|
|
30
|
-
/* @__PURE__ */ t(l, { $renderAs: "ab2", $renderOnTabletAs: "ub3", $color: "WHITE", children: [
|
|
21
|
+
/* @__PURE__ */ r(h, { width: e ? 80 : 107, height: e ? 12 : 16, color: o }),
|
|
22
|
+
!e && /* @__PURE__ */ r(f, { heightX: 1 }),
|
|
23
|
+
/* @__PURE__ */ t(m, { $flexDirection: "row", $alignItems: "flex-end", children: [
|
|
24
|
+
/* @__PURE__ */ t(l, { $renderAs: "ab2", $renderOnTabletAs: "ub3", $color: o, children: [
|
|
31
25
|
"Rated",
|
|
32
26
|
" ",
|
|
33
|
-
/* @__PURE__ */ r(l, { $inline: !0, $renderAs: "ab2-bold", $renderOnTabletAs: "ub3-bold", $color:
|
|
27
|
+
/* @__PURE__ */ r(l, { $inline: !0, $renderAs: "ab2-bold", $renderOnTabletAs: "ub3-bold", $color: o, children: "4.9+" }),
|
|
34
28
|
" ",
|
|
35
29
|
"on"
|
|
36
30
|
] }),
|
|
37
31
|
" ",
|
|
38
|
-
/* @__PURE__ */ r(
|
|
39
|
-
i,
|
|
40
|
-
{
|
|
41
|
-
src: o.TRUSTPILOT,
|
|
42
|
-
width: e ? 80 : 99,
|
|
43
|
-
height: e ? 20 : 25
|
|
44
|
-
}
|
|
45
|
-
)
|
|
32
|
+
/* @__PURE__ */ r(p, { src: c, width: e ? 80 : 99, height: e ? 20 : 25 })
|
|
46
33
|
] })
|
|
47
34
|
]
|
|
48
35
|
}
|
|
49
36
|
);
|
|
50
|
-
},
|
|
37
|
+
}, S = $;
|
|
51
38
|
export {
|
|
52
|
-
|
|
39
|
+
S as default
|
|
53
40
|
};
|
|
54
41
|
//# sourceMappingURL=signup-header.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signup-header.js","sources":["../../../../../src/features/auth/pla-signup/signup-header/signup-header.tsx"],"sourcesContent":["import { useTheme } from 'styled-components';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Image from '../../../ui/image/image';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { EDeviceType } from '../../../ui/theme/constants';\n\nconst SignupHeader = () => {\n const { device } = useTheme();\n const isCompact = device <= EDeviceType.TABLET;\n\n return (\n <FlexView\n $flexDirection={isCompact ? 'row' : 'column'}\n $alignItems={isCompact ? 'center' : 'flex-start'}\n $width=\"100%\"\n $flexColumnGapX={1}\n $justifyContent={isCompact ? 'space-between' : 'flex-start'}\n >\n <
|
|
1
|
+
{"version":3,"file":"signup-header.js","sources":["../../../../../src/features/auth/pla-signup/signup-header/signup-header.tsx"],"sourcesContent":["import { useTheme } from 'styled-components';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Image from '../../../ui/image/image';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { EDeviceType } from '../../../ui/theme/constants';\nimport CuemathLogo from '../../../../assets/line-icons/icons/cuemath-logo';\n\nconst SignupHeader = ({ renderThemeAs = 'dark' }: { renderThemeAs?: 'light' | 'dark' }) => {\n const { device } = useTheme();\n const isCompact = device <= EDeviceType.TABLET;\n const isDarkTheme = renderThemeAs === 'dark';\n const trustpilotLogo = isDarkTheme ? ILLUSTRATIONS.TRUSTPILOT : ILLUSTRATIONS.TRUSTPILOT_BLACK;\n const textColor = !isDarkTheme ? 'WHITE' : 'BLACK';\n\n return (\n <FlexView\n $flexDirection={isCompact ? 'row' : 'column'}\n $alignItems={isCompact ? 'center' : 'flex-start'}\n $width=\"100%\"\n $flexColumnGapX={1}\n $justifyContent={isCompact ? 'space-between' : 'flex-start'}\n >\n <CuemathLogo width={isCompact ? 80 : 107} height={isCompact ? 12 : 16} color={textColor} />\n {!isCompact && <Separator heightX={1} />}\n <FlexView $flexDirection=\"row\" $alignItems=\"flex-end\">\n <Text $renderAs=\"ab2\" $renderOnTabletAs=\"ub3\" $color={textColor}>\n Rated{' '}\n <Text $inline $renderAs=\"ab2-bold\" $renderOnTabletAs=\"ub3-bold\" $color={textColor}>\n 4.9+\n </Text>{' '}\n on\n </Text>\n \n <Image src={trustpilotLogo} width={isCompact ? 80 : 99} height={isCompact ? 20 : 25} />\n </FlexView>\n </FlexView>\n );\n};\n\nexport default SignupHeader;\n"],"names":["SignupHeader","renderThemeAs","device","useTheme","isCompact","EDeviceType","isDarkTheme","trustpilotLogo","ILLUSTRATIONS","textColor","jsxs","FlexView","jsx","CuemathLogo","Separator","Text","Image","SignupHeader$1"],"mappings":";;;;;;;;;AAUA,MAAMA,IAAe,CAAC,EAAE,eAAAC,IAAgB,aAAmD;AACnF,QAAA,EAAE,QAAAC,MAAWC,KACbC,IAAYF,KAAUG,EAAY,QAClCC,IAAcL,MAAkB,QAChCM,IAAiBD,IAAcE,EAAc,aAAaA,EAAc,kBACxEC,IAAaH,IAAwB,UAAV;AAG/B,SAAA,gBAAAI;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,gBAAgBP,IAAY,QAAQ;AAAA,MACpC,aAAaA,IAAY,WAAW;AAAA,MACpC,QAAO;AAAA,MACP,iBAAiB;AAAA,MACjB,iBAAiBA,IAAY,kBAAkB;AAAA,MAE/C,UAAA;AAAA,QAAC,gBAAAQ,EAAAC,GAAA,EAAY,OAAOT,IAAY,KAAK,KAAK,QAAQA,IAAY,KAAK,IAAI,OAAOK,EAAW,CAAA;AAAA,QACxF,CAACL,KAAc,gBAAAQ,EAAAE,GAAA,EAAU,SAAS,EAAG,CAAA;AAAA,QACrC,gBAAAJ,EAAAC,GAAA,EAAS,gBAAe,OAAM,aAAY,YACzC,UAAA;AAAA,UAAA,gBAAAD,EAACK,KAAK,WAAU,OAAM,mBAAkB,OAAM,QAAQN,GAAW,UAAA;AAAA,YAAA;AAAA,YACzD;AAAA,YACN,gBAAAG,EAACG,GAAK,EAAA,SAAO,IAAC,WAAU,YAAW,mBAAkB,YAAW,QAAQN,GAAW,UAEnF,OAAA,CAAA;AAAA,YAAQ;AAAA,YAAI;AAAA,UAAA,GAEd;AAAA,UAAO;AAAA,UAEP,gBAAAG,EAACI,GAAM,EAAA,KAAKT,GAAgB,OAAOH,IAAY,KAAK,IAAI,QAAQA,IAAY,KAAK,GAAI,CAAA;AAAA,QAAA,GACvF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN,GAEAa,IAAejB;"}
|
|
@@ -1,30 +1,40 @@
|
|
|
1
1
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { memo as
|
|
3
|
-
import { useTheme as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { EDeviceType as I } from "../../../ui/theme/constants.js";
|
|
2
|
+
import { memo as S } from "react";
|
|
3
|
+
import { useTheme as $ } from "styled-components";
|
|
4
|
+
import y from "../../../../assets/line-icons/icons/google-icon.js";
|
|
5
|
+
import n from "../../../ui/buttons/button/button.js";
|
|
6
|
+
import x from "../../../ui/buttons/text-button/text-button.js";
|
|
7
|
+
import a from "../../../ui/layout/flex-view.js";
|
|
8
|
+
import C from "../../../ui/separator/separator.js";
|
|
9
|
+
import I from "../../../ui/text/text.js";
|
|
10
|
+
import { EDeviceType as T } from "../../../ui/theme/constants.js";
|
|
12
11
|
import { PLA_ANALYTICS_EVENTS as i } from "../pla-analytics-events.js";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
import E from "../../../../assets/line-icons/icons/apple-icon2.js";
|
|
13
|
+
const w = ({
|
|
14
|
+
onEmailSignup: f,
|
|
15
|
+
onAppleSignup: b,
|
|
16
|
+
onGoogleSignup: g,
|
|
17
|
+
loadingProvider: s,
|
|
18
|
+
onGoToLogin: L,
|
|
19
|
+
title: u,
|
|
20
|
+
mobileTitle: c,
|
|
21
|
+
renderThemeAs: _ = "dark"
|
|
21
22
|
}) => {
|
|
22
|
-
const { device:
|
|
23
|
-
return /* @__PURE__ */ l(
|
|
24
|
-
/* @__PURE__ */ e(
|
|
25
|
-
|
|
23
|
+
const { device: p } = $(), o = p <= T.TABLET, m = p <= T.MOBILE, d = s === "google", h = s === "apple", A = _ === "dark", r = A ? "WHITE" : "BLACK", t = A ? "black-dark" : "secondary";
|
|
24
|
+
return /* @__PURE__ */ l(a, { $alignItems: m ? "center" : "flex-start", children: [
|
|
25
|
+
/* @__PURE__ */ e(
|
|
26
|
+
I,
|
|
27
|
+
{
|
|
28
|
+
$renderAs: "ah3-bold",
|
|
29
|
+
$renderOnMobileAs: "ah4-bold",
|
|
30
|
+
$color: r,
|
|
31
|
+
$whiteSpace: "pre-line",
|
|
32
|
+
children: m && c ? c : u
|
|
33
|
+
}
|
|
34
|
+
),
|
|
35
|
+
/* @__PURE__ */ e(C, { heightX: o ? 1.5 : 2.5 }),
|
|
26
36
|
/* @__PURE__ */ l(
|
|
27
|
-
|
|
37
|
+
a,
|
|
28
38
|
{
|
|
29
39
|
$flexGapX: 1,
|
|
30
40
|
$flex: 1,
|
|
@@ -33,43 +43,43 @@ const $ = ({
|
|
|
33
43
|
$width: "100%",
|
|
34
44
|
children: [
|
|
35
45
|
/* @__PURE__ */ e(
|
|
36
|
-
|
|
46
|
+
n,
|
|
37
47
|
{
|
|
38
|
-
renderAs:
|
|
39
|
-
Icon:
|
|
48
|
+
renderAs: t,
|
|
49
|
+
Icon: y,
|
|
40
50
|
width: o ? "100%" : 320,
|
|
41
51
|
label: "Signup with Google",
|
|
42
|
-
onClick:
|
|
52
|
+
onClick: g,
|
|
43
53
|
size: "small",
|
|
44
|
-
busy:
|
|
45
|
-
disabled:
|
|
54
|
+
busy: d,
|
|
55
|
+
disabled: d,
|
|
46
56
|
analyticsLabel: i.START_SIGNUP_CTA_CLICKED,
|
|
47
57
|
analyticsProps: { provider: "google" }
|
|
48
58
|
}
|
|
49
59
|
),
|
|
50
60
|
/* @__PURE__ */ e(
|
|
51
|
-
|
|
61
|
+
n,
|
|
52
62
|
{
|
|
53
|
-
renderAs:
|
|
63
|
+
renderAs: t,
|
|
54
64
|
size: "small",
|
|
55
65
|
width: o ? "100%" : 320,
|
|
56
|
-
Icon:
|
|
66
|
+
Icon: E,
|
|
57
67
|
label: "Signup with Apple",
|
|
58
|
-
onClick:
|
|
59
|
-
busy:
|
|
60
|
-
disabled:
|
|
68
|
+
onClick: b,
|
|
69
|
+
busy: h,
|
|
70
|
+
disabled: h,
|
|
61
71
|
analyticsLabel: i.START_SIGNUP_CTA_CLICKED,
|
|
62
72
|
analyticsProps: { provider: "apple" }
|
|
63
73
|
}
|
|
64
74
|
),
|
|
65
75
|
/* @__PURE__ */ e(
|
|
66
|
-
|
|
76
|
+
n,
|
|
67
77
|
{
|
|
68
|
-
renderAs:
|
|
78
|
+
renderAs: t,
|
|
69
79
|
size: "small",
|
|
70
80
|
width: o ? "100%" : 320,
|
|
71
81
|
label: "Continue with Email",
|
|
72
|
-
onClick:
|
|
82
|
+
onClick: f,
|
|
73
83
|
analyticsLabel: i.START_SIGNUP_CTA_CLICKED,
|
|
74
84
|
analyticsProps: { provider: "email" }
|
|
75
85
|
}
|
|
@@ -77,24 +87,24 @@ const $ = ({
|
|
|
77
87
|
]
|
|
78
88
|
}
|
|
79
89
|
),
|
|
80
|
-
/* @__PURE__ */ e(
|
|
81
|
-
/* @__PURE__ */ l(
|
|
82
|
-
/* @__PURE__ */ e(
|
|
90
|
+
/* @__PURE__ */ e(C, { heightX: 1.5 }),
|
|
91
|
+
/* @__PURE__ */ l(a, { $flexDirection: "row", $alignItems: "center", children: [
|
|
92
|
+
/* @__PURE__ */ e(I, { $renderAs: "ub3", $color: r, children: "Already have an account?" }),
|
|
83
93
|
" ",
|
|
84
94
|
/* @__PURE__ */ e(
|
|
85
|
-
|
|
95
|
+
x,
|
|
86
96
|
{
|
|
87
97
|
analyticsLabel: i.SIGNUP_TO_LOGIN_CTA_CLICKED,
|
|
88
98
|
size: "small",
|
|
89
99
|
label: "Log In",
|
|
90
|
-
color:
|
|
91
|
-
onClick:
|
|
100
|
+
color: r,
|
|
101
|
+
onClick: L
|
|
92
102
|
}
|
|
93
103
|
)
|
|
94
104
|
] })
|
|
95
105
|
] });
|
|
96
|
-
},
|
|
106
|
+
}, M = S(w);
|
|
97
107
|
export {
|
|
98
|
-
|
|
108
|
+
M as default
|
|
99
109
|
};
|
|
100
110
|
//# sourceMappingURL=signup-options.js.map
|