@cuemath/leap 3.5.64 → 3.5.66-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.
Files changed (176) hide show
  1. package/dist/features/cue-canvas/bottombar/homework-controls.js.map +1 -1
  2. package/dist/features/cue-canvas/sidebar/sidebar.js +4 -4
  3. package/dist/features/cue-canvas/sidebar/sidebar.js.map +1 -1
  4. package/dist/features/cue-canvas/toolbar/toolbar.js +21 -17
  5. package/dist/features/cue-canvas/toolbar/toolbar.js.map +1 -1
  6. package/dist/features/cue-canvas/toolbar/whiteboard-toolbar.js +23 -13
  7. package/dist/features/cue-canvas/toolbar/whiteboard-toolbar.js.map +1 -1
  8. package/dist/features/milestone/create/api/milestone-config.js.map +1 -1
  9. package/dist/features/parent-dashboard/modals/trial-report/trial-report.js +1 -1
  10. package/dist/features/parent-dashboard/modals/trial-report/trial-report.js.map +1 -1
  11. package/dist/features/sheets/constants/sheet.js +1 -0
  12. package/dist/features/sheets/constants/sheet.js.map +1 -1
  13. package/dist/features/timeline/daily-timeline/daily-timeline.js +40 -40
  14. package/dist/features/timeline/daily-timeline/daily-timeline.js.map +1 -1
  15. package/dist/features/timeline/monthly-timeline/monthly-report/monthly-report-types.js +1 -1
  16. package/dist/features/timeline/monthly-timeline/monthly-report/monthly-report-types.js.map +1 -1
  17. package/dist/features/timeline/monthly-timeline/monthly-timeline-styled.js +8 -5
  18. package/dist/features/timeline/monthly-timeline/monthly-timeline-styled.js.map +1 -1
  19. package/dist/features/timeline/monthly-timeline/monthly-timeline.js +35 -35
  20. package/dist/features/timeline/monthly-timeline/monthly-timeline.js.map +1 -1
  21. package/dist/features/trial-session/api/trial-home.js +10 -16
  22. package/dist/features/trial-session/api/trial-home.js.map +1 -1
  23. package/dist/features/trial-session/api/trial-session-report.js +16 -0
  24. package/dist/features/trial-session/api/trial-session-report.js.map +1 -0
  25. package/dist/features/trial-session/api/trial-topics.js +9 -0
  26. package/dist/features/trial-session/api/trial-topics.js.map +1 -0
  27. package/dist/features/trial-session/comps/background-grid/background-grid-utils.js +62 -50
  28. package/dist/features/trial-session/comps/background-grid/background-grid-utils.js.map +1 -1
  29. package/dist/features/trial-session/comps/class-preference/class-preference-styled.js +5 -14
  30. package/dist/features/trial-session/comps/class-preference/class-preference-styled.js.map +1 -1
  31. package/dist/features/trial-session/comps/class-preference/class-preference.js +55 -53
  32. package/dist/features/trial-session/comps/class-preference/class-preference.js.map +1 -1
  33. package/dist/features/trial-session/comps/communication-slide/communication-slide-constants.js +3 -2
  34. package/dist/features/trial-session/comps/communication-slide/communication-slide-constants.js.map +1 -1
  35. package/dist/features/trial-session/comps/confirmation-modal/hooks/use-confirmation-modal.js +27 -27
  36. package/dist/features/trial-session/comps/confirmation-modal/hooks/use-confirmation-modal.js.map +1 -1
  37. package/dist/features/trial-session/comps/learning-session/learning-session-styled.js +19 -18
  38. package/dist/features/trial-session/comps/learning-session/learning-session-styled.js.map +1 -1
  39. package/dist/features/trial-session/comps/learning-session/learning-session.js +34 -43
  40. package/dist/features/trial-session/comps/learning-session/learning-session.js.map +1 -1
  41. package/dist/features/trial-session/comps/navigation-bar/index.js +56 -58
  42. package/dist/features/trial-session/comps/navigation-bar/index.js.map +1 -1
  43. package/dist/features/trial-session/comps/offering-information/offering-information-constants.js +29 -6
  44. package/dist/features/trial-session/comps/offering-information/offering-information-constants.js.map +1 -1
  45. package/dist/features/trial-session/comps/offering-information/offering-information.js +74 -64
  46. package/dist/features/trial-session/comps/offering-information/offering-information.js.map +1 -1
  47. package/dist/features/trial-session/comps/school-goals/school-goals-styled.js +10 -9
  48. package/dist/features/trial-session/comps/school-goals/school-goals-styled.js.map +1 -1
  49. package/dist/features/trial-session/comps/school-goals/school-goals-view.js +40 -39
  50. package/dist/features/trial-session/comps/school-goals/school-goals-view.js.map +1 -1
  51. package/dist/features/trial-session/comps/school-goals/school-goals.js +39 -37
  52. package/dist/features/trial-session/comps/school-goals/school-goals.js.map +1 -1
  53. package/dist/features/trial-session/comps/session-insights/session-insights-styled.js +12 -20
  54. package/dist/features/trial-session/comps/session-insights/session-insights-styled.js.map +1 -1
  55. package/dist/features/trial-session/comps/session-insights/session-insights.js +64 -63
  56. package/dist/features/trial-session/comps/session-insights/session-insights.js.map +1 -1
  57. package/dist/features/trial-session/comps/session-overview/session-overview-styled.js +13 -13
  58. package/dist/features/trial-session/comps/session-overview/session-overview-styled.js.map +1 -1
  59. package/dist/features/trial-session/comps/session-overview/session-overview-utils.js +23 -4
  60. package/dist/features/trial-session/comps/session-overview/session-overview-utils.js.map +1 -1
  61. package/dist/features/trial-session/comps/session-overview/session-overview.js +20 -20
  62. package/dist/features/trial-session/comps/session-overview/session-overview.js.map +1 -1
  63. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-styled.js +61 -0
  64. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-styled.js.map +1 -0
  65. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-types.js +5 -0
  66. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-types.js.map +1 -0
  67. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-view.js +135 -0
  68. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-view.js.map +1 -0
  69. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary.js +53 -0
  70. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary.js.map +1 -0
  71. package/dist/features/trial-session/comps/session-report/report-404/report-404.js +15 -16
  72. package/dist/features/trial-session/comps/session-report/report-404/report-404.js.map +1 -1
  73. package/dist/features/trial-session/comps/session-report/session-report.js +35 -33
  74. package/dist/features/trial-session/comps/session-report/session-report.js.map +1 -1
  75. package/dist/features/trial-session/comps/student-enrichment/student-enrichment-styled.js +9 -16
  76. package/dist/features/trial-session/comps/student-enrichment/student-enrichment-styled.js.map +1 -1
  77. package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js +39 -37
  78. package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js.map +1 -1
  79. package/dist/features/trial-session/comps/student-feedback/student-feedback-styled.js +10 -9
  80. package/dist/features/trial-session/comps/student-feedback/student-feedback-styled.js.map +1 -1
  81. package/dist/features/trial-session/comps/student-info/student-info-constants.js +35 -0
  82. package/dist/features/trial-session/comps/student-info/student-info-constants.js.map +1 -0
  83. package/dist/features/trial-session/comps/student-info/student-info-helpers.js +12 -0
  84. package/dist/features/trial-session/comps/student-info/student-info-helpers.js.map +1 -0
  85. package/dist/features/trial-session/comps/student-info/student-info-styled.js +26 -11
  86. package/dist/features/trial-session/comps/student-info/student-info-styled.js.map +1 -1
  87. package/dist/features/trial-session/comps/student-info/student-info.js +113 -78
  88. package/dist/features/trial-session/comps/student-info/student-info.js.map +1 -1
  89. package/dist/features/trial-session/comps/student-personalization/student-personalization-styled.js +3 -12
  90. package/dist/features/trial-session/comps/student-personalization/student-personalization-styled.js.map +1 -1
  91. package/dist/features/trial-session/comps/student-personalization/student-personalization.js +34 -33
  92. package/dist/features/trial-session/comps/student-personalization/student-personalization.js.map +1 -1
  93. package/dist/features/trial-session/comps/student-profile/student-profile.js +45 -44
  94. package/dist/features/trial-session/comps/student-profile/student-profile.js.map +1 -1
  95. package/dist/features/trial-session/comps/teacher-intro/teacher-intro.js +9 -8
  96. package/dist/features/trial-session/comps/teacher-intro/teacher-intro.js.map +1 -1
  97. package/dist/features/trial-session/comps/test-prep/test-prep-styled.js +11 -19
  98. package/dist/features/trial-session/comps/test-prep/test-prep-styled.js.map +1 -1
  99. package/dist/features/trial-session/comps/test-prep/test-prep.js +31 -29
  100. package/dist/features/trial-session/comps/test-prep/test-prep.js.map +1 -1
  101. package/dist/features/trial-session/comps/topic-selection/topic-selection-styled.js +42 -0
  102. package/dist/features/trial-session/comps/topic-selection/topic-selection-styled.js.map +1 -0
  103. package/dist/features/trial-session/comps/topic-selection/topic-selection.js +84 -0
  104. package/dist/features/trial-session/comps/topic-selection/topic-selection.js.map +1 -0
  105. package/dist/features/trial-session/comps/whiteboard/whiteboard-styled.js +21 -0
  106. package/dist/features/trial-session/comps/whiteboard/whiteboard-styled.js.map +1 -0
  107. package/dist/features/trial-session/comps/whiteboard/whiteboard.js +99 -0
  108. package/dist/features/trial-session/comps/whiteboard/whiteboard.js.map +1 -0
  109. package/dist/features/trial-session/comps/worksheet/worksheet.js +35 -33
  110. package/dist/features/trial-session/comps/worksheet/worksheet.js.map +1 -1
  111. package/dist/features/trial-session/context/trial-session-context.js +2 -0
  112. package/dist/features/trial-session/context/trial-session-context.js.map +1 -1
  113. package/dist/features/trial-session/helper.js +70 -64
  114. package/dist/features/trial-session/helper.js.map +1 -1
  115. package/dist/features/trial-session/hooks/use-trial-session-navigation.js +190 -158
  116. package/dist/features/trial-session/hooks/use-trial-session-navigation.js.map +1 -1
  117. package/dist/features/trial-session/right-panel/right-panel-styled.js +8 -8
  118. package/dist/features/trial-session/right-panel/right-panel-styled.js.map +1 -1
  119. package/dist/features/trial-session/right-panel/slide-components-map.js +42 -36
  120. package/dist/features/trial-session/right-panel/slide-components-map.js.map +1 -1
  121. package/dist/features/trial-session/trial-session-constants.js +22 -18
  122. package/dist/features/trial-session/trial-session-constants.js.map +1 -1
  123. package/dist/features/trial-session/trial-session-types.js.map +1 -1
  124. package/dist/features/trial-session/trial-session-view.js +82 -77
  125. package/dist/features/trial-session/trial-session-view.js.map +1 -1
  126. package/dist/features/trial-session/trial-session.js +38 -38
  127. package/dist/features/trial-session/trial-session.js.map +1 -1
  128. package/dist/features/ui/inputs/checkbox-input/checkbox-input.js +21 -21
  129. package/dist/features/ui/inputs/checkbox-input/checkbox-input.js.map +1 -1
  130. package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js +12 -12
  131. package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js.map +1 -1
  132. package/dist/features/ui/theme/clrs.js +1 -0
  133. package/dist/features/ui/theme/clrs.js.map +1 -1
  134. package/dist/features/worksheet/worksheet/mocks/activity.js +6 -0
  135. package/dist/features/worksheet/worksheet/mocks/activity.js.map +1 -0
  136. package/dist/features/worksheet/worksheet/mocks/signed-requests.js +5 -0
  137. package/dist/features/worksheet/worksheet/mocks/signed-requests.js.map +1 -0
  138. package/dist/features/worksheet/worksheet/stories/use-canvas-sync-broker-story.js +57 -0
  139. package/dist/features/worksheet/worksheet/stories/use-canvas-sync-broker-story.js.map +1 -0
  140. package/dist/features/worksheet/worksheet/stories/worksheet-story-container.js +263 -0
  141. package/dist/features/worksheet/worksheet/stories/worksheet-story-container.js.map +1 -0
  142. package/dist/features/worksheet/worksheet/stories/worksheet-student.js +177 -0
  143. package/dist/features/worksheet/worksheet/stories/worksheet-student.js.map +1 -0
  144. package/dist/features/worksheet/worksheet/stories/worksheet-teacher.js +268 -0
  145. package/dist/features/worksheet/worksheet/stories/worksheet-teacher.js.map +1 -0
  146. package/dist/features/worksheet/worksheet/worksheet-behavior-helper.js +51 -32
  147. package/dist/features/worksheet/worksheet/worksheet-behavior-helper.js.map +1 -1
  148. package/dist/features/worksheet/worksheet/worksheet-helpers.js +38 -37
  149. package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
  150. package/dist/features/worksheet/worksheet/worksheet-store/helpers/get-computed-properties.js +36 -35
  151. package/dist/features/worksheet/worksheet/worksheet-store/helpers/get-computed-properties.js.map +1 -1
  152. package/dist/features/worksheet/worksheet/worksheet-store/helpers/get-questions-from-items.js +61 -58
  153. package/dist/features/worksheet/worksheet/worksheet-store/helpers/get-questions-from-items.js.map +1 -1
  154. package/dist/features/worksheet/worksheet/worksheet-types.js.map +1 -1
  155. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js +32 -30
  156. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
  157. package/dist/index.d.ts +12 -6
  158. package/dist/index.js +148 -150
  159. package/dist/index.js.map +1 -1
  160. package/dist/node_modules/uuid/dist/esm-browser/regex.js +5 -0
  161. package/dist/node_modules/uuid/dist/esm-browser/regex.js.map +1 -0
  162. package/dist/node_modules/uuid/dist/esm-browser/rng.js +2 -3
  163. package/dist/node_modules/uuid/dist/esm-browser/rng.js.map +1 -1
  164. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +10 -6
  165. package/dist/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -1
  166. package/dist/node_modules/uuid/dist/esm-browser/v4.js +9 -12
  167. package/dist/node_modules/uuid/dist/esm-browser/v4.js.map +1 -1
  168. package/dist/node_modules/uuid/dist/esm-browser/validate.js +8 -0
  169. package/dist/node_modules/uuid/dist/esm-browser/validate.js.map +1 -0
  170. package/dist/types/models/worksheet.js +1 -1
  171. package/dist/types/models/worksheet.js.map +1 -1
  172. package/package.json +1 -1
  173. package/dist/features/sheets/utils/is-v3-worksheet.js +0 -55
  174. package/dist/features/sheets/utils/is-v3-worksheet.js.map +0 -1
  175. package/dist/node_modules/uuid/dist/esm-browser/native.js +0 -7
  176. package/dist/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
@@ -1,86 +1,121 @@
1
- import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
- import { memo as x, useCallback as t, useEffect as B } from "react";
3
- import { ILLUSTRATIONS as E } from "../../../../assets/illustrations/illustrations.js";
4
- import { GOAL_CATEGORY as G } from "../../../milestone/constants.js";
5
- import { getCategorizedCurriculumStandards as O } from "../../../milestone/create/comps/class-details-step/class-details-utils.js";
6
- import { getGradesFromConfig as U } from "../../../milestone/create/milestone-create-helpers.js";
7
- import $ from "../../../ui/image/image.js";
8
- import D from "../../../ui/inputs/searchable-select-input/searchable-select-input.js";
9
- import H from "../../../ui/inputs/select-input/select-input.js";
10
- import W from "../../../ui/inputs/text-input/text-input.js";
11
- import k from "../../../ui/separator/separator.js";
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
+ import { memo as L, useCallback as s, useEffect as w } from "react";
3
+ import { getGradesFromConfig as y } from "../../../milestone/create/milestone-create-helpers.js";
4
+ import A from "../../../ui/image/image.js";
5
+ import p from "../../../ui/inputs/select-input/select-input.js";
6
+ import S from "../../../ui/inputs/text-input/text-input.js";
7
+ import _ from "../../../ui/separator/separator.js";
12
8
  import { useTrialSessionContext as v } from "../../context/use-trial-session-context.js";
13
- import R from "../slide-header/index.js";
14
- import { Container as j, StudentInfoWrapper as w, ImageWrapper as F, InformationWrapper as K } from "./student-info-styled.js";
15
- const ae = x(function() {
16
- const { formData: c, milestoneConfig: m, updateSlideConfig: a, updateButtonState: s, trialHomeData: f } = v(), { name: d, grade: n, curriculum: l } = c || {}, g = U(m), { demo_info: h, student: C } = f, { enrollment_type: S } = C || {}, { stream: I, region_data: L } = h || {}, { opportunity_country: b = "US" } = L || {}, _ = O(m, {
17
- countryCode: b,
18
- grade: n ?? "",
19
- goalCategory: G.SCHOOL_SUCCESS,
20
- courseStream: I,
21
- enrollmentType: S
22
- }), u = !!(d && n && l), o = t(
23
- (e, p) => {
24
- a(e === "grade" ? { [e]: p, goals: [] } : { [e]: p });
9
+ import N from "../slide-header/index.js";
10
+ import { AbsoluteImage as B, MetaTextWrapper as E } from "./student-info-styled.js";
11
+ import i from "../../../ui/layout/flex-view.js";
12
+ import { getDummyProfileImage as G } from "../student-profile/student-profile-utils.js";
13
+ import { RIGHT_PANEL_CONTENT_WIDTH as P } from "../../trial-session-constants.js";
14
+ import { getCourseOptions as k } from "./student-info-helpers.js";
15
+ const U = L(function() {
16
+ const { formData: g, milestoneConfig: h, updateSlideConfig: r, updateButtonState: m } = v(), { name: l, grade: o, course: d, studentProfile: f, numberInNameError: c } = g || {}, { dummyProfileImageIndex: C } = f || {}, b = y(h), I = G(C), a = k(Number(o)), u = !!(!(l && o && a.length > 0) || d), $ = s(
17
+ (t) => {
18
+ r({
19
+ name: t.target.value,
20
+ numberInNameError: !1
21
+ });
25
22
  },
26
- [a]
27
- ), A = t((e) => o("name", e.target.value), [o]), T = t(
28
- (e) => o("grade", e),
29
- [o]
30
- ), y = t(
31
- (e) => o("curriculum", e),
32
- [o]
23
+ [r]
24
+ ), x = s(
25
+ (t) => {
26
+ r({ grade: t, course: "" });
27
+ },
28
+ [r]
29
+ ), T = s(
30
+ (t) => {
31
+ r({ course: t });
32
+ },
33
+ [r]
33
34
  );
34
- return B(() => {
35
- s("right", { isDisabled: !u, isLoading: !1 });
36
- }, [u, s]), /* @__PURE__ */ i(j, { children: [
37
- /* @__PURE__ */ r(k, { height: 60 }),
38
- /* @__PURE__ */ r(R, {}),
39
- /* @__PURE__ */ i(w, { $background: "BLUE_4", $borderColor: "BLACK_T_87", children: [
40
- /* @__PURE__ */ r(F, { children: /* @__PURE__ */ r($, { withLoader: !1, src: E.BLUE_CLIP, width: 261, height: 31 }) }),
41
- /* @__PURE__ */ i(K, { $flexGapX: 2.75, $background: "WHITE_1", $borderColor: "BLACK_T_87", children: [
42
- /* @__PURE__ */ r(
43
- W,
44
- {
45
- renderAs: "primary",
46
- label: "Student name",
47
- value: d,
48
- type: "text",
49
- name: "name",
50
- shape: "borderLess",
51
- onChange: A
52
- }
53
- ),
54
- /* @__PURE__ */ r(
55
- D,
56
- {
57
- renderAs: "primary",
58
- label: "Grade",
59
- value: n,
60
- options: g,
61
- shape: "borderLess",
62
- onChange: T,
63
- theme: "dark"
64
- }
65
- ),
66
- /* @__PURE__ */ r(
67
- H,
68
- {
69
- renderAs: "primary",
70
- label: "Curriculum",
71
- value: l,
72
- options: _,
73
- shape: "borderLess",
74
- renderOptionsAs: "section-list",
75
- theme: "dark",
76
- onChange: y
77
- }
78
- )
79
- ] })
80
- ] })
35
+ return w(() => {
36
+ m("right", { isDisabled: !u, isLoading: !1 });
37
+ }, [u, m]), /* @__PURE__ */ n(i, { $justifyContent: "center", $alignItems: "center", children: [
38
+ /* @__PURE__ */ e(_, { height: 60 }),
39
+ /* @__PURE__ */ e(N, { marginBottom: 100 }),
40
+ /* @__PURE__ */ n(
41
+ i,
42
+ {
43
+ $position: "relative",
44
+ $width: P - 100,
45
+ $flexDirection: "row",
46
+ $alignItems: "center",
47
+ $flexGapX: 2,
48
+ $gutterX: 1.5,
49
+ $gapX: 3.125,
50
+ $background: "WHITE_2",
51
+ $borderColor: "BLACK_T_87",
52
+ $borderRadiusX: 0.5,
53
+ children: [
54
+ /* @__PURE__ */ e(B, {}),
55
+ /* @__PURE__ */ e(A, { withLoader: !0, height: 200, width: 200, src: I, borderColor: "BLACK_1" }),
56
+ /* @__PURE__ */ n(i, { $flexGap: 16, children: [
57
+ /* @__PURE__ */ e(
58
+ S,
59
+ {
60
+ renderAs: "primary",
61
+ label: "Name",
62
+ placeholder: "Student name",
63
+ value: l,
64
+ type: "text",
65
+ name: "name",
66
+ shape: "borderLess",
67
+ onChange: $,
68
+ width: "216px",
69
+ isTransparent: !0,
70
+ stickyLabel: !0,
71
+ errorMessage: c ? "Please enter a valid name" : void 0
72
+ }
73
+ ),
74
+ /* @__PURE__ */ e(
75
+ p,
76
+ {
77
+ renderAs: "primary",
78
+ label: "Grade",
79
+ value: o,
80
+ options: b,
81
+ shape: "borderLess",
82
+ onChange: x,
83
+ theme: "dark",
84
+ widthX: 10,
85
+ isTransparent: !0
86
+ }
87
+ ),
88
+ a.length > 0 ? /* @__PURE__ */ e(
89
+ p,
90
+ {
91
+ width: "216px",
92
+ renderAs: "primary",
93
+ label: "Course",
94
+ value: d,
95
+ options: a,
96
+ shape: "borderLess",
97
+ onChange: T,
98
+ theme: "dark",
99
+ isTransparent: !0
100
+ }
101
+ ) : null
102
+ ] }),
103
+ /* @__PURE__ */ e(
104
+ E,
105
+ {
106
+ $renderAs: "ub3-bold",
107
+ color: "BLACK_T_60",
108
+ $align: "right",
109
+ $width: "100%",
110
+ children: "We’ll solve questions from the selected grade"
111
+ }
112
+ )
113
+ ]
114
+ }
115
+ )
81
116
  ] });
82
117
  });
83
118
  export {
84
- ae as default
119
+ U as default
85
120
  };
86
121
  //# sourceMappingURL=student-info.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"student-info.js","sources":["../../../../../src/features/trial-session/comps/student-info/student-info.tsx"],"sourcesContent":["import { memo, useCallback, useEffect, type InputHTMLAttributes } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport { GOAL_CATEGORY } from '../../../milestone/constants';\nimport { getCategorizedCurriculumStandards } from '../../../milestone/create/comps/class-details-step/class-details-utils';\nimport { getGradesFromConfig } from '../../../milestone/create/milestone-create-helpers';\nimport Image from '../../../ui/image/image';\nimport SearchableSelectInput from '../../../ui/inputs/searchable-select-input/searchable-select-input';\nimport SelectInput from '../../../ui/inputs/select-input/select-input';\nimport TextInput from '../../../ui/inputs/text-input/text-input';\nimport Separator from '../../../ui/separator/separator';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport SlideHeader from '../slide-header';\nimport * as Styled from './student-info-styled';\n\nconst StudentInformation = memo(function StudentInformation() {\n const { formData, milestoneConfig, updateSlideConfig, updateButtonState, trialHomeData } =\n useTrialSessionContext();\n\n const { name, grade, curriculum } = formData || {};\n const grades = getGradesFromConfig(milestoneConfig);\n\n const { demo_info: demoInfo, student } = trialHomeData;\n const { enrollment_type: enrollmentType } = student || {};\n const { stream, region_data: regionData } = demoInfo || {};\n const { opportunity_country: countryCode = 'US' } = regionData || {};\n\n const curriculumStandards = getCategorizedCurriculumStandards(milestoneConfig, {\n countryCode,\n grade: grade ?? '',\n goalCategory: GOAL_CATEGORY.SCHOOL_SUCCESS,\n courseStream: stream,\n enrollmentType: enrollmentType,\n });\n const hasRequiredFields = Boolean(name && grade && curriculum);\n\n const updateStudentInformation = useCallback(\n (key: string, value: string) => {\n if (key === 'grade') {\n // reset goals as well if grade changes\n updateSlideConfig({ [key]: value, goals: [] });\n } else {\n updateSlideConfig({ [key]: value });\n }\n },\n [updateSlideConfig],\n );\n\n const handleNameChange = useCallback<\n NonNullable<InputHTMLAttributes<HTMLInputElement>['onChange']>\n >(event => updateStudentInformation('name', event.target.value), [updateStudentInformation]);\n\n const handleGradeChange = useCallback(\n (value: string) => updateStudentInformation('grade', value),\n [updateStudentInformation],\n );\n\n const handleCurriculumChange = useCallback(\n (value: string) => updateStudentInformation('curriculum', value),\n [updateStudentInformation],\n );\n\n useEffect(() => {\n updateButtonState('right', { isDisabled: !hasRequiredFields, isLoading: false });\n }, [hasRequiredFields, updateButtonState]);\n\n return (\n <Styled.Container>\n <Separator height={60} />\n <SlideHeader />\n <Styled.StudentInfoWrapper $background=\"BLUE_4\" $borderColor=\"BLACK_T_87\">\n <Styled.ImageWrapper>\n <Image withLoader={false} src={ILLUSTRATIONS.BLUE_CLIP} width={261} height={31} />\n </Styled.ImageWrapper>\n <Styled.InformationWrapper $flexGapX={2.75} $background=\"WHITE_1\" $borderColor=\"BLACK_T_87\">\n <TextInput\n renderAs=\"primary\"\n label=\"Student name\"\n value={name}\n type=\"text\"\n name=\"name\"\n shape=\"borderLess\"\n onChange={handleNameChange}\n />\n <SearchableSelectInput\n renderAs=\"primary\"\n label=\"Grade\"\n value={grade}\n options={grades}\n shape=\"borderLess\"\n onChange={handleGradeChange}\n theme=\"dark\"\n />\n <SelectInput\n renderAs=\"primary\"\n label=\"Curriculum\"\n value={curriculum}\n options={curriculumStandards}\n shape=\"borderLess\"\n renderOptionsAs=\"section-list\"\n theme=\"dark\"\n onChange={handleCurriculumChange}\n />\n </Styled.InformationWrapper>\n </Styled.StudentInfoWrapper>\n </Styled.Container>\n );\n});\n\nexport default StudentInformation;\n"],"names":["StudentInformation","memo","formData","milestoneConfig","updateSlideConfig","updateButtonState","trialHomeData","useTrialSessionContext","name","grade","curriculum","grades","getGradesFromConfig","demoInfo","student","enrollmentType","stream","regionData","countryCode","curriculumStandards","getCategorizedCurriculumStandards","GOAL_CATEGORY","hasRequiredFields","updateStudentInformation","useCallback","key","value","handleNameChange","event","handleGradeChange","handleCurriculumChange","useEffect","jsxs","Styled.Container","jsx","Separator","SlideHeader","Styled.StudentInfoWrapper","Styled.ImageWrapper","Image","ILLUSTRATIONS","Styled.InformationWrapper","TextInput","SearchableSelectInput","SelectInput"],"mappings":"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"}
1
+ {"version":3,"file":"student-info.js","sources":["../../../../../src/features/trial-session/comps/student-info/student-info.tsx"],"sourcesContent":["import { memo, useCallback, useEffect, type InputHTMLAttributes } from 'react';\n\nimport { getGradesFromConfig } from '../../../milestone/create/milestone-create-helpers';\nimport Image from '../../../ui/image/image';\nimport SelectInput from '../../../ui/inputs/select-input/select-input';\nimport TextInput from '../../../ui/inputs/text-input/text-input';\nimport Separator from '../../../ui/separator/separator';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport SlideHeader from '../slide-header';\nimport * as Styled from './student-info-styled';\nimport FlexView from '../../../ui/layout/flex-view';\nimport { getDummyProfileImage } from '../student-profile/student-profile-utils';\nimport { RIGHT_PANEL_CONTENT_WIDTH } from '../../trial-session-constants';\nimport { getCourseOptions } from './student-info-helpers';\n\nconst StudentInformation = memo(function StudentInformation() {\n const { formData, milestoneConfig, updateSlideConfig, updateButtonState } =\n useTrialSessionContext();\n\n const { name, grade, course, studentProfile, numberInNameError } = formData || {};\n const { dummyProfileImageIndex } = studentProfile || {};\n\n const grades = getGradesFromConfig(milestoneConfig);\n const dummyProfileImage = getDummyProfileImage(dummyProfileImageIndex);\n const courses = getCourseOptions(Number(grade));\n const hasRequiredFields = Boolean(name && grade && courses.length > 0 ? course : true);\n\n const handleNameChange = useCallback<\n NonNullable<InputHTMLAttributes<HTMLInputElement>['onChange']>\n >(\n event => {\n updateSlideConfig({\n name: event.target.value,\n numberInNameError: false,\n });\n },\n [updateSlideConfig],\n );\n\n const handleGradeChange = useCallback(\n (value: string) => {\n updateSlideConfig({ grade: value, course: '' });\n },\n [updateSlideConfig],\n );\n\n const handleCourseChange = useCallback(\n (value: string) => {\n updateSlideConfig({ course: value });\n },\n [updateSlideConfig],\n );\n\n useEffect(() => {\n updateButtonState('right', { isDisabled: !hasRequiredFields, isLoading: false });\n }, [hasRequiredFields, updateButtonState]);\n\n return (\n <FlexView $justifyContent=\"center\" $alignItems=\"center\">\n <Separator height={60} />\n <SlideHeader marginBottom={100} />\n <FlexView\n $position=\"relative\"\n $width={RIGHT_PANEL_CONTENT_WIDTH - 100}\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $flexGapX={2}\n $gutterX={1.5}\n $gapX={3.125}\n $background=\"WHITE_2\"\n $borderColor=\"BLACK_T_87\"\n $borderRadiusX={0.5}\n >\n <Styled.AbsoluteImage />\n <Image withLoader height={200} width={200} src={dummyProfileImage} borderColor=\"BLACK_1\" />\n\n <FlexView $flexGap={16}>\n <TextInput\n renderAs=\"primary\"\n label=\"Name\"\n placeholder=\"Student name\"\n value={name}\n type=\"text\"\n name=\"name\"\n shape=\"borderLess\"\n onChange={handleNameChange}\n width=\"216px\"\n isTransparent\n stickyLabel\n errorMessage={numberInNameError ? 'Please enter a valid name' : undefined}\n />\n <SelectInput\n renderAs=\"primary\"\n label=\"Grade\"\n value={grade}\n options={grades}\n shape=\"borderLess\"\n onChange={handleGradeChange}\n theme=\"dark\"\n widthX={10}\n isTransparent\n />\n {courses.length > 0 ? (\n <SelectInput\n width=\"216px\"\n renderAs=\"primary\"\n label=\"Course\"\n value={course}\n options={courses}\n shape=\"borderLess\"\n onChange={handleCourseChange}\n theme=\"dark\"\n isTransparent\n />\n ) : null}\n </FlexView>\n\n <Styled.MetaTextWrapper\n $renderAs=\"ub3-bold\"\n color=\"BLACK_T_60\"\n $align=\"right\"\n $width=\"100%\"\n >\n We’ll solve questions from the selected grade\n </Styled.MetaTextWrapper>\n </FlexView>\n </FlexView>\n );\n});\n\nexport default StudentInformation;\n"],"names":["StudentInformation","memo","formData","milestoneConfig","updateSlideConfig","updateButtonState","useTrialSessionContext","name","grade","course","studentProfile","numberInNameError","dummyProfileImageIndex","grades","getGradesFromConfig","dummyProfileImage","getDummyProfileImage","courses","getCourseOptions","hasRequiredFields","handleNameChange","useCallback","event","handleGradeChange","value","handleCourseChange","useEffect","jsxs","FlexView","jsx","Separator","SlideHeader","RIGHT_PANEL_CONTENT_WIDTH","Styled.AbsoluteImage","Image","TextInput","SelectInput","Styled.MetaTextWrapper"],"mappings":";;;;;;;;;;;;;;AAeM,MAAAA,IAAqBC,EAAK,WAA8B;AAC5D,QAAM,EAAE,UAAAC,GAAU,iBAAAC,GAAiB,mBAAAC,GAAmB,mBAAAC,EAAA,IACpDC,KAEI,EAAE,MAAAC,GAAM,OAAAC,GAAO,QAAAC,GAAQ,gBAAAC,GAAgB,mBAAAC,EAAkB,IAAIT,KAAY,IACzE,EAAE,wBAAAU,EAAA,IAA2BF,KAAkB,IAE/CG,IAASC,EAAoBX,CAAe,GAC5CY,IAAoBC,EAAqBJ,CAAsB,GAC/DK,IAAUC,EAAiB,OAAOV,CAAK,CAAC,GACxCW,IAAoB,GAAQ,EAAAZ,KAAQC,KAASS,EAAQ,SAAS,MAAIR,IAElEW,IAAmBC;AAAA,IAGvB,CAASC,MAAA;AACW,MAAAlB,EAAA;AAAA,QAChB,MAAMkB,EAAM,OAAO;AAAA,QACnB,mBAAmB;AAAA,MAAA,CACpB;AAAA,IACH;AAAA,IACA,CAAClB,CAAiB;AAAA,EAAA,GAGdmB,IAAoBF;AAAA,IACxB,CAACG,MAAkB;AACjB,MAAApB,EAAkB,EAAE,OAAOoB,GAAO,QAAQ,GAAI,CAAA;AAAA,IAChD;AAAA,IACA,CAACpB,CAAiB;AAAA,EAAA,GAGdqB,IAAqBJ;AAAA,IACzB,CAACG,MAAkB;AACC,MAAApB,EAAA,EAAE,QAAQoB,EAAA,CAAO;AAAA,IACrC;AAAA,IACA,CAACpB,CAAiB;AAAA,EAAA;AAGpB,SAAAsB,EAAU,MAAM;AACd,IAAArB,EAAkB,SAAS,EAAE,YAAY,CAACc,GAAmB,WAAW,IAAO;AAAA,EAAA,GAC9E,CAACA,GAAmBd,CAAiB,CAAC,GAGtC,gBAAAsB,EAAAC,GAAA,EAAS,iBAAgB,UAAS,aAAY,UAC7C,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAU,QAAQ,GAAI,CAAA;AAAA,IACvB,gBAAAD,EAACE,GAAY,EAAA,cAAc,IAAK,CAAA;AAAA,IAChC,gBAAAJ;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,QAAQI,IAA4B;AAAA,QACpC,gBAAe;AAAA,QACf,aAAY;AAAA,QACZ,WAAW;AAAA,QACX,UAAU;AAAA,QACV,OAAO;AAAA,QACP,aAAY;AAAA,QACZ,cAAa;AAAA,QACb,gBAAgB;AAAA,QAEhB,UAAA;AAAA,UAAC,gBAAAH,EAAAI,GAAA,EAAqB;AAAA,UACtB,gBAAAJ,EAACK,GAAM,EAAA,YAAU,IAAC,QAAQ,KAAK,OAAO,KAAK,KAAKnB,GAAmB,aAAY,UAAU,CAAA;AAAA,UAEzF,gBAAAY,EAACC,GAAS,EAAA,UAAU,IAClB,UAAA;AAAA,YAAA,gBAAAC;AAAA,cAACM;AAAA,cAAA;AAAA,gBACC,UAAS;AAAA,gBACT,OAAM;AAAA,gBACN,aAAY;AAAA,gBACZ,OAAO5B;AAAA,gBACP,MAAK;AAAA,gBACL,MAAK;AAAA,gBACL,OAAM;AAAA,gBACN,UAAUa;AAAA,gBACV,OAAM;AAAA,gBACN,eAAa;AAAA,gBACb,aAAW;AAAA,gBACX,cAAcT,IAAoB,8BAA8B;AAAA,cAAA;AAAA,YAClE;AAAA,YACA,gBAAAkB;AAAA,cAACO;AAAA,cAAA;AAAA,gBACC,UAAS;AAAA,gBACT,OAAM;AAAA,gBACN,OAAO5B;AAAA,gBACP,SAASK;AAAA,gBACT,OAAM;AAAA,gBACN,UAAUU;AAAA,gBACV,OAAM;AAAA,gBACN,QAAQ;AAAA,gBACR,eAAa;AAAA,cAAA;AAAA,YACf;AAAA,YACCN,EAAQ,SAAS,IAChB,gBAAAY;AAAA,cAACO;AAAA,cAAA;AAAA,gBACC,OAAM;AAAA,gBACN,UAAS;AAAA,gBACT,OAAM;AAAA,gBACN,OAAO3B;AAAA,gBACP,SAASQ;AAAA,gBACT,OAAM;AAAA,gBACN,UAAUQ;AAAA,gBACV,OAAM;AAAA,gBACN,eAAa;AAAA,cAAA;AAAA,YAAA,IAEb;AAAA,UAAA,GACN;AAAA,UAEA,gBAAAI;AAAA,YAACQ;AAAAA,YAAA;AAAA,cACC,WAAU;AAAA,cACV,OAAM;AAAA,cACN,QAAO;AAAA,cACP,QAAO;AAAA,cACR,UAAA;AAAA,YAAA;AAAA,UAED;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EACF,EAAA,CAAA;AAEJ,CAAC;"}
@@ -1,10 +1,5 @@
1
1
  import o from "styled-components";
2
- import r from "../../../ui/layout/flex-view.js";
3
- const a = o.div`
4
- width: 100%;
5
- height: 100%;
6
- overflow: auto;
7
- `, e = o.div(
2
+ const i = o.div(
8
3
  ({ theme: t }) => `
9
4
  position: relative;
10
5
  width: ${t.layout.gutter * 18.75}px;
@@ -18,12 +13,8 @@ const a = o.div`
18
13
  bottom: 0;
19
14
  }
20
15
  `
21
- ), l = o(r)`
22
- margin: auto;
23
- `;
16
+ );
24
17
  export {
25
- a as Container,
26
- l as ContentWrapper,
27
- e as ImageWrapper
18
+ i as ImageWrapper
28
19
  };
29
20
  //# sourceMappingURL=student-personalization-styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"student-personalization-styled.js","sources":["../../../../../src/features/trial-session/comps/student-personalization/student-personalization-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nconst Container = styled.div`\n width: 100%;\n height: 100%;\n overflow: auto;\n`;\n\nconst ImageWrapper = styled.div(\n ({ theme }) => `\n position: relative;\n width: ${theme.layout.gutter * 18.75}px;\n height: ${theme.layout.gutter * 25}px;\n border: 1px solid ${theme.colors.BLACK_1};\n .image {\n position: absolute;\n top: -${theme.layout.gutter * 0.15625}px;\n left: -${theme.layout.gutter * 0.125}px;\n right: 0;\n bottom: 0;\n }\n`,\n);\n\nconst ContentWrapper = styled(FlexView)`\n margin: auto;\n`;\n\nexport { Container, ContentWrapper, ImageWrapper };\n"],"names":["Container","styled","ImageWrapper","theme","ContentWrapper","FlexView"],"mappings":";;AAIA,MAAMA,IAAYC,EAAO;AAAA;AAAA;AAAA;AAAA,GAMnBC,IAAeD,EAAO;AAAA,EAC1B,CAAC,EAAE,OAAAE,EAAA,MAAY;AAAA;AAAA,WAENA,EAAM,OAAO,SAAS,KAAK;AAAA,YAC1BA,EAAM,OAAO,SAAS,EAAE;AAAA,sBACdA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA,YAG9BA,EAAM,OAAO,SAAS,OAAO;AAAA,aAC5BA,EAAM,OAAO,SAAS,KAAK;AAAA;AAAA;AAAA;AAAA;AAKxC,GAEMC,IAAiBH,EAAOI,CAAQ;AAAA;AAAA;"}
1
+ {"version":3,"file":"student-personalization-styled.js","sources":["../../../../../src/features/trial-session/comps/student-personalization/student-personalization-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nconst ImageWrapper = styled.div(\n ({ theme }) => `\n position: relative;\n width: ${theme.layout.gutter * 18.75}px;\n height: ${theme.layout.gutter * 25}px;\n border: 1px solid ${theme.colors.BLACK_1};\n .image {\n position: absolute;\n top: -${theme.layout.gutter * 0.15625}px;\n left: -${theme.layout.gutter * 0.125}px;\n right: 0;\n bottom: 0;\n }\n`,\n);\n\nexport { ImageWrapper };\n"],"names":["ImageWrapper","styled","theme"],"mappings":";AAEA,MAAMA,IAAeC,EAAO;AAAA,EAC1B,CAAC,EAAE,OAAAC,EAAA,MAAY;AAAA;AAAA,WAENA,EAAM,OAAO,SAAS,KAAK;AAAA,YAC1BA,EAAM,OAAO,SAAS,EAAE;AAAA,sBACdA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA,YAG9BA,EAAM,OAAO,SAAS,OAAO;AAAA,aAC5BA,EAAM,OAAO,SAAS,KAAK;AAAA;AAAA;AAAA;AAAA;AAKxC;"}
@@ -1,37 +1,38 @@
1
1
  import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
- import { memo as p, useMemo as f, useCallback as u, useEffect as h } from "react";
2
+ import { memo as p, useMemo as u, useCallback as h, useEffect as g } from "react";
3
3
  import { ILLUSTRATIONS as C } from "../../../../assets/illustrations/illustrations.js";
4
- import { COURSE_STREAMS as g, PREFERENCE_CATEGORY as S } from "../../../milestone/constants.js";
5
- import { getPreferencesFromConfig as E } from "../../../milestone/create/milestone-create-helpers.js";
4
+ import { COURSE_STREAMS as E, PREFERENCE_CATEGORY as S } from "../../../milestone/constants.js";
5
+ import { getPreferencesFromConfig as T } from "../../../milestone/create/milestone-create-helpers.js";
6
6
  import b from "../../../ui/image/image.js";
7
- import x from "../../../ui/inputs/checkbox-input-list/checkbox-input-list.js";
8
- import A from "../../../ui/layout/flex-view.js";
9
- import $ from "../../../ui/separator/separator.js";
10
- import L from "../../../ui/text/text.js";
11
- import { useTrialSessionContext as O } from "../../context/use-trial-session-context.js";
12
- import R from "../slide-header/index.js";
13
- import { Container as T, ContentWrapper as j, ImageWrapper as I } from "./student-personalization-styled.js";
14
- const H = p(function() {
15
- const { formData: m, milestoneConfig: r, updateSlideConfig: t, updateButtonState: i } = O(), { grade: n, personalizedObjectives: a = [] } = m || {}, s = a.length > 0, l = f(
16
- () => E(r, {
17
- grade: n ?? "",
18
- courseStream: g.MATH,
7
+ import $ from "../../../ui/inputs/checkbox-input-list/checkbox-input-list.js";
8
+ import t from "../../../ui/layout/flex-view.js";
9
+ import A from "../../../ui/separator/separator.js";
10
+ import I from "../../../ui/text/text.js";
11
+ import { useTrialSessionContext as x } from "../../context/use-trial-session-context.js";
12
+ import L from "../slide-header/index.js";
13
+ import { ImageWrapper as O } from "./student-personalization-styled.js";
14
+ import { RIGHT_PANEL_CONTENT_WIDTH as R } from "../../trial-session-constants.js";
15
+ const W = p(function() {
16
+ const { formData: l, milestoneConfig: r, updateSlideConfig: i, updateButtonState: n } = x(), { grade: a, personalizedObjectives: s = [] } = l || {}, m = s.length > 0, c = u(
17
+ () => T(r, {
18
+ grade: a ?? "",
19
+ courseStream: E.MATH,
19
20
  preferenceCategory: S.OBJECTIVES
20
21
  }),
21
- [n, r]
22
- ), d = u(
23
- (c) => {
24
- t({ personalizedObjectives: c });
22
+ [a, r]
23
+ ), d = h(
24
+ (f) => {
25
+ i({ personalizedObjectives: f });
25
26
  },
26
- [t]
27
+ [i]
27
28
  );
28
- return h(() => {
29
- i("right", { isDisabled: !s, isLoading: !1 });
30
- }, [s, i]), /* @__PURE__ */ o(T, { children: [
31
- /* @__PURE__ */ e($, { height: 60 }),
32
- /* @__PURE__ */ e(R, {}),
33
- /* @__PURE__ */ o(j, { $width: 750, $flexDirection: "row", $justifyContent: "center", children: [
34
- /* @__PURE__ */ e(I, { children: /* @__PURE__ */ e(
29
+ return g(() => {
30
+ n("right", { isDisabled: !m, isLoading: !1 });
31
+ }, [m, n]), /* @__PURE__ */ o(t, { $justifyContent: "center", $alignItems: "center", children: [
32
+ /* @__PURE__ */ e(A, { height: 60 }),
33
+ /* @__PURE__ */ e(L, {}),
34
+ /* @__PURE__ */ o(t, { $width: R, $flexDirection: "row", $justifyContent: "center", children: [
35
+ /* @__PURE__ */ e(O, { children: /* @__PURE__ */ e(
35
36
  b,
36
37
  {
37
38
  withLoader: !0,
@@ -42,7 +43,7 @@ const H = p(function() {
42
43
  }
43
44
  ) }),
44
45
  /* @__PURE__ */ o(
45
- A,
46
+ t,
46
47
  {
47
48
  $flexGap: 24,
48
49
  $borderColor: "BLACK_1",
@@ -50,14 +51,14 @@ const H = p(function() {
50
51
  $gutterX: 1.5,
51
52
  $justifyContent: "center",
52
53
  children: [
53
- /* @__PURE__ */ e(L, { $renderAs: "ab2-bold", $color: "BLACK_1", children: "What would you like your child to work on?" }),
54
+ /* @__PURE__ */ e(I, { $renderAs: "ab2-bold", $color: "BLACK_1", children: "What would you like your child to work on?" }),
54
55
  /* @__PURE__ */ e(
55
- x,
56
+ $,
56
57
  {
57
58
  size: "small",
58
59
  renderAs: "black",
59
- options: l,
60
- value: a,
60
+ options: c,
61
+ value: s,
61
62
  onChange: d,
62
63
  optionFlexGap: 16
63
64
  }
@@ -69,6 +70,6 @@ const H = p(function() {
69
70
  ] });
70
71
  });
71
72
  export {
72
- H as default
73
+ W as default
73
74
  };
74
75
  //# sourceMappingURL=student-personalization.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"student-personalization.js","sources":["../../../../../src/features/trial-session/comps/student-personalization/student-personalization.tsx"],"sourcesContent":["import { memo, useCallback, useEffect, useMemo } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport { COURSE_STREAMS, PREFERENCE_CATEGORY } from '../../../milestone/constants';\nimport { getPreferencesFromConfig } from '../../../milestone/create/milestone-create-helpers';\nimport Image from '../../../ui/image/image';\nimport CheckboxInputList from '../../../ui/inputs/checkbox-input-list/checkbox-input-list';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport SlideHeader from '../slide-header';\nimport * as Styled from './student-personalization-styled';\n\nconst StudentPersonalization = memo(function StudentPersonalization() {\n const { formData, milestoneConfig, updateSlideConfig, updateButtonState } =\n useTrialSessionContext();\n\n const { grade, personalizedObjectives = [] } = formData || {};\n\n const hasRequiredFields = Boolean(personalizedObjectives.length > 0);\n\n const objectivesList = useMemo(\n () =>\n getPreferencesFromConfig(milestoneConfig, {\n grade: grade ?? '',\n courseStream: COURSE_STREAMS.MATH,\n preferenceCategory: PREFERENCE_CATEGORY.OBJECTIVES,\n }),\n [grade, milestoneConfig],\n );\n\n const handleChangeObjectives = useCallback(\n (value: string[]) => {\n updateSlideConfig({ personalizedObjectives: value });\n },\n [updateSlideConfig],\n );\n\n useEffect(() => {\n updateButtonState('right', { isDisabled: !hasRequiredFields, isLoading: false });\n }, [hasRequiredFields, updateButtonState]);\n\n return (\n <Styled.Container>\n <Separator height={60} />\n <SlideHeader />\n <Styled.ContentWrapper $width={750} $flexDirection=\"row\" $justifyContent=\"center\">\n <Styled.ImageWrapper>\n <Image\n withLoader\n height={402}\n width={302}\n className=\"image\"\n src={ILLUSTRATIONS.PERSONALIZATION}\n />\n </Styled.ImageWrapper>\n <FlexView\n $flexGap={24}\n $borderColor=\"BLACK_1\"\n $background=\"GREEN_1\"\n $gutterX={1.5}\n $justifyContent=\"center\"\n >\n <Text $renderAs=\"ab2-bold\" $color=\"BLACK_1\">\n What would you like your child to work on?\n </Text>\n <CheckboxInputList\n size=\"small\"\n renderAs=\"black\"\n options={objectivesList}\n value={personalizedObjectives}\n onChange={handleChangeObjectives}\n optionFlexGap={16}\n />\n </FlexView>\n </Styled.ContentWrapper>\n </Styled.Container>\n );\n});\n\nexport default StudentPersonalization;\n"],"names":["StudentPersonalization","memo","formData","milestoneConfig","updateSlideConfig","updateButtonState","useTrialSessionContext","grade","personalizedObjectives","hasRequiredFields","objectivesList","useMemo","getPreferencesFromConfig","COURSE_STREAMS","PREFERENCE_CATEGORY","handleChangeObjectives","useCallback","value","useEffect","jsxs","Styled.Container","jsx","Separator","SlideHeader","Styled.ContentWrapper","Styled.ImageWrapper","Image","ILLUSTRATIONS","FlexView","Text","CheckboxInputList"],"mappings":";;;;;;;;;;;;;AAcM,MAAAA,IAAyBC,EAAK,WAAkC;AACpE,QAAM,EAAE,UAAAC,GAAU,iBAAAC,GAAiB,mBAAAC,GAAmB,mBAAAC,EAAA,IACpDC,KAEI,EAAE,OAAAC,GAAO,wBAAAC,IAAyB,CAAG,EAAA,IAAIN,KAAY,CAAA,GAErDO,IAA4BD,EAAuB,SAAS,GAE5DE,IAAiBC;AAAA,IACrB,MACEC,EAAyBT,GAAiB;AAAA,MACxC,OAAOI,KAAS;AAAA,MAChB,cAAcM,EAAe;AAAA,MAC7B,oBAAoBC,EAAoB;AAAA,IAAA,CACzC;AAAA,IACH,CAACP,GAAOJ,CAAe;AAAA,EAAA,GAGnBY,IAAyBC;AAAA,IAC7B,CAACC,MAAoB;AACD,MAAAb,EAAA,EAAE,wBAAwBa,EAAA,CAAO;AAAA,IACrD;AAAA,IACA,CAACb,CAAiB;AAAA,EAAA;AAGpB,SAAAc,EAAU,MAAM;AACd,IAAAb,EAAkB,SAAS,EAAE,YAAY,CAACI,GAAmB,WAAW,IAAO;AAAA,EAAA,GAC9E,CAACA,GAAmBJ,CAAiB,CAAC,GAGvC,gBAAAc,EAACC,GAAA,EACC,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAU,QAAQ,GAAI,CAAA;AAAA,sBACtBC,GAAY,EAAA;AAAA,IACb,gBAAAJ,EAACK,GAAA,EAAsB,QAAQ,KAAK,gBAAe,OAAM,iBAAgB,UACvE,UAAA;AAAA,MAAC,gBAAAH,EAAAI,GAAA,EACC,UAAA,gBAAAJ;AAAA,QAACK;AAAA,QAAA;AAAA,UACC,YAAU;AAAA,UACV,QAAQ;AAAA,UACR,OAAO;AAAA,UACP,WAAU;AAAA,UACV,KAAKC,EAAc;AAAA,QAAA;AAAA,MAAA,GAEvB;AAAA,MACA,gBAAAR;AAAA,QAACS;AAAA,QAAA;AAAA,UACC,UAAU;AAAA,UACV,cAAa;AAAA,UACb,aAAY;AAAA,UACZ,UAAU;AAAA,UACV,iBAAgB;AAAA,UAEhB,UAAA;AAAA,YAAA,gBAAAP,EAACQ,GAAK,EAAA,WAAU,YAAW,QAAO,WAAU,UAE5C,8CAAA;AAAA,YACA,gBAAAR;AAAA,cAACS;AAAA,cAAA;AAAA,gBACC,MAAK;AAAA,gBACL,UAAS;AAAA,gBACT,SAASpB;AAAA,gBACT,OAAOF;AAAA,gBACP,UAAUO;AAAA,gBACV,eAAe;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA,GACF;AAAA,EACF,EAAA,CAAA;AAEJ,CAAC;"}
1
+ {"version":3,"file":"student-personalization.js","sources":["../../../../../src/features/trial-session/comps/student-personalization/student-personalization.tsx"],"sourcesContent":["import { memo, useCallback, useEffect, useMemo } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport { COURSE_STREAMS, PREFERENCE_CATEGORY } from '../../../milestone/constants';\nimport { getPreferencesFromConfig } from '../../../milestone/create/milestone-create-helpers';\nimport Image from '../../../ui/image/image';\nimport CheckboxInputList from '../../../ui/inputs/checkbox-input-list/checkbox-input-list';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport SlideHeader from '../slide-header';\nimport * as Styled from './student-personalization-styled';\nimport { RIGHT_PANEL_CONTENT_WIDTH } from '../../trial-session-constants';\n\nconst StudentPersonalization = memo(function StudentPersonalization() {\n const { formData, milestoneConfig, updateSlideConfig, updateButtonState } =\n useTrialSessionContext();\n\n const { grade, personalizedObjectives = [] } = formData || {};\n\n const hasRequiredFields = Boolean(personalizedObjectives.length > 0);\n\n const objectivesList = useMemo(\n () =>\n getPreferencesFromConfig(milestoneConfig, {\n grade: grade ?? '',\n courseStream: COURSE_STREAMS.MATH,\n preferenceCategory: PREFERENCE_CATEGORY.OBJECTIVES,\n }),\n [grade, milestoneConfig],\n );\n\n const handleChangeObjectives = useCallback(\n (value: string[]) => {\n updateSlideConfig({ personalizedObjectives: value });\n },\n [updateSlideConfig],\n );\n\n useEffect(() => {\n updateButtonState('right', { isDisabled: !hasRequiredFields, isLoading: false });\n }, [hasRequiredFields, updateButtonState]);\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\n withLoader\n height={402}\n width={302}\n className=\"image\"\n src={ILLUSTRATIONS.PERSONALIZATION}\n />\n </Styled.ImageWrapper>\n <FlexView\n $flexGap={24}\n $borderColor=\"BLACK_1\"\n $background=\"GREEN_1\"\n $gutterX={1.5}\n $justifyContent=\"center\"\n >\n <Text $renderAs=\"ab2-bold\" $color=\"BLACK_1\">\n What would you like your child to work on?\n </Text>\n <CheckboxInputList\n size=\"small\"\n renderAs=\"black\"\n options={objectivesList}\n value={personalizedObjectives}\n onChange={handleChangeObjectives}\n optionFlexGap={16}\n />\n </FlexView>\n </FlexView>\n </FlexView>\n );\n});\n\nexport default StudentPersonalization;\n"],"names":["StudentPersonalization","memo","formData","milestoneConfig","updateSlideConfig","updateButtonState","useTrialSessionContext","grade","personalizedObjectives","hasRequiredFields","objectivesList","useMemo","getPreferencesFromConfig","COURSE_STREAMS","PREFERENCE_CATEGORY","handleChangeObjectives","useCallback","value","useEffect","jsxs","FlexView","jsx","Separator","SlideHeader","RIGHT_PANEL_CONTENT_WIDTH","Styled.ImageWrapper","Image","ILLUSTRATIONS","Text","CheckboxInputList"],"mappings":";;;;;;;;;;;;;;AAeM,MAAAA,IAAyBC,EAAK,WAAkC;AACpE,QAAM,EAAE,UAAAC,GAAU,iBAAAC,GAAiB,mBAAAC,GAAmB,mBAAAC,EAAA,IACpDC,KAEI,EAAE,OAAAC,GAAO,wBAAAC,IAAyB,CAAG,EAAA,IAAIN,KAAY,CAAA,GAErDO,IAA4BD,EAAuB,SAAS,GAE5DE,IAAiBC;AAAA,IACrB,MACEC,EAAyBT,GAAiB;AAAA,MACxC,OAAOI,KAAS;AAAA,MAChB,cAAcM,EAAe;AAAA,MAC7B,oBAAoBC,EAAoB;AAAA,IAAA,CACzC;AAAA,IACH,CAACP,GAAOJ,CAAe;AAAA,EAAA,GAGnBY,IAAyBC;AAAA,IAC7B,CAACC,MAAoB;AACD,MAAAb,EAAA,EAAE,wBAAwBa,EAAA,CAAO;AAAA,IACrD;AAAA,IACA,CAACb,CAAiB;AAAA,EAAA;AAGpB,SAAAc,EAAU,MAAM;AACd,IAAAb,EAAkB,SAAS,EAAE,YAAY,CAACI,GAAmB,WAAW,IAAO;AAAA,EAAA,GAC9E,CAACA,GAAmBJ,CAAiB,CAAC,GAGtC,gBAAAc,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,MAAC,gBAAAH,EAAAI,GAAA,EACC,UAAA,gBAAAJ;AAAA,QAACK;AAAA,QAAA;AAAA,UACC,YAAU;AAAA,UACV,QAAQ;AAAA,UACR,OAAO;AAAA,UACP,WAAU;AAAA,UACV,KAAKC,EAAc;AAAA,QAAA;AAAA,MAAA,GAEvB;AAAA,MACA,gBAAAR;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,UAAU;AAAA,UACV,cAAa;AAAA,UACb,aAAY;AAAA,UACZ,UAAU;AAAA,UACV,iBAAgB;AAAA,UAEhB,UAAA;AAAA,YAAA,gBAAAC,EAACO,GAAK,EAAA,WAAU,YAAW,QAAO,WAAU,UAE5C,8CAAA;AAAA,YACA,gBAAAP;AAAA,cAACQ;AAAA,cAAA;AAAA,gBACC,MAAK;AAAA,gBACL,UAAS;AAAA,gBACT,SAASnB;AAAA,gBACT,OAAOF;AAAA,gBACP,UAAUO;AAAA,gBACV,eAAe;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA,GACF;AAAA,EACF,EAAA,CAAA;AAEJ,CAAC;"}
@@ -1,46 +1,47 @@
1
1
  import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
- import { memo as N, useMemo as C, useCallback as U, useEffect as f } from "react";
2
+ import { memo as k, useMemo as C, useCallback as U, useEffect as f } from "react";
3
3
  import { ILLUSTRATIONS as c } from "../../../../assets/illustrations/illustrations.js";
4
4
  import { GOAL_CATEGORY as L } from "../../../milestone/constants.js";
5
- import W from "../../../ui/error/error.js";
6
- import v from "../../../ui/image/image.js";
7
- import A from "../../../ui/layout/flex-view.js";
8
- import K from "../../../ui/loader/app-loader/app-loader.js";
9
- import I from "../../../ui/separator/separator.js";
5
+ import v from "../../../ui/error/error.js";
6
+ import K from "../../../ui/image/image.js";
7
+ import I from "../../../ui/layout/flex-view.js";
8
+ import M from "../../../ui/loader/app-loader/app-loader.js";
9
+ import A from "../../../ui/separator/separator.js";
10
10
  import u from "../../../ui/text/text.js";
11
- import { useGetStudentProfileSummary as M } from "../../api/student-profile-summary.js";
12
- import { useTrialSessionContext as X } from "../../context/use-trial-session-context.js";
13
- import { getFormattedStudentPersonalizedPreference as y } from "../../helper.js";
14
- import j from "../slide-header/index.js";
15
- import { GOAL_MAPPING as z } from "./constant.js";
16
- import F from "./student-profile-highlights/student-profile-highlights.js";
17
- import { Container as V, ContentWrapper as b, AbsoluteImage as Y, ImageWrapper as q } from "./student-profile-styled.js";
18
- import { getDummyProfileImage as J, getMilestoneGoalName as G } from "./student-profile-utils.js";
19
- const Pe = N(function() {
11
+ import { useGetStudentProfileSummary as X } from "../../api/student-profile-summary.js";
12
+ import { useTrialSessionContext as j } from "../../context/use-trial-session-context.js";
13
+ import { getFormattedStudentPersonalizedPreference as T } from "../../helper.js";
14
+ import z from "../slide-header/index.js";
15
+ import { GOAL_MAPPING as F } from "./constant.js";
16
+ import V from "./student-profile-highlights/student-profile-highlights.js";
17
+ import { Container as Y, ContentWrapper as y, AbsoluteImage as q, ImageWrapper as J } from "./student-profile-styled.js";
18
+ import { getDummyProfileImage as Q, getMilestoneGoalName as b } from "./student-profile-utils.js";
19
+ import { RIGHT_PANEL_CONTENT_WIDTH as G } from "../../trial-session-constants.js";
20
+ const Se = k(function() {
20
21
  const {
21
22
  isTeacher: n,
22
23
  studentId: p,
23
24
  formData: O,
24
- slideConfig: T,
25
+ slideConfig: R,
25
26
  milestoneConfig: m,
26
27
  updateSlideConfig: g,
27
28
  updateButtonState: h
28
- } = X(), { showProfileHighlights: r } = T, {
29
+ } = j(), { showProfileHighlights: r } = R, {
29
30
  name: x,
30
31
  goals: t = [],
31
32
  studentProfile: a,
32
33
  personalizedObjectives: P = [],
33
34
  personalizedPosition: _ = []
34
- } = O || {}, { dummyProfileImageIndex: R, profileSummary: w } = a || {}, B = J(R), l = C(() => t && t.length > 0 ? {
35
- school_success_goal: G(t, L.SCHOOL_SUCCESS),
36
- test_prep_goal: G(t, L.TEST_PREP)
35
+ } = O || {}, { dummyProfileImageIndex: w, profileSummary: D } = a || {}, H = Q(w), l = C(() => t && t.length > 0 ? {
36
+ school_success_goal: b(t, L.SCHOOL_SUCCESS),
37
+ test_prep_goal: b(t, L.TEST_PREP)
37
38
  } : null, [t]), {
38
39
  get: S,
39
- data: D,
40
+ data: N,
40
41
  isProcessing: s,
41
- isProcessed: $,
42
- isProcessingFailed: H
43
- } = M(), { profile_summary: E } = D || {}, d = U(() => {
42
+ isProcessed: E,
43
+ isProcessingFailed: B
44
+ } = X(), { profile_summary: $ } = N || {}, d = U(() => {
44
45
  l && S(p, l);
45
46
  }, [S, l, p]);
46
47
  f(() => {
@@ -48,18 +49,18 @@ const Pe = N(function() {
48
49
  }, [s, h]), f(() => {
49
50
  n && !a && !r && d();
50
51
  }, [d, n, a, r]), f(() => {
51
- n && $ && !r && g({
52
+ n && E && !r && g({
52
53
  studentProfile: {
53
- profileSummary: E || "",
54
+ profileSummary: $ || "",
54
55
  dummyProfileImageIndex: Math.floor(Math.random() * 6)
55
56
  }
56
57
  });
57
- }, [$, n, r, E, g]);
58
- const k = C(
58
+ }, [E, n, r, $, g]);
59
+ const W = C(
59
60
  () => [
60
61
  {
61
62
  title: "Student Level",
62
- description: `Catching up: ${y(
63
+ description: `Catching up: ${T(
63
64
  m,
64
65
  _
65
66
  ).map((o) => o.preference_description)}`,
@@ -70,7 +71,7 @@ const Pe = N(function() {
70
71
  illustration: c.ARROW_BOARD_GREEN,
71
72
  background: "GREEN_1",
72
73
  title: "Goals",
73
- description: y(
74
+ description: T(
74
75
  m,
75
76
  P
76
77
  ).map((o) => o.preference_name)
@@ -80,23 +81,23 @@ const Pe = N(function() {
80
81
  background: "PURPLE_1",
81
82
  title: "Learning Plan",
82
83
  description: t.map(
83
- (o) => `${z[o.goal_category]}: ${o.milestone_name}`
84
+ (o) => `${F[o.goal_category]}: ${o.milestone_name}`
84
85
  )
85
86
  }
86
87
  ],
87
88
  [t, m, P, _]
88
89
  );
89
- return H ? /* @__PURE__ */ e(W, { height: "70vh", onTryAgain: d }) : s || !a && !r ? /* @__PURE__ */ e(K, { height: "100vh" }) : /* @__PURE__ */ i(V, { children: [
90
- /* @__PURE__ */ e(I, { height: 60 }),
91
- /* @__PURE__ */ e(j, { marginBottom: r ? 50 : 100 }),
92
- r ? /* @__PURE__ */ i(b, { $width: 650, children: [
93
- /* @__PURE__ */ e(F, { profileHighlights: k }),
94
- /* @__PURE__ */ e(I, { height: 16 }),
90
+ return B ? /* @__PURE__ */ e(v, { height: "70vh", onTryAgain: d }) : s || !a && !r ? /* @__PURE__ */ e(M, { height: "100vh" }) : /* @__PURE__ */ i(Y, { children: [
91
+ /* @__PURE__ */ e(A, { height: 60 }),
92
+ /* @__PURE__ */ e(z, { marginBottom: r ? 50 : 100 }),
93
+ r ? /* @__PURE__ */ i(y, { $width: G - 100, children: [
94
+ /* @__PURE__ */ e(V, { profileHighlights: W }),
95
+ /* @__PURE__ */ e(A, { height: 16 }),
95
96
  /* @__PURE__ */ e(u, { $renderAs: "ub3", $color: "BLACK_T_60", $align: "center", children: "We can always revisit this later" })
96
- ] }) : /* @__PURE__ */ i(b, { $widthX: 46.875, children: [
97
- /* @__PURE__ */ e(Y, {}),
97
+ ] }) : /* @__PURE__ */ i(y, { $width: G, children: [
98
+ /* @__PURE__ */ e(q, {}),
98
99
  /* @__PURE__ */ i(
99
- A,
100
+ I,
100
101
  {
101
102
  $width: "100%",
102
103
  $heightX: 21.875,
@@ -108,10 +109,10 @@ const Pe = N(function() {
108
109
  $borderColor: "BLACK_T_87",
109
110
  $borderRadiusX: 0.5,
110
111
  children: [
111
- /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(v, { withLoader: !0, height: 200, width: 200, src: B }) }),
112
- /* @__PURE__ */ i(A, { $flexGap: 16, children: [
112
+ /* @__PURE__ */ e(J, { children: /* @__PURE__ */ e(K, { withLoader: !0, height: 200, width: 200, src: H }) }),
113
+ /* @__PURE__ */ i(I, { $flexGap: 16, children: [
113
114
  /* @__PURE__ */ e(u, { $renderAs: "ac2-black", children: x }),
114
- /* @__PURE__ */ e(u, { $renderAs: "ab1", children: w || "" })
115
+ /* @__PURE__ */ e(u, { $renderAs: "ab1", children: D || "" })
115
116
  ] })
116
117
  ]
117
118
  }
@@ -120,6 +121,6 @@ const Pe = N(function() {
120
121
  ] });
121
122
  });
122
123
  export {
123
- Pe as default
124
+ Se as default
124
125
  };
125
126
  //# sourceMappingURL=student-profile.js.map