@cuemath/leap 3.3.5-aa1 → 3.3.6
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 +3 -1
- package/dist/assets/illustrations/illustrations.js.map +1 -1
- package/dist/assets/lottie/lottie.js +1 -0
- package/dist/assets/lottie/lottie.js.map +1 -1
- package/dist/constants/config.js +5 -0
- package/dist/constants/config.js.map +1 -0
- package/dist/features/auth/comps/otp-input/otp-input.js +19 -18
- package/dist/features/auth/comps/otp-input/otp-input.js.map +1 -1
- package/dist/features/auth/comps/pill-button/pill-button-styled.js +17 -17
- package/dist/features/auth/comps/pill-button/pill-button-styled.js.map +1 -1
- package/dist/features/auth/comps/pill-button/pill-button.js +35 -33
- package/dist/features/auth/comps/pill-button/pill-button.js.map +1 -1
- package/dist/features/auth/comps/user-list/user-item/user-item.js +32 -30
- package/dist/features/auth/comps/user-list/user-item/user-item.js.map +1 -1
- package/dist/features/auth/comps/user-list/user-list.js +20 -19
- package/dist/features/auth/comps/user-list/user-list.js.map +1 -1
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-constants.js +9 -9
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-constants.js.map +1 -1
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-styled.js +58 -29
- 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 +78 -41
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide.js.map +1 -1
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js +37 -35
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js.map +1 -1
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js +76 -71
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +1 -1
- package/dist/features/auth/signup/custom-input-field/custom-input-field.js +55 -50
- package/dist/features/auth/signup/custom-input-field/custom-input-field.js.map +1 -1
- package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js +47 -25
- package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js.map +1 -1
- package/dist/features/milestone/constants.js +2 -1
- package/dist/features/milestone/constants.js.map +1 -1
- package/dist/features/milestone/create/comps/goal-completion-date-selector/goal-completion-date-selector.js +6 -6
- package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features-constants.js +25 -0
- package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features-constants.js.map +1 -0
- package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features-styled.js +15 -0
- package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features-styled.js.map +1 -0
- package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features.js +90 -0
- package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features.js.map +1 -0
- package/dist/features/parent-dashboard/comps/math-practice/math-practice-constants.js +19 -0
- package/dist/features/parent-dashboard/comps/math-practice/math-practice-constants.js.map +1 -0
- package/dist/features/parent-dashboard/comps/math-practice/math-practice-styled.js +32 -0
- package/dist/features/parent-dashboard/comps/math-practice/math-practice-styled.js.map +1 -0
- package/dist/features/parent-dashboard/comps/math-practice/math-practice.js +67 -0
- package/dist/features/parent-dashboard/comps/math-practice/math-practice.js.map +1 -0
- package/dist/features/parent-dashboard/comps/parent-dashboard-faqs/parent-dashboard-faqs-constants.js +42 -0
- package/dist/features/parent-dashboard/comps/parent-dashboard-faqs/parent-dashboard-faqs-constants.js.map +1 -0
- package/dist/features/parent-dashboard/comps/parent-dashboard-faqs/parent-dashboard-faqs.js +20 -0
- package/dist/features/parent-dashboard/comps/parent-dashboard-faqs/parent-dashboard-faqs.js.map +1 -0
- package/dist/features/student-details/class-details/class-details-utils.js +6 -6
- package/dist/features/trial-session/comps/pla/next-steps/next-steps-constants.js +25 -0
- package/dist/features/trial-session/comps/pla/next-steps/next-steps-constants.js.map +1 -0
- package/dist/features/trial-session/comps/pla/next-steps/next-steps-styled.js +43 -0
- package/dist/features/trial-session/comps/pla/next-steps/next-steps-styled.js.map +1 -0
- package/dist/features/trial-session/comps/pla/next-steps/next-steps.js +49 -0
- package/dist/features/trial-session/comps/pla/next-steps/next-steps.js.map +1 -0
- package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-countdown.js +29 -0
- package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-countdown.js.map +1 -0
- package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-status-config.js +131 -0
- package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-status-config.js.map +1 -0
- package/dist/features/trial-session/comps/pla/session-status/session-status-constants.js +11 -0
- package/dist/features/trial-session/comps/pla/session-status/session-status-constants.js.map +1 -0
- package/dist/features/trial-session/comps/pla/session-status/session-status-helpers.js +19 -0
- package/dist/features/trial-session/comps/pla/session-status/session-status-helpers.js.map +1 -0
- package/dist/features/trial-session/comps/pla/session-status/session-status-styled.js +17 -0
- package/dist/features/trial-session/comps/pla/session-status/session-status-styled.js.map +1 -0
- package/dist/features/trial-session/comps/pla/session-status/session-status.js +126 -0
- package/dist/features/trial-session/comps/pla/session-status/session-status.js.map +1 -0
- package/dist/features/trial-session/comps/pla/session-summary/session-summary-constants.js +52 -0
- package/dist/features/trial-session/comps/pla/session-summary/session-summary-constants.js.map +1 -0
- package/dist/features/trial-session/comps/pla/session-summary/session-summary.js +52 -0
- package/dist/features/trial-session/comps/pla/session-summary/session-summary.js.map +1 -0
- package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card-styled.js +17 -0
- package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card-styled.js.map +1 -0
- package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card.js +56 -0
- package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card.js.map +1 -0
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-constants.js +5 -0
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-constants.js.map +1 -0
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-styled.js +17 -0
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-styled.js.map +1 -0
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-types.js +5 -0
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-types.js.map +1 -0
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions.js +96 -0
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions.js.map +1 -0
- package/dist/features/trial-session/comps/session-report/report-information/report-card.js +31 -16
- package/dist/features/trial-session/comps/session-report/report-information/report-card.js.map +1 -1
- package/dist/features/trial-session/comps/session-report/report-information/report-information-styled.js +21 -13
- package/dist/features/trial-session/comps/session-report/report-information/report-information-styled.js.map +1 -1
- package/dist/features/trial-session/comps/session-report/report-information/report-information.js +166 -94
- package/dist/features/trial-session/comps/session-report/report-information/report-information.js.map +1 -1
- package/dist/features/trial-session/comps/student-profile/student-profile-highlights/student-profile-highlights.js +46 -31
- package/dist/features/trial-session/comps/student-profile/student-profile-highlights/student-profile-highlights.js.map +1 -1
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-helpers.js +12 -0
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-helpers.js.map +1 -0
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-styled.js +121 -42
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-styled.js.map +1 -1
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js +174 -56
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js.map +1 -1
- package/dist/features/trial-session/trial-session-types.js.map +1 -1
- package/dist/features/ui/buttons/icon-button/icon-button.js +32 -29
- package/dist/features/ui/buttons/icon-button/icon-button.js.map +1 -1
- package/dist/features/ui/modals/modal.js +30 -28
- package/dist/features/ui/modals/modal.js.map +1 -1
- package/dist/index.d.ts +95 -10
- package/dist/index.js +388 -368
- package/dist/index.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/getRoundingMethod.js +10 -0
- package/dist/node_modules/date-fns/_lib/getRoundingMethod.js.map +1 -0
- package/dist/node_modules/date-fns/differenceInMilliseconds.js +9 -0
- package/dist/node_modules/date-fns/differenceInMilliseconds.js.map +1 -0
- package/dist/node_modules/date-fns/differenceInSeconds.js +11 -0
- package/dist/node_modules/date-fns/differenceInSeconds.js.map +1 -0
- package/dist/node_modules/date-fns/fromUnixTime.js +9 -0
- package/dist/node_modules/date-fns/fromUnixTime.js.map +1 -0
- package/dist/node_modules/uuid/dist/esm-browser/native.js +7 -0
- package/dist/node_modules/uuid/dist/esm-browser/native.js.map +1 -0
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +3 -2
- package/dist/node_modules/uuid/dist/esm-browser/rng.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +6 -10
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +12 -9
- package/dist/node_modules/uuid/dist/esm-browser/v4.js.map +1 -1
- package/dist/static/{book-checked-green.c275dbd9.svg → book-checked-green.0436b91e.svg} +1 -1
- package/dist/static/community-bulb-yellow-2.f89c30f9.svg +1 -0
- package/dist/static/learning-puzzle-bot.6fe93cf6.svg +1 -0
- package/dist/static/username-responsive.787b5515.json +1 -0
- package/package.json +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/regex.js +0 -5
- package/dist/node_modules/uuid/dist/esm-browser/regex.js.map +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/validate.js +0 -8
- package/dist/node_modules/uuid/dist/esm-browser/validate.js.map +0 -1
|
@@ -1,38 +1,53 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { memo as d } from "react";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
3
|
+
import m, { useTheme as a } from "styled-components";
|
|
4
|
+
import p from "../../../../ui/image/image.js";
|
|
5
|
+
import t from "../../../../ui/layout/flex-view.js";
|
|
6
|
+
import i from "../../../../ui/text/text.js";
|
|
7
|
+
import { EDeviceType as f } from "../../../../ui/theme/constants.js";
|
|
8
|
+
const $ = m(t)`
|
|
8
9
|
&:not(:last-child) {
|
|
9
|
-
border-bottom: 1px solid ${({ theme:
|
|
10
|
+
border-bottom: 1px solid ${({ theme: n }) => n.colors.BLACK_1};
|
|
11
|
+
}
|
|
12
|
+
`, c = d(
|
|
13
|
+
({ profileHighlights: n }) => {
|
|
14
|
+
const o = a().device <= f.MOBILE;
|
|
15
|
+
return /* @__PURE__ */ r(t, { $borderColor: "BLACK_1", children: n.map((e) => /* @__PURE__ */ l(
|
|
16
|
+
$,
|
|
17
|
+
{
|
|
18
|
+
$flexDirection: "row",
|
|
19
|
+
$alignItems: "center",
|
|
20
|
+
$justifyContent: "flex-start",
|
|
21
|
+
$gapX: 1,
|
|
22
|
+
$gutterX: o ? 0.75 : 1,
|
|
23
|
+
$flexGapX: o ? 0.5 : 1.5,
|
|
24
|
+
$background: e.background,
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ r(
|
|
27
|
+
p,
|
|
28
|
+
{
|
|
29
|
+
src: e.illustration,
|
|
30
|
+
alt: e.title,
|
|
31
|
+
height: o ? 64 : 96,
|
|
32
|
+
width: o ? 64 : 96
|
|
33
|
+
}
|
|
34
|
+
),
|
|
35
|
+
/* @__PURE__ */ l(t, { $flexDirection: "column", $flex: 1, $flexGap: 2, children: [
|
|
36
|
+
/* @__PURE__ */ r(i, { $renderAs: "ac3-black", children: e.title }),
|
|
37
|
+
/* @__PURE__ */ r(i, { $renderAs: "ab2", children: typeof e.description == "string" ? e.description : /* @__PURE__ */ r(t, { children: e.description.map((s) => /* @__PURE__ */ l(t, { $flexDirection: "row", $flexColumnGapX: 0.5, children: [
|
|
38
|
+
/* @__PURE__ */ r(i, { $renderAs: "ab2", $inline: !0, children: "•" }),
|
|
39
|
+
/* @__PURE__ */ r(i, { $renderAs: "ab2", as: "span", $inline: !0, children: s })
|
|
40
|
+
] }, s)) }) })
|
|
41
|
+
] })
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
e.title
|
|
45
|
+
)) });
|
|
10
46
|
}
|
|
11
|
-
`, s = d(
|
|
12
|
-
({ profileHighlights: t }) => /* @__PURE__ */ e(o, { $borderColor: "BLACK_1", children: t.map((r) => /* @__PURE__ */ l(
|
|
13
|
-
m,
|
|
14
|
-
{
|
|
15
|
-
$flexDirection: "row",
|
|
16
|
-
$alignItems: "center",
|
|
17
|
-
$justifyContent: "flex-start",
|
|
18
|
-
$gapX: 1,
|
|
19
|
-
$gutterX: 1,
|
|
20
|
-
$flexGapX: 1.5,
|
|
21
|
-
$background: r.background,
|
|
22
|
-
children: [
|
|
23
|
-
/* @__PURE__ */ e(a, { src: r.illustration, alt: r.title, height: 96, width: 96 }),
|
|
24
|
-
/* @__PURE__ */ l(o, { $flexDirection: "column", $flex: 1, $flexGap: 2, children: [
|
|
25
|
-
/* @__PURE__ */ e(n, { $renderAs: "ac3-black", children: r.title }),
|
|
26
|
-
/* @__PURE__ */ e(n, { $renderAs: "ab2", children: typeof r.description == "string" ? r.description : r.description.map((i) => /* @__PURE__ */ e("li", { children: i }, i)) })
|
|
27
|
-
] })
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
r.title
|
|
31
|
-
)) })
|
|
32
47
|
);
|
|
33
|
-
|
|
34
|
-
const
|
|
48
|
+
c.displayName = "StudentProfileHighlights";
|
|
49
|
+
const H = c;
|
|
35
50
|
export {
|
|
36
|
-
|
|
51
|
+
H as default
|
|
37
52
|
};
|
|
38
53
|
//# sourceMappingURL=student-profile-highlights.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"student-profile-highlights.js","sources":["../../../../../../src/features/trial-session/comps/student-profile/student-profile-highlights/student-profile-highlights.tsx"],"sourcesContent":["import type { TColorNames } from '../../../../ui/types';\nimport type { FC } from 'react';\n\nimport { memo } from 'react';\nimport styled from 'styled-components';\n\nimport Image from '../../../../ui/image/image';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Text from '../../../../ui/text/text';\n\ntype TProfileHighlight = {\n illustration: string;\n background: TColorNames;\n title: string;\n description: string | string[];\n};\n\nconst HighlightWrapper = styled(FlexView)`\n &:not(:last-child) {\n border-bottom: 1px solid ${({ theme }) => theme.colors.BLACK_1};\n }\n`;\n\ninterface IStudentProfileHighlightsProps {\n profileHighlights: TProfileHighlight[];\n}\n\nconst StudentProfileHighlights: FC<IStudentProfileHighlightsProps> = memo(\n ({ profileHighlights }) => {\n return (\n <FlexView $borderColor=\"BLACK_1\">\n {profileHighlights.map(highlight => (\n <HighlightWrapper\n key={highlight.title}\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $justifyContent=\"flex-start\"\n $gapX={1}\n $gutterX={1}\n $flexGapX={1.5}\n $background={highlight.background}\n >\n <Image
|
|
1
|
+
{"version":3,"file":"student-profile-highlights.js","sources":["../../../../../../src/features/trial-session/comps/student-profile/student-profile-highlights/student-profile-highlights.tsx"],"sourcesContent":["import type { TColorNames } from '../../../../ui/types';\nimport type { FC } from 'react';\n\nimport { memo } from 'react';\nimport styled from 'styled-components';\nimport { useTheme } from 'styled-components';\n\nimport Image from '../../../../ui/image/image';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Text from '../../../../ui/text/text';\nimport { EDeviceType } from '../../../../ui/theme/constants';\n\ntype TProfileHighlight = {\n illustration: string;\n background: TColorNames;\n title: string;\n description: string | string[];\n};\n\nconst HighlightWrapper = styled(FlexView)`\n &:not(:last-child) {\n border-bottom: 1px solid ${({ theme }) => theme.colors.BLACK_1};\n }\n`;\n\ninterface IStudentProfileHighlightsProps {\n profileHighlights: TProfileHighlight[];\n}\n\nconst StudentProfileHighlights: FC<IStudentProfileHighlightsProps> = memo(\n ({ profileHighlights }) => {\n const theme = useTheme();\n const isMobile = theme.device <= EDeviceType.MOBILE;\n\n return (\n <FlexView $borderColor=\"BLACK_1\">\n {profileHighlights.map(highlight => (\n <HighlightWrapper\n key={highlight.title}\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $justifyContent=\"flex-start\"\n $gapX={1}\n $gutterX={isMobile ? 0.75 : 1}\n $flexGapX={isMobile ? 0.5 : 1.5}\n $background={highlight.background}\n >\n <Image\n src={highlight.illustration}\n alt={highlight.title}\n height={isMobile ? 64 : 96}\n width={isMobile ? 64 : 96}\n />\n <FlexView $flexDirection=\"column\" $flex={1} $flexGap={2}>\n <Text $renderAs=\"ac3-black\">{highlight.title}</Text>\n <Text $renderAs=\"ab2\">\n {typeof highlight.description === 'string' ? (\n highlight.description\n ) : (\n <FlexView>\n {highlight.description.map(desc => (\n <FlexView key={desc} $flexDirection=\"row\" $flexColumnGapX={0.5}>\n <Text $renderAs=\"ab2\" $inline>\n •\n </Text>\n <Text $renderAs=\"ab2\" as=\"span\" $inline>\n {desc}\n </Text>\n </FlexView>\n ))}\n </FlexView>\n )}\n </Text>\n </FlexView>\n </HighlightWrapper>\n ))}\n </FlexView>\n );\n },\n);\n\nStudentProfileHighlights.displayName = 'StudentProfileHighlights';\n\nexport default StudentProfileHighlights;\n"],"names":["HighlightWrapper","styled","FlexView","theme","StudentProfileHighlights","memo","profileHighlights","isMobile","useTheme","EDeviceType","highlight","jsxs","jsx","Image","Text","desc","StudentProfileHighlights$1"],"mappings":";;;;;;;AAmBA,MAAMA,IAAmBC,EAAOC,CAAQ;AAAA;AAAA,+BAET,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA,GAQ5DC,IAA+DC;AAAA,EACnE,CAAC,EAAE,mBAAAC,EAAA,MAAwB;AAEnB,UA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her-profile-helpers.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { COUNTRY_FLAGS as g } from "../teacher-intro-constants.js";
|
|
2
|
+
const f = (n) => {
|
|
3
|
+
const l = Object.values(g);
|
|
4
|
+
return n.map((r, t) => {
|
|
5
|
+
const e = l.find((o) => o.name === r), a = (e == null ? void 0 : e.name) || r;
|
|
6
|
+
return t === n.length - 1 && n.length > 1 ? `and ${a}` : `${a}${t < n.length - 2 ? ", " : t === n.length - 2 ? " " : ""}`;
|
|
7
|
+
}).join("");
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
f as formatCountryList
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=teacher-profile-helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teacher-profile-helpers.js","sources":["../../../../../../src/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-helpers.ts"],"sourcesContent":["import { COUNTRY_FLAGS } from '../teacher-intro-constants';\n\nexport const formatCountryList = (countries: string[]) => {\n const countryFlagArray = Object.values(COUNTRY_FLAGS);\n\n return countries\n .map((country, i) => {\n const match = countryFlagArray.find(item => item.name === country);\n const label = match?.name || country;\n\n if (i === countries.length - 1 && countries.length > 1) {\n return `and ${label}`;\n }\n\n return `${label}${i < countries.length - 2 ? ', ' : i === countries.length - 2 ? ' ' : ''}`;\n })\n .join('');\n};\n"],"names":["formatCountryList","countries","countryFlagArray","COUNTRY_FLAGS","country","i","match","item","label"],"mappings":";AAEa,MAAAA,IAAoB,CAACC,MAAwB;AAClD,QAAAC,IAAmB,OAAO,OAAOC,CAAa;AAEpD,SAAOF,EACJ,IAAI,CAACG,GAASC,MAAM;AACnB,UAAMC,IAAQJ,EAAiB,KAAK,CAAQK,MAAAA,EAAK,SAASH,CAAO,GAC3DI,KAAQF,KAAA,gBAAAA,EAAO,SAAQF;AAE7B,WAAIC,MAAMJ,EAAU,SAAS,KAAKA,EAAU,SAAS,IAC5C,OAAOO,CAAK,KAGd,GAAGA,CAAK,GAAGH,IAAIJ,EAAU,SAAS,IAAI,OAAOI,MAAMJ,EAAU,SAAS,IAAI,MAAM,EAAE;AAAA,EAAA,CAC1F,EACA,KAAK,EAAE;AACZ;"}
|
package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-styled.js
CHANGED
|
@@ -1,49 +1,128 @@
|
|
|
1
|
-
import
|
|
2
|
-
import e from "
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import o from "styled-components";
|
|
2
|
+
import { ILLUSTRATIONS as e } from "../../../../../assets/illustrations/illustrations.js";
|
|
3
|
+
import r from "../../../../ui/image/image.js";
|
|
4
|
+
import i from "../../../../ui/layout/flex-view.js";
|
|
5
|
+
const l = o(r)`
|
|
5
6
|
object-fit: cover;
|
|
6
|
-
|
|
7
|
-
({ theme:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
border-radius: 50%;
|
|
8
|
+
border: 1.5px solid ${({ theme: t }) => t.colors.REAL_BLACK};
|
|
9
|
+
`, a = o(i)(
|
|
10
|
+
({ theme: t }) => `
|
|
11
|
+
background-image: url(${e.RADIAL_GRADIENT_BG_2});
|
|
12
|
+
background-repeat: no-repeat;
|
|
13
|
+
background-size: auto;
|
|
14
|
+
background-position: top;
|
|
15
|
+
position: relative;
|
|
16
|
+
${t.mediaQueries.minWidthTablet} {
|
|
17
|
+
background-image: url(${e.RADIAL_GRADIENT_BG});
|
|
18
|
+
}
|
|
19
|
+
`
|
|
20
|
+
), h = o.div(
|
|
21
|
+
({ theme: t }) => `
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: row;
|
|
24
|
+
flex-wrap: wrap;
|
|
25
|
+
${t.mediaQueries.minWidthTablet} {
|
|
26
|
+
flex: 1;
|
|
27
|
+
display: grid;
|
|
28
|
+
border-left: 1px solid ${t.colors.BLACK_T_87};
|
|
29
|
+
grid-template-columns: repeat(2, 1fr);
|
|
30
|
+
grid-template-rows: auto auto auto;
|
|
31
|
+
}
|
|
13
32
|
`
|
|
14
|
-
),
|
|
15
|
-
({ theme:
|
|
16
|
-
|
|
17
|
-
&:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
), m = o(i)(
|
|
34
|
+
({ theme: t }) => `
|
|
35
|
+
width: 33.33%;
|
|
36
|
+
&:nth-child(odd) {
|
|
37
|
+
padding: 12px 16px;
|
|
38
|
+
}
|
|
39
|
+
&:last-child {
|
|
40
|
+
width: 100%;
|
|
41
|
+
}
|
|
42
|
+
${t.mediaQueries.minWidthTablet} {
|
|
43
|
+
width: auto;
|
|
44
|
+
border: 0.5px solid ${t.colors.WHITE_5};
|
|
45
|
+
&:first-child,
|
|
46
|
+
&:nth-child(2) {
|
|
47
|
+
grid-column: span 1;
|
|
48
|
+
}
|
|
49
|
+
&:nth-child(3),
|
|
50
|
+
&:nth-child(4) {
|
|
51
|
+
grid-column: span 2;
|
|
52
|
+
}
|
|
53
|
+
&:first-child {
|
|
54
|
+
border-left: none;
|
|
55
|
+
border-top: none;
|
|
56
|
+
}
|
|
57
|
+
&:nth-child(2) {
|
|
58
|
+
border-right: none;
|
|
59
|
+
border-top: none;
|
|
60
|
+
}
|
|
61
|
+
&:nth-child(3) {
|
|
62
|
+
border-left: none;
|
|
63
|
+
border-right: none;
|
|
64
|
+
}
|
|
65
|
+
&:nth-child(4) {
|
|
66
|
+
border-left: none;
|
|
67
|
+
border-right: none;
|
|
68
|
+
border-bottom: none;
|
|
69
|
+
}
|
|
41
70
|
}
|
|
42
71
|
`
|
|
43
|
-
)
|
|
72
|
+
), x = o(i)`
|
|
73
|
+
position: absolute;
|
|
74
|
+
top: 8px;
|
|
75
|
+
left: 8px;
|
|
76
|
+
`, b = o.img`
|
|
77
|
+
position: absolute;
|
|
78
|
+
top: 32px;
|
|
79
|
+
right: 32px;
|
|
80
|
+
width: 14px;
|
|
81
|
+
${({ theme: t }) => t.mediaQueries.minWidthTablet} {
|
|
82
|
+
top: 27px;
|
|
83
|
+
right: 38px;
|
|
84
|
+
width: 18px;
|
|
85
|
+
}
|
|
86
|
+
`, c = o.img`
|
|
87
|
+
position: absolute;
|
|
88
|
+
top: 40px;
|
|
89
|
+
left: 80px;
|
|
90
|
+
width: 11px;
|
|
91
|
+
${({ theme: t }) => t.mediaQueries.minWidthTablet} {
|
|
92
|
+
top: 28.5px;
|
|
93
|
+
left: 38px;
|
|
94
|
+
width: 15px;
|
|
95
|
+
}
|
|
96
|
+
`, u = o.img`
|
|
97
|
+
position: absolute;
|
|
98
|
+
left: 64px;
|
|
99
|
+
bottom: 86px;
|
|
100
|
+
width: 12px;
|
|
101
|
+
${({ theme: t }) => t.mediaQueries.minWidthTablet} {
|
|
102
|
+
bottom: 130px;
|
|
103
|
+
left: 38px;
|
|
104
|
+
width: 13px;
|
|
105
|
+
}
|
|
106
|
+
`, g = o.img`
|
|
107
|
+
position: absolute;
|
|
108
|
+
right: 48px;
|
|
109
|
+
bottom: 96px;
|
|
110
|
+
width: 14px;
|
|
111
|
+
${({ theme: t }) => t.mediaQueries.minWidthTablet} {
|
|
112
|
+
right: 32px;
|
|
113
|
+
bottom: 130px;
|
|
114
|
+
width: 19px;
|
|
115
|
+
}
|
|
116
|
+
`;
|
|
44
117
|
export {
|
|
45
|
-
|
|
46
|
-
h as
|
|
47
|
-
|
|
118
|
+
x as CueLogoWrapper,
|
|
119
|
+
h as GridContainer,
|
|
120
|
+
m as GridItem,
|
|
121
|
+
b as PositionedAsset1,
|
|
122
|
+
c as PositionedAsset2,
|
|
123
|
+
u as PositionedAsset3,
|
|
124
|
+
g as PositionedAsset4,
|
|
125
|
+
l as ProfilePicture,
|
|
126
|
+
a as ProfileWrapper
|
|
48
127
|
};
|
|
49
128
|
//# sourceMappingURL=teacher-profile-styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teacher-profile-styled.js","sources":["../../../../../../src/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-styled.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport Image from '../../../../ui/image/image';\nimport FlexView from '../../../../ui/layout/flex-view';\n\nconst ProfilePicture = styled(Image)`\n object-fit: cover;\n`;\n\nconst GridContainer = styled.div(\n ({ theme }) => `\n flex: 1;\n
|
|
1
|
+
{"version":3,"file":"teacher-profile-styled.js","sources":["../../../../../../src/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-styled.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport { ILLUSTRATIONS } from '../../../../../assets/illustrations/illustrations';\nimport Image from '../../../../ui/image/image';\nimport FlexView from '../../../../ui/layout/flex-view';\n\nconst ProfilePicture = styled(Image)`\n object-fit: cover;\n border-radius: 50%;\n border: 1.5px solid ${({ theme }) => theme.colors.REAL_BLACK};\n`;\n\nconst ProfileWrapper = styled(FlexView)(\n ({ theme }) => `\n background-image: url(${ILLUSTRATIONS.RADIAL_GRADIENT_BG_2});\n background-repeat: no-repeat;\n background-size: auto;\n background-position: top;\n position: relative;\n ${theme.mediaQueries.minWidthTablet} {\n background-image: url(${ILLUSTRATIONS.RADIAL_GRADIENT_BG});\n }\n`,\n);\n\nconst GridContainer = styled.div(\n ({ theme }) => `\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n ${theme.mediaQueries.minWidthTablet} {\n flex: 1;\n display: grid;\n border-left: 1px solid ${theme.colors.BLACK_T_87};\n grid-template-columns: repeat(2, 1fr);\n grid-template-rows: auto auto auto;\n }\n`,\n);\n\nconst GridItem = styled(FlexView)(\n ({ theme }) => `\n width: 33.33%;\n &:nth-child(odd) {\n padding: 12px 16px;\n }\n &:last-child {\n width: 100%;\n }\n ${theme.mediaQueries.minWidthTablet} {\n width: auto;\n border: 0.5px solid ${theme.colors.WHITE_5};\n &:first-child,\n &:nth-child(2) {\n grid-column: span 1;\n }\n &:nth-child(3),\n &:nth-child(4) {\n grid-column: span 2;\n }\n &:first-child {\n border-left: none;\n border-top: none;\n }\n &:nth-child(2) {\n border-right: none;\n border-top: none;\n }\n &:nth-child(3) {\n border-left: none;\n border-right: none;\n }\n &:nth-child(4) {\n border-left: none;\n border-right: none;\n border-bottom: none;\n }\n }\n`,\n);\n\nconst CueLogoWrapper = styled(FlexView)`\n position: absolute;\n top: 8px;\n left: 8px;\n`;\n\nconst PositionedAsset1 = styled.img`\n position: absolute;\n top: 32px;\n right: 32px;\n width: 14px;\n ${({ theme }) => theme.mediaQueries.minWidthTablet} {\n top: 27px;\n right: 38px;\n width: 18px;\n }\n`;\nconst PositionedAsset2 = styled.img`\n position: absolute;\n top: 40px;\n left: 80px;\n width: 11px;\n ${({ theme }) => theme.mediaQueries.minWidthTablet} {\n top: 28.5px;\n left: 38px;\n width: 15px;\n }\n`;\nconst PositionedAsset3 = styled.img`\n position: absolute;\n left: 64px;\n bottom: 86px;\n width: 12px;\n ${({ theme }) => theme.mediaQueries.minWidthTablet} {\n bottom: 130px;\n left: 38px;\n width: 13px;\n }\n`;\nconst PositionedAsset4 = styled.img`\n position: absolute;\n right: 48px;\n bottom: 96px;\n width: 14px;\n ${({ theme }) => theme.mediaQueries.minWidthTablet} {\n right: 32px;\n bottom: 130px;\n width: 19px;\n }\n`;\n\nexport {\n PositionedAsset1,\n PositionedAsset2,\n PositionedAsset3,\n PositionedAsset4,\n CueLogoWrapper,\n ProfilePicture,\n GridContainer,\n GridItem,\n ProfileWrapper,\n};\n"],"names":["ProfilePicture","styled","Image","theme","ProfileWrapper","FlexView","ILLUSTRATIONS","GridContainer","GridItem","CueLogoWrapper","PositionedAsset1","PositionedAsset2","PositionedAsset3","PositionedAs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AAmBX,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAK5B,CAAC,EAAE,OAAAE,EAAA,MAAYA,EAAM,aAAa,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA,GAM9CU,IAAmBZ,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAK5B,CAAC,EAAE,OAAAE,EAAA,MAAYA,EAAM,aAAa,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
|
@@ -1,64 +1,182 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { memo as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
1
|
+
import { jsxs as t, Fragment as P, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { memo as Y, useMemo as l, useCallback as m } from "react";
|
|
3
|
+
import { useTheme as j } from "styled-components";
|
|
4
|
+
import { ILLUSTRATIONS as u } from "../../../../../assets/illustrations/illustrations.js";
|
|
5
|
+
import B from "../../../../../assets/line-icons/icons/cuemath-logo.js";
|
|
6
|
+
import H from "../../../../ui/buttons/button/button.js";
|
|
7
|
+
import V from "../../../../ui/image/image.js";
|
|
8
|
+
import s from "../../../../ui/layout/flex-view.js";
|
|
9
|
+
import x from "../../../../ui/separator/separator.js";
|
|
10
|
+
import c from "../../../../ui/text/text.js";
|
|
11
|
+
import { EDeviceType as F } from "../../../../ui/theme/constants.js";
|
|
12
|
+
import { COUNTRY_FLAGS as K } from "../teacher-intro-constants.js";
|
|
13
|
+
import { formatCountryList as q } from "./teacher-profile-helpers.js";
|
|
14
|
+
import { GridItem as N, ProfileWrapper as z, CueLogoWrapper as Q, PositionedAsset1 as J, PositionedAsset2 as Z, PositionedAsset3 as ee, PositionedAsset4 as re, ProfilePicture as te, GridContainer as ne } from "./teacher-profile-styled.js";
|
|
15
|
+
const oe = Object.values(K), y = Y(({ teacherProfile: S }) => {
|
|
10
16
|
const {
|
|
11
|
-
degree:
|
|
17
|
+
degree: D,
|
|
12
18
|
countries: o,
|
|
13
|
-
lower_grade:
|
|
14
|
-
higher_grade:
|
|
15
|
-
header_image:
|
|
16
|
-
years_of_experience:
|
|
17
|
-
number_of_students_taught:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
19
|
+
lower_grade: d,
|
|
20
|
+
higher_grade: i,
|
|
21
|
+
header_image: G,
|
|
22
|
+
years_of_experience: R,
|
|
23
|
+
number_of_students_taught: v,
|
|
24
|
+
first_name: g,
|
|
25
|
+
last_name: O,
|
|
26
|
+
teacher_profile_url: n
|
|
27
|
+
} = S || {}, {
|
|
28
|
+
degree_name: $,
|
|
29
|
+
field_of_study: h,
|
|
30
|
+
degree_code: C
|
|
31
|
+
} = D || {}, b = j(), e = l(() => b.device <= F.MOBILE, [b.device]), I = l(() => i && parseInt(i, 10) > 8, [i]), w = l(
|
|
32
|
+
() => g ? `${g} ${O}`.trim() : "",
|
|
33
|
+
[g, O]
|
|
34
|
+
), p = l(() => I ? "High School" : !d || !i ? "" : ` ${d === "K" ? "" : "G"}${d} - G${i}`, [I, i, d]), E = l(() => o && o.length > 0, [o]), U = l(() => $ && h, [$, h]), k = m(() => {
|
|
35
|
+
n && window.open(n, "_blank");
|
|
36
|
+
}, [n]), _ = m(() => n ? /* @__PURE__ */ t(P, { children: [
|
|
37
|
+
/* @__PURE__ */ r(x, { heightX: 1.5 }),
|
|
38
|
+
/* @__PURE__ */ r(
|
|
39
|
+
H,
|
|
40
|
+
{
|
|
41
|
+
label: "View profile",
|
|
42
|
+
renderAs: "secondary",
|
|
43
|
+
shape: "square",
|
|
44
|
+
onClick: k,
|
|
45
|
+
size: "small"
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
] }) : null, [k, n]), A = m(
|
|
49
|
+
({
|
|
50
|
+
value: a,
|
|
51
|
+
label: T,
|
|
52
|
+
mobileLabel: f,
|
|
53
|
+
valueRenderAs: L = "ah3-black"
|
|
54
|
+
}) => /* @__PURE__ */ t(
|
|
55
|
+
N,
|
|
56
|
+
{
|
|
57
|
+
$flex: e ? 1 : 0,
|
|
58
|
+
$justifyContent: e ? "flex-start" : "center",
|
|
59
|
+
$gutter: e ? 8 : 24,
|
|
60
|
+
$gapX: e ? 0.75 : 0,
|
|
61
|
+
$alignItems: e ? "center" : "flex-start",
|
|
62
|
+
$background: e ? "YELLOW_3" : "TRANSPARENT",
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ r(c, { $renderAs: L, $renderOnMobileAs: "ab2-black", children: a }),
|
|
65
|
+
/* @__PURE__ */ r(c, { $renderAs: "ub2", $renderOnMobileAs: "ub3", $align: e ? "center" : "left", children: e && f ? f : T })
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
[e]
|
|
70
|
+
), M = m(() => {
|
|
71
|
+
if (!E) return null;
|
|
72
|
+
if (e) {
|
|
73
|
+
const a = q(o);
|
|
74
|
+
return /* @__PURE__ */ t(s, { $gapX: 0.75, children: [
|
|
75
|
+
/* @__PURE__ */ t(c, { $renderOnMobileAs: "ub3-bold", $renderAs: "ab3-black", children: [
|
|
45
76
|
"Teaching ",
|
|
46
77
|
p,
|
|
47
|
-
" kids in"
|
|
78
|
+
" kids in ",
|
|
79
|
+
a,
|
|
80
|
+
"."
|
|
48
81
|
] }),
|
|
49
|
-
|
|
50
|
-
/* @__PURE__ */ r(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
82
|
+
_(),
|
|
83
|
+
n && /* @__PURE__ */ r(x, { heightX: 0.75 })
|
|
84
|
+
] });
|
|
85
|
+
}
|
|
86
|
+
return /* @__PURE__ */ t(s, { $flexDirection: "column", $flexGap: 12, children: [
|
|
87
|
+
/* @__PURE__ */ t(c, { $renderAs: "ab1-black", $renderOnMobileAs: "ub3-bold", children: [
|
|
88
|
+
"Teaching ",
|
|
89
|
+
p,
|
|
90
|
+
" kids in"
|
|
91
|
+
] }),
|
|
92
|
+
/* @__PURE__ */ r(s, { $flexDirection: "row", $flexGap: 16, $flexWrap: !0, children: o.map((a) => {
|
|
93
|
+
const T = oe.find((X) => X.name === a), { flag_icon: f = "", label: L = "", name: W } = T || {};
|
|
94
|
+
return /* @__PURE__ */ t(s, { $flexDirection: "row", $flexGap: 4, children: [
|
|
95
|
+
/* @__PURE__ */ r(V, { src: f, width: 30, height: 20, withLoader: !1 }),
|
|
96
|
+
/* @__PURE__ */ r(c, { $renderAs: "ab3-black", children: L })
|
|
97
|
+
] }, W || a);
|
|
98
|
+
}) })
|
|
99
|
+
] });
|
|
100
|
+
}, [
|
|
101
|
+
E,
|
|
102
|
+
e,
|
|
103
|
+
p,
|
|
104
|
+
o,
|
|
105
|
+
_,
|
|
106
|
+
n
|
|
107
|
+
]);
|
|
108
|
+
return /* @__PURE__ */ t(
|
|
109
|
+
s,
|
|
110
|
+
{
|
|
111
|
+
$flexDirection: e ? "column" : "row",
|
|
112
|
+
$borderColor: "BLACK_T_87",
|
|
113
|
+
$background: "WHITE_3",
|
|
114
|
+
children: [
|
|
115
|
+
/* @__PURE__ */ t(
|
|
116
|
+
z,
|
|
117
|
+
{
|
|
118
|
+
$gapX: e ? 1 : 1.5,
|
|
119
|
+
$gutterX: 1,
|
|
120
|
+
$background: "YELLOW_4",
|
|
121
|
+
$alignItems: "center",
|
|
122
|
+
$justifyContent: "center",
|
|
123
|
+
children: [
|
|
124
|
+
e && /* @__PURE__ */ r(Q, { children: /* @__PURE__ */ r(B, { width: 54, height: 8, color: b.colors.REAL_BLACK }) }),
|
|
125
|
+
/* @__PURE__ */ r(J, { src: u.STAR_OUTLINED }),
|
|
126
|
+
/* @__PURE__ */ r(Z, { src: u.HEART_OUTLINED }),
|
|
127
|
+
/* @__PURE__ */ r(ee, { src: u.EQUAL_OUTLINED }),
|
|
128
|
+
/* @__PURE__ */ r(re, { src: u.TROPHY_OUTLINED }),
|
|
129
|
+
/* @__PURE__ */ r(
|
|
130
|
+
te,
|
|
131
|
+
{
|
|
132
|
+
withLoader: !0,
|
|
133
|
+
src: G,
|
|
134
|
+
width: e ? 154 : 238,
|
|
135
|
+
height: e ? 154 : 238
|
|
136
|
+
}
|
|
137
|
+
),
|
|
138
|
+
w && /* @__PURE__ */ t(P, { children: [
|
|
139
|
+
/* @__PURE__ */ r(x, { heightX: e ? 0.75 : 1.5 }),
|
|
140
|
+
/* @__PURE__ */ r(c, { $renderAs: "ac2-black", $color: "BLACK_1", $align: "center", children: w })
|
|
141
|
+
] }),
|
|
142
|
+
!e && _()
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
),
|
|
146
|
+
/* @__PURE__ */ t(ne, { children: [
|
|
147
|
+
A({
|
|
148
|
+
value: `${R}+`,
|
|
149
|
+
label: "Yrs of Teaching Experience",
|
|
150
|
+
mobileLabel: "Years of Teaching"
|
|
151
|
+
}),
|
|
152
|
+
A({
|
|
153
|
+
value: `${v}+`,
|
|
154
|
+
label: "Students Taught"
|
|
155
|
+
}),
|
|
156
|
+
U && A({
|
|
157
|
+
value: e && C ? C : $,
|
|
158
|
+
label: `In ${h}`,
|
|
159
|
+
mobileLabel: h,
|
|
160
|
+
valueRenderAs: "ab1-black"
|
|
161
|
+
}),
|
|
162
|
+
/* @__PURE__ */ r(
|
|
163
|
+
N,
|
|
164
|
+
{
|
|
165
|
+
$justifyContent: "center",
|
|
166
|
+
$gutter: 24,
|
|
167
|
+
$flexDirection: e ? "row" : "column",
|
|
168
|
+
$background: e ? "YELLOW_4" : "TRANSPARENT",
|
|
169
|
+
children: M()
|
|
170
|
+
}
|
|
171
|
+
)
|
|
172
|
+
] })
|
|
173
|
+
]
|
|
174
|
+
}
|
|
175
|
+
);
|
|
176
|
+
});
|
|
177
|
+
y.displayName = "TeacherProfile";
|
|
178
|
+
const _e = y;
|
|
61
179
|
export {
|
|
62
|
-
|
|
180
|
+
_e as default
|
|
63
181
|
};
|
|
64
182
|
//# sourceMappingURL=teacher-profile.js.map
|
package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teacher-profile.js","sources":["../../../../../../src/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.tsx"],"sourcesContent":["import type { ITeacherProfileDetails } from '../../../trial-session-types';\nimport type { FC } from 'react';\n\nimport { memo, useMemo } from 'react';\n\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 { COUNTRY_FLAGS } from '../teacher-intro-constants';\nimport * as Styled from './teacher-profile-styled';\n\ninterface ITeacherProfileProps {\n teacherProfile?: ITeacherProfileDetails;\n}\n\nconst TeacherProfile: FC<ITeacherProfileProps> = memo(({ teacherProfile }) => {\n const {\n degree,\n countries,\n lower_grade: lowerGrade,\n higher_grade: higherGrade,\n header_image: headerImage,\n years_of_experience: yearsOfExperience,\n number_of_students_taught: numberOfStudentsTaught,\n } = teacherProfile || {};\n const { degree_name: degreeName, field_of_study: fieldOfStudy } = degree || {};\n\n const countryFlagArray = Object.values(COUNTRY_FLAGS);\n const isHighSchool = higherGrade && parseInt(higherGrade, 10) > 8;\n\n const displayGrade = useMemo(() => {\n return isHighSchool\n ? 'High School'\n : ` ${lowerGrade === 'K' ? '' : 'G'}${lowerGrade} - G${higherGrade}`;\n }, [isHighSchool, higherGrade, lowerGrade]);\n\n return (\n <FlexView $flexDirection=\"row\" $borderColor=\"BLACK_T_87\" $background=\"WHITE_3\">\n <Styled.ProfilePicture withLoader src={headerImage} width={350} height={350} />\n <Styled.GridContainer>\n <Styled.GridItem $justifyContent=\"center\" $gutter={24}>\n <Text $renderAs=\"ah3-black\">{yearsOfExperience}+</Text>\n <Text $renderAs=\"ub3\">Yrs of Teaching Experience</Text>\n </Styled.GridItem>\n <Styled.GridItem $justifyContent=\"center\" $gutter={24}>\n <Text $renderAs=\"ah3-black\">{numberOfStudentsTaught}+</Text>\n <Text $renderAs=\"ub3\">Students Taught</Text>\n </Styled.GridItem>\n {degreeName && fieldOfStudy && (\n <Styled.GridItem $justifyContent=\"center\" $gutter={24}>\n <Text $renderAs=\"ab1-black\">{degreeName}</Text>\n <Text $renderAs=\"ub3\">In {fieldOfStudy}</Text>\n </Styled.GridItem>\n )}\n <Styled.GridItem $justifyContent=\"center\" $gutter={24}>\n <Text $renderAs=\"ab1-black\">Teaching {displayGrade} kids in</Text>\n <Separator height={12} />\n <FlexView $flexDirection=\"row\" $flexGap={16} $flexWrap>\n {countries &&\n countries.length > 0 &&\n countries.map(country => {\n const countryFlag = countryFlagArray.find(item => item.name === country);\n const { flag_icon: flagIcon = '', label, name } = countryFlag || {};\n\n return (\n <FlexView key={name} $flexDirection=\"row\" $flexGap={4}>\n <Image src={flagIcon} width={30} height={20} withLoader={false} />\n <Text $renderAs=\"ab3-black\">{label}</Text>\n </FlexView>\n );\n })}\n </FlexView>\n </Styled.GridItem>\n </Styled.GridContainer>\n </FlexView>\n );\n});\n\nexport default TeacherProfile;\n"],"names":["TeacherProfile","memo","teacherProfile","degree","countries","lowerGrade","higherGrade","headerImage","yearsOfExperience","numberOfStudentsTaught","degreeName","fieldOfStudy","countryFlagArray","COUNTRY_FLAGS","isHighSchool","displayGrade","useMemo","FlexView","jsx","Styled.ProfilePicture","jsxs","Styled.GridContainer","Styled.GridItem","Text","Separator","country","countryFlag","item","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sources":["../../../../../../src/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.tsx"],"sourcesContent":["import type { TTextVariants } from '../../../../ui/types';\nimport type { ITeacherProfileProps } from './teacher-profile-types';\nimport type { FC } from 'react';\n\nimport { memo, useCallback, useMemo } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport { ILLUSTRATIONS } from '../../../../../assets/illustrations/illustrations';\nimport CuemathLogo from '../../../../../assets/line-icons/icons/cuemath-logo';\nimport Button from '../../../../ui/buttons/button/button';\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 { COUNTRY_FLAGS } from '../teacher-intro-constants';\nimport { formatCountryList } from './teacher-profile-helpers';\nimport * as Styled from './teacher-profile-styled';\n\nconst countryFlagArray = Object.values(COUNTRY_FLAGS);\n\nconst TeacherProfile: FC<ITeacherProfileProps> = memo(({ teacherProfile }) => {\n const {\n degree,\n countries,\n lower_grade: lowerGrade,\n higher_grade: higherGrade,\n header_image: headerImage,\n years_of_experience: yearsOfExperience,\n number_of_students_taught: numberOfStudentsTaught,\n first_name: firstName,\n last_name: lastName,\n teacher_profile_url: teacherProfileUrl,\n } = teacherProfile || {};\n\n const {\n degree_name: degreeName,\n field_of_study: fieldOfStudy,\n degree_code: degreeCode,\n } = degree || {};\n\n const theme = useTheme();\n const isMobile = useMemo(() => theme.device <= EDeviceType.MOBILE, [theme.device]);\n const isHighSchool = useMemo(() => higherGrade && parseInt(higherGrade, 10) > 8, [higherGrade]);\n const teacherName = useMemo(\n () => (firstName ? `${firstName} ${lastName}`.trim() : ''),\n [firstName, lastName],\n );\n\n const displayGrade = useMemo(() => {\n if (isHighSchool) return 'High School';\n\n if (!lowerGrade || !higherGrade) return '';\n\n return ` ${lowerGrade === 'K' ? '' : 'G'}${lowerGrade} - G${higherGrade}`;\n }, [isHighSchool, higherGrade, lowerGrade]);\n\n const hasValidCountries = useMemo(() => countries && countries.length > 0, [countries]);\n\n const hasDegreeInfo = useMemo(() => degreeName && fieldOfStudy, [degreeName, fieldOfStudy]);\n\n const handleViewProfile = useCallback(() => {\n if (teacherProfileUrl) {\n window.open(teacherProfileUrl, '_blank');\n }\n }, [teacherProfileUrl]);\n\n const renderViewProfileButton = useCallback(() => {\n if (!teacherProfileUrl) return null;\n\n return (\n <>\n <Separator heightX={1.5} />\n <Button\n label=\"View profile\"\n renderAs=\"secondary\"\n shape=\"square\"\n onClick={handleViewProfile}\n size=\"small\"\n />\n </>\n );\n }, [handleViewProfile, teacherProfileUrl]);\n\n const renderStatItem = useCallback(\n ({\n value,\n label,\n mobileLabel,\n valueRenderAs = 'ah3-black',\n }: {\n value?: string | number;\n label: string;\n mobileLabel?: string;\n valueRenderAs?: TTextVariants;\n }) => (\n <Styled.GridItem\n $flex={isMobile ? 1 : 0}\n $justifyContent={isMobile ? 'flex-start' : 'center'}\n $gutter={isMobile ? 8 : 24}\n $gapX={isMobile ? 0.75 : 0}\n $alignItems={isMobile ? 'center' : 'flex-start'}\n $background={isMobile ? 'YELLOW_3' : 'TRANSPARENT'}\n >\n <Text $renderAs={valueRenderAs} $renderOnMobileAs=\"ab2-black\">\n {value}\n </Text>\n <Text $renderAs=\"ub2\" $renderOnMobileAs=\"ub3\" $align={isMobile ? 'center' : 'left'}>\n {isMobile && mobileLabel ? mobileLabel : label}\n </Text>\n </Styled.GridItem>\n ),\n [isMobile],\n );\n\n const renderCountries = useCallback(() => {\n if (!hasValidCountries) return null;\n\n if (isMobile) {\n const formattedCountries = formatCountryList(countries!);\n\n return (\n <FlexView $gapX={0.75}>\n <Text $renderOnMobileAs=\"ub3-bold\" $renderAs=\"ab3-black\">\n Teaching {displayGrade} kids in {formattedCountries}.\n </Text>\n {renderViewProfileButton()}\n {teacherProfileUrl && <Separator heightX={0.75} />}\n </FlexView>\n );\n }\n\n return (\n <FlexView $flexDirection=\"column\" $flexGap={12}>\n <Text $renderAs=\"ab1-black\" $renderOnMobileAs=\"ub3-bold\">\n Teaching {displayGrade} kids in\n </Text>\n <FlexView $flexDirection=\"row\" $flexGap={16} $flexWrap>\n {countries!.map(country => {\n const match = countryFlagArray.find(item => item.name === country);\n const { flag_icon: flagIcon = '', label = '', name } = match || {};\n\n return (\n <FlexView key={name || country} $flexDirection=\"row\" $flexGap={4}>\n <Image src={flagIcon} width={30} height={20} withLoader={false} />\n <Text $renderAs=\"ab3-black\">{label}</Text>\n </FlexView>\n );\n })}\n </FlexView>\n </FlexView>\n );\n }, [\n hasValidCountries,\n isMobile,\n displayGrade,\n countries,\n renderViewProfileButton,\n teacherProfileUrl,\n ]);\n\n return (\n <FlexView\n $flexDirection={isMobile ? 'column' : 'row'}\n $borderColor=\"BLACK_T_87\"\n $background=\"WHITE_3\"\n >\n <Styled.ProfileWrapper\n $gapX={isMobile ? 1 : 1.5}\n $gutterX={1}\n $background=\"YELLOW_4\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n >\n {isMobile && (\n <Styled.CueLogoWrapper>\n <CuemathLogo width={54} height={8} color={theme.colors.REAL_BLACK} />\n </Styled.CueLogoWrapper>\n )}\n <Styled.PositionedAsset1 src={ILLUSTRATIONS.STAR_OUTLINED} />\n <Styled.PositionedAsset2 src={ILLUSTRATIONS.HEART_OUTLINED} />\n <Styled.PositionedAsset3 src={ILLUSTRATIONS.EQUAL_OUTLINED} />\n <Styled.PositionedAsset4 src={ILLUSTRATIONS.TROPHY_OUTLINED} />\n <Styled.ProfilePicture\n withLoader\n src={headerImage}\n width={isMobile ? 154 : 238}\n height={isMobile ? 154 : 238}\n />\n {teacherName && (\n <>\n <Separator heightX={isMobile ? 0.75 : 1.5} />\n <Text $renderAs=\"ac2-black\" $color=\"BLACK_1\" $align=\"center\">\n {teacherName}\n </Text>\n </>\n )}\n {!isMobile && renderViewProfileButton()}\n </Styled.ProfileWrapper>\n\n <Styled.GridContainer>\n {renderStatItem({\n value: `${yearsOfExperience}+`,\n label: 'Yrs of Teaching Experience',\n mobileLabel: 'Years of Teaching',\n })}\n {renderStatItem({\n value: `${numberOfStudentsTaught}+`,\n label: 'Students Taught',\n })}\n {hasDegreeInfo &&\n renderStatItem({\n value: isMobile && degreeCode ? degreeCode : degreeName,\n label: `In ${fieldOfStudy}`,\n mobileLabel: fieldOfStudy,\n valueRenderAs: 'ab1-black',\n })}\n <Styled.GridItem\n $justifyContent=\"center\"\n $gutter={24}\n $flexDirection={isMobile ? 'row' : 'column'}\n $background={isMobile ? 'YELLOW_4' : 'TRANSPARENT'}\n >\n {renderCountries()}\n </Styled.GridItem>\n </Styled.GridContainer>\n </FlexView>\n );\n});\n\nTeacherProfile.displayName = 'TeacherProfile';\n\nexport default TeacherProfile;\n"],"names":["countryFlagArray","COUNTRY_FLAGS","TeacherProfile","memo","teacherProfile","degree","countries","lowerGrade","higherGrade","headerImage","yearsOfExperience","numberOfStudentsTaught","firstName","lastName","teacherProfileUrl","degreeName","fieldOfStudy","degreeCode","theme","useTheme","isMobile","useMemo","EDeviceType","isHighSchool","teacherName","displayGrade","hasValidCountries","hasDegreeInfo","handleViewProfile","useCallback","renderViewProfileButton","jsxs","Fragment","jsx","Separator","Button","renderStatItem","value","label","mobileLabel","valueRenderAs","Styled.GridItem","Text","renderCountries","formattedCountries","formatCountryList","FlexView","country","match","item","flagIcon","name","Image","Styled.ProfileWrapper","Styled.CueLogoWrapper","CuemathLogo","Styled.PositionedAsset1","ILLUSTRATIONS","Styled.PositionedAsset2","Styled.PositionedAsset3","Styled.PositionedAsset4","Styled.ProfilePicture","Styled.GridContainer","TeacherProfile$1"],"mappings":";;;;;;;;;;;;;;AAmBA,MAAMA,KAAmB,OAAO,OAAOC,CAAa,GAE9CC,IAA2CC,EAAK,CAAC,EAAE,gBAAAC,QAAqB;AACtE,QAAA;AAAA,IACJ,QAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAaC;AAAA,IACb,cAAcC;AAAA,IACd,cAAcC;AAAA,IACd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