@cuemath/leap 3.5.58 → 3.5.59-link0
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/features/chapters-v2/utils/node-card-utils.js +24 -24
- package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -1
- package/dist/features/cue-canvas/bottombar/homework-controls.js.map +1 -1
- package/dist/features/cue-canvas/sidebar/sidebar.js +4 -4
- package/dist/features/cue-canvas/sidebar/sidebar.js.map +1 -1
- package/dist/features/cue-canvas/toolbar/toolbar.js +21 -17
- package/dist/features/cue-canvas/toolbar/toolbar.js.map +1 -1
- package/dist/features/cue-canvas/toolbar/whiteboard-toolbar.js +23 -13
- package/dist/features/cue-canvas/toolbar/whiteboard-toolbar.js.map +1 -1
- package/dist/features/journey/tracking-id/tracking-id-student.js +1 -1
- package/dist/features/journey/tracking-id/tracking-id-student.js.map +1 -1
- package/dist/features/math-fit/math-fit-report/comps/score-section/score-section.js +43 -43
- package/dist/features/math-fit/math-fit-report/comps/score-section/score-section.js.map +1 -1
- package/dist/features/milestone/create/api/milestone-config.js.map +1 -1
- package/dist/features/parent-dashboard/modals/trial-report/trial-report.js +1 -1
- package/dist/features/parent-dashboard/modals/trial-report/trial-report.js.map +1 -1
- package/dist/features/sheets/constants/sheet.js +1 -0
- package/dist/features/sheets/constants/sheet.js.map +1 -1
- package/dist/features/sheets/utils/is-v3-worksheet.js +3 -2
- package/dist/features/sheets/utils/is-v3-worksheet.js.map +1 -1
- package/dist/features/timeline/monthly-timeline/monthly-report/monthly-report-types.js +1 -1
- package/dist/features/timeline/monthly-timeline/monthly-report/monthly-report-types.js.map +1 -1
- package/dist/features/trial-session/api/trial-home.js +10 -16
- package/dist/features/trial-session/api/trial-home.js.map +1 -1
- package/dist/features/trial-session/api/trial-session-report.js +16 -0
- package/dist/features/trial-session/api/trial-session-report.js.map +1 -0
- package/dist/features/trial-session/api/trial-topics.js +9 -0
- package/dist/features/trial-session/api/trial-topics.js.map +1 -0
- package/dist/features/trial-session/comps/background-grid/background-grid-utils.js +62 -50
- package/dist/features/trial-session/comps/background-grid/background-grid-utils.js.map +1 -1
- package/dist/features/trial-session/comps/class-preference/class-preference-styled.js +5 -14
- package/dist/features/trial-session/comps/class-preference/class-preference-styled.js.map +1 -1
- package/dist/features/trial-session/comps/class-preference/class-preference.js +55 -53
- package/dist/features/trial-session/comps/class-preference/class-preference.js.map +1 -1
- package/dist/features/trial-session/comps/communication-slide/communication-slide-constants.js +3 -2
- package/dist/features/trial-session/comps/communication-slide/communication-slide-constants.js.map +1 -1
- package/dist/features/trial-session/comps/confirmation-modal/hooks/use-confirmation-modal.js +27 -27
- package/dist/features/trial-session/comps/confirmation-modal/hooks/use-confirmation-modal.js.map +1 -1
- package/dist/features/trial-session/comps/learning-session/learning-session-styled.js +19 -18
- package/dist/features/trial-session/comps/learning-session/learning-session-styled.js.map +1 -1
- package/dist/features/trial-session/comps/learning-session/learning-session.js +34 -43
- package/dist/features/trial-session/comps/learning-session/learning-session.js.map +1 -1
- package/dist/features/trial-session/comps/navigation-bar/index.js +56 -58
- package/dist/features/trial-session/comps/navigation-bar/index.js.map +1 -1
- package/dist/features/trial-session/comps/offering-information/offering-information-constants.js +29 -6
- package/dist/features/trial-session/comps/offering-information/offering-information-constants.js.map +1 -1
- package/dist/features/trial-session/comps/offering-information/offering-information.js +74 -64
- package/dist/features/trial-session/comps/offering-information/offering-information.js.map +1 -1
- package/dist/features/trial-session/comps/school-goals/school-goals-styled.js +10 -9
- package/dist/features/trial-session/comps/school-goals/school-goals-styled.js.map +1 -1
- package/dist/features/trial-session/comps/school-goals/school-goals-view.js +40 -39
- package/dist/features/trial-session/comps/school-goals/school-goals-view.js.map +1 -1
- package/dist/features/trial-session/comps/school-goals/school-goals.js +39 -37
- package/dist/features/trial-session/comps/school-goals/school-goals.js.map +1 -1
- package/dist/features/trial-session/comps/session-insights/session-insights-styled.js +12 -20
- package/dist/features/trial-session/comps/session-insights/session-insights-styled.js.map +1 -1
- package/dist/features/trial-session/comps/session-insights/session-insights.js +64 -63
- package/dist/features/trial-session/comps/session-insights/session-insights.js.map +1 -1
- package/dist/features/trial-session/comps/session-overview/session-overview-styled.js +13 -12
- package/dist/features/trial-session/comps/session-overview/session-overview-styled.js.map +1 -1
- package/dist/features/trial-session/comps/session-overview/session-overview.js +6 -6
- package/dist/features/trial-session/comps/session-overview/session-overview.js.map +1 -1
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-styled.js +61 -0
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-styled.js.map +1 -0
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-types.js +5 -0
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-types.js.map +1 -0
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-view.js +135 -0
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-view.js.map +1 -0
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary.js +53 -0
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary.js.map +1 -0
- package/dist/features/trial-session/comps/session-report/report-404/report-404.js +15 -16
- package/dist/features/trial-session/comps/session-report/report-404/report-404.js.map +1 -1
- package/dist/features/trial-session/comps/session-report/session-report.js +35 -33
- package/dist/features/trial-session/comps/session-report/session-report.js.map +1 -1
- package/dist/features/trial-session/comps/student-enrichment/student-enrichment-styled.js +9 -16
- package/dist/features/trial-session/comps/student-enrichment/student-enrichment-styled.js.map +1 -1
- package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js +39 -37
- package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js.map +1 -1
- package/dist/features/trial-session/comps/student-feedback/student-feedback-styled.js +10 -9
- package/dist/features/trial-session/comps/student-feedback/student-feedback-styled.js.map +1 -1
- package/dist/features/trial-session/comps/student-info/student-info-constants.js +35 -0
- package/dist/features/trial-session/comps/student-info/student-info-constants.js.map +1 -0
- package/dist/features/trial-session/comps/student-info/student-info-helpers.js +12 -0
- package/dist/features/trial-session/comps/student-info/student-info-helpers.js.map +1 -0
- package/dist/features/trial-session/comps/student-info/student-info-styled.js +26 -11
- package/dist/features/trial-session/comps/student-info/student-info-styled.js.map +1 -1
- package/dist/features/trial-session/comps/student-info/student-info.js +113 -78
- package/dist/features/trial-session/comps/student-info/student-info.js.map +1 -1
- package/dist/features/trial-session/comps/student-personalization/student-personalization-styled.js +3 -12
- package/dist/features/trial-session/comps/student-personalization/student-personalization-styled.js.map +1 -1
- package/dist/features/trial-session/comps/student-personalization/student-personalization.js +34 -33
- package/dist/features/trial-session/comps/student-personalization/student-personalization.js.map +1 -1
- package/dist/features/trial-session/comps/student-profile/student-profile.js +45 -44
- package/dist/features/trial-session/comps/student-profile/student-profile.js.map +1 -1
- package/dist/features/trial-session/comps/teacher-intro/teacher-intro.js +9 -8
- package/dist/features/trial-session/comps/teacher-intro/teacher-intro.js.map +1 -1
- package/dist/features/trial-session/comps/test-prep/test-prep-styled.js +11 -19
- package/dist/features/trial-session/comps/test-prep/test-prep-styled.js.map +1 -1
- package/dist/features/trial-session/comps/test-prep/test-prep.js +31 -29
- package/dist/features/trial-session/comps/test-prep/test-prep.js.map +1 -1
- package/dist/features/trial-session/comps/topic-selection/topic-selection-styled.js +42 -0
- package/dist/features/trial-session/comps/topic-selection/topic-selection-styled.js.map +1 -0
- package/dist/features/trial-session/comps/topic-selection/topic-selection.js +84 -0
- package/dist/features/trial-session/comps/topic-selection/topic-selection.js.map +1 -0
- package/dist/features/trial-session/comps/whiteboard/whiteboard-styled.js +21 -0
- package/dist/features/trial-session/comps/whiteboard/whiteboard-styled.js.map +1 -0
- package/dist/features/trial-session/comps/whiteboard/whiteboard.js +99 -0
- package/dist/features/trial-session/comps/whiteboard/whiteboard.js.map +1 -0
- package/dist/features/trial-session/comps/worksheet/worksheet.js +35 -33
- package/dist/features/trial-session/comps/worksheet/worksheet.js.map +1 -1
- package/dist/features/trial-session/context/trial-session-context.js +2 -0
- package/dist/features/trial-session/context/trial-session-context.js.map +1 -1
- package/dist/features/trial-session/helper.js +70 -64
- package/dist/features/trial-session/helper.js.map +1 -1
- package/dist/features/trial-session/hooks/use-trial-session-navigation.js +184 -151
- package/dist/features/trial-session/hooks/use-trial-session-navigation.js.map +1 -1
- package/dist/features/trial-session/right-panel/right-panel-styled.js +8 -8
- package/dist/features/trial-session/right-panel/right-panel-styled.js.map +1 -1
- package/dist/features/trial-session/right-panel/slide-components-map.js +42 -36
- package/dist/features/trial-session/right-panel/slide-components-map.js.map +1 -1
- package/dist/features/trial-session/trial-session-constants.js +22 -18
- package/dist/features/trial-session/trial-session-constants.js.map +1 -1
- package/dist/features/trial-session/trial-session-types.js.map +1 -1
- package/dist/features/trial-session/trial-session-view.js +82 -77
- package/dist/features/trial-session/trial-session-view.js.map +1 -1
- package/dist/features/trial-session/trial-session.js +38 -38
- package/dist/features/trial-session/trial-session.js.map +1 -1
- package/dist/features/ui/inputs/checkbox-input/checkbox-input.js +21 -21
- package/dist/features/ui/inputs/checkbox-input/checkbox-input.js.map +1 -1
- package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js +12 -12
- package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js.map +1 -1
- package/dist/features/ui/theme/clrs.js +1 -0
- package/dist/features/ui/theme/clrs.js.map +1 -1
- package/dist/features/worksheet/worksheet/mocks/activity.js +6 -0
- package/dist/features/worksheet/worksheet/mocks/activity.js.map +1 -0
- package/dist/features/worksheet/worksheet/mocks/signed-requests.js +5 -0
- package/dist/features/worksheet/worksheet/mocks/signed-requests.js.map +1 -0
- package/dist/features/worksheet/worksheet/stories/use-canvas-sync-broker-story.js +57 -0
- package/dist/features/worksheet/worksheet/stories/use-canvas-sync-broker-story.js.map +1 -0
- package/dist/features/worksheet/worksheet/stories/worksheet-story-container.js +263 -0
- package/dist/features/worksheet/worksheet/stories/worksheet-story-container.js.map +1 -0
- package/dist/features/worksheet/worksheet/stories/worksheet-student.js +177 -0
- package/dist/features/worksheet/worksheet/stories/worksheet-student.js.map +1 -0
- package/dist/features/worksheet/worksheet/stories/worksheet-teacher.js +267 -0
- package/dist/features/worksheet/worksheet/stories/worksheet-teacher.js.map +1 -0
- package/dist/features/worksheet/worksheet/worksheet-behavior-helper.js +2 -6
- package/dist/features/worksheet/worksheet/worksheet-behavior-helper.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-helpers.js +38 -37
- package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js +35 -28
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
- package/dist/index.d.ts +12 -5
- package/dist/index.js +1 -1
- package/dist/node_modules/query-string/base.js +1 -1
- package/dist/node_modules/query-string/node_modules/decode-uri-component/index.js.map +1 -0
- package/dist/node_modules/uuid/dist/esm-browser/regex.js +5 -0
- package/dist/node_modules/uuid/dist/esm-browser/regex.js.map +1 -0
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +2 -3
- package/dist/node_modules/uuid/dist/esm-browser/rng.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +10 -6
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +9 -12
- package/dist/node_modules/uuid/dist/esm-browser/v4.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/validate.js +8 -0
- package/dist/node_modules/uuid/dist/esm-browser/validate.js.map +1 -0
- package/dist/types/models/worksheet.js +1 -1
- package/dist/types/models/worksheet.js.map +1 -1
- package/package.json +1 -1
- package/dist/node_modules/decode-uri-component/index.js.map +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/native.js +0 -7
- package/dist/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
- /package/dist/node_modules/{decode-uri-component → query-string/node_modules/decode-uri-component}/index.js +0 -0
|
@@ -1,52 +1,54 @@
|
|
|
1
1
|
import { jsx as t, jsxs as C } from "react/jsx-runtime";
|
|
2
|
-
import { memo as
|
|
3
|
-
import { COURSE_STREAMS as
|
|
4
|
-
import { getPreferencesFromConfig as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { useGetSessionReports as
|
|
9
|
-
import { useTrialSessionContext as
|
|
10
|
-
import { getFormattedStudentPersonalizedPreference as
|
|
11
|
-
import
|
|
12
|
-
import { studentLevels as
|
|
13
|
-
import
|
|
14
|
-
import { Container as
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
import { memo as R, useMemo as S, useCallback as T, useEffect as P } from "react";
|
|
3
|
+
import { COURSE_STREAMS as _, PREFERENCE_CATEGORY as A } from "../../../milestone/constants.js";
|
|
4
|
+
import { getPreferencesFromConfig as L } from "../../../milestone/create/milestone-create-helpers.js";
|
|
5
|
+
import N from "../../../ui/error/error.js";
|
|
6
|
+
import x from "../../../ui/loader/app-loader/app-loader.js";
|
|
7
|
+
import I from "../../../ui/separator/separator.js";
|
|
8
|
+
import { useGetSessionReports as F } from "../../api/trial-session-report.js";
|
|
9
|
+
import { useTrialSessionContext as H } from "../../context/use-trial-session-context.js";
|
|
10
|
+
import { getFormattedStudentPersonalizedPreference as b } from "../../helper.js";
|
|
11
|
+
import v from "../slide-header/index.js";
|
|
12
|
+
import { studentLevels as y } from "../student-feedback/student-feedback-constants.js";
|
|
13
|
+
import D from "./report-information/report-information.js";
|
|
14
|
+
import { Container as G, ContentWrapper as M } from "./session-report-styled.js";
|
|
15
|
+
import { RIGHT_PANEL_CONTENT_WIDTH as O } from "../../trial-session-constants.js";
|
|
16
|
+
const j = R(() => {
|
|
17
|
+
const { formData: l, milestoneConfig: o } = H(), { name: s = "", grade: f, attemptId: n = "", personalizedLevel: e = [] } = l || {}, {
|
|
17
18
|
data: p,
|
|
18
19
|
get: d,
|
|
20
|
+
isProcessed: c,
|
|
19
21
|
isProcessing: g,
|
|
20
|
-
isProcessingFailed:
|
|
21
|
-
} =
|
|
22
|
-
var r,
|
|
23
|
-
const a = ((
|
|
22
|
+
isProcessingFailed: E
|
|
23
|
+
} = F(), i = S(() => {
|
|
24
|
+
var r, u;
|
|
25
|
+
const a = ((u = (r = L(o, {
|
|
24
26
|
grade: f ?? "",
|
|
25
|
-
courseStream:
|
|
26
|
-
preferenceCategory:
|
|
27
|
-
})) == null ? void 0 : r.find((h) => h.id === (e == null ? void 0 : e[0]))) == null ? void 0 :
|
|
28
|
-
return
|
|
29
|
-
}, [f, o, e]), m =
|
|
27
|
+
courseStream: _.MATH,
|
|
28
|
+
preferenceCategory: A.LEVEL
|
|
29
|
+
})) == null ? void 0 : r.find((h) => h.id === (e == null ? void 0 : e[0]))) == null ? void 0 : u.label) ?? "";
|
|
30
|
+
return y[a.toLowerCase()];
|
|
31
|
+
}, [f, o, e]), m = T(() => {
|
|
30
32
|
var r;
|
|
31
|
-
const a =
|
|
33
|
+
const a = b(
|
|
32
34
|
o,
|
|
33
35
|
e
|
|
34
36
|
);
|
|
35
|
-
n && d(n, {
|
|
37
|
+
n && !c && d(n, {
|
|
36
38
|
student_level: ((r = a[0]) == null ? void 0 : r.preference_name) ?? "",
|
|
37
39
|
student_name: s ?? ""
|
|
38
40
|
});
|
|
39
|
-
}, [n, d, o, s, e]);
|
|
41
|
+
}, [n, d, c, o, s, e]);
|
|
40
42
|
return P(() => {
|
|
41
43
|
m();
|
|
42
|
-
}, [m]),
|
|
43
|
-
/* @__PURE__ */ t(
|
|
44
|
-
/* @__PURE__ */ t(
|
|
45
|
-
/* @__PURE__ */ t(
|
|
44
|
+
}, [m]), E ? /* @__PURE__ */ t(N, { height: "70vh", onTryAgain: m }) : g || !p ? /* @__PURE__ */ t(x, { height: "100vh" }) : /* @__PURE__ */ C(G, { children: [
|
|
45
|
+
/* @__PURE__ */ t(I, { height: 60 }),
|
|
46
|
+
/* @__PURE__ */ t(v, { textToInsert: (i == null ? void 0 : i.title) ?? "" }),
|
|
47
|
+
/* @__PURE__ */ t(M, { $width: O, children: /* @__PURE__ */ t(D, { sessionReports: p, studentName: s }) })
|
|
46
48
|
] });
|
|
47
49
|
});
|
|
48
|
-
|
|
50
|
+
j.displayName = "SessionReport";
|
|
49
51
|
export {
|
|
50
|
-
|
|
52
|
+
j as default
|
|
51
53
|
};
|
|
52
54
|
//# sourceMappingURL=session-report.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-report.js","sources":["../../../../../src/features/trial-session/comps/session-report/session-report.tsx"],"sourcesContent":["import { memo, useCallback, useEffect, useMemo } from 'react';\n\nimport { COURSE_STREAMS, PREFERENCE_CATEGORY } from '../../../milestone/constants';\nimport { getPreferencesFromConfig } from '../../../milestone/create/milestone-create-helpers';\nimport Error from '../../../ui/error/error';\nimport AppLoader from '../../../ui/loader/app-loader/app-loader';\nimport Separator from '../../../ui/separator/separator';\nimport { useGetSessionReports } from '../../api/trial-
|
|
1
|
+
{"version":3,"file":"session-report.js","sources":["../../../../../src/features/trial-session/comps/session-report/session-report.tsx"],"sourcesContent":["import { memo, useCallback, useEffect, useMemo } from 'react';\n\nimport { COURSE_STREAMS, PREFERENCE_CATEGORY } from '../../../milestone/constants';\nimport { getPreferencesFromConfig } from '../../../milestone/create/milestone-create-helpers';\nimport Error from '../../../ui/error/error';\nimport AppLoader from '../../../ui/loader/app-loader/app-loader';\nimport Separator from '../../../ui/separator/separator';\nimport { useGetSessionReports } from '../../api/trial-session-report';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport { getFormattedStudentPersonalizedPreference } from '../../helper';\nimport SlideHeader from '../slide-header';\nimport { studentLevels } from '../student-feedback/student-feedback-constants';\nimport ReportInformation from './report-information/report-information';\nimport * as Styled from './session-report-styled';\nimport { RIGHT_PANEL_CONTENT_WIDTH } from '../../trial-session-constants';\n\nconst SessionReport = memo(() => {\n const { formData, milestoneConfig } = useTrialSessionContext();\n const { name = '', grade, attemptId = '', personalizedLevel = [] } = formData || {};\n\n const {\n data: sessionReports,\n get: getSessionReports,\n isProcessed,\n isProcessing,\n isProcessingFailed,\n } = useGetSessionReports();\n\n const selectedSessionLevel = useMemo(() => {\n const selectedLabel =\n getPreferencesFromConfig(milestoneConfig, {\n grade: grade ?? '',\n courseStream: COURSE_STREAMS.MATH,\n preferenceCategory: PREFERENCE_CATEGORY.LEVEL,\n })?.find(sessionLevel => sessionLevel.id === personalizedLevel?.[0])?.label ?? '';\n\n return studentLevels[selectedLabel.toLowerCase()];\n }, [grade, milestoneConfig, personalizedLevel]);\n\n const fetchData = useCallback(() => {\n const studentLevel = getFormattedStudentPersonalizedPreference(\n milestoneConfig,\n personalizedLevel,\n );\n\n if (attemptId && !isProcessed) {\n getSessionReports(attemptId, {\n student_level: studentLevel[0]?.preference_name ?? '',\n student_name: name ?? '',\n });\n }\n }, [attemptId, getSessionReports, isProcessed, milestoneConfig, name, personalizedLevel]);\n\n useEffect(() => {\n fetchData();\n }, [fetchData]);\n\n if (isProcessingFailed) {\n return <Error height=\"70vh\" onTryAgain={fetchData} />;\n }\n\n if (isProcessing || !sessionReports) {\n return <AppLoader height=\"100vh\" />;\n }\n\n return (\n <Styled.Container>\n <Separator height={60} />\n <SlideHeader textToInsert={selectedSessionLevel?.title ?? ''} />\n <Styled.ContentWrapper $width={RIGHT_PANEL_CONTENT_WIDTH}>\n <ReportInformation sessionReports={sessionReports} studentName={name} />\n </Styled.ContentWrapper>\n </Styled.Container>\n );\n});\n\nSessionReport.displayName = 'SessionReport';\n\nexport default SessionReport;\n"],"names":["SessionReport","memo","formData","milestoneConfig","useTrialSessionContext","name","grade","attemptId","personalizedLevel","sessionReports","getSessionReports","isProcessed","isProcessing","isProcessingFailed","useGetSessionReports","selectedSessionLevel","useMemo","selectedLabel","_b","_a","getPreferencesFromConfig","COURSE_STREAMS","PREFERENCE_CATEGORY","sessionLevel","studentLevels","fetchData","useCallback","studentLevel","getFormattedStudentPersonalizedPreference","useEffect","jsx","Error","AppLoader","jsxs","Styled.Container","Separator","SlideHeader","Styled.ContentWrapper","RIGHT_PANEL_CONTENT_WIDTH","ReportInformation"],"mappings":";;;;;;;;;;;;;;;AAgBM,MAAAA,IAAgBC,EAAK,MAAM;AAC/B,QAAM,EAAE,UAAAC,GAAU,iBAAAC,EAAgB,IAAIC,EAAuB,GACvD,EAAE,MAAAC,IAAO,IAAI,OAAAC,GAAO,WAAAC,IAAY,IAAI,mBAAAC,IAAoB,CAAC,EAAA,IAAMN,KAAY,IAE3E;AAAA,IACJ,MAAMO;AAAA,IACN,KAAKC;AAAA,IACL,aAAAC;AAAA,IACA,cAAAC;AAAA,IACA,oBAAAC;AAAA,MACEC,EAAqB,GAEnBC,IAAuBC,EAAQ,MAAM;;AACnC,UAAAC,MACJC,KAAAC,IAAAC,EAAyBjB,GAAiB;AAAA,MACxC,OAAOG,KAAS;AAAA,MAChB,cAAce,EAAe;AAAA,MAC7B,oBAAoBC,EAAoB;AAAA,IACzC,CAAA,MAJD,gBAAAH,EAII,KAAK,CAAgBI,MAAAA,EAAa,QAAOf,KAAA,gBAAAA,EAAoB,SAJjE,gBAAAU,EAIsE,UAAS;AAE1E,WAAAM,EAAcP,EAAc,YAAA,CAAa;AAAA,EAC/C,GAAA,CAACX,GAAOH,GAAiBK,CAAiB,CAAC,GAExCiB,IAAYC,EAAY,MAAM;;AAClC,UAAMC,IAAeC;AAAA,MACnBzB;AAAA,MACAK;AAAA,IAAA;AAGE,IAAAD,KAAa,CAACI,KAChBD,EAAkBH,GAAW;AAAA,MAC3B,iBAAeY,IAAAQ,EAAa,CAAC,MAAd,gBAAAR,EAAiB,oBAAmB;AAAA,MACnD,cAAcd,KAAQ;AAAA,IAAA,CACvB;AAAA,EACH,GACC,CAACE,GAAWG,GAAmBC,GAAaR,GAAiBE,GAAMG,CAAiB,CAAC;AAMxF,SAJAqB,EAAU,MAAM;AACJ,IAAAJ;EAAA,GACT,CAACA,CAAS,CAAC,GAEVZ,IACM,gBAAAiB,EAAAC,GAAA,EAAM,QAAO,QAAO,YAAYN,EAAW,CAAA,IAGjDb,KAAgB,CAACH,IACZ,gBAAAqB,EAACE,GAAU,EAAA,QAAO,QAAQ,CAAA,IAIjC,gBAAAC,EAACC,GAAA,EACC,UAAA;AAAA,IAAC,gBAAAJ,EAAAK,GAAA,EAAU,QAAQ,GAAI,CAAA;AAAA,IACtB,gBAAAL,EAAAM,GAAA,EAAY,eAAcrB,KAAA,gBAAAA,EAAsB,UAAS,IAAI;AAAA,IAC9D,gBAAAe,EAACO,GAAA,EAAsB,QAAQC,GAC7B,UAAA,gBAAAR,EAACS,GAAkB,EAAA,gBAAA9B,GAAgC,aAAaJ,EAAA,CAAM,EACxE,CAAA;AAAA,EACF,EAAA,CAAA;AAEJ,CAAC;AAEDL,EAAc,cAAc;"}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import t from "styled-components";
|
|
2
|
-
import
|
|
3
|
-
import { getTheme as
|
|
4
|
-
const
|
|
5
|
-
width: 100%;
|
|
6
|
-
height: 100%;
|
|
7
|
-
`, m = t(e)`
|
|
8
|
-
margin: auto;
|
|
9
|
-
`, g = t.div`
|
|
2
|
+
import i from "../../../ui/layout/flex-view.js";
|
|
3
|
+
import { getTheme as p } from "../../../ui/theme/get-theme.js";
|
|
4
|
+
const e = p(), { gutter: o } = e.layout, { BLACK_1: r, ORANGE_1: n } = e.colors, m = t.div`
|
|
10
5
|
position: relative;
|
|
11
6
|
width: ${o * 18.75}px;
|
|
12
7
|
height: ${o * 25}px;
|
|
13
|
-
border: 1px solid ${
|
|
8
|
+
border: 1px solid ${r};
|
|
14
9
|
overflow: hidden;
|
|
15
10
|
.image {
|
|
16
11
|
position: absolute;
|
|
@@ -19,17 +14,15 @@ const r = n(), { gutter: o } = r.layout, { BLACK_1: i, ORANGE_1: p } = r.colors,
|
|
|
19
14
|
right: 0;
|
|
20
15
|
bottom: 0;
|
|
21
16
|
}
|
|
22
|
-
`,
|
|
17
|
+
`, x = t(i)`
|
|
23
18
|
flex-grow: 1;
|
|
24
|
-
border: 1px solid ${
|
|
19
|
+
border: 1px solid ${r};
|
|
25
20
|
border-left: none;
|
|
26
|
-
background-color: ${
|
|
21
|
+
background-color: ${n};
|
|
27
22
|
padding: ${o * 2.5}px;
|
|
28
23
|
`;
|
|
29
24
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
g as ImageWrapper,
|
|
33
|
-
c as InputContainer
|
|
25
|
+
m as ImageWrapper,
|
|
26
|
+
x as InputContainer
|
|
34
27
|
};
|
|
35
28
|
//# sourceMappingURL=student-enrichment-styled.js.map
|
package/dist/features/trial-session/comps/student-enrichment/student-enrichment-styled.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"student-enrichment-styled.js","sources":["../../../../../src/features/trial-session/comps/student-enrichment/student-enrichment-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport { getTheme } from '../../../ui/theme/get-theme';\n\nconst theme = getTheme();\nconst { gutter } = theme.layout;\nconst { BLACK_1, ORANGE_1 } = theme.colors;\n\nconst
|
|
1
|
+
{"version":3,"file":"student-enrichment-styled.js","sources":["../../../../../src/features/trial-session/comps/student-enrichment/student-enrichment-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport { getTheme } from '../../../ui/theme/get-theme';\n\nconst theme = getTheme();\nconst { gutter } = theme.layout;\nconst { BLACK_1, ORANGE_1 } = theme.colors;\n\nconst ImageWrapper = styled.div`\n position: relative;\n width: ${gutter * 18.75}px;\n height: ${gutter * 25}px;\n border: 1px solid ${BLACK_1};\n overflow: hidden;\n .image {\n position: absolute;\n top: -${gutter * 0.15625}px;\n left: -${gutter * 0.125}px;\n right: 0;\n bottom: 0;\n }\n`;\n\nconst InputContainer = styled(FlexView)`\n flex-grow: 1;\n border: 1px solid ${BLACK_1};\n border-left: none;\n background-color: ${ORANGE_1};\n padding: ${gutter * 2.5}px;\n`;\n\nexport { ImageWrapper, InputContainer };\n"],"names":["theme","getTheme","gutter","BLACK_1","ORANGE_1","ImageWrapper","styled","InputContainer","FlexView"],"mappings":";;;AAKA,MAAMA,IAAQC,EAAS,GACjB,EAAE,QAAAC,EAAO,IAAIF,EAAM,QACnB,EAAE,SAAAG,GAAS,UAAAC,MAAaJ,EAAM,QAE9BK,IAAeC,EAAO;AAAA;AAAA,WAEjBJ,IAAS,KAAK;AAAA,YACbA,IAAS,EAAE;AAAA,sBACDC,CAAO;AAAA;AAAA;AAAA;AAAA,YAIjBD,IAAS,OAAO;AAAA,aACfA,IAAS,KAAK;AAAA;AAAA;AAAA;AAAA,GAMrBK,IAAiBD,EAAOE,CAAQ;AAAA;AAAA,sBAEhBL,CAAO;AAAA;AAAA,sBAEPC,CAAQ;AAAA,aACjBF,IAAS,GAAG;AAAA;"}
|
|
@@ -1,49 +1,51 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { memo as
|
|
3
|
-
import { GIF as
|
|
2
|
+
import { memo as b, useMemo as f, useCallback as A } from "react";
|
|
3
|
+
import { GIF as L } from "../../../../assets/gif/gif.js";
|
|
4
4
|
import { GOAL_CATEGORY as n } from "../../../milestone/constants.js";
|
|
5
|
-
import { getGoalsFromConfig as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { epochTimestampAfterOneYear as
|
|
11
|
-
import { useTrialSessionContext as
|
|
12
|
-
import { isPLASource as
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
5
|
+
import { getGoalsFromConfig as x } from "../../../milestone/create/milestone-create-helpers.js";
|
|
6
|
+
import H from "../../../ui/image/image.js";
|
|
7
|
+
import R from "../../../ui/inputs/searchable-select-input/searchable-select-input.js";
|
|
8
|
+
import u from "../../../ui/separator/separator.js";
|
|
9
|
+
import D from "../../../ui/text/text.js";
|
|
10
|
+
import { epochTimestampAfterOneYear as j } from "../../../utils/utils.js";
|
|
11
|
+
import { useTrialSessionContext as w } from "../../context/use-trial-session-context.js";
|
|
12
|
+
import { isPLASource as M, updateGoalInFormData as P } from "../../helper.js";
|
|
13
|
+
import k from "../slide-header/index.js";
|
|
14
|
+
import { ImageWrapper as F, InputContainer as O } from "./student-enrichment-styled.js";
|
|
15
|
+
import g from "../../../ui/layout/flex-view.js";
|
|
16
|
+
import { RIGHT_PANEL_CONTENT_WIDTH as X } from "../../trial-session-constants.js";
|
|
17
|
+
const ae = b(function() {
|
|
18
|
+
const { formData: h, milestoneConfig: a, updateSlideConfig: i, trialHomeData: C } = w(), { grade: m, goals: o } = h || {}, { demo_info: _, intel_student: t, student: T } = C, { enrollment_type: s } = T || {}, { stream: l, region_data: E } = _ || {}, { opportunity_country: c = "US" } = E || {}, p = M(t == null ? void 0 : t.source), I = f(
|
|
19
|
+
() => x(a, {
|
|
18
20
|
countryCode: c,
|
|
19
|
-
grade:
|
|
21
|
+
grade: m ?? "",
|
|
20
22
|
goalCategory: n.ENRICHMENT,
|
|
21
23
|
courseStream: l,
|
|
22
|
-
enrollmentType:
|
|
24
|
+
enrollmentType: s
|
|
23
25
|
}),
|
|
24
|
-
[a, c,
|
|
25
|
-
), { goal_code:
|
|
26
|
+
[a, c, m, l, s]
|
|
27
|
+
), { goal_code: $ } = f(
|
|
26
28
|
() => (o == null ? void 0 : o.find((r) => r.goal_category === n.ENRICHMENT)) ?? {},
|
|
27
29
|
[o]
|
|
28
|
-
),
|
|
29
|
-
(r,
|
|
30
|
-
const { label:
|
|
30
|
+
), N = A(
|
|
31
|
+
(r, y) => {
|
|
32
|
+
const { label: G } = y, S = P(o, n.ENRICHMENT, {
|
|
31
33
|
goal_code: r,
|
|
32
|
-
milestone_name:
|
|
33
|
-
milestone_date_ts:
|
|
34
|
+
milestone_name: G,
|
|
35
|
+
milestone_date_ts: j(),
|
|
34
36
|
publish: p
|
|
35
37
|
});
|
|
36
|
-
i({ goals:
|
|
38
|
+
i({ goals: S });
|
|
37
39
|
},
|
|
38
40
|
[o, p, i]
|
|
39
41
|
);
|
|
40
|
-
return /* @__PURE__ */ d(
|
|
41
|
-
/* @__PURE__ */ e(
|
|
42
|
-
/* @__PURE__ */ e(
|
|
43
|
-
/* @__PURE__ */ d(
|
|
44
|
-
/* @__PURE__ */ e(
|
|
42
|
+
return /* @__PURE__ */ d(g, { $justifyContent: "center", $alignItems: "center", children: [
|
|
43
|
+
/* @__PURE__ */ e(u, { height: 60 }),
|
|
44
|
+
/* @__PURE__ */ e(k, {}),
|
|
45
|
+
/* @__PURE__ */ d(g, { $width: X, $flexDirection: "row", $justifyContent: "center", children: [
|
|
46
|
+
/* @__PURE__ */ e(F, { children: /* @__PURE__ */ e(H, { withLoader: !0, height: 402, width: 302, src: L.ENRICHMENT, className: "image" }) }),
|
|
45
47
|
/* @__PURE__ */ e(
|
|
46
|
-
|
|
48
|
+
O,
|
|
47
49
|
{
|
|
48
50
|
$flexGap: 24,
|
|
49
51
|
$justifyContent: "center",
|
|
@@ -52,26 +54,26 @@ const re = G(function() {
|
|
|
52
54
|
$gapX: 2.5,
|
|
53
55
|
$gutterX: 2.5,
|
|
54
56
|
children: /* @__PURE__ */ e(
|
|
55
|
-
|
|
57
|
+
R,
|
|
56
58
|
{
|
|
57
59
|
renderAs: "primary",
|
|
58
60
|
label: "Select a Goal",
|
|
59
|
-
value:
|
|
61
|
+
value: $,
|
|
60
62
|
options: I,
|
|
61
63
|
shape: "borderLess",
|
|
62
64
|
theme: "dark",
|
|
63
|
-
onChange:
|
|
65
|
+
onChange: N,
|
|
64
66
|
isTransparent: !0
|
|
65
67
|
}
|
|
66
68
|
)
|
|
67
69
|
}
|
|
68
70
|
)
|
|
69
71
|
] }),
|
|
70
|
-
/* @__PURE__ */ e(
|
|
71
|
-
/* @__PURE__ */ e(
|
|
72
|
+
/* @__PURE__ */ e(u, { heightX: 1 }),
|
|
73
|
+
/* @__PURE__ */ e(D, { $renderAs: "ub3", $align: "center", children: "This is optional and can be skipped." })
|
|
72
74
|
] });
|
|
73
75
|
});
|
|
74
76
|
export {
|
|
75
|
-
|
|
77
|
+
ae as default
|
|
76
78
|
};
|
|
77
79
|
//# sourceMappingURL=student-enrichment.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"student-enrichment.js","sources":["../../../../../src/features/trial-session/comps/student-enrichment/student-enrichment.tsx"],"sourcesContent":["import { memo, useCallback, useMemo } from 'react';\n\nimport { GIF } from '../../../../assets/gif/gif';\nimport { GOAL_CATEGORY } from '../../../milestone/constants';\nimport { getGoalsFromConfig } from '../../../milestone/create/milestone-create-helpers';\nimport Image from '../../../ui/image/image';\nimport type { ISelectOption } from '../../../ui/inputs/base-select-input/base-select-input-types';\nimport SearchableSelectInput from '../../../ui/inputs/searchable-select-input/searchable-select-input';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { epochTimestampAfterOneYear } from '../../../utils/utils';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport { isPLASource, updateGoalInFormData } from '../../helper';\nimport SlideHeader from '../slide-header';\nimport * as Styled from './student-enrichment-styled';\n\nconst StudentEnrichment = memo(function StudentEnrichment() {\n const { formData, milestoneConfig, updateSlideConfig, trialHomeData } = useTrialSessionContext();\n const { grade, goals } = formData || {};\n\n const { demo_info: demoInfo, intel_student: intelStudent, student } = trialHomeData;\n\n const { enrollment_type: enrollmentType } = student || {};\n const { stream, region_data: regionData } = demoInfo || {};\n const { opportunity_country: countryCode = 'US' } = regionData || {};\n const isPLA = isPLASource(intelStudent?.source);\n\n const goalsList = useMemo(\n () =>\n getGoalsFromConfig(milestoneConfig, {\n countryCode,\n grade: grade ?? '',\n goalCategory: GOAL_CATEGORY.ENRICHMENT,\n courseStream: stream,\n enrollmentType: enrollmentType,\n }),\n [milestoneConfig, countryCode, grade, stream, enrollmentType],\n );\n\n const { goal_code: selectedGoal } = useMemo(\n () => goals?.find(goal => goal.goal_category === GOAL_CATEGORY.ENRICHMENT) ?? {},\n [goals],\n );\n\n const handleGoalChange = useCallback(\n (value: string, option: ISelectOption<string | number>) => {\n const { label } = option;\n\n const updatedGoals = updateGoalInFormData(goals, GOAL_CATEGORY.ENRICHMENT, {\n goal_code: value,\n milestone_name: label,\n milestone_date_ts: epochTimestampAfterOneYear(),\n publish: isPLA,\n });\n\n updateSlideConfig({ goals: updatedGoals });\n },\n [goals, isPLA, updateSlideConfig],\n );\n\n return (\n <
|
|
1
|
+
{"version":3,"file":"student-enrichment.js","sources":["../../../../../src/features/trial-session/comps/student-enrichment/student-enrichment.tsx"],"sourcesContent":["import { memo, useCallback, useMemo } from 'react';\n\nimport { GIF } from '../../../../assets/gif/gif';\nimport { GOAL_CATEGORY } from '../../../milestone/constants';\nimport { getGoalsFromConfig } from '../../../milestone/create/milestone-create-helpers';\nimport Image from '../../../ui/image/image';\nimport type { ISelectOption } from '../../../ui/inputs/base-select-input/base-select-input-types';\nimport SearchableSelectInput from '../../../ui/inputs/searchable-select-input/searchable-select-input';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { epochTimestampAfterOneYear } from '../../../utils/utils';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport { isPLASource, updateGoalInFormData } from '../../helper';\nimport SlideHeader from '../slide-header';\nimport * as Styled from './student-enrichment-styled';\nimport FlexView from '../../../ui/layout/flex-view';\nimport { RIGHT_PANEL_CONTENT_WIDTH } from '../../trial-session-constants';\n\nconst StudentEnrichment = memo(function StudentEnrichment() {\n const { formData, milestoneConfig, updateSlideConfig, trialHomeData } = useTrialSessionContext();\n const { grade, goals } = formData || {};\n\n const { demo_info: demoInfo, intel_student: intelStudent, student } = trialHomeData;\n\n const { enrollment_type: enrollmentType } = student || {};\n const { stream, region_data: regionData } = demoInfo || {};\n const { opportunity_country: countryCode = 'US' } = regionData || {};\n const isPLA = isPLASource(intelStudent?.source);\n\n const goalsList = useMemo(\n () =>\n getGoalsFromConfig(milestoneConfig, {\n countryCode,\n grade: grade ?? '',\n goalCategory: GOAL_CATEGORY.ENRICHMENT,\n courseStream: stream,\n enrollmentType: enrollmentType,\n }),\n [milestoneConfig, countryCode, grade, stream, enrollmentType],\n );\n\n const { goal_code: selectedGoal } = useMemo(\n () => goals?.find(goal => goal.goal_category === GOAL_CATEGORY.ENRICHMENT) ?? {},\n [goals],\n );\n\n const handleGoalChange = useCallback(\n (value: string, option: ISelectOption<string | number>) => {\n const { label } = option;\n\n const updatedGoals = updateGoalInFormData(goals, GOAL_CATEGORY.ENRICHMENT, {\n goal_code: value,\n milestone_name: label,\n milestone_date_ts: epochTimestampAfterOneYear(),\n publish: isPLA,\n });\n\n updateSlideConfig({ goals: updatedGoals });\n },\n [goals, isPLA, updateSlideConfig],\n );\n\n return (\n <FlexView $justifyContent=\"center\" $alignItems=\"center\">\n <Separator height={60} />\n <SlideHeader />\n <FlexView $width={RIGHT_PANEL_CONTENT_WIDTH} $flexDirection=\"row\" $justifyContent=\"center\">\n <Styled.ImageWrapper>\n <Image withLoader height={402} width={302} src={GIF.ENRICHMENT} className=\"image\" />\n </Styled.ImageWrapper>\n <Styled.InputContainer\n $flexGap={24}\n $justifyContent=\"center\"\n $background=\"PURPLE_1\"\n $borderColor=\"BLACK_1\"\n $gapX={2.5}\n $gutterX={2.5}\n >\n <SearchableSelectInput\n renderAs=\"primary\"\n label=\"Select a Goal\"\n value={selectedGoal}\n options={goalsList}\n shape=\"borderLess\"\n theme=\"dark\"\n onChange={handleGoalChange}\n isTransparent\n />\n </Styled.InputContainer>\n </FlexView>\n <Separator heightX={1} />\n <Text $renderAs=\"ub3\" $align=\"center\">\n This is optional and can be skipped.\n </Text>\n </FlexView>\n );\n});\n\nexport default StudentEnrichment;\n"],"names":["StudentEnrichment","memo","formData","milestoneConfig","updateSlideConfig","trialHomeData","useTrialSessionContext","grade","goals","demoInfo","intelStudent","student","enrollmentType","stream","regionData","countryCode","isPLA","isPLASource","goalsList","useMemo","getGoalsFromConfig","GOAL_CATEGORY","selectedGoal","goal","handleGoalChange","useCallback","value","option","label","updatedGoals","updateGoalInFormData","epochTimestampAfterOneYear","jsxs","FlexView","jsx","Separator","SlideHeader","RIGHT_PANEL_CONTENT_WIDTH","Styled.ImageWrapper","Image","GIF","Styled.InputContainer","SearchableSelectInput","Text"],"mappings":";;;;;;;;;;;;;;;;AAkBM,MAAAA,KAAoBC,EAAK,WAA6B;AAC1D,QAAM,EAAE,UAAAC,GAAU,iBAAAC,GAAiB,mBAAAC,GAAmB,eAAAC,EAAA,IAAkBC,KAClE,EAAE,OAAAC,GAAO,OAAAC,MAAUN,KAAY,CAAA,GAE/B,EAAE,WAAWO,GAAU,eAAeC,GAAc,SAAAC,EAAY,IAAAN,GAEhE,EAAE,iBAAiBO,MAAmBD,KAAW,CAAA,GACjD,EAAE,QAAAE,GAAQ,aAAaC,EAAW,IAAIL,KAAY,CAAA,GAClD,EAAE,qBAAqBM,IAAc,KAAK,IAAID,KAAc,CAAA,GAC5DE,IAAQC,EAAYP,KAAA,gBAAAA,EAAc,MAAM,GAExCQ,IAAYC;AAAA,IAChB,MACEC,EAAmBjB,GAAiB;AAAA,MAClC,aAAAY;AAAA,MACA,OAAOR,KAAS;AAAA,MAChB,cAAcc,EAAc;AAAA,MAC5B,cAAcR;AAAA,MACd,gBAAAD;AAAA,IAAA,CACD;AAAA,IACH,CAACT,GAAiBY,GAAaR,GAAOM,GAAQD,CAAc;AAAA,EAAA,GAGxD,EAAE,WAAWU,EAAA,IAAiBH;AAAA,IAClC,OAAMX,KAAA,gBAAAA,EAAO,KAAK,CAAAe,MAAQA,EAAK,kBAAkBF,EAAc,gBAAe,CAAC;AAAA,IAC/E,CAACb,CAAK;AAAA,EAAA,GAGFgB,IAAmBC;AAAA,IACvB,CAACC,GAAeC,MAA2C;AACnD,YAAA,EAAE,OAAAC,EAAU,IAAAD,GAEZE,IAAeC,EAAqBtB,GAAOa,EAAc,YAAY;AAAA,QACzE,WAAWK;AAAA,QACX,gBAAgBE;AAAA,QAChB,mBAAmBG,EAA2B;AAAA,QAC9C,SAASf;AAAA,MAAA,CACV;AAEiB,MAAAZ,EAAA,EAAE,OAAOyB,EAAA,CAAc;AAAA,IAC3C;AAAA,IACA,CAACrB,GAAOQ,GAAOZ,CAAiB;AAAA,EAAA;AAGlC,SACG,gBAAA4B,EAAAC,GAAA,EAAS,iBAAgB,UAAS,aAAY,UAC7C,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAU,QAAQ,GAAI,CAAA;AAAA,sBACtBC,GAAY,EAAA;AAAA,sBACZH,GAAS,EAAA,QAAQI,GAA2B,gBAAe,OAAM,iBAAgB,UAChF,UAAA;AAAA,MAAA,gBAAAH,EAACI,GAAA,EACC,UAAC,gBAAAJ,EAAAK,GAAA,EAAM,YAAU,IAAC,QAAQ,KAAK,OAAO,KAAK,KAAKC,EAAI,YAAY,WAAU,QAAQ,CAAA,GACpF;AAAA,MACA,gBAAAN;AAAA,QAACO;AAAAA,QAAA;AAAA,UACC,UAAU;AAAA,UACV,iBAAgB;AAAA,UAChB,aAAY;AAAA,UACZ,cAAa;AAAA,UACb,OAAO;AAAA,UACP,UAAU;AAAA,UAEV,UAAA,gBAAAP;AAAA,YAACQ;AAAA,YAAA;AAAA,cACC,UAAS;AAAA,cACT,OAAM;AAAA,cACN,OAAOpB;AAAA,cACP,SAASJ;AAAA,cACT,OAAM;AAAA,cACN,OAAM;AAAA,cACN,UAAUM;AAAA,cACV,eAAa;AAAA,YAAA;AAAA,UACf;AAAA,QAAA;AAAA,MACF;AAAA,IAAA,GACF;AAAA,IACA,gBAAAU,EAACC,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,sBACtBQ,GAAK,EAAA,WAAU,OAAM,QAAO,UAAS,UAEtC,wCAAA;AAAA,EACF,EAAA,CAAA;AAEJ,CAAC;"}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import r from "styled-components";
|
|
2
2
|
import e from "../../../ui/layout/flex-view.js";
|
|
3
3
|
import n from "../../../ui/text/text.js";
|
|
4
|
-
|
|
4
|
+
import { RIGHT_PANEL_CONTENT_WIDTH as l } from "../../trial-session-constants.js";
|
|
5
|
+
const d = r.div`
|
|
5
6
|
width: 100%;
|
|
6
7
|
height: 100%;
|
|
7
8
|
overflow: auto;
|
|
8
|
-
`,
|
|
9
|
+
`, u = r(e)(({ theme: o }) => {
|
|
9
10
|
const { GREEN_1: t, GREEN_4: i } = o.colors;
|
|
10
11
|
return `
|
|
11
|
-
width:
|
|
12
|
+
width: ${l - 100}px;
|
|
12
13
|
margin: auto;
|
|
13
14
|
background-color: ${t};
|
|
14
15
|
border: 1px solid ${i};
|
|
15
16
|
position: relative;
|
|
16
17
|
`;
|
|
17
|
-
}),
|
|
18
|
+
}), T = r(e)(({ theme: o }) => `
|
|
18
19
|
cursor: pointer;
|
|
19
20
|
transition: all 0.2s ease-in-out;
|
|
20
21
|
&:hover {
|
|
@@ -27,7 +28,7 @@ const a = r.div`
|
|
|
27
28
|
color: ${o.colors.WHITE_T_60};
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
|
-
`),
|
|
31
|
+
`), _ = r(e)(({ theme: o }) => {
|
|
31
32
|
const { gutter: t } = o.layout;
|
|
32
33
|
return `
|
|
33
34
|
width: 100%;
|
|
@@ -39,10 +40,10 @@ const a = r.div`
|
|
|
39
40
|
display: inline;
|
|
40
41
|
`;
|
|
41
42
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
_ as BalloonWrapper,
|
|
44
|
+
d as Container,
|
|
45
|
+
T as Feedback,
|
|
46
|
+
u as FeedbackWrapper,
|
|
46
47
|
b as InlineText
|
|
47
48
|
};
|
|
48
49
|
//# sourceMappingURL=student-feedback-styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"student-feedback-styled.js","sources":["../../../../../src/features/trial-session/comps/student-feedback/student-feedback-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\n\nconst Container = styled.div`\n width: 100%;\n height: 100%;\n overflow: auto;\n`;\n\nconst FeedbackWrapper = styled(FlexView)(({ theme }) => {\n const { GREEN_1, GREEN_4 } = theme.colors;\n\n return `\n width:
|
|
1
|
+
{"version":3,"file":"student-feedback-styled.js","sources":["../../../../../src/features/trial-session/comps/student-feedback/student-feedback-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\nimport { RIGHT_PANEL_CONTENT_WIDTH } from '../../trial-session-constants';\n\nconst Container = styled.div`\n width: 100%;\n height: 100%;\n overflow: auto;\n`;\n\nconst FeedbackWrapper = styled(FlexView)(({ theme }) => {\n const { GREEN_1, GREEN_4 } = theme.colors;\n\n return `\n width: ${RIGHT_PANEL_CONTENT_WIDTH - 100}px;\n margin: auto;\n background-color: ${GREEN_1};\n border: 1px solid ${GREEN_4};\n position: relative;\n`;\n});\n\nconst Feedback = styled(FlexView)(({ theme }) => {\n return `\n cursor: pointer;\n transition: all 0.2s ease-in-out;\n &:hover {\n background-color: ${theme.colors.BLACK_T_87};\n \n .feedback-title {\n color: ${theme.colors.WHITE_T_87};\n }\n .feedback-desc {\n color: ${theme.colors.WHITE_T_60};\n }\n }\n `;\n});\n\nconst BalloonWrapper = styled(FlexView)(({ theme }) => {\n const { gutter } = theme.layout;\n\n return `\n width: 100%;\n position: absolute;\n left: 0;\n top: -${gutter * 0.75}px;\n `;\n});\n\nconst InlineText = styled(Text)`\n display: inline;\n`;\n\nexport { Container, FeedbackWrapper, Feedback, BalloonWrapper, InlineText };\n"],"names":["Container","styled","FeedbackWrapper","FlexView","theme","GREEN_1","GREEN_4","RIGHT_PANEL_CONTENT_WIDTH","Feedback","BalloonWrapper","gutter","InlineText","Text"],"mappings":";;;;AAMA,MAAMA,IAAYC,EAAO;AAAA;AAAA;AAAA;AAAA,GAMnBC,IAAkBD,EAAOE,CAAQ,EAAE,CAAC,EAAE,OAAAC,QAAY;AACtD,QAAM,EAAE,SAAAC,GAAS,SAAAC,MAAYF,EAAM;AAE5B,SAAA;AAAA,WACEG,IAA4B,GAAG;AAAA;AAAA,sBAEpBF,CAAO;AAAA,sBACPC,CAAO;AAAA;AAAA;AAG7B,CAAC,GAEKE,IAAWP,EAAOE,CAAQ,EAAE,CAAC,EAAE,OAAAC,QAC5B;AAAA;AAAA;AAAA;AAAA,0BAIiBA,EAAM,OAAO,UAAU;AAAA;AAAA;AAAA,iBAGhCA,EAAM,OAAO,UAAU;AAAA;AAAA;AAAA,iBAGvBA,EAAM,OAAO,UAAU;AAAA;AAAA;AAAA,GAIvC,GAEKK,IAAiBR,EAAOE,CAAQ,EAAE,CAAC,EAAE,OAAAC,QAAY;AAC/C,QAAA,EAAE,QAAAM,EAAO,IAAIN,EAAM;AAElB,SAAA;AAAA;AAAA;AAAA;AAAA,YAIGM,IAAS,IAAI;AAAA;AAEzB,CAAC,GAEKC,IAAaV,EAAOW,CAAI;AAAA;AAAA;"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const A = {
|
|
2
|
+
ALGEBRA_I: "Algebra I",
|
|
3
|
+
GEOMETRY: "Geometry",
|
|
4
|
+
ALGEBRA_II: "Algebra II",
|
|
5
|
+
PRECALCULUS: "Precalculus",
|
|
6
|
+
CALCULUS: "Calculus",
|
|
7
|
+
GRADE_7_MATH: "Grade 7 Math",
|
|
8
|
+
GRADE_8_MATH: "Grade 8 Math"
|
|
9
|
+
}, E = {
|
|
10
|
+
7: [A.GRADE_7_MATH, A.ALGEBRA_I, A.GEOMETRY],
|
|
11
|
+
8: [
|
|
12
|
+
A.GRADE_8_MATH,
|
|
13
|
+
A.ALGEBRA_I,
|
|
14
|
+
A.GEOMETRY,
|
|
15
|
+
A.ALGEBRA_II
|
|
16
|
+
],
|
|
17
|
+
9: [
|
|
18
|
+
A.ALGEBRA_I,
|
|
19
|
+
A.GEOMETRY,
|
|
20
|
+
A.ALGEBRA_II,
|
|
21
|
+
A.PRECALCULUS
|
|
22
|
+
],
|
|
23
|
+
10: [
|
|
24
|
+
A.GEOMETRY,
|
|
25
|
+
A.ALGEBRA_II,
|
|
26
|
+
A.PRECALCULUS,
|
|
27
|
+
A.CALCULUS
|
|
28
|
+
],
|
|
29
|
+
11: [A.ALGEBRA_II, A.PRECALCULUS, A.CALCULUS],
|
|
30
|
+
12: [A.ALGEBRA_II, A.PRECALCULUS, A.CALCULUS]
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
E as GRADE_TO_COURSES_MAP
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=student-info-constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"student-info-constants.js","sources":["../../../../../src/features/trial-session/comps/student-info/student-info-constants.ts"],"sourcesContent":["const COURSE_NAMES = {\n ALGEBRA_I: 'Algebra I',\n GEOMETRY: 'Geometry',\n ALGEBRA_II: 'Algebra II',\n PRECALCULUS: 'Precalculus',\n CALCULUS: 'Calculus',\n GRADE_7_MATH: 'Grade 7 Math',\n GRADE_8_MATH: 'Grade 8 Math',\n};\n\nexport const GRADE_TO_COURSES_MAP = {\n 7: [COURSE_NAMES.GRADE_7_MATH, COURSE_NAMES.ALGEBRA_I, COURSE_NAMES.GEOMETRY],\n 8: [\n COURSE_NAMES.GRADE_8_MATH,\n COURSE_NAMES.ALGEBRA_I,\n COURSE_NAMES.GEOMETRY,\n COURSE_NAMES.ALGEBRA_II,\n ],\n 9: [\n COURSE_NAMES.ALGEBRA_I,\n COURSE_NAMES.GEOMETRY,\n COURSE_NAMES.ALGEBRA_II,\n COURSE_NAMES.PRECALCULUS,\n ],\n 10: [\n COURSE_NAMES.GEOMETRY,\n COURSE_NAMES.ALGEBRA_II,\n COURSE_NAMES.PRECALCULUS,\n COURSE_NAMES.CALCULUS,\n ],\n 11: [COURSE_NAMES.ALGEBRA_II, COURSE_NAMES.PRECALCULUS, COURSE_NAMES.CALCULUS],\n 12: [COURSE_NAMES.ALGEBRA_II, COURSE_NAMES.PRECALCULUS, COURSE_NAMES.CALCULUS],\n};\n"],"names":["COURSE_NAMES","GRADE_TO_COURSES_MAP"],"mappings":"AAAA,MAAMA,IAAe;AAAA,EACnB,WAAW;AAAA,EACX,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,UAAU;AAAA,EACV,cAAc;AAAA,EACd,cAAc;AAChB,GAEaC,IAAuB;AAAA,EAClC,GAAG,CAACD,EAAa,cAAcA,EAAa,WAAWA,EAAa,QAAQ;AAAA,EAC5E,GAAG;AAAA,IACDA,EAAa;AAAA,IACbA,EAAa;AAAA,IACbA,EAAa;AAAA,IACbA,EAAa;AAAA,EACf;AAAA,EACA,GAAG;AAAA,IACDA,EAAa;AAAA,IACbA,EAAa;AAAA,IACbA,EAAa;AAAA,IACbA,EAAa;AAAA,EACf;AAAA,EACA,IAAI;AAAA,IACFA,EAAa;AAAA,IACbA,EAAa;AAAA,IACbA,EAAa;AAAA,IACbA,EAAa;AAAA,EACf;AAAA,EACA,IAAI,CAACA,EAAa,YAAYA,EAAa,aAAaA,EAAa,QAAQ;AAAA,EAC7E,IAAI,CAACA,EAAa,YAAYA,EAAa,aAAaA,EAAa,QAAQ;AAC/E;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GRADE_TO_COURSES_MAP as n } from "./student-info-constants.js";
|
|
2
|
+
function s(o) {
|
|
3
|
+
const t = o && o >= 7 ? n[o] : [];
|
|
4
|
+
return t.length > 0 ? t.map((e) => ({
|
|
5
|
+
id: e.toLocaleLowerCase().split(" ").join("_"),
|
|
6
|
+
label: e
|
|
7
|
+
})) : [];
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
s as getCourseOptions
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=student-info-helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"student-info-helpers.js","sources":["../../../../../src/features/trial-session/comps/student-info/student-info-helpers.ts"],"sourcesContent":["import { GRADE_TO_COURSES_MAP } from './student-info-constants';\n\nexport function getCourseOptions(grade: number): Array<{ id: string; label: string }> {\n const courses =\n grade && grade >= 7 ? GRADE_TO_COURSES_MAP[grade as 7 | 8 | 9 | 10 | 11 | 12] : [];\n\n return courses.length > 0\n ? courses.map(course => ({\n id: course.toLocaleLowerCase().split(' ').join('_'),\n label: course,\n }))\n : [];\n}\n"],"names":["getCourseOptions","grade","courses","GRADE_TO_COURSES_MAP","course"],"mappings":";AAEO,SAASA,EAAiBC,GAAqD;AACpF,QAAMC,IACJD,KAASA,KAAS,IAAIE,EAAqBF,CAAiC,IAAI;AAElF,SAAOC,EAAQ,SAAS,IACpBA,EAAQ,IAAI,CAAWE,OAAA;AAAA,IACrB,IAAIA,EAAO,kBAAkB,EAAE,MAAM,GAAG,EAAE,KAAK,GAAG;AAAA,IAClD,OAAOA;AAAA,EAAA,EACP,IACF,CAAA;AACN;"}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import r from "styled-components";
|
|
2
2
|
import e from "../../../ui/layout/flex-view.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import { RIGHT_PANEL_CONTENT_WIDTH as p } from "../../trial-session-constants.js";
|
|
4
|
+
import { ILLUSTRATIONS as i } from "../../../../assets/illustrations/illustrations.js";
|
|
5
|
+
import n from "../../../ui/text/text.js";
|
|
6
|
+
r(e)(({ theme: o }) => {
|
|
7
7
|
const { gutter: t } = o.layout;
|
|
8
8
|
return `
|
|
9
9
|
margin: auto;
|
|
10
10
|
flex-grow: 1;
|
|
11
11
|
position: relative;
|
|
12
|
-
width:
|
|
12
|
+
width: ${p - 100}px;
|
|
13
13
|
height: 1px; // without height InformationWrapper scroll behavior not working
|
|
14
14
|
padding: ${t * 3.125}px ${t * 3.125}px 0px;
|
|
15
15
|
border-bottom: none;
|
|
16
16
|
`;
|
|
17
|
-
})
|
|
17
|
+
});
|
|
18
|
+
r(e)(({ theme: o }) => {
|
|
18
19
|
const { gutter: t } = o.layout;
|
|
19
20
|
return `
|
|
20
21
|
flex-grow: 1;
|
|
@@ -22,7 +23,8 @@ const i = r(e)`
|
|
|
22
23
|
padding: ${t * 3.5}px ${t * 6.875}px 0px;
|
|
23
24
|
overflow-y: scroll;
|
|
24
25
|
`;
|
|
25
|
-
})
|
|
26
|
+
});
|
|
27
|
+
r.div(({ theme: o }) => {
|
|
26
28
|
const { gutter: t } = o.layout;
|
|
27
29
|
return `
|
|
28
30
|
position: absolute;
|
|
@@ -30,10 +32,23 @@ const i = r(e)`
|
|
|
30
32
|
left: ${t * 10.625}px;
|
|
31
33
|
`;
|
|
32
34
|
});
|
|
35
|
+
const m = r.div(
|
|
36
|
+
({ theme: { layout: o } }) => `
|
|
37
|
+
position: absolute;
|
|
38
|
+
top: -${o.gutter * 3.125}px;
|
|
39
|
+
width: 100%;
|
|
40
|
+
height: 100%;
|
|
41
|
+
background-image: url(${i.PROFILE_BOARD});
|
|
42
|
+
background-position: top center;
|
|
43
|
+
background-repeat: no-repeat;
|
|
44
|
+
`
|
|
45
|
+
), s = r(n)`
|
|
46
|
+
position: absolute;
|
|
47
|
+
top: calc(100% + 11px);
|
|
48
|
+
right: 0;
|
|
49
|
+
`;
|
|
33
50
|
export {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
l as InformationWrapper,
|
|
37
|
-
a as StudentInfoWrapper
|
|
51
|
+
m as AbsoluteImage,
|
|
52
|
+
s as MetaTextWrapper
|
|
38
53
|
};
|
|
39
54
|
//# sourceMappingURL=student-info-styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"student-info-styled.js","sources":["../../../../../src/features/trial-session/comps/student-info/student-info-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\
|
|
1
|
+
{"version":3,"file":"student-info-styled.js","sources":["../../../../../src/features/trial-session/comps/student-info/student-info-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport { RIGHT_PANEL_CONTENT_WIDTH } from '../../trial-session-constants';\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Text from '../../../ui/text/text';\n\nconst StudentInfoWrapper = styled(FlexView)(({ theme }) => {\n const { gutter } = theme.layout;\n\n return `\n margin: auto;\n flex-grow: 1;\n position: relative;\n width: ${RIGHT_PANEL_CONTENT_WIDTH - 100}px;\n height: 1px; // without height InformationWrapper scroll behavior not working\n padding: ${gutter * 3.125}px ${gutter * 3.125}px 0px;\n border-bottom: none;\n `;\n});\n\nconst InformationWrapper = styled(FlexView)(({ theme }) => {\n const { gutter } = theme.layout;\n\n return `\n flex-grow: 1;\n border-bottom: none;\n padding: ${gutter * 3.5}px ${gutter * 6.875}px 0px;\n overflow-y: scroll;\n `;\n});\n\nconst ImageWrapper = styled.div(({ theme }) => {\n const { gutter } = theme.layout;\n\n return `\n position: absolute;\n top: -${gutter * 0.3125}px;\n left: ${gutter * 10.625}px;\n `;\n});\n\nconst AbsoluteImage = styled.div(\n ({ theme: { layout } }) => `\n position: absolute;\n top: -${layout.gutter * 3.125}px;\n width: 100%;\n height: 100%;\n background-image: url(${ILLUSTRATIONS.PROFILE_BOARD});\n background-position: top center;\n background-repeat: no-repeat;\n`,\n);\n\nconst MetaTextWrapper = styled(Text)`\n position: absolute;\n top: calc(100% + 11px);\n right: 0;\n`;\n\nexport { StudentInfoWrapper, InformationWrapper, ImageWrapper, AbsoluteImage, MetaTextWrapper };\n"],"names":["styled","FlexView","theme","gutter","RIGHT_PANEL_CONTENT_WIDTH","AbsoluteImage","layout","ILLUSTRATIONS","MetaTextWrapper","Text"],"mappings":";;;;;AAO2BA,EAAOC,CAAQ,EAAE,CAAC,EAAE,OAAAC,QAAY;AACnD,QAAA,EAAE,QAAAC,EAAO,IAAID,EAAM;AAElB,SAAA;AAAA;AAAA;AAAA;AAAA,aAIIE,IAA4B,GAAG;AAAA;AAAA,eAE7BD,IAAS,KAAK,MAAMA,IAAS,KAAK;AAAA;AAAA;AAGjD,CAAC;AAE0BH,EAAOC,CAAQ,EAAE,CAAC,EAAE,OAAAC,QAAY;AACnD,QAAA,EAAE,QAAAC,EAAO,IAAID,EAAM;AAElB,SAAA;AAAA;AAAA;AAAA,eAGMC,IAAS,GAAG,MAAMA,IAAS,KAAK;AAAA;AAAA;AAG/C,CAAC;AAEoBH,EAAO,IAAI,CAAC,EAAE,OAAAE,QAAY;AACvC,QAAA,EAAE,QAAAC,EAAO,IAAID,EAAM;AAElB,SAAA;AAAA;AAAA,YAEGC,IAAS,MAAM;AAAA,YACfA,IAAS,MAAM;AAAA;AAE3B,CAAC;AAED,MAAME,IAAgBL,EAAO;AAAA,EAC3B,CAAC,EAAE,OAAO,EAAE,QAAAM,EAAA,EAAe,MAAA;AAAA;AAAA,UAEnBA,EAAO,SAAS,KAAK;AAAA;AAAA;AAAA,0BAGLC,EAAc,aAAa;AAAA;AAAA;AAAA;AAIrD,GAEMC,IAAkBR,EAAOS,CAAI;AAAA;AAAA;AAAA;AAAA;"}
|