@cuemath/leap 3.5.58 → 3.5.59-link1

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