@cuemath/leap 3.3.24 → 3.3.25-af
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/lottie/lottie.js +2 -2
- package/dist/assets/lottie/lottie.js.map +1 -1
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +6 -6
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +1 -1
- package/dist/features/auth/comps/pill-button/pill-button.js +19 -19
- package/dist/features/auth/comps/pill-button/pill-button.js.map +1 -1
- package/dist/features/auth/pla-signup/pla-analytics-events.js +4 -5
- package/dist/features/auth/pla-signup/pla-analytics-events.js.map +1 -1
- package/dist/features/auth/pla-signup/signup-header/signup-header.js +1 -1
- package/dist/features/auth/pla-signup/signup-header/signup-header.js.map +1 -1
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js +24 -24
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +1 -1
- package/dist/features/circle-games/hooks/use-circle-sounds/constants.js +5 -7
- package/dist/features/circle-games/hooks/use-circle-sounds/constants.js.map +1 -1
- package/dist/features/circle-games/hooks/use-circle-sounds/use-circle-sounds.js +71 -75
- package/dist/features/circle-games/hooks/use-circle-sounds/use-circle-sounds.js.map +1 -1
- package/dist/features/circle-games/sign-up/comp/circular-steps/circular-steps.js +12 -12
- package/dist/features/circle-games/sign-up/comp/circular-steps/circular-steps.js.map +1 -1
- package/dist/features/circle-games/sign-up/sign-up-types.js.map +1 -1
- package/dist/features/circle-games/sign-up/sign-up.js +128 -156
- package/dist/features/circle-games/sign-up/sign-up.js.map +1 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js +29 -23
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js.map +1 -1
- package/dist/features/journey/journey-id/journey-id-student.js +1 -1
- package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
- package/dist/features/milestone/create/comps/add-custom-chapter/add-custom-chapter.js +40 -42
- package/dist/features/milestone/create/comps/add-custom-chapter/add-custom-chapter.js.map +1 -1
- package/dist/features/milestone/create/comps/add-custom-chapter/course-catalog.js +64 -70
- package/dist/features/milestone/create/comps/add-custom-chapter/course-catalog.js.map +1 -1
- package/dist/features/milestone/create/comps/add-custom-chapter/hooks/use-catalog-helpers.js +29 -54
- package/dist/features/milestone/create/comps/add-custom-chapter/hooks/use-catalog-helpers.js.map +1 -1
- package/dist/features/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapter-category/chapter-category-container.js +28 -48
- package/dist/features/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapter-category/chapter-category-container.js.map +1 -1
- package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js +76 -79
- package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js.map +1 -1
- package/dist/features/milestone/create/comps/chapters-selection-step/utils.js +94 -97
- package/dist/features/milestone/create/comps/chapters-selection-step/utils.js.map +1 -1
- package/dist/features/milestone/create/comps/class-details-step/class-details-step.js +143 -160
- package/dist/features/milestone/create/comps/class-details-step/class-details-step.js.map +1 -1
- package/dist/features/milestone/create/comps/class-details-step/class-details-utils.js +12 -22
- package/dist/features/milestone/create/comps/class-details-step/class-details-utils.js.map +1 -1
- package/dist/features/milestone/create/comps/test-type-step/test-type-step.js +59 -64
- package/dist/features/milestone/create/comps/test-type-step/test-type-step.js.map +1 -1
- package/dist/features/milestone/create/milestone-create-container.js +15 -17
- package/dist/features/milestone/create/milestone-create-container.js.map +1 -1
- package/dist/features/milestone/create/milestone-create-helpers.js +153 -170
- package/dist/features/milestone/create/milestone-create-helpers.js.map +1 -1
- package/dist/features/milestone/create/milestone-create-styled.js +1 -1
- package/dist/features/milestone/create/milestone-create-styled.js.map +1 -1
- package/dist/features/milestone/create/milestone-create.js +17 -19
- package/dist/features/milestone/create/milestone-create.js.map +1 -1
- package/dist/features/parent-dashboard/hooks/use-parent-home-data.js +42 -45
- package/dist/features/parent-dashboard/hooks/use-parent-home-data.js.map +1 -1
- package/dist/features/parent-dashboard/parent-dashboard-types.js +2 -3
- package/dist/features/parent-dashboard/parent-dashboard-types.js.map +1 -1
- package/dist/features/parent-dashboard/parent-dashboard-view.js +127 -139
- package/dist/features/parent-dashboard/parent-dashboard-view.js.map +1 -1
- package/dist/features/sentry/constants/ignored.js +6 -10
- package/dist/features/sentry/constants/ignored.js.map +1 -1
- package/dist/features/trial-session/comps/pla/session-summary/session-summary-constants.js +7 -8
- package/dist/features/trial-session/comps/pla/session-summary/session-summary-constants.js.map +1 -1
- package/dist/features/trial-session/comps/pla/session-summary/session-summary.js +26 -27
- package/dist/features/trial-session/comps/pla/session-summary/session-summary.js.map +1 -1
- package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card.js +16 -16
- package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card.js.map +1 -1
- package/dist/features/trial-session/comps/school-goals/school-goals.js +24 -25
- package/dist/features/trial-session/comps/school-goals/school-goals.js.map +1 -1
- package/dist/features/trial-session/comps/session-report/report-information/report-information-styled.js +13 -15
- 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 +1 -1
- package/dist/features/trial-session/comps/session-report/report-information/report-information.js.map +1 -1
- package/dist/features/trial-session/comps/worksheet/worksheet.js +23 -23
- package/dist/features/trial-session/comps/worksheet/worksheet.js.map +1 -1
- package/dist/features/trial-session/trial-session-types.js.map +1 -1
- package/dist/features/ui/dot-lottie-animations/dot-lottie-animation.js +75 -88
- package/dist/features/ui/dot-lottie-animations/dot-lottie-animation.js.map +1 -1
- package/dist/features/ui/lottie-animation/lottie-animation.js +46 -55
- package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
- package/dist/features/ui/modals/modal-styled.js +15 -48
- package/dist/features/ui/modals/modal-styled.js.map +1 -1
- package/dist/features/ui/modals/modal.js +38 -46
- package/dist/features/ui/modals/modal.js.map +1 -1
- package/dist/features/{stickers/sticker-selector/comps/sticker/sticker-styled.js → ui/sticker-grid/sticker-grid-styles.js} +45 -15
- package/dist/features/ui/sticker-grid/sticker-grid-styles.js.map +1 -0
- package/dist/features/ui/sticker-grid/sticker-grid.js +24 -0
- package/dist/features/ui/sticker-grid/sticker-grid.js.map +1 -0
- package/dist/features/ui/sticker-grid/sticker.js +57 -0
- package/dist/features/ui/sticker-grid/sticker.js.map +1 -0
- package/dist/features/ui/stickers/constants.js +6 -0
- package/dist/features/ui/stickers/constants.js.map +1 -0
- package/dist/features/ui/stickers/stickers-effects.js +64 -0
- package/dist/features/ui/stickers/stickers-effects.js.map +1 -0
- package/dist/features/ui/stickers/stickers-styled.js +29 -0
- package/dist/features/ui/stickers/stickers-styled.js.map +1 -0
- package/dist/features/ui/stickers/stickers-utils.js +91 -0
- package/dist/features/ui/stickers/stickers-utils.js.map +1 -0
- package/dist/features/ui/stickers/stickers.js +40 -0
- package/dist/features/ui/stickers/stickers.js.map +1 -0
- package/dist/index.d.ts +59 -138
- package/dist/index.js +467 -485
- package/dist/index.js.map +1 -1
- package/dist/static/error.cbe1ddde.json +1 -0
- package/dist/static/username.9e034d51.json +1 -0
- package/package.json +1 -1
- package/dist/features/auth/signup-unavailable/signup-unavailable-styled.js +0 -16
- package/dist/features/auth/signup-unavailable/signup-unavailable-styled.js.map +0 -1
- package/dist/features/auth/signup-unavailable/signup-unavailable-view.js +0 -62
- package/dist/features/auth/signup-unavailable/signup-unavailable-view.js.map +0 -1
- package/dist/features/auth/signup-unavailable/signup-unavailable.js +0 -17
- package/dist/features/auth/signup-unavailable/signup-unavailable.js.map +0 -1
- package/dist/features/circle-games/hooks/use-circle-sounds/helper.js +0 -19
- package/dist/features/circle-games/hooks/use-circle-sounds/helper.js.map +0 -1
- package/dist/features/circle-games/sign-up/api/use-update-username-api/use-update-username-api.js +0 -9
- package/dist/features/circle-games/sign-up/api/use-update-username-api/use-update-username-api.js.map +0 -1
- package/dist/features/circle-games/sign-up/dal/update-username-dal/update-username-dal.js +0 -38
- package/dist/features/circle-games/sign-up/dal/update-username-dal/update-username-dal.js.map +0 -1
- package/dist/features/parent-dashboard/api/get-student-profile-summary.js +0 -9
- package/dist/features/parent-dashboard/api/get-student-profile-summary.js.map +0 -1
- package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction-styled.js +0 -10
- package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction-styled.js.map +0 -1
- package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction.js +0 -42
- package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction.js.map +0 -1
- package/dist/features/parent-dashboard/hooks/use-student-profile-summary-data.js +0 -24
- package/dist/features/parent-dashboard/hooks/use-student-profile-summary-data.js.map +0 -1
- package/dist/features/parent-dashboard/hooks/use-switch-user-journey.js +0 -71
- package/dist/features/parent-dashboard/hooks/use-switch-user-journey.js.map +0 -1
- package/dist/features/parent-dashboard/modals/help-and-support/help-and-support.js +0 -40
- package/dist/features/parent-dashboard/modals/help-and-support/help-and-support.js.map +0 -1
- package/dist/features/parent-dashboard/modals/student-login-info/student-login-info.js +0 -44
- package/dist/features/parent-dashboard/modals/student-login-info/student-login-info.js.map +0 -1
- package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-helpers.js +0 -32
- package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-helpers.js.map +0 -1
- package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-styled.js +0 -12
- package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-styled.js.map +0 -1
- package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary.js +0 -44
- package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary.js.map +0 -1
- package/dist/features/parent-dashboard/modals/trial-report/trial-report-styled.js +0 -13
- package/dist/features/parent-dashboard/modals/trial-report/trial-report-styled.js.map +0 -1
- package/dist/features/parent-dashboard/modals/trial-report/trial-report.js +0 -28
- package/dist/features/parent-dashboard/modals/trial-report/trial-report.js.map +0 -1
- package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-constants.js +0 -43
- package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-constants.js.map +0 -1
- package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js +0 -59
- package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js.map +0 -1
- package/dist/features/parent-dashboard/modals/tutor-change/tutor-change.js +0 -86
- package/dist/features/parent-dashboard/modals/tutor-change/tutor-change.js.map +0 -1
- package/dist/features/stickers/constants.js +0 -235
- package/dist/features/stickers/constants.js.map +0 -1
- package/dist/features/stickers/sticker-selector/comps/sticker/sticker-styled.js.map +0 -1
- package/dist/features/stickers/sticker-selector/comps/sticker/sticker.js +0 -49
- package/dist/features/stickers/sticker-selector/comps/sticker/sticker.js.map +0 -1
- package/dist/features/stickers/sticker-selector/comps/stiker-selector-grid/sticker-selector-grid-styled.js +0 -28
- package/dist/features/stickers/sticker-selector/comps/stiker-selector-grid/sticker-selector-grid-styled.js.map +0 -1
- package/dist/features/stickers/sticker-selector/comps/stiker-selector-grid/sticker-selector-grid.js +0 -26
- package/dist/features/stickers/sticker-selector/comps/stiker-selector-grid/sticker-selector-grid.js.map +0 -1
- package/dist/features/stickers/sticker-selector/sticker-selector-styled.js +0 -13
- package/dist/features/stickers/sticker-selector/sticker-selector-styled.js.map +0 -1
- package/dist/features/stickers/sticker-selector/sticker-selector.js +0 -86
- package/dist/features/stickers/sticker-selector/sticker-selector.js.map +0 -1
- package/dist/features/stickers/stickers-effects/stickers-effects-animations.js +0 -82
- package/dist/features/stickers/stickers-effects/stickers-effects-animations.js.map +0 -1
- package/dist/features/stickers/stickers-effects/stickers-effects-cache.js +0 -19
- package/dist/features/stickers/stickers-effects/stickers-effects-cache.js.map +0 -1
- package/dist/features/stickers/stickers-effects/stickers-effects-helper.js +0 -105
- package/dist/features/stickers/stickers-effects/stickers-effects-helper.js.map +0 -1
- package/dist/features/stickers/stickers-effects/stickers-effects-styled.js +0 -37
- package/dist/features/stickers/stickers-effects/stickers-effects-styled.js.map +0 -1
- package/dist/features/stickers/stickers-effects/stickers-effects.js +0 -67
- package/dist/features/stickers/stickers-effects/stickers-effects.js.map +0 -1
- package/dist/static/error.dd744fa5.json +0 -1
- package/dist/static/username.2c755605.json +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { memo as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { useFormDataPrefiller as
|
|
6
|
-
import { Container as
|
|
7
|
-
const
|
|
2
|
+
import { memo as y, useMemo as z, useCallback as A, useEffect as I } from "react";
|
|
3
|
+
import J from "./milestone-create-components-map.js";
|
|
4
|
+
import K from "./milestone-create-context.js";
|
|
5
|
+
import { useFormDataPrefiller as L, useMilestoneFormTree as N, useFormTreeTraversal as Q } from "./milestone-create-hooks.js";
|
|
6
|
+
import { Container as U, BodyContainer as W } from "./milestone-create-styled.js";
|
|
7
|
+
const G = y(
|
|
8
8
|
({
|
|
9
9
|
studentName: h,
|
|
10
10
|
studentId: x,
|
|
@@ -27,33 +27,32 @@ const ee = z(
|
|
|
27
27
|
classRatio: V,
|
|
28
28
|
enrollmentType: u,
|
|
29
29
|
canDeleteGoal: j,
|
|
30
|
-
isTeacherTrainingAccount: w,
|
|
31
30
|
onDeleteGoal: r
|
|
32
31
|
}) => {
|
|
33
|
-
const { formDataState: s, setFormData:
|
|
32
|
+
const { formDataState: s, setFormData: w } = L(c, {
|
|
34
33
|
schoolData: P,
|
|
35
34
|
board: F,
|
|
36
35
|
grade: T,
|
|
37
36
|
config: a,
|
|
38
37
|
flow: t,
|
|
39
38
|
currentCountryCode: B
|
|
40
|
-
}),
|
|
39
|
+
}), H = N({
|
|
41
40
|
flow: t,
|
|
42
41
|
formDataState: s,
|
|
43
42
|
isGoalCreation: d
|
|
44
|
-
}), o = e ? s : c, m = e ? "edit" : "view", p = m === "view", { currentStep: n, updateFormData:
|
|
43
|
+
}), o = e ? s : c, m = e ? "edit" : "view", p = m === "view", { currentStep: n, updateFormData: O, handleBack: v } = Q({
|
|
45
44
|
flow: t,
|
|
46
|
-
updatedFormTree:
|
|
45
|
+
updatedFormTree: H,
|
|
47
46
|
formData: o,
|
|
48
47
|
formDataState: s,
|
|
49
|
-
setFormData:
|
|
48
|
+
setFormData: w,
|
|
50
49
|
handleExit: b
|
|
51
|
-
}), { name: f } = n || {}, M = f ?
|
|
50
|
+
}), { name: f } = n || {}, M = f ? J[f] : void 0, R = z(() => ({ handleBack: v, mode: m, flow: t }), [v, m, t]), q = A(() => {
|
|
52
51
|
r == null || r();
|
|
53
52
|
}, [r]);
|
|
54
|
-
return
|
|
53
|
+
return I(() => {
|
|
55
54
|
e && e(o);
|
|
56
|
-
}, [o, e]), /* @__PURE__ */ i(
|
|
55
|
+
}, [o, e]), /* @__PURE__ */ i(K.Provider, { value: R, children: /* @__PURE__ */ i(U, { $height: S, $minHeight: l, $viewMode: p, children: /* @__PURE__ */ i(W, { $viewMode: p, children: M && n && u ? /* @__PURE__ */ i(
|
|
57
56
|
M,
|
|
58
57
|
{
|
|
59
58
|
studentName: h,
|
|
@@ -61,7 +60,7 @@ const ee = z(
|
|
|
61
60
|
isGoalCreation: d,
|
|
62
61
|
config: a,
|
|
63
62
|
formData: o,
|
|
64
|
-
onFormDataChange:
|
|
63
|
+
onFormDataChange: O,
|
|
65
64
|
onChapterExitWarning: C,
|
|
66
65
|
studentId: x,
|
|
67
66
|
onPreSubmit: $,
|
|
@@ -69,14 +68,13 @@ const ee = z(
|
|
|
69
68
|
courseStream: E,
|
|
70
69
|
classRatio: V || 0,
|
|
71
70
|
enrollmentType: u,
|
|
72
|
-
isTeacherTrainingAccount: w,
|
|
73
71
|
canDeleteGoal: j,
|
|
74
|
-
onDeleteGoal:
|
|
72
|
+
onDeleteGoal: q
|
|
75
73
|
}
|
|
76
74
|
) : void 0 }) }) });
|
|
77
75
|
}
|
|
78
76
|
);
|
|
79
77
|
export {
|
|
80
|
-
|
|
78
|
+
G as default
|
|
81
79
|
};
|
|
82
80
|
//# sourceMappingURL=milestone-create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"milestone-create.js","sources":["../../../../src/features/milestone/create/milestone-create.tsx"],"sourcesContent":["import type { MileStoneJourneyMode } from './milestone-create-context';\nimport type { IMileStoneCreateProps, IMilestoneFormData } from './milestone-create-types';\n\nimport React, { memo, useCallback, useEffect, useMemo } from 'react';\n\nimport ComponentsMap from './milestone-create-components-map';\nimport MilestoneCreateContext from './milestone-create-context';\nimport {\n useFormDataPrefiller,\n useFormTreeTraversal,\n useMilestoneFormTree,\n} from './milestone-create-hooks';\nimport { BodyContainer, Container } from './milestone-create-styled';\n\nconst MilestoneCreate: React.FC<IMileStoneCreateProps> = memo(\n ({\n studentName,\n studentId,\n height,\n minHeight,\n formData: formDataProp,\n config,\n onChapterExitWarning,\n onFormDataChange,\n onPreSubmit: handlePreSubmit,\n onExit: handleExit,\n board,\n schoolData,\n grade,\n flow,\n milestoneId,\n currentCountryCode,\n isGoalCreation,\n courseStream,\n classRatio,\n enrollmentType,\n canDeleteGoal,\n
|
|
1
|
+
{"version":3,"file":"milestone-create.js","sources":["../../../../src/features/milestone/create/milestone-create.tsx"],"sourcesContent":["import type { MileStoneJourneyMode } from './milestone-create-context';\nimport type { IMileStoneCreateProps, IMilestoneFormData } from './milestone-create-types';\n\nimport React, { memo, useCallback, useEffect, useMemo } from 'react';\n\nimport ComponentsMap from './milestone-create-components-map';\nimport MilestoneCreateContext from './milestone-create-context';\nimport {\n useFormDataPrefiller,\n useFormTreeTraversal,\n useMilestoneFormTree,\n} from './milestone-create-hooks';\nimport { BodyContainer, Container } from './milestone-create-styled';\n\nconst MilestoneCreate: React.FC<IMileStoneCreateProps> = memo(\n ({\n studentName,\n studentId,\n height,\n minHeight,\n formData: formDataProp,\n config,\n onChapterExitWarning,\n onFormDataChange,\n onPreSubmit: handlePreSubmit,\n onExit: handleExit,\n board,\n schoolData,\n grade,\n flow,\n milestoneId,\n currentCountryCode,\n isGoalCreation,\n courseStream,\n classRatio,\n enrollmentType,\n canDeleteGoal,\n onDeleteGoal,\n }) => {\n const { formDataState, setFormData } = useFormDataPrefiller(formDataProp, {\n schoolData,\n board,\n grade,\n config,\n flow,\n currentCountryCode,\n });\n\n const updatedFormTree = useMilestoneFormTree({\n flow,\n formDataState,\n isGoalCreation,\n });\n\n const formData = (onFormDataChange ? formDataState : formDataProp) as IMilestoneFormData; //TODO: make better\n\n const mode: MileStoneJourneyMode = onFormDataChange ? 'edit' : 'view';\n const isViewMode = mode === 'view';\n\n const { currentStep, updateFormData, handleBack } = useFormTreeTraversal({\n flow,\n updatedFormTree,\n formData,\n formDataState,\n setFormData,\n handleExit,\n });\n\n const { name } = currentStep || {};\n const StepComponent = name ? ComponentsMap[name] : undefined;\n\n const contextValue = useMemo(() => ({ handleBack, mode, flow }), [handleBack, mode, flow]);\n\n const handleOnDeleteGoal = useCallback(() => {\n onDeleteGoal?.();\n }, [onDeleteGoal]);\n\n useEffect(() => {\n if (onFormDataChange) {\n onFormDataChange(formData);\n }\n }, [formData, onFormDataChange]);\n\n return (\n <MilestoneCreateContext.Provider value={contextValue}>\n <Container $height={height} $minHeight={minHeight} $viewMode={isViewMode}>\n <BodyContainer $viewMode={isViewMode}>\n {StepComponent && currentStep && enrollmentType ? (\n <StepComponent\n studentName={studentName}\n currentStep={currentStep}\n isGoalCreation={isGoalCreation}\n config={config}\n formData={formData}\n onFormDataChange={updateFormData}\n onChapterExitWarning={onChapterExitWarning}\n studentId={studentId}\n onPreSubmit={handlePreSubmit}\n milestoneId={milestoneId}\n courseStream={courseStream}\n classRatio={classRatio || 0}\n enrollmentType={enrollmentType}\n canDeleteGoal={canDeleteGoal}\n onDeleteGoal={handleOnDeleteGoal}\n />\n ) : undefined}\n </BodyContainer>\n </Container>\n </MilestoneCreateContext.Provider>\n );\n },\n);\n\nexport default MilestoneCreate;\n"],"names":["MilestoneCreate","memo","studentName","studentId","height","minHeight","formDataProp","config","onChapterExitWarning","onFormDataChange","handlePreSubmit","handleExit","board","schoolData","grade","flow","milestoneId","currentCountryCode","isGoalCreation","courseStream","classRatio","enrollmentType","canDeleteGoal","onDeleteGoal","formDataState","setFormData","useFormDataPrefiller","updatedFormTree","useMilestoneFormTree","formData","mode","isViewMode","currentStep","updateFormData","handleBack","useFormTreeTraversal","name","StepComponent","ComponentsMap","contextValue","useMemo","handleOnDeleteGoal","useCallback","useEffect","jsx","MilestoneCreateContext","Container","BodyContainer"],"mappings":";;;;;;AAcA,MAAMA,IAAmDC;AAAA,EACvD,CAAC;AAAA,IACC,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,WAAAC;AAAA,IACA,UAAUC;AAAA,IACV,QAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,aAAaC;AAAA,IACb,QAAQC;AAAA,IACR,OAAAC;AAAA,IACA,YAAAC;AAAA,IACA,OAAAC;AAAA,IACA,MAAAC;AAAA,IACA,aAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,YAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,cAAAC;AAAA,EAAA,MACI;AACJ,UAAM,EAAE,eAAAC,GAAe,aAAAC,MAAgBC,EAAqBpB,GAAc;AAAA,MACxE,YAAAO;AAAA,MACA,OAAAD;AAAA,MACA,OAAAE;AAAA,MACA,QAAAP;AAAA,MACA,MAAAQ;AAAA,MACA,oBAAAE;AAAA,IAAA,CACD,GAEKU,IAAkBC,EAAqB;AAAA,MAC3C,MAAAb;AAAA,MACA,eAAAS;AAAA,MACA,gBAAAN;AAAA,IAAA,CACD,GAEKW,IAAYpB,IAAmBe,IAAgBlB,GAE/CwB,IAA6BrB,IAAmB,SAAS,QACzDsB,IAAaD,MAAS,QAEtB,EAAE,aAAAE,GAAa,gBAAAC,GAAgB,YAAAC,EAAA,IAAeC,EAAqB;AAAA,MACvE,MAAApB;AAAA,MACA,iBAAAY;AAAA,MACA,UAAAE;AAAA,MACA,eAAAL;AAAA,MACA,aAAAC;AAAA,MACA,YAAAd;AAAA,IAAA,CACD,GAEK,EAAE,MAAAyB,EAAA,IAASJ,KAAe,IAC1BK,IAAgBD,IAAOE,EAAcF,CAAI,IAAI,QAE7CG,IAAeC,EAAQ,OAAO,EAAE,YAAAN,GAAY,MAAAJ,GAAM,MAAAf,EAAK,IAAI,CAACmB,GAAYJ,GAAMf,CAAI,CAAC,GAEnF0B,IAAqBC,EAAY,MAAM;AAC5B,MAAAnB,KAAA,QAAAA;AAAA,IAAA,GACd,CAACA,CAAY,CAAC;AAEjB,WAAAoB,EAAU,MAAM;AACd,MAAIlC,KACFA,EAAiBoB,CAAQ;AAAA,IAC3B,GACC,CAACA,GAAUpB,CAAgB,CAAC,GAG7B,gBAAAmC,EAACC,EAAuB,UAAvB,EAAgC,OAAON,GACtC,UAAA,gBAAAK,EAACE,KAAU,SAAS1C,GAAQ,YAAYC,GAAW,WAAW0B,GAC5D,UAAC,gBAAAa,EAAAG,GAAA,EAAc,WAAWhB,GACvB,UAAAM,KAAiBL,KAAeX,IAC/B,gBAAAuB;AAAA,MAACP;AAAA,MAAA;AAAA,QACC,aAAAnC;AAAA,QACA,aAAA8B;AAAA,QACA,gBAAAd;AAAA,QACA,QAAAX;AAAA,QACA,UAAAsB;AAAA,QACA,kBAAkBI;AAAA,QAClB,sBAAAzB;AAAA,QACA,WAAAL;AAAA,QACA,aAAaO;AAAA,QACb,aAAAM;AAAA,QACA,cAAAG;AAAA,QACA,YAAYC,KAAc;AAAA,QAC1B,gBAAAC;AAAA,QACA,eAAAC;AAAA,QACA,cAAcmB;AAAA,MAAA;AAAA,IAChB,IACE,OACN,CAAA,EACF,CAAA,EACF,CAAA;AAAA,EAEJ;AACF;"}
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useParentHomeGet as
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { useEffect as O, useMemo as P } from "react";
|
|
2
|
+
import { useParentHomeGet as C } from "../api/parent-home.js";
|
|
3
|
+
const T = ({
|
|
4
|
+
studentName: o,
|
|
5
|
+
studentServiceId: s
|
|
6
|
+
}) => {
|
|
5
7
|
const {
|
|
6
|
-
get:
|
|
7
|
-
data:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
}, [
|
|
16
|
-
i
|
|
17
|
-
|
|
18
|
-
var d;
|
|
19
|
-
const { teacher_details: r = null, session_details: o } = a ?? {};
|
|
20
|
-
if (!o)
|
|
8
|
+
get: t,
|
|
9
|
+
data: i,
|
|
10
|
+
isProcessing: a,
|
|
11
|
+
isProcessed: l,
|
|
12
|
+
isStale: m,
|
|
13
|
+
isProcessingFailed: r
|
|
14
|
+
} = C(s);
|
|
15
|
+
return O(() => {
|
|
16
|
+
s && (!a && !r && !l || m) && t(s);
|
|
17
|
+
}, [s, m, a, t, r, l]), P(() => {
|
|
18
|
+
const { teacher_details: c = null, session_details: n } = i ?? {};
|
|
19
|
+
if (!n)
|
|
21
20
|
return {
|
|
22
21
|
sessionDetails: null,
|
|
23
22
|
teacherDetails: null,
|
|
23
|
+
studentName: o,
|
|
24
|
+
teacherName: "",
|
|
24
25
|
isOnlyOneSessionCompleted: !1,
|
|
25
26
|
isMoreThanOneSessionCompleted: !1,
|
|
26
27
|
isDemoDone: !1,
|
|
@@ -28,40 +29,36 @@ const k = (s) => {
|
|
|
28
29
|
completedSessions: 0,
|
|
29
30
|
nextSessionEnd: 0,
|
|
30
31
|
nextSessionStart: 0,
|
|
32
|
+
classStatus: void 0,
|
|
31
33
|
upcomingSessions: [],
|
|
32
|
-
showLoading: !0
|
|
33
|
-
isProcessingFailed: m,
|
|
34
|
-
fetchData: e
|
|
34
|
+
showLoading: !0
|
|
35
35
|
};
|
|
36
36
|
const {
|
|
37
|
-
completed_sessions:
|
|
38
|
-
next_session_end:
|
|
39
|
-
next_session_start:
|
|
37
|
+
completed_sessions: e = 0,
|
|
38
|
+
next_session_end: p,
|
|
39
|
+
next_session_start: u,
|
|
40
40
|
demo_class_status: S,
|
|
41
|
-
upcoming_sessions:
|
|
42
|
-
student_demo_id:
|
|
43
|
-
|
|
44
|
-
} = o, { first_name: h = "", last_name: x = "" } = r ?? {}, M = (d = `${h} ${x}`) == null ? void 0 : d.trim(), c = t > 0, g = c && t === 1, E = t > 1, C = b(l, "EEEE, MMM d 'at' h:mm a");
|
|
41
|
+
upcoming_sessions: _ = [],
|
|
42
|
+
student_demo_id: f
|
|
43
|
+
} = n, { first_name: D = "", last_name: g = "" } = c ?? {}, h = `${D} ${g}`.trim(), d = e > 0, x = d && e === 1, H = e > 1;
|
|
45
44
|
return {
|
|
46
|
-
sessionDetails:
|
|
47
|
-
teacherDetails:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
sessionDetails: n,
|
|
46
|
+
teacherDetails: c,
|
|
47
|
+
studentName: o,
|
|
48
|
+
teacherName: h,
|
|
49
|
+
completedSessions: e,
|
|
50
|
+
nextSessionEnd: p,
|
|
51
|
+
nextSessionStart: u,
|
|
52
52
|
classStatus: S,
|
|
53
|
-
upcomingSessions:
|
|
54
|
-
isDemoDone:
|
|
55
|
-
isOnlyOneSessionCompleted:
|
|
56
|
-
isMoreThanOneSessionCompleted:
|
|
57
|
-
demoId:
|
|
58
|
-
userAttemptId: D,
|
|
59
|
-
fetchData: e,
|
|
60
|
-
formattedNextSessionStart: C
|
|
53
|
+
upcomingSessions: _,
|
|
54
|
+
isDemoDone: d,
|
|
55
|
+
isOnlyOneSessionCompleted: x,
|
|
56
|
+
isMoreThanOneSessionCompleted: H,
|
|
57
|
+
demoId: f
|
|
61
58
|
};
|
|
62
|
-
}, [
|
|
59
|
+
}, [i, o]);
|
|
63
60
|
};
|
|
64
61
|
export {
|
|
65
|
-
|
|
62
|
+
T as default
|
|
66
63
|
};
|
|
67
64
|
//# sourceMappingURL=use-parent-home-data.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-parent-home-data.js","sources":["../../../../src/features/parent-dashboard/hooks/use-parent-home-data.ts"],"sourcesContent":["import type { TSession } from '../../trial-session/comps/pla/upcoming-sessions/upcoming-sessions-types';\nimport type { EClassStatus, ISessionDetails, ITeacherDetails } from '../parent-dashboard-types';\n\nimport {
|
|
1
|
+
{"version":3,"file":"use-parent-home-data.js","sources":["../../../../src/features/parent-dashboard/hooks/use-parent-home-data.ts"],"sourcesContent":["import type { TSession } from '../../trial-session/comps/pla/upcoming-sessions/upcoming-sessions-types';\nimport type { EClassStatus, ISessionDetails, ITeacherDetails } from '../parent-dashboard-types';\n\nimport { useEffect, useMemo } from 'react';\n\nimport { useParentHomeGet } from '../api/parent-home';\n\ninterface IUseParentHomeData {\n studentName: string;\n studentServiceId: string;\n}\ninterface IUseParentHomeDataReturn {\n sessionDetails: ISessionDetails | null;\n teacherDetails: ITeacherDetails | null;\n completedSessions: number;\n nextSessionEnd: number;\n nextSessionStart: number;\n classStatus?: EClassStatus | null;\n teacherName: string;\n upcomingSessions?: TSession[];\n isDemoDone: boolean;\n isOnlyOneSessionCompleted: boolean;\n isMoreThanOneSessionCompleted: boolean;\n showLoading?: boolean;\n demoId?: string;\n}\n\nconst useParentHomeData = ({\n studentName,\n studentServiceId,\n}: IUseParentHomeData): IUseParentHomeDataReturn => {\n const {\n get: getParentHome,\n data: parentHomeData,\n isProcessing,\n isProcessed,\n isStale,\n isProcessingFailed,\n } = useParentHomeGet(studentServiceId);\n\n useEffect(() => {\n if (studentServiceId && ((!isProcessing && !isProcessingFailed && !isProcessed) || isStale)) {\n getParentHome(studentServiceId);\n }\n }, [studentServiceId, isStale, isProcessing, getParentHome, isProcessingFailed, isProcessed]);\n\n const parentHomeDataMemoised = useMemo(() => {\n const { teacher_details: teacherDetails = null, session_details: sessionDetails } =\n parentHomeData ?? {};\n\n if (!sessionDetails) {\n return {\n sessionDetails: null,\n teacherDetails: null,\n studentName,\n teacherName: '',\n isOnlyOneSessionCompleted: false,\n isMoreThanOneSessionCompleted: false,\n isDemoDone: false,\n isSubscriptionCancelled: false,\n completedSessions: 0,\n nextSessionEnd: 0,\n nextSessionStart: 0,\n classStatus: undefined,\n upcomingSessions: [],\n showLoading: true,\n };\n }\n\n const {\n completed_sessions: completedSessions = 0,\n next_session_end: nextSessionEnd,\n next_session_start: nextSessionStart,\n demo_class_status: classStatus,\n upcoming_sessions: upcomingSessions = [],\n student_demo_id: demoId,\n } = sessionDetails;\n\n const { first_name = '', last_name = '' } = teacherDetails ?? {};\n const teacherName = `${first_name} ${last_name}`.trim();\n\n const isDemoDone = completedSessions > 0;\n const isOnlyOneSessionCompleted = isDemoDone && completedSessions === 1;\n const isMoreThanOneSessionCompleted = completedSessions > 1;\n\n return {\n sessionDetails,\n teacherDetails,\n studentName,\n teacherName,\n completedSessions,\n nextSessionEnd,\n nextSessionStart,\n classStatus,\n upcomingSessions,\n isDemoDone,\n isOnlyOneSessionCompleted,\n isMoreThanOneSessionCompleted,\n demoId,\n };\n }, [parentHomeData, studentName]);\n\n return parentHomeDataMemoised;\n};\n\nexport default useParentHomeData;\n"],"names":["useParentHomeData","studentName","studentServiceId","getParentHome","parentHomeData","isProcessing","isProcessed","isStale","isProcessingFailed","useParentHomeGet","useEffect","useMemo","teacherDetails","sessionDetails","completedSessions","nextSessionEnd","nextSessionStart","classStatus","upcomingSessions","demoId","first_name","last_name","teacherName","isDemoDone","isOnlyOneSessionCompleted","isMoreThanOneSessionCompleted"],"mappings":";;AA2BA,MAAMA,IAAoB,CAAC;AAAA,EACzB,aAAAC;AAAA,EACA,kBAAAC;AACF,MAAoD;AAC5C,QAAA;AAAA,IACJ,KAAKC;AAAA,IACL,MAAMC;AAAA,IACN,cAAAC;AAAA,IACA,aAAAC;AAAA,IACA,SAAAC;AAAA,IACA,oBAAAC;AAAA,EAAA,IACEC,EAAiBP,CAAgB;AAErC,SAAAQ,EAAU,MAAM;AACd,IAAIR,MAAsB,CAACG,KAAgB,CAACG,KAAsB,CAACF,KAAgBC,MACjFJ,EAAcD,CAAgB;AAAA,EAChC,GACC,CAACA,GAAkBK,GAASF,GAAcF,GAAeK,GAAoBF,CAAW,CAAC,GAE7DK,EAAQ,MAAM;AACrC,UAAA,EAAE,iBAAiBC,IAAiB,MAAM,iBAAiBC,EAAe,IAC9ET,KAAkB;AAEpB,QAAI,CAACS;AACI,aAAA;AAAA,QACL,gBAAgB;AAAA,QAChB,gBAAgB;AAAA,QAChB,aAAAZ;AAAA,QACA,aAAa;AAAA,QACb,2BAA2B;AAAA,QAC3B,+BAA+B;AAAA,QAC/B,YAAY;AAAA,QACZ,yBAAyB;AAAA,QACzB,mBAAmB;AAAA,QACnB,gBAAgB;AAAA,QAChB,kBAAkB;AAAA,QAClB,aAAa;AAAA,QACb,kBAAkB,CAAC;AAAA,QACnB,aAAa;AAAA,MAAA;AAIX,UAAA;AAAA,MACJ,oBAAoBa,IAAoB;AAAA,MACxC,kBAAkBC;AAAA,MAClB,oBAAoBC;AAAA,MACpB,mBAAmBC;AAAA,MACnB,mBAAmBC,IAAmB,CAAC;AAAA,MACvC,iBAAiBC;AAAA,IACf,IAAAN,GAEE,EAAE,YAAAO,IAAa,IAAI,WAAAC,IAAY,GAAG,IAAIT,KAAkB,IACxDU,IAAc,GAAGF,CAAU,IAAIC,CAAS,GAAG,QAE3CE,IAAaT,IAAoB,GACjCU,IAA4BD,KAAcT,MAAsB,GAChEW,IAAgCX,IAAoB;AAEnD,WAAA;AAAA,MACL,gBAAAD;AAAA,MACA,gBAAAD;AAAA,MACA,aAAAX;AAAA,MACA,aAAAqB;AAAA,MACA,mBAAAR;AAAA,MACA,gBAAAC;AAAA,MACA,kBAAAC;AAAA,MACA,aAAAC;AAAA,MACA,kBAAAC;AAAA,MACA,YAAAK;AAAA,MACA,2BAAAC;AAAA,MACA,+BAAAC;AAAA,MACA,QAAAN;AAAA,IAAA;AAAA,EACF,GACC,CAACf,GAAgBH,CAAW,CAAC;AAGlC;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _ = /* @__PURE__ */ ((O) => (O.S_NO_SHOW = "S_NO_SHOW", O.T_NO_SHOW = "T_NO_SHOW", O))(_ || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
O as ESummaryType
|
|
3
|
+
_ as EClassStatus
|
|
5
4
|
};
|
|
6
5
|
//# sourceMappingURL=parent-dashboard-types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parent-dashboard-types.js","sources":["../../../src/features/parent-dashboard/parent-dashboard-types.ts"],"sourcesContent":["import type { TSession } from '../trial-session/comps/pla/upcoming-sessions/upcoming-sessions-types';\nimport type { ReactElement } from 'react';\n\nexport enum EClassStatus {\n S_NO_SHOW = 'S_NO_SHOW',\n T_NO_SHOW = 'T_NO_SHOW',\n}\nexport interface ISessionDetails {\n completed_sessions: number;\n next_session_start: number;\n next_session_end: number;\n student_demo_id: string;\n upcoming_sessions: TSession[];\n demo_class_status: EClassStatus | null;\n
|
|
1
|
+
{"version":3,"file":"parent-dashboard-types.js","sources":["../../../src/features/parent-dashboard/parent-dashboard-types.ts"],"sourcesContent":["import type { TSession } from '../trial-session/comps/pla/upcoming-sessions/upcoming-sessions-types';\nimport type { ReactElement } from 'react';\n\nexport enum EClassStatus {\n S_NO_SHOW = 'S_NO_SHOW',\n T_NO_SHOW = 'T_NO_SHOW',\n}\nexport interface ISessionDetails {\n completed_sessions: number;\n next_session_start: number;\n next_session_end: number;\n student_demo_id: string;\n upcoming_sessions: TSession[];\n demo_class_status: EClassStatus | null;\n}\n\ninterface IDegreeInfo {\n degree_name: string;\n degree_code: string;\n field_of_study: string;\n}\nexport interface ITeacherDetails {\n first_name: string;\n last_name: string;\n years_of_experience: number;\n number_of_students_taught: number;\n lower_grade: string;\n higher_grade: string;\n degree: IDegreeInfo;\n countries: string[];\n teacher_profile_url: string;\n header_image: string;\n}\n\ninterface PaymentMethodDetails {\n brand: string;\n last_4_digits: string;\n type: string;\n exp_month: number;\n exp_year: number;\n}\n\ninterface IBillingDetails {\n amount: number;\n next_due_date: string;\n payment_method_details: PaymentMethodDetails;\n}\n\nexport interface IParentHome {\n session_details: ISessionDetails;\n teacher_details: ITeacherDetails | null;\n billing_details: IBillingDetails;\n}\n\nexport interface IParentDashboardProps {\n studentName: string;\n studentServiceId: string;\n onRescheduleDemo: (demoId?: string) => void;\n onChangeTutor: (demoId: string) => void;\n onGetStartedAgain?: () => void;\n onViewSummary?: (key: string) => void;\n onSwitchUser?: () => void;\n canChangeTutor: boolean;\n isSubscriptionCancelled: boolean;\n HeaderAvatar: ReactElement;\n}\n\nexport interface ISpacingConfig {\n small: number;\n medium: number;\n large: number;\n separator: {\n small: number;\n medium: number;\n large: number;\n extraLarge: number;\n };\n}\n"],"names":["EClassStatus"],"mappings":"AAGY,IAAAA,sBAAAA,OACVA,EAAA,YAAY,aACZA,EAAA,YAAY,aAFFA,IAAAA,KAAA,CAAA,CAAA;"}
|
|
@@ -1,198 +1,186 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { useTheme as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import pe from "../ui/loader/app-loader/app-loader.js";
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { memo as N, useCallback as o, useMemo as R } from "react";
|
|
3
|
+
import { useTheme as X } from "styled-components";
|
|
4
|
+
import J from "../auth/pla-signup/onboarding-guide/onboarding-guide.js";
|
|
5
|
+
import Q from "../auth/pla-signup/signup-header/signup-header.js";
|
|
6
|
+
import U from "../trial-session/comps/pla/next-steps/next-steps.js";
|
|
7
|
+
import Y from "../trial-session/comps/pla/session-status/session-status.js";
|
|
8
|
+
import Z from "../trial-session/comps/pla/session-summary/session-summary.js";
|
|
9
|
+
import ee from "../trial-session/comps/pla/upcoming-sessions/upcoming-sessions.js";
|
|
10
|
+
import B from "../trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js";
|
|
11
|
+
import re from "../ui/buttons/button/button.js";
|
|
12
|
+
import te from "../ui/buttons/text-button/text-button.js";
|
|
13
|
+
import i from "../ui/layout/flex-view.js";
|
|
14
|
+
import oe from "../ui/loader/app-loader/app-loader.js";
|
|
16
15
|
import n from "../ui/separator/separator.js";
|
|
17
|
-
import
|
|
18
|
-
import { EDeviceType as
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import {
|
|
26
|
-
|
|
27
|
-
const Ve = ee(
|
|
16
|
+
import F from "../ui/text/text.js";
|
|
17
|
+
import { EDeviceType as ie } from "../ui/theme/constants.js";
|
|
18
|
+
import ne from "./comps/compact-header/compact-header.js";
|
|
19
|
+
import ae from "./comps/cuemath-app-features/cuemath-app-features.js";
|
|
20
|
+
import se from "./comps/math-practice/math-practice.js";
|
|
21
|
+
import le from "./comps/parent-dashboard-faqs/parent-dashboard-faqs.js";
|
|
22
|
+
import ce from "./hooks/use-parent-home-data.js";
|
|
23
|
+
import { MOBILE_SPACING as he, DESKTOP_SPACING as me } from "./parent-dashboard-constants.js";
|
|
24
|
+
import { MathPracticeWrapper as pe, Container as de, ContentWrapper as ue } from "./parent-dashboard-styled.js";
|
|
25
|
+
const qe = N(
|
|
28
26
|
({
|
|
29
|
-
studentName:
|
|
30
|
-
|
|
31
|
-
onRescheduleDemo:
|
|
32
|
-
onViewSummary:
|
|
33
|
-
onGetStartedAgain:
|
|
34
|
-
onChangeTutor:
|
|
35
|
-
canChangeTutor:
|
|
36
|
-
onSwitchUser:
|
|
37
|
-
isSubscriptionCancelled:
|
|
38
|
-
HeaderAvatar:
|
|
27
|
+
studentName: l,
|
|
28
|
+
studentServiceId: _,
|
|
29
|
+
onRescheduleDemo: d,
|
|
30
|
+
onViewSummary: u,
|
|
31
|
+
onGetStartedAgain: m,
|
|
32
|
+
onChangeTutor: f,
|
|
33
|
+
canChangeTutor: g,
|
|
34
|
+
onSwitchUser: S,
|
|
35
|
+
isSubscriptionCancelled: q,
|
|
36
|
+
HeaderAvatar: v
|
|
39
37
|
}) => {
|
|
40
|
-
const { device:
|
|
41
|
-
teacherDetails:
|
|
42
|
-
teacherName:
|
|
43
|
-
completedSessions:
|
|
44
|
-
nextSessionStart:
|
|
45
|
-
nextSessionEnd:
|
|
46
|
-
classStatus:
|
|
47
|
-
upcomingSessions:
|
|
38
|
+
const { device: G } = X(), p = G <= ie.MOBILE, {
|
|
39
|
+
teacherDetails: a,
|
|
40
|
+
teacherName: x,
|
|
41
|
+
completedSessions: b,
|
|
42
|
+
nextSessionStart: L,
|
|
43
|
+
nextSessionEnd: C,
|
|
44
|
+
classStatus: T,
|
|
45
|
+
upcomingSessions: $,
|
|
48
46
|
isDemoDone: s,
|
|
49
|
-
isOnlyOneSessionCompleted:
|
|
47
|
+
isOnlyOneSessionCompleted: P,
|
|
50
48
|
isMoreThanOneSessionCompleted: h,
|
|
51
|
-
showLoading:
|
|
52
|
-
demoId:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
() => d ? Le : Ce,
|
|
64
|
-
[d]
|
|
65
|
-
), k = t(
|
|
66
|
-
(Z) => {
|
|
67
|
-
m == null || m(Z, { ...M, userAttemptId: A });
|
|
68
|
-
},
|
|
69
|
-
[m, M, A]
|
|
70
|
-
), H = d ? "100%" : 200, U = t(
|
|
71
|
-
() => /* @__PURE__ */ o(a, { children: [
|
|
72
|
-
/* @__PURE__ */ e(ae, {}),
|
|
49
|
+
showLoading: K = !1,
|
|
50
|
+
demoId: c
|
|
51
|
+
} = ce({ studentName: l, studentServiceId: _ }), M = o(() => {
|
|
52
|
+
d(c);
|
|
53
|
+
}, [c, d]), O = o(() => {
|
|
54
|
+
c && f(c);
|
|
55
|
+
}, [c, f]), r = R(
|
|
56
|
+
() => p ? he : me,
|
|
57
|
+
[p]
|
|
58
|
+
), D = p ? "100%" : 200, j = o(
|
|
59
|
+
() => /* @__PURE__ */ t(i, { children: [
|
|
60
|
+
/* @__PURE__ */ e(Q, {}),
|
|
73
61
|
/* @__PURE__ */ e(n, { height: r.separator.extraLarge }),
|
|
74
|
-
/* @__PURE__ */ e(
|
|
75
|
-
|
|
62
|
+
/* @__PURE__ */ e(J, { orientation: "horizontal" }),
|
|
63
|
+
m && /* @__PURE__ */ t(i, { children: [
|
|
76
64
|
/* @__PURE__ */ e(n, { height: r.medium }),
|
|
77
65
|
/* @__PURE__ */ e(
|
|
78
|
-
|
|
66
|
+
re,
|
|
79
67
|
{
|
|
80
68
|
label: "Get Started",
|
|
81
69
|
renderAs: "yellow-dark",
|
|
82
70
|
shape: "square",
|
|
83
|
-
width:
|
|
84
|
-
onClick:
|
|
71
|
+
width: D,
|
|
72
|
+
onClick: m
|
|
85
73
|
}
|
|
86
74
|
)
|
|
87
75
|
] })
|
|
88
76
|
] }),
|
|
89
|
-
[r,
|
|
90
|
-
),
|
|
77
|
+
[r, D, m]
|
|
78
|
+
), A = o(
|
|
91
79
|
() => /* @__PURE__ */ e(
|
|
92
|
-
|
|
80
|
+
Y,
|
|
93
81
|
{
|
|
94
|
-
completedSessions:
|
|
95
|
-
nextSessionStartTime:
|
|
96
|
-
teacherName:
|
|
97
|
-
status:
|
|
98
|
-
nextSessionEndTime:
|
|
99
|
-
studentName:
|
|
100
|
-
onRescheduleClick:
|
|
82
|
+
completedSessions: b,
|
|
83
|
+
nextSessionStartTime: L,
|
|
84
|
+
teacherName: x,
|
|
85
|
+
status: T,
|
|
86
|
+
nextSessionEndTime: C,
|
|
87
|
+
studentName: l,
|
|
88
|
+
onRescheduleClick: M
|
|
101
89
|
}
|
|
102
90
|
),
|
|
103
91
|
[
|
|
104
|
-
L,
|
|
105
|
-
C,
|
|
106
92
|
b,
|
|
107
|
-
|
|
93
|
+
L,
|
|
94
|
+
x,
|
|
108
95
|
T,
|
|
109
|
-
|
|
110
|
-
|
|
96
|
+
C,
|
|
97
|
+
l,
|
|
98
|
+
M
|
|
111
99
|
]
|
|
112
|
-
),
|
|
100
|
+
), E = o(() => !a || s ? null : /* @__PURE__ */ t(i, { children: [
|
|
113
101
|
/* @__PURE__ */ e(n, { height: r.separator.large }),
|
|
114
|
-
/* @__PURE__ */ e(
|
|
115
|
-
] }), [
|
|
102
|
+
/* @__PURE__ */ e(B, { teacherProfile: a })
|
|
103
|
+
] }), [a, s, r.separator.large]), y = o(() => h ? null : /* @__PURE__ */ t(i, { children: [
|
|
116
104
|
/* @__PURE__ */ e(n, { height: r.separator.extraLarge }),
|
|
117
105
|
/* @__PURE__ */ e(
|
|
118
|
-
|
|
106
|
+
Z,
|
|
119
107
|
{
|
|
120
108
|
isDemoDone: s,
|
|
121
|
-
studentName:
|
|
122
|
-
onViewSummary:
|
|
109
|
+
studentName: l,
|
|
110
|
+
onViewSummary: u
|
|
123
111
|
}
|
|
124
112
|
)
|
|
125
113
|
] }), [
|
|
126
114
|
h,
|
|
127
115
|
r.separator.extraLarge,
|
|
128
116
|
s,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
]),
|
|
117
|
+
l,
|
|
118
|
+
u
|
|
119
|
+
]), I = o(() => g ? null : /* @__PURE__ */ t(i, { children: [
|
|
132
120
|
/* @__PURE__ */ e(n, { height: r.separator.small }),
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
/* @__PURE__ */ e(
|
|
121
|
+
/* @__PURE__ */ t(i, { $flexDirection: "row", $flexColumnGapX: 0.25, children: [
|
|
122
|
+
/* @__PURE__ */ e(F, { $renderAs: "ub1", $renderOnMobileAs: "ub2", $color: "WHITE", children: "Not the right fit for your child?" }),
|
|
135
123
|
/* @__PURE__ */ e(
|
|
136
|
-
|
|
124
|
+
te,
|
|
137
125
|
{
|
|
138
126
|
color: "WHITE_1",
|
|
139
127
|
sizeOnMobile: "small",
|
|
140
128
|
label: "Try another tutor",
|
|
141
|
-
onClick:
|
|
129
|
+
onClick: O
|
|
142
130
|
}
|
|
143
131
|
)
|
|
144
132
|
] })
|
|
145
|
-
] })
|
|
133
|
+
] }), [g, r.separator.small, O]), w = o(() => a ? /* @__PURE__ */ t(i, { children: [
|
|
146
134
|
/* @__PURE__ */ e(n, { height: r.separator.extraLarge }),
|
|
147
|
-
/* @__PURE__ */ e(
|
|
135
|
+
/* @__PURE__ */ e(F, { $renderAs: "ah4-bold", $renderOnMobileAs: "ab1-bold", $color: "WHITE", children: "Know your tutor" }),
|
|
148
136
|
/* @__PURE__ */ e(n, { height: r.separator.medium }),
|
|
149
|
-
/* @__PURE__ */ e(
|
|
150
|
-
|
|
151
|
-
] }) : null, [
|
|
137
|
+
/* @__PURE__ */ e(B, { teacherProfile: a }),
|
|
138
|
+
I()
|
|
139
|
+
] }) : null, [a, r.separator, I]), k = o(() => P ? /* @__PURE__ */ t(i, { children: [
|
|
152
140
|
/* @__PURE__ */ e(n, { height: r.separator.extraLarge }),
|
|
153
|
-
/* @__PURE__ */ e(
|
|
141
|
+
/* @__PURE__ */ e(U, {}),
|
|
154
142
|
/* @__PURE__ */ e(n, { height: r.separator.extraLarge }),
|
|
155
|
-
/* @__PURE__ */ e(
|
|
156
|
-
|
|
143
|
+
/* @__PURE__ */ e(ee, { sessions: $ }),
|
|
144
|
+
w()
|
|
157
145
|
] }) : null, [
|
|
158
|
-
D,
|
|
159
|
-
r.separator.extraLarge,
|
|
160
146
|
P,
|
|
161
|
-
|
|
162
|
-
|
|
147
|
+
r.separator.extraLarge,
|
|
148
|
+
$,
|
|
149
|
+
w
|
|
150
|
+
]), H = o(() => s ? /* @__PURE__ */ t(i, { children: [
|
|
163
151
|
/* @__PURE__ */ e(n, { height: r.separator.extraLarge }),
|
|
164
|
-
/* @__PURE__ */ e(
|
|
165
|
-
] }) : null, [s, r.separator.extraLarge]),
|
|
152
|
+
/* @__PURE__ */ e(ae, {})
|
|
153
|
+
] }) : null, [s, r.separator.extraLarge]), W = o(() => h ? null : /* @__PURE__ */ t(i, { children: [
|
|
166
154
|
/* @__PURE__ */ e(n, { height: r.separator.extraLarge }),
|
|
167
|
-
/* @__PURE__ */ e(
|
|
168
|
-
] }), [h, r.separator.extraLarge,
|
|
169
|
-
() => /* @__PURE__ */
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
155
|
+
/* @__PURE__ */ e(pe, { children: /* @__PURE__ */ e(se, { onSwitchUser: S }) })
|
|
156
|
+
] }), [h, r.separator.extraLarge, S]), z = o(
|
|
157
|
+
() => /* @__PURE__ */ t(i, { children: [
|
|
158
|
+
A(),
|
|
159
|
+
E(),
|
|
160
|
+
y(),
|
|
161
|
+
k(),
|
|
162
|
+
H(),
|
|
163
|
+
W()
|
|
176
164
|
] }),
|
|
177
165
|
[
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
166
|
+
A,
|
|
167
|
+
E,
|
|
168
|
+
y,
|
|
169
|
+
k,
|
|
170
|
+
H,
|
|
171
|
+
W
|
|
184
172
|
]
|
|
185
|
-
),
|
|
186
|
-
() => /* @__PURE__ */
|
|
173
|
+
), V = o(
|
|
174
|
+
() => /* @__PURE__ */ t(i, { children: [
|
|
187
175
|
/* @__PURE__ */ e(n, { height: r.separator.extraLarge }),
|
|
188
|
-
/* @__PURE__ */ e(
|
|
176
|
+
/* @__PURE__ */ e(le, {})
|
|
189
177
|
] }),
|
|
190
178
|
[r.separator.extraLarge]
|
|
191
179
|
);
|
|
192
|
-
return
|
|
193
|
-
/* @__PURE__ */ e(
|
|
194
|
-
/* @__PURE__ */
|
|
195
|
-
|
|
180
|
+
return K ? /* @__PURE__ */ e(oe, { height: "100vh" }) : /* @__PURE__ */ t(de, { children: [
|
|
181
|
+
/* @__PURE__ */ e(ne, { HeaderAvatar: v }),
|
|
182
|
+
/* @__PURE__ */ t(
|
|
183
|
+
ue,
|
|
196
184
|
{
|
|
197
185
|
$flex: 1,
|
|
198
186
|
$width: "100%",
|
|
@@ -201,8 +189,8 @@ const Ve = ee(
|
|
|
201
189
|
$gap: r.medium,
|
|
202
190
|
$gutter: r.small,
|
|
203
191
|
children: [
|
|
204
|
-
|
|
205
|
-
|
|
192
|
+
q ? j() : z(),
|
|
193
|
+
V()
|
|
206
194
|
]
|
|
207
195
|
}
|
|
208
196
|
)
|
|
@@ -210,6 +198,6 @@ const Ve = ee(
|
|
|
210
198
|
}
|
|
211
199
|
);
|
|
212
200
|
export {
|
|
213
|
-
|
|
201
|
+
qe as default
|
|
214
202
|
};
|
|
215
203
|
//# sourceMappingURL=parent-dashboard-view.js.map
|