@cuemath/leap 3.5.59 → 3.5.60-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/homework/homework-card-view.js +43 -43
- package/dist/features/homework/homework-card-view.js.map +1 -1
- package/dist/features/homework/homework-card.js +44 -46
- package/dist/features/homework/homework-card.js.map +1 -1
- package/dist/features/homework/hw-card-list/api/get-homeworks.js.map +1 -1
- package/dist/features/homework/hw-card-list/hw-card-list-view.js +39 -41
- package/dist/features/homework/hw-card-list/hw-card-list-view.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-utils.js +21 -5
- package/dist/features/trial-session/comps/session-overview/session-overview-utils.js.map +1 -1
- package/dist/features/trial-session/comps/session-overview/session-overview.js +20 -20
- 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 +201 -164
- 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/worksheet-store/helpers/get-computed-properties.js +36 -35
- package/dist/features/worksheet/worksheet/worksheet-store/helpers/get-computed-properties.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-store/helpers/get-questions-from-items.js +61 -58
- package/dist/features/worksheet/worksheet/worksheet-store/helpers/get-questions-from-items.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-types.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 +13 -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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-progress-summary-styled.js","sources":["../../../../../src/features/trial-session/comps/session-progress-summary/session-progress-summary-styled.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport Check2Icon from '../../../../assets/line-icons/icons/check2';\nimport Bulb2Icon from '../../../../assets/line-icons/icons/bulb2';\nimport Cross2Icon from '../../../../assets/line-icons/icons/cross';\n\nconst Container = styled.div`\n width: 100%;\n height: 100%;\n overflow: auto;\n`;\n\nconst SummaryWrapper = styled(FlexView)`\n padding: 26px 14px 26px 44px;\n border-right: 1px solid ${({ theme }) => theme.colors.BLACK};\n &:not(:last-child) {\n border-bottom: 1px solid ${({ theme }) => theme.colors.BLACK};\n }\n`;\n\nconst HorizontalDottedLine = styled.div(\n ({ theme }) => `\n height: 1px;\n margin: 24px 0px;\n margin-left: 88px;\n background-image: repeating-linear-gradient(\n to right,\n ${theme.colors.WHITE_5} 0px,\n ${theme.colors.WHITE_5} 15px,\n transparent 15px,\n transparent 20px\n );\n &:last-child {\n display: none;\n }\n`,\n);\n\nconst AbsoluteWrapper = styled(FlexView)`\n position: absolute;\n top: 0;\n left: 0;\n`;\n\nconst CheckIcon = styled(Check2Icon)(\n ({ theme }) => `\n border-radius: 14px;\n background-color: ${theme.colors.GREEN_5};\n`,\n);\n\nconst BulbIcon = styled(Bulb2Icon)(\n ({ theme }) => `\n border-radius: 14px;\n background-color: ${theme.colors.YELLOW_5};\n`,\n);\n\nconst CrossIcon = styled(Cross2Icon)(\n ({ theme }) => `\n border-radius: 14px;\n background-color: ${theme.colors.RED_4};\n`,\n);\n\nexport {\n Container,\n SummaryWrapper,\n HorizontalDottedLine,\n CheckIcon,\n BulbIcon,\n CrossIcon,\n AbsoluteWrapper,\n};\n"],"names":["Container","styled","SummaryWrapper","FlexView","theme","HorizontalDottedLine","AbsoluteWrapper","CheckIcon","Check2Icon","BulbIcon","Bulb2Icon","CrossIcon","Cross2Icon"],"mappings":";;;;;AAOA,MAAMA,IAAYC,EAAO;AAAA;AAAA;AAAA;AAAA,GAMnBC,IAAiBD,EAAOE,CAAQ;AAAA;AAAA,4BAEV,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA,+BAE9B,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA,GAI1DC,IAAuBJ,EAAO;AAAA,EAClC,CAAC,EAAE,OAAAG,EAAA,MAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAMXA,EAAM,OAAO,OAAO;AAAA,MACpBA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQ1B,GAEME,IAAkBL,EAAOE,CAAQ;AAAA;AAAA;AAAA;AAAA,GAMjCI,IAAYN,EAAOO,CAAU;AAAA,EACjC,CAAC,EAAE,OAAAJ,EAAA,MAAY;AAAA;AAAA,sBAEKA,EAAM,OAAO,OAAO;AAAA;AAE1C,GAEMK,IAAWR,EAAOS,CAAS;AAAA,EAC/B,CAAC,EAAE,OAAAN,EAAA,MAAY;AAAA;AAAA,sBAEKA,EAAM,OAAO,QAAQ;AAAA;AAE3C,GAEMO,IAAYV,EAAOW,CAAU;AAAA,EACjC,CAAC,EAAE,OAAAR,EAAA,MAAY;AAAA;AAAA,sBAEKA,EAAM,OAAO,KAAK;AAAA;AAExC;"}
|
package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-types.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
var L = /* @__PURE__ */ ((E) => (E.SOLVED_INDEPENDENTLY = "SOLVED_INDEPENDENTLY", E.SOLVED_WITH_HELP = "SOLVED_WITH_HELP", E.COULD_NOT_SOLVE = "COULD_NOT_SOLVE", E))(L || {});
|
|
2
|
+
export {
|
|
3
|
+
L as ETopicStatus
|
|
4
|
+
};
|
|
5
|
+
//# sourceMappingURL=session-progress-summary-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-progress-summary-types.js","sources":["../../../../../src/features/trial-session/comps/session-progress-summary/session-progress-summary-types.ts"],"sourcesContent":["export enum ETopicStatus {\n SOLVED_INDEPENDENTLY = 'SOLVED_INDEPENDENTLY',\n SOLVED_WITH_HELP = 'SOLVED_WITH_HELP',\n COULD_NOT_SOLVE = 'COULD_NOT_SOLVE',\n}\nexport interface ISessionProgressSummary {\n overview: string;\n independent_performance: string;\n intervention_success: string;\n overall_assessment: string;\n default_topic_image_url: string;\n total_problems: number;\n topic_performance: {\n topic_name: string;\n image_url: string;\n subtopics: { subtopic_name: string; status: ETopicStatus; status_text: string }[];\n }[];\n}\n\nexport interface ISessionProgressSummaryProps extends ISessionProgressSummary {\n studentName: string;\n reportSubHeader: string;\n}\n"],"names":["ETopicStatus"],"mappings":"AAAY,IAAAA,sBAAAA,OACVA,EAAA,uBAAuB,wBACvBA,EAAA,mBAAmB,oBACnBA,EAAA,kBAAkB,mBAHRA,IAAAA,KAAA,CAAA,CAAA;"}
|
package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-view.js
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { jsxs as r, jsx as e, Fragment as C } from "react/jsx-runtime";
|
|
2
|
+
import { memo as H, Fragment as L } from "react";
|
|
3
|
+
import n from "../../../ui/layout/flex-view.js";
|
|
4
|
+
import t from "../../../ui/text/text.js";
|
|
5
|
+
import { RIGHT_PANEL_CONTENT_WIDTH as S } from "../../trial-session-constants.js";
|
|
6
|
+
import W from "../../../ui/separator/separator.js";
|
|
7
|
+
import k from "../slide-header/index.js";
|
|
8
|
+
import { CheckIcon as D, BulbIcon as N, CrossIcon as v, Container as y, SummaryWrapper as c, AbsoluteWrapper as l, HorizontalDottedLine as j } from "./session-progress-summary-styled.js";
|
|
9
|
+
import { ETopicStatus as a } from "./session-progress-summary-types.js";
|
|
10
|
+
import P from "../../../ui/image/image.js";
|
|
11
|
+
import O from "../../../../assets/line-icons/icons/hint-fill.js";
|
|
12
|
+
import B from "../session-report/report-404/report-404.js";
|
|
13
|
+
const h = {
|
|
14
|
+
[a.SOLVED_INDEPENDENTLY]: D,
|
|
15
|
+
[a.SOLVED_WITH_HELP]: N,
|
|
16
|
+
[a.COULD_NOT_SOLVE]: v
|
|
17
|
+
}, G = H(($) => {
|
|
18
|
+
const {
|
|
19
|
+
studentName: p,
|
|
20
|
+
reportSubHeader: u,
|
|
21
|
+
overview: f,
|
|
22
|
+
independent_performance: g,
|
|
23
|
+
intervention_success: s,
|
|
24
|
+
overall_assessment: _,
|
|
25
|
+
topic_performance: I = [],
|
|
26
|
+
default_topic_image_url: b,
|
|
27
|
+
total_problems: T
|
|
28
|
+
} = $;
|
|
29
|
+
return /* @__PURE__ */ r(y, { children: [
|
|
30
|
+
/* @__PURE__ */ e(W, { height: 60 }),
|
|
31
|
+
/* @__PURE__ */ e(k, { textToInsert: u }),
|
|
32
|
+
/* @__PURE__ */ e(n, { $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ e(n, { $width: S, children: T ? /* @__PURE__ */ r(L, { children: [
|
|
33
|
+
/* @__PURE__ */ r(n, { $borderColor: "BLACK", $background: "WHITE", $flexDirection: "row", children: [
|
|
34
|
+
/* @__PURE__ */ r(n, { $width: 300, children: [
|
|
35
|
+
/* @__PURE__ */ r(c, { $position: "relative", $background: "WHITE_2", children: [
|
|
36
|
+
/* @__PURE__ */ e(
|
|
37
|
+
l,
|
|
38
|
+
{
|
|
39
|
+
$width: 20,
|
|
40
|
+
$height: 20,
|
|
41
|
+
$justifyContent: "center",
|
|
42
|
+
$alignItems: "center",
|
|
43
|
+
$background: "WHITE_4",
|
|
44
|
+
children: /* @__PURE__ */ e(t, { $renderAs: "ac4-black", color: "BLACK_T_60", children: "1" })
|
|
45
|
+
}
|
|
46
|
+
),
|
|
47
|
+
/* @__PURE__ */ e(t, { $renderAs: "ub2", children: f })
|
|
48
|
+
] }),
|
|
49
|
+
/* @__PURE__ */ r(c, { $position: "relative", $background: "WHITE_2", children: [
|
|
50
|
+
/* @__PURE__ */ e(
|
|
51
|
+
l,
|
|
52
|
+
{
|
|
53
|
+
$width: 20,
|
|
54
|
+
$height: 20,
|
|
55
|
+
$justifyContent: "center",
|
|
56
|
+
$alignItems: "center",
|
|
57
|
+
$background: "WHITE_4",
|
|
58
|
+
children: /* @__PURE__ */ e(t, { $renderAs: "ac4-black", color: "BLACK_T_60", children: "2" })
|
|
59
|
+
}
|
|
60
|
+
),
|
|
61
|
+
/* @__PURE__ */ e(t, { $renderAs: "ub2", children: g })
|
|
62
|
+
] }),
|
|
63
|
+
s ? /* @__PURE__ */ r(c, { $position: "relative", $background: "WHITE_2", children: [
|
|
64
|
+
/* @__PURE__ */ e(
|
|
65
|
+
l,
|
|
66
|
+
{
|
|
67
|
+
$width: 20,
|
|
68
|
+
$height: 20,
|
|
69
|
+
$justifyContent: "center",
|
|
70
|
+
$alignItems: "center",
|
|
71
|
+
$background: "WHITE_4",
|
|
72
|
+
children: /* @__PURE__ */ e(t, { $renderAs: "ac4-black", color: "BLACK_T_60", children: "3" })
|
|
73
|
+
}
|
|
74
|
+
),
|
|
75
|
+
/* @__PURE__ */ e(t, { $renderAs: "ub2", children: s })
|
|
76
|
+
] }) : null,
|
|
77
|
+
/* @__PURE__ */ r(c, { $position: "relative", $background: "WHITE_4", $flex: 1, children: [
|
|
78
|
+
/* @__PURE__ */ e(l, { children: /* @__PURE__ */ e(O, { height: 28, width: 28 }) }),
|
|
79
|
+
/* @__PURE__ */ e(t, { $renderAs: "ub2", children: _ })
|
|
80
|
+
] })
|
|
81
|
+
] }),
|
|
82
|
+
/* @__PURE__ */ e(n, { $flex: 1, $gap: 40, $gutter: 24, children: I.map((i) => {
|
|
83
|
+
const { topic_name: d, image_url: o, subtopics: E } = i;
|
|
84
|
+
return /* @__PURE__ */ r(C, { children: [
|
|
85
|
+
/* @__PURE__ */ e(n, { children: /* @__PURE__ */ r(n, { $flexDirection: "row", $alignItems: "center", $flexGapX: 1, children: [
|
|
86
|
+
/* @__PURE__ */ e(n, { children: /* @__PURE__ */ e(
|
|
87
|
+
P,
|
|
88
|
+
{
|
|
89
|
+
src: o || b,
|
|
90
|
+
borderRadius: 88,
|
|
91
|
+
height: 88,
|
|
92
|
+
width: 88,
|
|
93
|
+
alt: "topic",
|
|
94
|
+
withLoader: !0
|
|
95
|
+
}
|
|
96
|
+
) }),
|
|
97
|
+
/* @__PURE__ */ e(n, { children: /* @__PURE__ */ r(n, { $flexGap: 8, children: [
|
|
98
|
+
/* @__PURE__ */ e(t, { $renderAs: "ab2-bold", children: d }),
|
|
99
|
+
E.map((w) => {
|
|
100
|
+
const { status: A, subtopic_name: m } = w, x = h[A];
|
|
101
|
+
return /* @__PURE__ */ r(
|
|
102
|
+
n,
|
|
103
|
+
{
|
|
104
|
+
$flexDirection: "row",
|
|
105
|
+
$alignItems: "center",
|
|
106
|
+
$flexGapX: 0.5,
|
|
107
|
+
children: [
|
|
108
|
+
/* @__PURE__ */ e(x, { color: "WHITE", height: 14, width: 14 }),
|
|
109
|
+
/* @__PURE__ */ e(t, { $renderAs: "ub3", children: m })
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
m
|
|
113
|
+
);
|
|
114
|
+
})
|
|
115
|
+
] }) })
|
|
116
|
+
] }) }, i.topic_name),
|
|
117
|
+
/* @__PURE__ */ e(j, {})
|
|
118
|
+
] });
|
|
119
|
+
}) })
|
|
120
|
+
] }),
|
|
121
|
+
/* @__PURE__ */ e(n, { $flexDirection: "row", $justifyContent: "end", $flexGapX: 1, $gap: 10, children: Object.keys(a).map((i) => {
|
|
122
|
+
const d = h[i];
|
|
123
|
+
return /* @__PURE__ */ r(n, { $flexDirection: "row", $flexGap: 4, $alignItems: "center", children: [
|
|
124
|
+
/* @__PURE__ */ e(d, { color: "WHITE", height: 14, width: 14 }),
|
|
125
|
+
/* @__PURE__ */ e(t, { $renderAs: "ub3", $color: "BLACK_T_60", children: i.toLocaleLowerCase().split("_").map((o) => o.charAt(0).toUpperCase() + o.slice(1)).join(" ") })
|
|
126
|
+
] }, i);
|
|
127
|
+
}) })
|
|
128
|
+
] }) : /* @__PURE__ */ e(B, { studentName: p }) }) })
|
|
129
|
+
] });
|
|
130
|
+
});
|
|
131
|
+
G.displayName = "SessionProgressSummaryView";
|
|
132
|
+
export {
|
|
133
|
+
G as default
|
|
134
|
+
};
|
|
135
|
+
//# sourceMappingURL=session-progress-summary-view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-progress-summary-view.js","sources":["../../../../../src/features/trial-session/comps/session-progress-summary/session-progress-summary-view.tsx"],"sourcesContent":["import { type FC, Fragment, memo } from 'react';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\nimport { RIGHT_PANEL_CONTENT_WIDTH } from '../../trial-session-constants';\nimport Separator from '../../../ui/separator/separator';\nimport SlideHeader from '../slide-header';\nimport * as Styled from './session-progress-summary-styled';\nimport { ETopicStatus, type ISessionProgressSummaryProps } from './session-progress-summary-types';\nimport Image from '../../../ui/image/image';\nimport HintFillIcon from '../../../../assets/line-icons/icons/hint-fill';\nimport Report404 from '../session-report/report-404/report-404';\n\nconst StatusIconMap = {\n [ETopicStatus.SOLVED_INDEPENDENTLY]: Styled.CheckIcon,\n [ETopicStatus.SOLVED_WITH_HELP]: Styled.BulbIcon,\n [ETopicStatus.COULD_NOT_SOLVE]: Styled.CrossIcon,\n};\n\nconst SessionProgressSummaryView: FC<ISessionProgressSummaryProps> = memo(props => {\n const {\n studentName,\n reportSubHeader,\n overview,\n independent_performance: independentPerformance,\n intervention_success: interventionSuccess,\n overall_assessment: overallAssessment,\n topic_performance: topicPerformance = [],\n default_topic_image_url: defaultTopicImage,\n total_problems: totalProblems,\n } = props;\n\n return (\n <Styled.Container>\n <Separator height={60} />\n <SlideHeader textToInsert={reportSubHeader} />\n <FlexView $justifyContent=\"center\" $alignItems=\"center\">\n <FlexView $width={RIGHT_PANEL_CONTENT_WIDTH}>\n {totalProblems ? (\n <Fragment>\n <FlexView $borderColor=\"BLACK\" $background=\"WHITE\" $flexDirection=\"row\">\n <FlexView $width={300}>\n <Styled.SummaryWrapper $position=\"relative\" $background=\"WHITE_2\">\n <Styled.AbsoluteWrapper\n $width={20}\n $height={20}\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $background=\"WHITE_4\"\n >\n <Text $renderAs=\"ac4-black\" color=\"BLACK_T_60\">\n 1\n </Text>\n </Styled.AbsoluteWrapper>\n <Text $renderAs=\"ub2\">{overview}</Text>\n </Styled.SummaryWrapper>\n <Styled.SummaryWrapper $position=\"relative\" $background=\"WHITE_2\">\n <Styled.AbsoluteWrapper\n $width={20}\n $height={20}\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $background=\"WHITE_4\"\n >\n <Text $renderAs=\"ac4-black\" color=\"BLACK_T_60\">\n 2\n </Text>\n </Styled.AbsoluteWrapper>\n <Text $renderAs=\"ub2\">{independentPerformance}</Text>\n </Styled.SummaryWrapper>\n {interventionSuccess ? (\n <Styled.SummaryWrapper $position=\"relative\" $background=\"WHITE_2\">\n <Styled.AbsoluteWrapper\n $width={20}\n $height={20}\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $background=\"WHITE_4\"\n >\n <Text $renderAs=\"ac4-black\" color=\"BLACK_T_60\">\n 3\n </Text>\n </Styled.AbsoluteWrapper>\n <Text $renderAs=\"ub2\">{interventionSuccess}</Text>\n </Styled.SummaryWrapper>\n ) : null}\n <Styled.SummaryWrapper $position=\"relative\" $background=\"WHITE_4\" $flex={1}>\n <Styled.AbsoluteWrapper>\n <HintFillIcon height={28} width={28} />\n </Styled.AbsoluteWrapper>\n <Text $renderAs=\"ub2\">{overallAssessment}</Text>\n </Styled.SummaryWrapper>\n </FlexView>\n <FlexView $flex={1} $gap={40} $gutter={24}>\n {topicPerformance.map(topic => {\n const { topic_name: topicName, image_url: topicImage, subtopics } = topic;\n\n return (\n <>\n <FlexView key={topic.topic_name}>\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $flexGapX={1}>\n <FlexView>\n <Image\n src={topicImage || defaultTopicImage}\n borderRadius={88}\n height={88}\n width={88}\n alt=\"topic\"\n withLoader\n />\n </FlexView>\n <FlexView>\n <FlexView $flexGap={8}>\n <Text $renderAs=\"ab2-bold\">{topicName}</Text>\n {subtopics.map(subtopic => {\n const { status, subtopic_name: subtopicName } = subtopic;\n\n const IconToRender = StatusIconMap[status as ETopicStatus];\n\n return (\n <FlexView\n key={subtopicName}\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $flexGapX={0.5}\n >\n <IconToRender color=\"WHITE\" height={14} width={14} />\n <Text $renderAs=\"ub3\">{subtopicName}</Text>\n </FlexView>\n );\n })}\n </FlexView>\n </FlexView>\n </FlexView>\n </FlexView>\n <Styled.HorizontalDottedLine />\n </>\n );\n })}\n </FlexView>\n </FlexView>\n <FlexView $flexDirection=\"row\" $justifyContent=\"end\" $flexGapX={1} $gap={10}>\n {Object.keys(ETopicStatus).map(status => {\n const IconToRender = StatusIconMap[status as ETopicStatus];\n\n return (\n <FlexView key={status} $flexDirection=\"row\" $flexGap={4} $alignItems=\"center\">\n <IconToRender color=\"WHITE\" height={14} width={14} />\n <Text $renderAs=\"ub3\" $color=\"BLACK_T_60\">\n {status\n .toLocaleLowerCase()\n .split('_')\n .map(word => word.charAt(0).toUpperCase() + word.slice(1))\n .join(' ')}\n </Text>\n </FlexView>\n );\n })}\n </FlexView>\n </Fragment>\n ) : (\n <Report404 studentName={studentName} />\n )}\n </FlexView>\n </FlexView>\n </Styled.Container>\n );\n});\n\nSessionProgressSummaryView.displayName = 'SessionProgressSummaryView';\n\nexport default SessionProgressSummaryView;\n"],"names":["StatusIconMap","ETopicStatus","Styled.CheckIcon","Styled.BulbIcon","Styled.CrossIcon","SessionProgressSummaryView","memo","props","studentName","reportSubHeader","overview","independentPerformance","interventionSuccess","overallAssessment","topicPerformance","defaultTopicImage","totalProblems","jsxs","Styled.Container","jsx","Separator","SlideHeader","FlexView","RIGHT_PANEL_CONTENT_WIDTH","Fragment","Styled.SummaryWrapper","Styled.AbsoluteWrapper","Text","HintFillIcon","topic","topicName","topicImage","subtopics","Image","subtopic","status","subtopicName","IconToRender","Styled.HorizontalDottedLine","word","Report404"],"mappings":";;;;;;;;;;;;AAaA,MAAMA,IAAgB;AAAA,EACpB,CAACC,EAAa,oBAAoB,GAAGC;AAAAA,EACrC,CAACD,EAAa,gBAAgB,GAAGE;AAAAA,EACjC,CAACF,EAAa,eAAe,GAAGG;AAClC,GAEMC,IAA+DC,EAAK,CAASC,MAAA;AAC3E,QAAA;AAAA,IACJ,aAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,yBAAyBC;AAAA,IACzB,sBAAsBC;AAAA,IACtB,oBAAoBC;AAAA,IACpB,mBAAmBC,IAAmB,CAAC;AAAA,IACvC,yBAAyBC;AAAA,IACzB,gBAAgBC;AAAA,EACd,IAAAT;AAGF,SAAA,gBAAAU,EAACC,GAAA,EACC,UAAA;AAAA,IAAC,gBAAAC,EAAAC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AAAA,EAAK,MAAM,CAAC,CAAC,EACxD,KAAK,GAAG,EACb,CAAA;AAAA,QAAA,EAAA,GARaJ,CASf;AAAA,MAEH,CAAA,GACH;AAAA,IAAA,EACF,CAAA,IAEA,gBAAAhB,EAACqB,GAAU,EAAA,aAAAhC,EAA0B,CAAA,EAEzC,CAAA,GACF;AAAA,EACF,EAAA,CAAA;AAEJ,CAAC;AAEDH,EAA2B,cAAc;"}
|
package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary.js
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { memo as R, useMemo as h, useCallback as y, useEffect as T } from "react";
|
|
3
|
+
import { useGetSessionProgressReports as A } from "../../api/trial-session-report.js";
|
|
4
|
+
import { useTrialSessionContext as L } from "../../context/use-trial-session-context.js";
|
|
5
|
+
import b from "../../../ui/loader/app-loader/app-loader.js";
|
|
6
|
+
import _ from "../../../ui/error/error.js";
|
|
7
|
+
import $ from "./session-progress-summary-view.js";
|
|
8
|
+
import { getPreferencesFromConfig as v } from "../../../milestone/create/milestone-create-helpers.js";
|
|
9
|
+
import { COURSE_STREAMS as x, PREFERENCE_CATEGORY as F } from "../../../milestone/constants.js";
|
|
10
|
+
import { studentLevels as G } from "../student-feedback/student-feedback-constants.js";
|
|
11
|
+
import { convertToTitleCase as M } from "../../../../helpers/label-text.js";
|
|
12
|
+
const N = R(() => {
|
|
13
|
+
const { formData: S, milestoneConfig: a } = L(), {
|
|
14
|
+
grade: r,
|
|
15
|
+
name: o = "",
|
|
16
|
+
course: s = "geometry",
|
|
17
|
+
attemptId: t = "",
|
|
18
|
+
personalizedLevel: e
|
|
19
|
+
} = S || {}, l = h(() => {
|
|
20
|
+
var u, g, d;
|
|
21
|
+
const P = ((g = (u = v(a, {
|
|
22
|
+
grade: r ?? "",
|
|
23
|
+
courseStream: x.MATH,
|
|
24
|
+
preferenceCategory: F.LEVEL
|
|
25
|
+
})) == null ? void 0 : u.find((i) => i.id === (e == null ? void 0 : e[0]))) == null ? void 0 : g.label) ?? "";
|
|
26
|
+
return `Grade ${r} ${s ? ` • ${s.split("_").map((i) => M(i)).join(" ")}` : ""} • ${((d = G[P.toLowerCase()]) == null ? void 0 : d.title) ?? ""}`;
|
|
27
|
+
}, [s, r, a, e]), {
|
|
28
|
+
data: f,
|
|
29
|
+
get: p,
|
|
30
|
+
isProcessed: c,
|
|
31
|
+
isProcessing: E,
|
|
32
|
+
isProcessingFailed: C
|
|
33
|
+
} = A(), m = y(() => {
|
|
34
|
+
t && !c && p(t, {
|
|
35
|
+
student_name: o ?? ""
|
|
36
|
+
});
|
|
37
|
+
}, [t, p, c, o]);
|
|
38
|
+
return T(() => {
|
|
39
|
+
m();
|
|
40
|
+
}, [m]), C ? /* @__PURE__ */ n(_, { height: "70vh", onTryAgain: m }) : E || !f ? /* @__PURE__ */ n(b, { height: "100vh" }) : /* @__PURE__ */ n(
|
|
41
|
+
$,
|
|
42
|
+
{
|
|
43
|
+
studentName: o,
|
|
44
|
+
reportSubHeader: l,
|
|
45
|
+
...f
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
});
|
|
49
|
+
N.displayName = "SessionProgressSummary";
|
|
50
|
+
export {
|
|
51
|
+
N as default
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=session-progress-summary.js.map
|
package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-progress-summary.js","sources":["../../../../../src/features/trial-session/comps/session-progress-summary/session-progress-summary.tsx"],"sourcesContent":["import { memo, useCallback, useEffect, useMemo } from 'react';\n\nimport { useGetSessionProgressReports } from '../../api/trial-session-report';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport AppLoader from '../../../ui/loader/app-loader/app-loader';\nimport Error from '../../../ui/error/error';\nimport SessionProgressSummaryView from './session-progress-summary-view';\nimport { getPreferencesFromConfig } from '../../../milestone/create/milestone-create-helpers';\nimport { COURSE_STREAMS, PREFERENCE_CATEGORY } from '../../../milestone/constants';\nimport { studentLevels } from '../student-feedback/student-feedback-constants';\nimport { convertToTitleCase } from '../../../../helpers/label-text';\n\nconst SessionProgressSummary = memo(() => {\n const { formData, milestoneConfig } = useTrialSessionContext();\n const {\n grade,\n name = '',\n course = 'geometry',\n attemptId = '',\n personalizedLevel,\n } = formData || {};\n\n const reportSubHeader = 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 `Grade ${grade} ${\n course\n ? ` • ${course\n .split('_')\n .map(txt => convertToTitleCase(txt))\n .join(' ')}`\n : ''\n } • ${studentLevels[selectedLabel.toLowerCase()]?.title ?? ''}`;\n }, [course, grade, milestoneConfig, personalizedLevel]);\n\n const {\n data: sessionReports,\n get: getSessionReports,\n isProcessed,\n isProcessing,\n isProcessingFailed,\n } = useGetSessionProgressReports();\n\n const fetchData = useCallback(() => {\n if (attemptId && !isProcessed) {\n getSessionReports(attemptId, {\n student_name: name ?? '',\n });\n }\n }, [attemptId, getSessionReports, isProcessed, name]);\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 <SessionProgressSummaryView\n studentName={name}\n reportSubHeader={reportSubHeader}\n {...sessionReports}\n />\n );\n});\n\nSessionProgressSummary.displayName = 'SessionProgressSummary';\n\nexport default SessionProgressSummary;\n"],"names":["SessionProgressSummary","memo","formData","milestoneConfig","useTrialSessionContext","grade","name","course","attemptId","personalizedLevel","reportSubHeader","useMemo","selectedLabel","_b","_a","getPreferencesFromConfig","COURSE_STREAMS","PREFERENCE_CATEGORY","sessionLevel","txt","convertToTitleCase","_c","studentLevels","sessionReports","getSessionReports","isProcessed","isProcessing","isProcessingFailed","useGetSessionProgressReports","fetchData","useCallback","useEffect","jsx","Error","AppLoader","SessionProgressSummaryView"],"mappings":";;;;;;;;;;;AAYM,MAAAA,IAAyBC,EAAK,MAAM;AACxC,QAAM,EAAE,UAAAC,GAAU,iBAAAC,EAAgB,IAAIC,EAAuB,GACvD;AAAA,IACJ,OAAAC;AAAA,IACA,MAAAC,IAAO;AAAA,IACP,QAAAC,IAAS;AAAA,IACT,WAAAC,IAAY;AAAA,IACZ,mBAAAC;AAAA,EAAA,IACEP,KAAY,CAAA,GAEVQ,IAAkBC,EAAQ,MAAM;;AAC9B,UAAAC,MACJC,KAAAC,IAAAC,EAAyBZ,GAAiB;AAAA,MACxC,OAAOE,KAAS;AAAA,MAChB,cAAcW,EAAe;AAAA,MAC7B,oBAAoBC,EAAoB;AAAA,IACzC,CAAA,MAJD,gBAAAH,EAII,KAAK,CAAgBI,MAAAA,EAAa,QAAOT,KAAA,gBAAAA,EAAoB,SAJjE,gBAAAI,EAIsE,UAAS;AAE1E,WAAA,SAASR,CAAK,KACnBE,IACI,MAAMA,EACH,MAAM,GAAG,EACT,IAAI,CAAAY,MAAOC,EAAmBD,CAAG,CAAC,EAClC,KAAK,GAAG,CAAC,KACZ,EACN,UAAQE,IAAAC,EAAcV,EAAc,YAAa,CAAA,MAAzC,gBAAAS,EAA4C,UAAS,EAAE;AAAA,KAC9D,CAACd,GAAQF,GAAOF,GAAiBM,CAAiB,CAAC,GAEhD;AAAA,IACJ,MAAMc;AAAA,IACN,KAAKC;AAAA,IACL,aAAAC;AAAA,IACA,cAAAC;AAAA,IACA,oBAAAC;AAAA,MACEC,EAA6B,GAE3BC,IAAYC,EAAY,MAAM;AAC9B,IAAAtB,KAAa,CAACiB,KAChBD,EAAkBhB,GAAW;AAAA,MAC3B,cAAcF,KAAQ;AAAA,IAAA,CACvB;AAAA,KAEF,CAACE,GAAWgB,GAAmBC,GAAanB,CAAI,CAAC;AAMpD,SAJAyB,EAAU,MAAM;AACJ,IAAAF;EAAA,GACT,CAACA,CAAS,CAAC,GAEVF,IACM,gBAAAK,EAAAC,GAAA,EAAM,QAAO,QAAO,YAAYJ,EAAW,CAAA,IAGjDH,KAAgB,CAACH,IACZ,gBAAAS,EAACE,GAAU,EAAA,QAAO,QAAQ,CAAA,IAIjC,gBAAAF;AAAA,IAACG;AAAA,IAAA;AAAA,MACC,aAAa7B;AAAA,MACb,iBAAAI;AAAA,MACC,GAAGa;AAAA,IAAA;AAAA,EAAA;AAGV,CAAC;AAEDvB,EAAuB,cAAc;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as r, jsx as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { ILLUSTRATIONS as
|
|
4
|
-
import
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { memo as i } from "react";
|
|
3
|
+
import { ILLUSTRATIONS as n } from "../../../../../assets/illustrations/illustrations.js";
|
|
4
|
+
import m from "../../../../ui/image/image.js";
|
|
5
5
|
import a from "../../../../ui/layout/flex-view.js";
|
|
6
|
-
import
|
|
7
|
-
const
|
|
8
|
-
const { studentName: o } =
|
|
6
|
+
import s from "../../../../ui/text/text.js";
|
|
7
|
+
const d = i((t) => {
|
|
8
|
+
const { studentName: o } = t;
|
|
9
9
|
return /* @__PURE__ */ r(
|
|
10
10
|
a,
|
|
11
11
|
{
|
|
@@ -13,22 +13,21 @@ const s = m((e) => {
|
|
|
13
13
|
$borderColor: "BLACK_1",
|
|
14
14
|
$justifyContent: "center",
|
|
15
15
|
$alignItems: "center",
|
|
16
|
-
$background: "
|
|
16
|
+
$background: "WHITE_4",
|
|
17
17
|
children: [
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */ r(
|
|
20
|
-
"
|
|
18
|
+
/* @__PURE__ */ e(m, { src: n.REPORT_404, height: 152, width: 152, withLoader: !0, alt: "report-404" }),
|
|
19
|
+
/* @__PURE__ */ r(s, { $renderAs: "ab1-bold", $color: "BLACK_T_60", $align: "center", children: [
|
|
20
|
+
"We can’t share any insights since",
|
|
21
|
+
/* @__PURE__ */ e("br", {}),
|
|
21
22
|
o,
|
|
22
|
-
" didn’t attempt"
|
|
23
|
-
/* @__PURE__ */ t("br", {}),
|
|
24
|
-
"any problems."
|
|
23
|
+
" didn’t attempt any problems"
|
|
25
24
|
] })
|
|
26
25
|
]
|
|
27
26
|
}
|
|
28
27
|
);
|
|
29
28
|
});
|
|
30
|
-
|
|
29
|
+
d.displayName = "Report404";
|
|
31
30
|
export {
|
|
32
|
-
|
|
31
|
+
d as default
|
|
33
32
|
};
|
|
34
33
|
//# sourceMappingURL=report-404.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report-404.js","sources":["../../../../../../src/features/trial-session/comps/session-report/report-404/report-404.tsx"],"sourcesContent":["import { memo, type FC } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../../assets/illustrations/illustrations';\nimport Image from '../../../../ui/image/image';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Text from '../../../../ui/text/text';\n\ninterface IReport404Props {\n studentName: string;\n}\n\nconst Report404: FC<IReport404Props> = memo(props => {\n const { studentName } = props;\n\n return (\n <FlexView\n $height={400}\n $borderColor=\"BLACK_1\"\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $background=\"
|
|
1
|
+
{"version":3,"file":"report-404.js","sources":["../../../../../../src/features/trial-session/comps/session-report/report-404/report-404.tsx"],"sourcesContent":["import { memo, type FC } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../../assets/illustrations/illustrations';\nimport Image from '../../../../ui/image/image';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Text from '../../../../ui/text/text';\n\ninterface IReport404Props {\n studentName: string;\n}\n\nconst Report404: FC<IReport404Props> = memo(props => {\n const { studentName } = props;\n\n return (\n <FlexView\n $height={400}\n $borderColor=\"BLACK_1\"\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $background=\"WHITE_4\"\n >\n <Image src={ILLUSTRATIONS.REPORT_404} height={152} width={152} withLoader alt=\"report-404\" />\n <Text $renderAs=\"ab1-bold\" $color=\"BLACK_T_60\" $align=\"center\">\n We can’t share any insights since\n <br />\n {studentName} didn’t attempt any problems\n </Text>\n </FlexView>\n );\n});\n\nReport404.displayName = 'Report404';\n\nexport default Report404;\n"],"names":["Report404","memo","props","studentName","jsxs","FlexView","jsx","Image","ILLUSTRATIONS","Text"],"mappings":";;;;;;AAWM,MAAAA,IAAiCC,EAAK,CAASC,MAAA;AAC7C,QAAA,EAAE,aAAAC,EAAgB,IAAAD;AAGtB,SAAA,gBAAAE;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,SAAS;AAAA,MACT,cAAa;AAAA,MACb,iBAAgB;AAAA,MAChB,aAAY;AAAA,MACZ,aAAY;AAAA,MAEZ,UAAA;AAAA,QAAC,gBAAAC,EAAAC,GAAA,EAAM,KAAKC,EAAc,YAAY,QAAQ,KAAK,OAAO,KAAK,YAAU,IAAC,KAAI,aAAa,CAAA;AAAA,0BAC1FC,GAAK,EAAA,WAAU,YAAW,QAAO,cAAa,QAAO,UAAS,UAAA;AAAA,UAAA;AAAA,4BAE5D,MAAG,EAAA;AAAA,UACHN;AAAA,UAAY;AAAA,QAAA,GACf;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN,CAAC;AAEDH,EAAU,cAAc;"}
|
|
@@ -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,EAA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AAI;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
|