@cuemath/leap 3.3.3 → 3.3.4-j1
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/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/create/comps/goal-completion-date-selector/goal-completion-date-selector.js +6 -6
- package/dist/features/parent-dashboard/cuemath-app-features/cuemath-app-features-constants.js +25 -0
- package/dist/features/parent-dashboard/cuemath-app-features/cuemath-app-features-constants.js.map +1 -0
- package/dist/features/parent-dashboard/cuemath-app-features/cuemath-app-features-styled.js +15 -0
- package/dist/features/parent-dashboard/cuemath-app-features/cuemath-app-features-styled.js.map +1 -0
- package/dist/features/parent-dashboard/cuemath-app-features/cuemath-app-features.js +90 -0
- package/dist/features/parent-dashboard/cuemath-app-features/cuemath-app-features.js.map +1 -0
- package/dist/features/parent-dashboard/math-practice/math-practice-constants.js +19 -0
- package/dist/features/parent-dashboard/math-practice/math-practice-constants.js.map +1 -0
- package/dist/features/parent-dashboard/math-practice/math-practice-styled.js +32 -0
- package/dist/features/parent-dashboard/math-practice/math-practice-styled.js.map +1 -0
- package/dist/features/parent-dashboard/math-practice/math-practice.js +67 -0
- package/dist/features/parent-dashboard/math-practice/math-practice.js.map +1 -0
- package/dist/features/parent-dashboard/parent-dashboard-faqs/parent-dashboard-faqs-constants.js +42 -0
- package/dist/features/parent-dashboard/parent-dashboard-faqs/parent-dashboard-faqs-constants.js.map +1 -0
- package/dist/features/parent-dashboard/parent-dashboard-faqs/parent-dashboard-faqs.js +20 -0
- package/dist/features/parent-dashboard/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/learning-plan/index.js +88 -62
- package/dist/features/trial-session/comps/learning-plan/index.js.map +1 -1
- 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/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 +243 -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/modals/modal.js +30 -28
- package/dist/features/ui/modals/modal.js.map +1 -1
- package/dist/index.d.ts +85 -1
- package/dist/index.js +383 -365
- 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 +3 -2
- 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
package/dist/features/parent-dashboard/cuemath-app-features/cuemath-app-features-constants.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cuemath-app-features-constants.js","sources":["../../../../src/features/parent-dashboard/cuemath-app-features/cuemath-app-features-constants.ts"],"sourcesContent":["import type { ICuemathAppBenefit } from './cuemath-app-features-types';\n\nimport { GIF } from '../../../assets/gif/gif';\n\nexport const benefits: ICuemathAppBenefit[] = [\n {\n icon: GIF.STAY_CONNECTED,\n title: 'STAY CONNECTED',\n description: 'Chat with your tutor and receive real-time updates.',\n bgColor: 'BLUE_6',\n },\n {\n icon: GIF.TRACK_PROGRESS,\n title: 'TRACK PROGRESS',\n description: 'Progress, strengths, and areas of improvement.',\n bgColor: 'PURPLE_6',\n },\n {\n icon: GIF.EASY_RESCHEDULING,\n title: 'EASY RESCHEDULING',\n description: 'Conveniently change your class timings.',\n bgColor: 'GREEN_6',\n },\n];\n"],"names":["benefits","GIF"],"mappings":";AAIO,MAAMA,IAAiC;AAAA,EAC5C;AAAA,IACE,MAAMC,EAAI;AAAA,IACV,OAAO;AAAA,IACP,aAAa;AAAA,IACb,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,MAAMA,EAAI;AAAA,IACV,OAAO;AAAA,IACP,aAAa;AAAA,IACb,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,MAAMA,EAAI;AAAA,IACV,OAAO;AAAA,IACP,aAAa;AAAA,IACb,SAAS;AAAA,EACX;AACF;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import i from "styled-components";
|
|
2
|
+
import t from "../../ui/layout/flex-view.js";
|
|
3
|
+
const h = i(t)(
|
|
4
|
+
({ theme: e }) => `
|
|
5
|
+
height: 100%;
|
|
6
|
+
${e.mediaQueries.minWidthTablet} {
|
|
7
|
+
width: 100%;
|
|
8
|
+
max-height: 250px;
|
|
9
|
+
}
|
|
10
|
+
`
|
|
11
|
+
);
|
|
12
|
+
export {
|
|
13
|
+
h as ImageWrapper
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=cuemath-app-features-styled.js.map
|
package/dist/features/parent-dashboard/cuemath-app-features/cuemath-app-features-styled.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cuemath-app-features-styled.js","sources":["../../../../src/features/parent-dashboard/cuemath-app-features/cuemath-app-features-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../ui/layout/flex-view';\n\nexport const ImageWrapper = styled(FlexView)(\n ({ theme }) => `\n height: 100%;\n ${theme.mediaQueries.minWidthTablet} {\n width: 100%;\n max-height: 250px;\n }\n`,\n);\n"],"names":["ImageWrapper","styled","FlexView","theme"],"mappings":";;AAIa,MAAAA,IAAeC,EAAOC,CAAQ;AAAA,EACzC,CAAC,EAAE,OAAAC,EAAA,MAAY;AAAA;AAAA,IAEbA,EAAM,aAAa,cAAc;AAAA;AAAA;AAAA;AAAA;AAKrC;"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { jsxs as t, jsx as e, Fragment as s } from "react/jsx-runtime";
|
|
2
|
+
import { memo as $, useCallback as f } from "react";
|
|
3
|
+
import { useTheme as u } from "styled-components";
|
|
4
|
+
import { ILLUSTRATIONS as b } from "../../../assets/illustrations/illustrations.js";
|
|
5
|
+
import g from "../../../assets/line-icons/icons/next2.js";
|
|
6
|
+
import { CUEMATH_APP_URL as w } from "../../../constants/config.js";
|
|
7
|
+
import A from "../../ui/buttons/button/button.js";
|
|
8
|
+
import c from "../../ui/image/image.js";
|
|
9
|
+
import o from "../../ui/layout/flex-view.js";
|
|
10
|
+
import a from "../../ui/separator/separator.js";
|
|
11
|
+
import n from "../../ui/text/text.js";
|
|
12
|
+
import { EDeviceType as I } from "../../ui/theme/constants.js";
|
|
13
|
+
import { benefits as T } from "./cuemath-app-features-constants.js";
|
|
14
|
+
import { ImageWrapper as x } from "./cuemath-app-features-styled.js";
|
|
15
|
+
const E = () => {
|
|
16
|
+
const l = u(), r = l.device <= I.MOBILE, m = f(() => {
|
|
17
|
+
window.open(w, "_blank");
|
|
18
|
+
}, []);
|
|
19
|
+
return /* @__PURE__ */ t(o, { children: [
|
|
20
|
+
/* @__PURE__ */ t(o, { $flexDirection: "row", $justifyContent: "space-between", $alignItems: "center", children: [
|
|
21
|
+
/* @__PURE__ */ t(o, { children: [
|
|
22
|
+
/* @__PURE__ */ e(n, { $renderAs: "ah4-bold", $renderOnMobileAs: "ab1-bold", $color: "WHITE", children: "Do more with the Cuemath app" }),
|
|
23
|
+
!r && /* @__PURE__ */ t(s, { children: [
|
|
24
|
+
/* @__PURE__ */ e(a, { height: 4 }),
|
|
25
|
+
/* @__PURE__ */ t(o, { $flexDirection: "row", $alignItems: "center", $flexColumnGapX: 0.25, children: [
|
|
26
|
+
/* @__PURE__ */ e(n, { $renderAs: "ub1", $color: "WHITE_T_60", children: "Scan QR to download the app" }),
|
|
27
|
+
/* @__PURE__ */ e(g, { height: 24, width: 24, color: l.colors.WHITE_T_60 })
|
|
28
|
+
] })
|
|
29
|
+
] })
|
|
30
|
+
] }),
|
|
31
|
+
!r && /* @__PURE__ */ e(o, { $background: "WHITE", children: /* @__PURE__ */ e(c, { src: b.CUEMATH_APP_QR_CODE, width: 60, height: 60 }) })
|
|
32
|
+
] }),
|
|
33
|
+
/* @__PURE__ */ e(a, { height: r ? 16 : 20 }),
|
|
34
|
+
/* @__PURE__ */ e(o, { $flexGapX: 1, $justifyContent: "center", $flexDirection: r ? "column" : "row", children: T.map(({ icon: h, title: i, description: p, bgColor: d }) => /* @__PURE__ */ t(
|
|
35
|
+
o,
|
|
36
|
+
{
|
|
37
|
+
$flex: 1,
|
|
38
|
+
$flexDirection: r ? "row" : "column",
|
|
39
|
+
$alignItems: r ? "normal" : "center",
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ e(
|
|
42
|
+
x,
|
|
43
|
+
{
|
|
44
|
+
$height: r ? "auto" : "100%",
|
|
45
|
+
$width: r ? "auto" : "100%",
|
|
46
|
+
children: /* @__PURE__ */ e(
|
|
47
|
+
c,
|
|
48
|
+
{
|
|
49
|
+
src: h,
|
|
50
|
+
height: r ? "auto" : 250,
|
|
51
|
+
width: r ? 84 : "100%",
|
|
52
|
+
alt: i
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
}
|
|
56
|
+
),
|
|
57
|
+
/* @__PURE__ */ t(
|
|
58
|
+
o,
|
|
59
|
+
{
|
|
60
|
+
$background: d,
|
|
61
|
+
$gutterX: r ? 1 : 1.5,
|
|
62
|
+
$gapX: r ? 1 : 1.5,
|
|
63
|
+
$flex: 1,
|
|
64
|
+
$width: "100%",
|
|
65
|
+
children: [
|
|
66
|
+
/* @__PURE__ */ e(n, { $renderAs: "ac3-black", $color: "WHITE", $renderOnMobileAs: "ac4-black", children: i }),
|
|
67
|
+
/* @__PURE__ */ e(n, { $renderAs: "ub3", $color: "WHITE", children: p })
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
i
|
|
74
|
+
)) }),
|
|
75
|
+
r && /* @__PURE__ */ e(o, { $gapX: 1, children: /* @__PURE__ */ e(
|
|
76
|
+
A,
|
|
77
|
+
{
|
|
78
|
+
label: "Download the app",
|
|
79
|
+
renderAs: "secondary",
|
|
80
|
+
size: "small",
|
|
81
|
+
shape: "square",
|
|
82
|
+
onClick: m
|
|
83
|
+
}
|
|
84
|
+
) })
|
|
85
|
+
] });
|
|
86
|
+
}, R = $(E);
|
|
87
|
+
export {
|
|
88
|
+
R as default
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=cuemath-app-features.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cuemath-app-features.js","sources":["../../../../src/features/parent-dashboard/cuemath-app-features/cuemath-app-features.tsx"],"sourcesContent":["import { memo, useCallback, type FC } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport { ILLUSTRATIONS } from '../../../assets/illustrations/illustrations';\nimport Next2Icon from '../../../assets/line-icons/icons/next2';\nimport { CUEMATH_APP_URL } from '../../../constants/config';\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 { benefits } from './cuemath-app-features-constants';\nimport * as Styled from './cuemath-app-features-styled';\n\nconst CuemathAppFeatures: FC = () => {\n const theme = useTheme();\n const isMobile = theme.device <= EDeviceType.MOBILE;\n\n const handleOpenApp = useCallback(() => {\n window.open(CUEMATH_APP_URL, '_blank');\n }, []);\n\n return (\n <FlexView>\n <FlexView $flexDirection=\"row\" $justifyContent=\"space-between\" $alignItems=\"center\">\n <FlexView>\n <Text $renderAs=\"ah4-bold\" $renderOnMobileAs=\"ab1-bold\" $color=\"WHITE\">\n Do more with the Cuemath app\n </Text>\n {!isMobile && (\n <>\n <Separator height={4} />\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $flexColumnGapX={0.25}>\n <Text $renderAs=\"ub1\" $color=\"WHITE_T_60\">\n Scan QR to download the app\n </Text>\n <Next2Icon height={24} width={24} color={theme.colors.WHITE_T_60} />\n </FlexView>\n </>\n )}\n </FlexView>\n {!isMobile && (\n <FlexView $background=\"WHITE\">\n <Image src={ILLUSTRATIONS.CUEMATH_APP_QR_CODE} width={60} height={60} />\n </FlexView>\n )}\n </FlexView>\n <Separator height={isMobile ? 16 : 20} />\n <FlexView $flexGapX={1} $justifyContent=\"center\" $flexDirection={isMobile ? 'column' : 'row'}>\n {benefits.map(({ icon, title, description, bgColor }) => (\n <FlexView\n key={title}\n $flex={1}\n $flexDirection={isMobile ? 'row' : 'column'}\n $alignItems={isMobile ? 'normal' : 'center'}\n >\n <Styled.ImageWrapper\n $height={isMobile ? 'auto' : '100%'}\n $width={isMobile ? 'auto' : '100%'}\n >\n <Image\n src={icon}\n height={isMobile ? 'auto' : 250}\n width={isMobile ? 84 : '100%'}\n alt={title}\n />\n </Styled.ImageWrapper>\n <FlexView\n $background={bgColor}\n $gutterX={isMobile ? 1 : 1.5}\n $gapX={isMobile ? 1 : 1.5}\n $flex={1}\n $width=\"100%\"\n >\n <Text $renderAs=\"ac3-black\" $color=\"WHITE\" $renderOnMobileAs=\"ac4-black\">\n {title}\n </Text>\n <Text $renderAs=\"ub3\" $color=\"WHITE\">\n {description}\n </Text>\n </FlexView>\n </FlexView>\n ))}\n </FlexView>\n {isMobile && (\n <FlexView $gapX={1}>\n <Button\n label=\"Download the app\"\n renderAs=\"secondary\"\n size=\"small\"\n shape=\"square\"\n onClick={handleOpenApp}\n />\n </FlexView>\n )}\n </FlexView>\n );\n};\n\nexport default memo(CuemathAppFeatures);\n"],"names":["CuemathAppFeatures","theme","useTheme","isMobile","EDeviceType","handleOpenApp","useCallback","CUEMATH_APP_URL","FlexView","jsxs","jsx","Text","Fragment","Separator","Next2Icon","Image","ILLUSTRATIONS","benefits","icon","title","description","bgColor","Styled.ImageWrapper","Button","cuemathAppFeatures","memo"],"mappings":";;;;;;;;;;;;;;AAeA,MAAMA,IAAyB,MAAM;AACnC,QAAMC,IAAQC,KACRC,IAAWF,EAAM,UAAUG,EAAY,QAEvCC,IAAgBC,EAAY,MAAM;AAC/B,WAAA,KAAKC,GAAiB,QAAQ;AAAA,EACvC,GAAG,CAAE,CAAA;AAEL,2BACGC,GACC,EAAA,UAAA;AAAA,IAAA,gBAAAC,EAACD,KAAS,gBAAe,OAAM,iBAAgB,iBAAgB,aAAY,UACzE,UAAA;AAAA,MAAA,gBAAAC,EAACD,GACC,EAAA,UAAA;AAAA,QAAA,gBAAAE,EAACC,KAAK,WAAU,YAAW,mBAAkB,YAAW,QAAO,SAAQ,UAEvE,+BAAA,CAAA;AAAA,QACC,CAACR,KAEE,gBAAAM,EAAAG,GAAA,EAAA,UAAA;AAAA,UAAC,gBAAAF,EAAAG,GAAA,EAAU,QAAQ,EAAG,CAAA;AAAA,4BACrBL,GAAS,EAAA,gBAAe,OAAM,aAAY,UAAS,iBAAiB,MACnE,UAAA;AAAA,YAAA,gBAAAE,EAACC,GAAK,EAAA,WAAU,OAAM,QAAO,cAAa,UAE1C,+BAAA;AAAA,YACA,gBAAAD,EAACI,KAAU,QAAQ,IAAI,OAAO,IAAI,OAAOb,EAAM,OAAO,WAAY,CAAA;AAAA,UAAA,GACpE;AAAA,QAAA,GACF;AAAA,MAAA,GAEJ;AAAA,MACC,CAACE,KACC,gBAAAO,EAAAF,GAAA,EAAS,aAAY,SACpB,UAAA,gBAAAE,EAACK,GAAM,EAAA,KAAKC,EAAc,qBAAqB,OAAO,IAAI,QAAQ,GAAI,CAAA,GACxE;AAAA,IAAA,GAEJ;AAAA,IACC,gBAAAN,EAAAG,GAAA,EAAU,QAAQV,IAAW,KAAK,IAAI;AAAA,sBACtCK,GAAS,EAAA,WAAW,GAAG,iBAAgB,UAAS,gBAAgBL,IAAW,WAAW,OACpF,UAAAc,EAAS,IAAI,CAAC,EAAE,MAAAC,GAAM,OAAAC,GAAO,aAAAC,GAAa,SAAAC,QACzC,gBAAAZ;AAAA,MAACD;AAAA,MAAA;AAAA,QAEC,OAAO;AAAA,QACP,gBAAgBL,IAAW,QAAQ;AAAA,QACnC,aAAaA,IAAW,WAAW;AAAA,QAEnC,UAAA;AAAA,UAAA,gBAAAO;AAAA,YAACY;AAAAA,YAAA;AAAA,cACC,SAASnB,IAAW,SAAS;AAAA,cAC7B,QAAQA,IAAW,SAAS;AAAA,cAE5B,UAAA,gBAAAO;AAAA,gBAACK;AAAA,gBAAA;AAAA,kBACC,KAAKG;AAAA,kBACL,QAAQf,IAAW,SAAS;AAAA,kBAC5B,OAAOA,IAAW,KAAK;AAAA,kBACvB,KAAKgB;AAAA,gBAAA;AAAA,cACP;AAAA,YAAA;AAAA,UACF;AAAA,UACA,gBAAAV;AAAA,YAACD;AAAA,YAAA;AAAA,cACC,aAAaa;AAAA,cACb,UAAUlB,IAAW,IAAI;AAAA,cACzB,OAAOA,IAAW,IAAI;AAAA,cACtB,OAAO;AAAA,cACP,QAAO;AAAA,cAEP,UAAA;AAAA,gBAAA,gBAAAO,EAACC,KAAK,WAAU,aAAY,QAAO,SAAQ,mBAAkB,aAC1D,UACHQ,EAAA,CAAA;AAAA,kCACCR,GAAK,EAAA,WAAU,OAAM,QAAO,SAC1B,UACHS,GAAA;AAAA,cAAA;AAAA,YAAA;AAAA,UACF;AAAA,QAAA;AAAA,MAAA;AAAA,MA7BKD;AAAA,IA+BR,CAAA,GACH;AAAA,IACChB,KACC,gBAAAO,EAACF,GAAS,EAAA,OAAO,GACf,UAAA,gBAAAE;AAAA,MAACa;AAAA,MAAA;AAAA,QACC,OAAM;AAAA,QACN,UAAS;AAAA,QACT,MAAK;AAAA,QACL,OAAM;AAAA,QACN,SAASlB;AAAA,MAAA;AAAA,IAAA,GAEb;AAAA,EAEJ,EAAA,CAAA;AAEJ,GAEemB,IAAAC,EAAKzB,CAAkB;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { GIF as t } from "../../../assets/gif/gif.js";
|
|
2
|
+
const a = [
|
|
3
|
+
{
|
|
4
|
+
title: "Strategy Games",
|
|
5
|
+
image: t.GAMES
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
title: "Logic Puzzles",
|
|
9
|
+
image: t.PUZZLES
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
title: "Mental Math",
|
|
13
|
+
image: t.SKILLS
|
|
14
|
+
}
|
|
15
|
+
];
|
|
16
|
+
export {
|
|
17
|
+
a as mathPracticeData
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=math-practice-constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"math-practice-constants.js","sources":["../../../../src/features/parent-dashboard/math-practice/math-practice-constants.ts"],"sourcesContent":["import { GIF } from '../../../assets/gif/gif';\n\nexport const mathPracticeData = [\n {\n title: 'Strategy Games',\n image: GIF.GAMES,\n },\n {\n title: 'Logic Puzzles',\n image: GIF.PUZZLES,\n },\n {\n title: 'Mental Math',\n image: GIF.SKILLS,\n },\n];\n"],"names":["mathPracticeData","GIF"],"mappings":";AAEO,MAAMA,IAAmB;AAAA,EAC9B;AAAA,IACE,OAAO;AAAA,IACP,OAAOC,EAAI;AAAA,EACb;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,OAAOA,EAAI;AAAA,EACb;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,OAAOA,EAAI;AAAA,EACb;AACF;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import o from "styled-components";
|
|
2
|
+
import e from "../../ui/layout/flex-view.js";
|
|
3
|
+
const n = o.div`
|
|
4
|
+
width: 100%;
|
|
5
|
+
max-width: 100%;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
`, r = o(e)`
|
|
8
|
+
width: 100%;
|
|
9
|
+
flex-shrink: 0;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
`, l = o(e)`
|
|
12
|
+
overflow-x: auto;
|
|
13
|
+
overflow-y: hidden;
|
|
14
|
+
scroll-behavior: smooth;
|
|
15
|
+
-webkit-overflow-scrolling: touch;
|
|
16
|
+
&::-webkit-scrollbar {
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
`, d = o.div`
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
align-items: center;
|
|
23
|
+
flex-shrink: 0;
|
|
24
|
+
min-width: fit-content;
|
|
25
|
+
`;
|
|
26
|
+
export {
|
|
27
|
+
n as Container,
|
|
28
|
+
d as ContentItem,
|
|
29
|
+
l as ContentWrapper,
|
|
30
|
+
r as HeaderWrapper
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=math-practice-styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"math-practice-styled.js","sources":["../../../../src/features/parent-dashboard/math-practice/math-practice-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../ui/layout/flex-view';\n\nexport const Container = styled.div`\n width: 100%;\n max-width: 100%;\n overflow: hidden;\n`;\n\nexport const HeaderWrapper = styled(FlexView)`\n width: 100%;\n flex-shrink: 0;\n overflow: hidden;\n`;\n\nexport const ContentWrapper = styled(FlexView)`\n overflow-x: auto;\n overflow-y: hidden;\n scroll-behavior: smooth;\n -webkit-overflow-scrolling: touch;\n &::-webkit-scrollbar {\n display: none;\n }\n`;\n\nexport const ContentItem = styled.div`\n display: flex;\n flex-direction: column;\n align-items: center;\n flex-shrink: 0;\n min-width: fit-content;\n`;\n"],"names":["Container","styled","HeaderWrapper","FlexView","ContentWrapper","ContentItem"],"mappings":";;AAIO,MAAMA,IAAYC,EAAO;AAAA;AAAA;AAAA;AAAA,GAMnBC,IAAgBD,EAAOE,CAAQ;AAAA;AAAA;AAAA;AAAA,GAM/BC,IAAiBH,EAAOE,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAUhCE,IAAcJ,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { memo as l } from "react";
|
|
3
|
+
import { useTheme as h } from "styled-components";
|
|
4
|
+
import d from "../../ui/buttons/text-button/text-button.js";
|
|
5
|
+
import p from "../../ui/image/image.js";
|
|
6
|
+
import i from "../../ui/layout/flex-view.js";
|
|
7
|
+
import n from "../../ui/separator/separator.js";
|
|
8
|
+
import c from "../../ui/text/text.js";
|
|
9
|
+
import { EDeviceType as s } from "../../ui/theme/constants.js";
|
|
10
|
+
import { mathPracticeData as $ } from "./math-practice-constants.js";
|
|
11
|
+
import { Container as f, HeaderWrapper as b, ContentWrapper as u, ContentItem as x } from "./math-practice-styled.js";
|
|
12
|
+
const g = l(({ onSwitchUser: m }) => {
|
|
13
|
+
const r = h().device <= s.MOBILE;
|
|
14
|
+
return /* @__PURE__ */ t(f, { children: [
|
|
15
|
+
/* @__PURE__ */ t(
|
|
16
|
+
b,
|
|
17
|
+
{
|
|
18
|
+
$flexDirection: "row",
|
|
19
|
+
$justifyContent: "space-between",
|
|
20
|
+
$alignItems: "center",
|
|
21
|
+
$flexColumnGapX: 1,
|
|
22
|
+
$width: "100%",
|
|
23
|
+
$gutterX: 1,
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ e(i, { $flex: 1, children: /* @__PURE__ */ e(c, { $renderAs: "ah4-bold", $renderOnMobileAs: "ab1-bold", $color: "WHITE", children: "Keep your child engaged with daily math practice" }) }),
|
|
26
|
+
/* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(
|
|
27
|
+
d,
|
|
28
|
+
{
|
|
29
|
+
label: "Switch User",
|
|
30
|
+
sizeOnMobile: "small",
|
|
31
|
+
color: "WHITE_1",
|
|
32
|
+
onClick: m
|
|
33
|
+
}
|
|
34
|
+
) })
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
/* @__PURE__ */ e(n, { height: r ? 16 : 20 }),
|
|
39
|
+
/* @__PURE__ */ e(
|
|
40
|
+
u,
|
|
41
|
+
{
|
|
42
|
+
$alignItems: "center",
|
|
43
|
+
$flexDirection: "row",
|
|
44
|
+
$width: "100%",
|
|
45
|
+
$flexColumnGapX: 1,
|
|
46
|
+
$gutterX: 1,
|
|
47
|
+
children: $.map(({ title: o, image: a }) => /* @__PURE__ */ t(x, { children: [
|
|
48
|
+
/* @__PURE__ */ e(
|
|
49
|
+
p,
|
|
50
|
+
{
|
|
51
|
+
src: a,
|
|
52
|
+
width: r ? 144 : 200,
|
|
53
|
+
height: r ? 144 : 200,
|
|
54
|
+
withLoader: !0
|
|
55
|
+
}
|
|
56
|
+
),
|
|
57
|
+
/* @__PURE__ */ e(n, { height: r ? 16 : 20 }),
|
|
58
|
+
/* @__PURE__ */ e(c, { $renderAs: "ac3-black", $renderOnMobileAs: "ac4-black", $color: "WHITE_T_60", children: o })
|
|
59
|
+
] }, o))
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
] });
|
|
63
|
+
}), X = g;
|
|
64
|
+
export {
|
|
65
|
+
X as default
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=math-practice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"math-practice.js","sources":["../../../../src/features/parent-dashboard/math-practice/math-practice.tsx"],"sourcesContent":["import type { IMathPracticeProps } from './math-practice-types';\n\nimport { memo, type FC } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport TextButton from '../../ui/buttons/text-button/text-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 { mathPracticeData } from './math-practice-constants';\nimport * as Styled from './math-practice-styled';\n\nconst MathPractice: FC<IMathPracticeProps> = memo(({ onSwitchUser }) => {\n const theme = useTheme();\n const isMobile = theme.device <= EDeviceType.MOBILE;\n\n return (\n <Styled.Container>\n <Styled.HeaderWrapper\n $flexDirection=\"row\"\n $justifyContent=\"space-between\"\n $alignItems=\"center\"\n $flexColumnGapX={1}\n $width=\"100%\"\n $gutterX={1}\n >\n <FlexView $flex={1}>\n <Text $renderAs=\"ah4-bold\" $renderOnMobileAs=\"ab1-bold\" $color=\"WHITE\">\n Keep your child engaged with daily math practice\n </Text>\n </FlexView>\n <FlexView>\n <TextButton\n label=\"Switch User\"\n sizeOnMobile=\"small\"\n color=\"WHITE_1\"\n onClick={onSwitchUser}\n />\n </FlexView>\n </Styled.HeaderWrapper>\n\n <Separator height={isMobile ? 16 : 20} />\n\n <Styled.ContentWrapper\n $alignItems=\"center\"\n $flexDirection=\"row\"\n $width=\"100%\"\n $flexColumnGapX={1}\n $gutterX={1}\n >\n {mathPracticeData.map(({ title, image }) => (\n <Styled.ContentItem key={title}>\n <Image\n src={image}\n width={isMobile ? 144 : 200}\n height={isMobile ? 144 : 200}\n withLoader\n />\n <Separator height={isMobile ? 16 : 20} />\n <Text $renderAs=\"ac3-black\" $renderOnMobileAs=\"ac4-black\" $color=\"WHITE_T_60\">\n {title}\n </Text>\n </Styled.ContentItem>\n ))}\n </Styled.ContentWrapper>\n </Styled.Container>\n );\n});\n\nexport default MathPractice;\n"],"names":["MathPractice","memo","onSwitchUser","isMobile","useTheme","EDeviceType","jsxs","Styled.Container","Styled.HeaderWrapper","jsx","FlexView","Text","TextButton","Separator","Styled.ContentWrapper","mathPracticeData","title","image","Styled.ContentItem","Image","MathPractice$1"],"mappings":";;;;;;;;;;;AAcA,MAAMA,IAAuCC,EAAK,CAAC,EAAE,cAAAC,QAAmB;AAEhE,QAAAC,IADQC,IACS,UAAUC,EAAY;AAG3C,SAAA,gBAAAC,EAACC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAD;AAAA,MAACE;AAAAA,MAAA;AAAA,QACC,gBAAe;AAAA,QACf,iBAAgB;AAAA,QAChB,aAAY;AAAA,QACZ,iBAAiB;AAAA,QACjB,QAAO;AAAA,QACP,UAAU;AAAA,QAEV,UAAA;AAAA,UAAA,gBAAAC,EAACC,GAAS,EAAA,OAAO,GACf,UAAA,gBAAAD,EAACE,GAAK,EAAA,WAAU,YAAW,mBAAkB,YAAW,QAAO,SAAQ,UAAA,mDAEvE,CAAA,GACF;AAAA,4BACCD,GACC,EAAA,UAAA,gBAAAD;AAAA,YAACG;AAAA,YAAA;AAAA,cACC,OAAM;AAAA,cACN,cAAa;AAAA,cACb,OAAM;AAAA,cACN,SAASV;AAAA,YAAA;AAAA,UAAA,GAEb;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,IAEC,gBAAAO,EAAAI,GAAA,EAAU,QAAQV,IAAW,KAAK,IAAI;AAAA,IAEvC,gBAAAM;AAAA,MAACK;AAAAA,MAAA;AAAA,QACC,aAAY;AAAA,QACZ,gBAAe;AAAA,QACf,QAAO;AAAA,QACP,iBAAiB;AAAA,QACjB,UAAU;AAAA,QAET,UAAAC,EAAiB,IAAI,CAAC,EAAE,OAAAC,GAAO,OAAAC,QAC9B,gBAAAX,EAACY,GAAA,EACC,UAAA;AAAA,UAAA,gBAAAT;AAAA,YAACU;AAAA,YAAA;AAAA,cACC,KAAKF;AAAA,cACL,OAAOd,IAAW,MAAM;AAAA,cACxB,QAAQA,IAAW,MAAM;AAAA,cACzB,YAAU;AAAA,YAAA;AAAA,UACZ;AAAA,UACC,gBAAAM,EAAAI,GAAA,EAAU,QAAQV,IAAW,KAAK,IAAI;AAAA,UACvC,gBAAAM,EAACE,KAAK,WAAU,aAAY,mBAAkB,aAAY,QAAO,cAC9D,UACHK,EAAA,CAAA;AAAA,QAAA,EAAA,GAVuBA,CAWzB,CACD;AAAA,MAAA;AAAA,IACH;AAAA,EACF,EAAA,CAAA;AAEJ,CAAC,GAEDI,IAAepB;"}
|
package/dist/features/parent-dashboard/parent-dashboard-faqs/parent-dashboard-faqs-constants.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const e = [
|
|
2
|
+
{
|
|
3
|
+
accordionQuestion: "How do I find the right online math tutor in Cuemath?",
|
|
4
|
+
accordionAnswer: "Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles."
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
accordionQuestion: "Do online math tutors customize their classes according to the school curriculum?",
|
|
8
|
+
accordionAnswer: "Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles."
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
accordionQuestion: "How are Cuemath’s online math tutoring programs conducted?",
|
|
12
|
+
accordionAnswer: "Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles."
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
accordionQuestion: "Can Cuemath’s math tutors help with homework and test preparation?",
|
|
16
|
+
accordionAnswer: "Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles."
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
accordionQuestion: "How do Cuemath’s math tutors assess and inform student progress?",
|
|
20
|
+
accordionAnswer: "Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
accordionQuestion: "When do online math classes start? Are the classes flexible?",
|
|
24
|
+
accordionAnswer: "Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles."
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
accordionQuestion: "What technology or tools do Cuemath’s mathematics tutors use to enhance the math learning experience?",
|
|
28
|
+
accordionAnswer: "Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles."
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
accordionQuestion: "How qualified are online math tutors at Cuemath?",
|
|
32
|
+
accordionAnswer: "Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
accordionQuestion: "What if I don’t like the math tutor?",
|
|
36
|
+
accordionAnswer: "Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles."
|
|
37
|
+
}
|
|
38
|
+
];
|
|
39
|
+
export {
|
|
40
|
+
e as faqsData
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=parent-dashboard-faqs-constants.js.map
|
package/dist/features/parent-dashboard/parent-dashboard-faqs/parent-dashboard-faqs-constants.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parent-dashboard-faqs-constants.js","sources":["../../../../src/features/parent-dashboard/parent-dashboard-faqs/parent-dashboard-faqs-constants.ts"],"sourcesContent":["export const faqsData = [\n {\n accordionQuestion: 'How do I find the right online math tutor in Cuemath?',\n accordionAnswer:\n 'Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles.',\n },\n {\n accordionQuestion:\n 'Do online math tutors customize their classes according to the school curriculum?',\n accordionAnswer:\n 'Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles.',\n },\n {\n accordionQuestion: 'How are Cuemath’s online math tutoring programs conducted?',\n accordionAnswer:\n 'Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles.',\n },\n {\n accordionQuestion: 'Can Cuemath’s math tutors help with homework and test preparation?',\n accordionAnswer:\n 'Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles.',\n },\n {\n accordionQuestion: 'How do Cuemath’s math tutors assess and inform student progress?',\n accordionAnswer:\n 'Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles.',\n },\n {\n accordionQuestion: 'When do online math classes start? Are the classes flexible?',\n accordionAnswer:\n 'Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles.',\n },\n {\n accordionQuestion:\n 'What technology or tools do Cuemath’s mathematics tutors use to enhance the math learning experience?',\n accordionAnswer:\n 'Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles.',\n },\n {\n accordionQuestion: 'How qualified are online math tutors at Cuemath?',\n accordionAnswer:\n 'Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles.',\n },\n {\n accordionQuestion: 'What if I don’t like the math tutor?',\n accordionAnswer:\n 'Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles.',\n },\n];\n"],"names":["faqsData"],"mappings":"AAAO,MAAMA,IAAW;AAAA,EACtB;AAAA,IACE,mBAAmB;AAAA,IACnB,iBACE;AAAA,EACJ;AAAA,EACA;AAAA,IACE,mBACE;AAAA,IACF,iBACE;AAAA,EACJ;AAAA,EACA;AAAA,IACE,mBAAmB;AAAA,IACnB,iBACE;AAAA,EACJ;AAAA,EACA;AAAA,IACE,mBAAmB;AAAA,IACnB,iBACE;AAAA,EACJ;AAAA,EACA;AAAA,IACE,mBAAmB;AAAA,IACnB,iBACE;AAAA,EACJ;AAAA,EACA;AAAA,IACE,mBAAmB;AAAA,IACnB,iBACE;AAAA,EACJ;AAAA,EACA;AAAA,IACE,mBACE;AAAA,IACF,iBACE;AAAA,EACJ;AAAA,EACA;AAAA,IACE,mBAAmB;AAAA,IACnB,iBACE;AAAA,EACJ;AAAA,EACA;AAAA,IACE,mBAAmB;AAAA,IACnB,iBACE;AAAA,EACJ;AACF;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as t } from "styled-components";
|
|
3
|
+
import a from "../../ui/accordion/accordion.js";
|
|
4
|
+
import i from "../../ui/layout/flex-view.js";
|
|
5
|
+
import m from "../../ui/separator/separator.js";
|
|
6
|
+
import s from "../../ui/text/text.js";
|
|
7
|
+
import { EDeviceType as n } from "../../ui/theme/constants.js";
|
|
8
|
+
import { faqsData as d } from "./parent-dashboard-faqs-constants.js";
|
|
9
|
+
const c = () => {
|
|
10
|
+
const r = t().device <= n.MOBILE;
|
|
11
|
+
return /* @__PURE__ */ o(i, { children: [
|
|
12
|
+
/* @__PURE__ */ e(s, { $renderAs: "ah4-bold", $renderOnMobileAs: "ab1-bold", $color: "WHITE", children: "FAQs" }),
|
|
13
|
+
/* @__PURE__ */ e(m, { height: r ? 16 : 20 }),
|
|
14
|
+
/* @__PURE__ */ e(a, { theme: "dark", visibleBuffer: 2, defaultOpenElement: 0, accordionData: d })
|
|
15
|
+
] });
|
|
16
|
+
}, E = c;
|
|
17
|
+
export {
|
|
18
|
+
E as default
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=parent-dashboard-faqs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parent-dashboard-faqs.js","sources":["../../../../src/features/parent-dashboard/parent-dashboard-faqs/parent-dashboard-faqs.tsx"],"sourcesContent":["import { useTheme } from 'styled-components';\n\nimport Accordion from '../../ui/accordion/accordion';\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 { faqsData } from './parent-dashboard-faqs-constants';\n\nconst ParentDashboardFaqs = () => {\n const theme = useTheme();\n const isMobile = theme.device <= EDeviceType.MOBILE;\n\n return (\n <FlexView>\n <Text $renderAs=\"ah4-bold\" $renderOnMobileAs=\"ab1-bold\" $color=\"WHITE\">\n FAQs\n </Text>\n <Separator height={isMobile ? 16 : 20} />\n <Accordion theme=\"dark\" visibleBuffer={2} defaultOpenElement={0} accordionData={faqsData} />\n </FlexView>\n );\n};\n\nexport default ParentDashboardFaqs;\n"],"names":["ParentDashboardFaqs","isMobile","useTheme","EDeviceType","FlexView","jsx","Text","Separator","Accordion","faqsData","ParentDashboardFaqs$1"],"mappings":";;;;;;;;AASA,MAAMA,IAAsB,MAAM;AAE1B,QAAAC,IADQC,IACS,UAAUC,EAAY;AAE7C,2BACGC,GACC,EAAA,UAAA;AAAA,IAAA,gBAAAC,EAACC,KAAK,WAAU,YAAW,mBAAkB,YAAW,QAAO,SAAQ,UAEvE,OAAA,CAAA;AAAA,IACC,gBAAAD,EAAAE,GAAA,EAAU,QAAQN,IAAW,KAAK,IAAI;AAAA,IACvC,gBAAAI,EAACG,KAAU,OAAM,QAAO,eAAe,GAAG,oBAAoB,GAAG,eAAeC,EAAU,CAAA;AAAA,EAC5F,EAAA,CAAA;AAEJ,GAEAC,IAAeV;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { startOfDay as s } from "../../../node_modules/date-fns/startOfDay.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { isAfter as n } from "../../../node_modules/date-fns/isAfter.js";
|
|
3
|
+
import { isBefore as i } from "../../../node_modules/date-fns/isBefore.js";
|
|
4
|
+
import { addDays as f } from "../../../node_modules/date-fns/addDays.js";
|
|
5
|
+
import { isToday as d } from "../../../node_modules/date-fns/isToday.js";
|
|
6
6
|
import { formatDate as m } from "../../../node_modules/date-fns/format.js";
|
|
7
7
|
const u = (e) => {
|
|
8
|
-
const o = /* @__PURE__ */ new Date(), t = new Date(e), r =
|
|
9
|
-
return
|
|
8
|
+
const o = /* @__PURE__ */ new Date(), t = new Date(e), r = f(s(o), 7);
|
|
9
|
+
return d(t) ? `Today, ${m(t, "hh:mm a")}` : n(t, o) && i(t, r) ? m(t, "eee, hh:mm a") : m(t, "MMM dd, hh:mm a");
|
|
10
10
|
}, M = (e, o, t) => {
|
|
11
11
|
const r = m(e * 1e3, "hh:mm a"), a = m((e + o + t) * 1e3, "hh:mm a");
|
|
12
12
|
return `${r} - ${a}`;
|
|
@@ -1,96 +1,122 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { useRef as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { jsx as t, jsxs as N, Fragment as O } from "react/jsx-runtime";
|
|
2
|
+
import w from "../../../../node_modules/lodash.throttle/index.js";
|
|
3
|
+
import { useRef as g, useCallback as i, useMemo as F, useEffect as u } from "react";
|
|
4
|
+
import { useGetChapterDetails as j } from "../../../chapters-v2/api/chapter.js";
|
|
5
|
+
import G from "../../../chapters-v2/chapter-details/chapter-details.js";
|
|
6
|
+
import H from "../../../milestone/milestone-list-container/milestone-list-container.js";
|
|
7
|
+
import M from "../../../ui/buttons/button/button.js";
|
|
8
|
+
import X from "../../../ui/layout/flex-view.js";
|
|
9
|
+
import B from "../../../ui/loader/app-loader/app-loader.js";
|
|
10
|
+
import U from "../../../ui/text/text.js";
|
|
11
|
+
import { useTrialSessionContext as W } from "../../context/use-trial-session-context.js";
|
|
12
|
+
import { Container as q, Wrapper as z, ChapterWrapper as V } from "./learning-plan-styled.js";
|
|
13
|
+
import { useLearningPlanScrollSync as J } from "./use-learning-plan-scroll-sync.js";
|
|
14
|
+
const ae = () => {
|
|
15
|
+
const { trialHomeData: L, studentId: n, formData: y, isTeacher: r, updateSlideConfig: l } = W(), {
|
|
16
|
+
demo_info: { student_classroom_id: T, stream: I }
|
|
17
|
+
} = L || {}, { name: D = "", chapterId: c } = y || {}, o = g(null), a = g([]), h = g(!1), {
|
|
18
|
+
publishScrollEvents: d,
|
|
19
|
+
closeChannel: E,
|
|
20
|
+
scrollPoints: s
|
|
21
|
+
} = J(T), {
|
|
22
|
+
get: P,
|
|
23
|
+
data: m,
|
|
24
|
+
isProcessing: R,
|
|
25
|
+
isProcessingFailed: $,
|
|
26
|
+
error: f
|
|
27
|
+
} = j(), C = i(() => {
|
|
28
|
+
c && n && P(c, void 0, {
|
|
29
|
+
studentId: n
|
|
30
|
+
}).then(() => {
|
|
31
|
+
const e = o.current;
|
|
19
32
|
e == null || e.scrollTo({
|
|
20
33
|
top: 0,
|
|
21
34
|
behavior: "smooth"
|
|
22
35
|
});
|
|
23
|
-
}
|
|
24
|
-
}, [
|
|
36
|
+
});
|
|
37
|
+
}, [P, n, c]), b = i(
|
|
25
38
|
(e) => {
|
|
26
|
-
|
|
39
|
+
l({
|
|
27
40
|
chapterId: e.id
|
|
28
41
|
});
|
|
29
42
|
},
|
|
30
|
-
[
|
|
31
|
-
),
|
|
32
|
-
|
|
43
|
+
[l]
|
|
44
|
+
), x = i(() => {
|
|
45
|
+
l({
|
|
33
46
|
chapterId: void 0
|
|
34
47
|
});
|
|
35
|
-
}, [
|
|
36
|
-
a.current.length === 0 ||
|
|
48
|
+
}, [l]), v = i(() => {
|
|
49
|
+
a.current.length === 0 || h.current || (h.current = !0, d && d({
|
|
37
50
|
eventName: "TRIAL_SESSION_GOAL_PLAN_SCROLL",
|
|
38
51
|
eventPayload: {
|
|
39
52
|
scrollPoints: a.current
|
|
40
53
|
}
|
|
41
|
-
}), a.current = [],
|
|
42
|
-
}, [
|
|
43
|
-
var
|
|
44
|
-
const e = ((
|
|
45
|
-
a.current.push(e),
|
|
46
|
-
}, [
|
|
47
|
-
return
|
|
48
|
-
|
|
49
|
-
}, [
|
|
50
|
-
if (
|
|
51
|
-
const e =
|
|
52
|
-
return e.addEventListener("scroll",
|
|
53
|
-
e && e.removeEventListener("scroll",
|
|
54
|
+
}), a.current = [], h.current = !1);
|
|
55
|
+
}, [d]), A = F(() => w(v, 500), [v]), S = i(() => {
|
|
56
|
+
var p;
|
|
57
|
+
const e = ((p = o.current) == null ? void 0 : p.scrollTop) || 0;
|
|
58
|
+
a.current.push(e), A();
|
|
59
|
+
}, [A]);
|
|
60
|
+
return u(() => {
|
|
61
|
+
C();
|
|
62
|
+
}, [C]), u(() => {
|
|
63
|
+
if (o.current && (m && r || r)) {
|
|
64
|
+
const e = o.current;
|
|
65
|
+
return e.addEventListener("scroll", S), () => {
|
|
66
|
+
e && e.removeEventListener("scroll", S);
|
|
54
67
|
};
|
|
55
68
|
}
|
|
56
|
-
}, [r,
|
|
57
|
-
const e =
|
|
58
|
-
if (
|
|
59
|
-
const
|
|
60
|
-
|
|
69
|
+
}, [r, m, S]), u(() => {
|
|
70
|
+
const e = o.current;
|
|
71
|
+
if (s && Array.isArray(s) && !r && e) {
|
|
72
|
+
const p = Math.floor(
|
|
73
|
+
s.reduce((k, _) => k + _, 0) / s.length
|
|
61
74
|
);
|
|
62
75
|
e.scrollTo({
|
|
63
|
-
top:
|
|
76
|
+
top: p,
|
|
64
77
|
behavior: "smooth"
|
|
65
78
|
});
|
|
66
79
|
}
|
|
67
|
-
}, [
|
|
68
|
-
|
|
69
|
-
}, [
|
|
70
|
-
|
|
80
|
+
}, [s, r]), u(() => () => {
|
|
81
|
+
E();
|
|
82
|
+
}, [E]), R ? /* @__PURE__ */ t(B, { height: "100%" }) : $ ? /* @__PURE__ */ N(X, { $height: "100%", $flexGapX: 1.5, $alignItems: "center", $justifyContent: "center", children: [
|
|
83
|
+
/* @__PURE__ */ t(U, { $renderAs: "h6", children: (f == null ? void 0 : f.message) || "Oops! Something went wrong." }),
|
|
84
|
+
/* @__PURE__ */ t(
|
|
85
|
+
M,
|
|
86
|
+
{
|
|
87
|
+
widthX: 14,
|
|
88
|
+
size: "small",
|
|
89
|
+
shape: "square",
|
|
90
|
+
renderAs: "primary",
|
|
91
|
+
label: "Try again",
|
|
92
|
+
onClick: C
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
] }) : /* @__PURE__ */ t(q, { ref: o, $isScrollable: r, children: /* @__PURE__ */ t(
|
|
96
|
+
z,
|
|
71
97
|
{
|
|
72
98
|
$clickable: r,
|
|
73
99
|
$gutterX: 2,
|
|
74
100
|
$isScrollable: r,
|
|
75
101
|
id: "milestone-list-element-container",
|
|
76
|
-
children:
|
|
77
|
-
|
|
102
|
+
children: c && m ? /* @__PURE__ */ t(O, { children: /* @__PURE__ */ t(V, { children: /* @__PURE__ */ t(
|
|
103
|
+
G,
|
|
78
104
|
{
|
|
79
|
-
userChapterId:
|
|
80
|
-
studentId:
|
|
105
|
+
userChapterId: m.id,
|
|
106
|
+
studentId: n,
|
|
81
107
|
userType: r ? "TEACHER" : "STUDENT",
|
|
82
|
-
onExit:
|
|
108
|
+
onExit: x
|
|
83
109
|
}
|
|
84
|
-
) }) }) : /* @__PURE__ */
|
|
85
|
-
|
|
110
|
+
) }) }) : /* @__PURE__ */ t(
|
|
111
|
+
H,
|
|
86
112
|
{
|
|
87
113
|
userType: r ? "TEACHER" : "STUDENT",
|
|
88
|
-
studentName:
|
|
89
|
-
studentId:
|
|
90
|
-
studentClassroomId:
|
|
114
|
+
studentName: D,
|
|
115
|
+
studentId: n,
|
|
116
|
+
studentClassroomId: T,
|
|
91
117
|
milestoneType: "DRAFT",
|
|
92
|
-
onChapterClick:
|
|
93
|
-
courseStream:
|
|
118
|
+
onChapterClick: b,
|
|
119
|
+
courseStream: I,
|
|
94
120
|
isTrialSession: !0
|
|
95
121
|
}
|
|
96
122
|
)
|
|
@@ -98,6 +124,6 @@ const z = () => {
|
|
|
98
124
|
) });
|
|
99
125
|
};
|
|
100
126
|
export {
|
|
101
|
-
|
|
127
|
+
ae as default
|
|
102
128
|
};
|
|
103
129
|
//# sourceMappingURL=index.js.map
|