@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,53 +1,53 @@
1
- import { jsx as r, Fragment as w, jsxs as c } from "react/jsx-runtime";
1
+ import { jsx as r, Fragment as w, jsxs as s } from "react/jsx-runtime";
2
2
  import { memo as L, useMemo as R, useCallback as X, useEffect as $ } from "react";
3
- import { monthlyTimelineGet as v } from "./api/use-monthly-timeline-get.js";
4
- import F from "./monthly-timeline-view.js";
5
- import M from "../../ui/loader/app-loader/app-loader.js";
6
- import n from "../../ui/layout/flex-view.js";
7
- import S from "../../ui/text/text.js";
3
+ import { monthlyTimelineGet as F } from "./api/use-monthly-timeline-get.js";
4
+ import M from "./monthly-timeline-view.js";
5
+ import S from "../../ui/loader/app-loader/app-loader.js";
6
+ import c from "../../ui/layout/flex-view.js";
7
+ import j from "../../ui/text/text.js";
8
8
  import u from "../../ui/image/image.js";
9
9
  import l from "../../ui/separator/separator.js";
10
- import { yearImages as j, monthNames as A } from "./constants.js";
10
+ import { yearImages as v, monthNames as A } from "./constants.js";
11
11
  import B from "../../ui/error/error.js";
12
- import { ImageContainer as z, DateText as D } from "./monthly-timeline-styled.js";
13
- import { getTimezone as I } from "../../../helpers/date-time.js";
14
- import { ILLUSTRATIONS as K } from "../../../assets/illustrations/illustrations.js";
15
- const N = ({
12
+ import { ImageContainer as z, DateText as D, EmptyWrapper as I } from "./monthly-timeline-styled.js";
13
+ import { getTimezone as K } from "../../../helpers/date-time.js";
14
+ import { ILLUSTRATIONS as N } from "../../../assets/illustrations/illustrations.js";
15
+ const O = ({
16
16
  userType: g,
17
- studentId: m,
17
+ studentId: n,
18
18
  courseStreams: f,
19
19
  onReportClick: x,
20
- onAPIComplete: t
20
+ onAPIComplete: o
21
21
  }) => {
22
- const a = R(
22
+ const m = R(
23
23
  () => ({
24
24
  course_streams: g === "TEACHER" ? f : [],
25
- timezone: I()
25
+ timezone: K()
26
26
  }),
27
27
  [f, g]
28
28
  ), {
29
29
  get: p,
30
- data: o = [],
30
+ data: t = [],
31
31
  isProcessing: E,
32
32
  isProcessingFailed: i,
33
- isProcessed: h
34
- } = v(m, a), s = X(() => {
35
- p(m, a);
36
- }, [p, a, m]);
33
+ isProcessed: a
34
+ } = F(n, m), h = X(() => {
35
+ p(n, m);
36
+ }, [p, m, n]);
37
37
  return $(() => {
38
- s();
39
- }, [s]), $(() => {
40
- (h || i) && (t == null || t(h && !i));
41
- }, [h, i, t]), E ? /* @__PURE__ */ r(M, { height: "100dvh" }) : i ? /* @__PURE__ */ r(B, { onTryAgain: s, height: "100dvh" }) : /* @__PURE__ */ r(w, { children: (o == null ? void 0 : o.length) > 0 ? /* @__PURE__ */ r(n, { $gapX: 2, children: o.map((e, _) => {
42
- const d = _ === 0, b = e.month === 12, T = !d && b, y = j[e.year];
43
- return /* @__PURE__ */ c(n, { $width: "100%", children: [
44
- !d && !T && /* @__PURE__ */ r(l, { heightX: 2 }),
45
- T && y && /* @__PURE__ */ r(z, { $marginBottom: -122, children: /* @__PURE__ */ r(u, { src: y, alt: e.year.toString() }) }),
46
- /* @__PURE__ */ c(n, { $gutterX: 1, children: [
38
+ h();
39
+ }, [h]), $(() => {
40
+ (a || i) && (o == null || o(a && !i));
41
+ }, [a, i, o]), E && !t.length ? /* @__PURE__ */ r(S, { height: "100dvh" }) : i ? /* @__PURE__ */ r(B, { onTryAgain: h, height: "100dvh" }) : /* @__PURE__ */ r(w, { children: (t == null ? void 0 : t.length) > 0 ? /* @__PURE__ */ r(c, { $gapX: 2, children: t.map((e, _) => {
42
+ const T = _ === 0, b = e.month === 12, d = !T && b, y = v[e.year];
43
+ return /* @__PURE__ */ s(c, { $width: "100%", children: [
44
+ !T && !d && /* @__PURE__ */ r(l, { heightX: 2 }),
45
+ d && y && /* @__PURE__ */ r(z, { $marginBottom: -122, children: /* @__PURE__ */ r(u, { src: y, alt: e.year.toString() }) }),
46
+ /* @__PURE__ */ s(c, { $gutterX: 1, children: [
47
47
  /* @__PURE__ */ r(D, { $renderAs: "ac4", $color: "BLACK_T_60", children: A[e.month - 1] }),
48
48
  /* @__PURE__ */ r(l, { heightX: 1 }),
49
49
  /* @__PURE__ */ r(
50
- F,
50
+ M,
51
51
  {
52
52
  reports: e.reports,
53
53
  month: e.month,
@@ -57,13 +57,13 @@ const N = ({
57
57
  )
58
58
  ] })
59
59
  ] }, `${e.month}-${e.year}`);
60
- }) }) : /* @__PURE__ */ c(n, { $justifyContent: "center", $alignItems: "center", $height: "100dvh", children: [
61
- /* @__PURE__ */ r(u, { src: K.EMPTY_REPORTS }),
60
+ }) }) : /* @__PURE__ */ s(I, { $justifyContent: "center", $alignItems: "center", $height: "100%", children: [
61
+ /* @__PURE__ */ r(u, { src: N.EMPTY_REPORTS }),
62
62
  /* @__PURE__ */ r(l, { heightX: 1.5 }),
63
- /* @__PURE__ */ r(S, { $renderAs: "ab2", color: "BLACK_T_60", children: "Report will be available next month." })
63
+ /* @__PURE__ */ r(j, { $renderAs: "ab2", color: "BLACK_T_60", children: "Report will be available next month." })
64
64
  ] }) });
65
- }, rr = L(N);
65
+ }, er = L(O);
66
66
  export {
67
- rr as default
67
+ er as default
68
68
  };
69
69
  //# sourceMappingURL=monthly-timeline.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"monthly-timeline.js","sources":["../../../../src/features/timeline/monthly-timeline/monthly-timeline.tsx"],"sourcesContent":["import { type FC, memo, useCallback, useEffect, useMemo } from 'react';\n\nimport { type IMonthlyTimelineProps } from './monthly-timeline-types';\nimport { monthlyTimelineGet } from './api/use-monthly-timeline-get';\nimport MonthlyTimelineView from './monthly-timeline-view';\nimport AppLoader from '../../ui/loader/app-loader/app-loader';\nimport FlexView from '../../ui/layout/flex-view';\nimport Text from '../../ui/text/text';\nimport Image from '../../ui/image/image';\nimport Separator from '../../ui/separator/separator';\nimport { monthNames, yearImages } from './constants';\nimport Error from '../../ui/error/error';\nimport * as Styled from './monthly-timeline-styled';\nimport { getTimezone } from '../../../helpers/date-time';\nimport { ILLUSTRATIONS } from '../../../assets/illustrations/illustrations';\n\nconst MonthlyTimeline: FC<IMonthlyTimelineProps> = ({\n userType,\n studentId,\n courseStreams,\n onReportClick,\n onAPIComplete,\n}) => {\n const initialQueryParams = useMemo(\n () => ({\n course_streams: userType === 'TEACHER' ? courseStreams : [],\n timezone: getTimezone(),\n }),\n [courseStreams, userType],\n );\n\n const {\n get: getTimeline,\n data: timelineData = [],\n isProcessing,\n isProcessingFailed,\n isProcessed,\n } = monthlyTimelineGet(studentId, initialQueryParams);\n\n const fetchData = useCallback(() => {\n getTimeline(studentId, initialQueryParams);\n }, [getTimeline, initialQueryParams, studentId]);\n\n useEffect(() => {\n fetchData();\n }, [fetchData]);\n\n useEffect(() => {\n if (isProcessed || isProcessingFailed) {\n onAPIComplete?.(isProcessed && !isProcessingFailed);\n }\n }, [isProcessed, isProcessingFailed, onAPIComplete]);\n\n if (isProcessing) {\n return <AppLoader height=\"100dvh\" />;\n }\n\n if (isProcessingFailed) {\n return <Error onTryAgain={fetchData} height=\"100dvh\" />;\n }\n\n return (\n <>\n {timelineData?.length > 0 ? (\n <FlexView $gapX={2}>\n {timelineData.map((item, index) => {\n const isFirstItem = index === 0;\n const isDecember = item.month === 12;\n const showYearImage = !isFirstItem && isDecember;\n const yearImage = yearImages[item.year];\n\n return (\n <FlexView key={`${item.month}-${item.year}`} $width=\"100%\">\n {!isFirstItem && !showYearImage && <Separator heightX={2} />}\n {showYearImage && yearImage && (\n <Styled.ImageContainer $marginBottom={-122}>\n <Image src={yearImage} alt={item.year.toString()} />\n </Styled.ImageContainer>\n )}\n <FlexView $gutterX={1}>\n <Styled.DateText $renderAs=\"ac4\" $color=\"BLACK_T_60\">\n {monthNames[item.month - 1]}\n </Styled.DateText>\n <Separator heightX={1} />\n <MonthlyTimelineView\n reports={item.reports}\n month={item.month}\n year={item.year}\n onReportClick={onReportClick}\n />\n </FlexView>\n </FlexView>\n );\n })}\n </FlexView>\n ) : (\n <FlexView $justifyContent=\"center\" $alignItems=\"center\" $height=\"100dvh\">\n <Image src={ILLUSTRATIONS.EMPTY_REPORTS} />\n <Separator heightX={1.5} />\n <Text $renderAs=\"ab2\" color=\"BLACK_T_60\">\n Report will be available next month.\n </Text>\n </FlexView>\n )}\n </>\n );\n};\n\nexport default memo(MonthlyTimeline);\n"],"names":["MonthlyTimeline","userType","studentId","courseStreams","onReportClick","onAPIComplete","initialQueryParams","useMemo","getTimezone","getTimeline","timelineData","isProcessing","isProcessingFailed","isProcessed","monthlyTimelineGet","fetchData","useCallback","useEffect","jsx","AppLoader","Error","Fragment","FlexView","item","index","isFirstItem","isDecember","showYearImage","yearImage","yearImages","jsxs","Separator","Styled.ImageContainer","Image","Styled.DateText","monthNames","MonthlyTimelineView","ILLUSTRATIONS","Text","monthlyTimeline","memo"],"mappings":";;;;;;;;;;;;;;AAgBA,MAAMA,IAA6C,CAAC;AAAA,EAClD,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,eAAAC;AAAA,EACA,eAAAC;AAAA,EACA,eAAAC;AACF,MAAM;AACJ,QAAMC,IAAqBC;AAAA,IACzB,OAAO;AAAA,MACL,gBAAgBN,M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KAAKL,EAAK,KAAK,SAAA,EAAY,CAAA,GACpD;AAAA,MAEF,gBAAAO,EAACR,GAAS,EAAA,UAAU,GAClB,UAAA;AAAA,QAAC,gBAAAJ,EAAAgB,GAAA,EAAgB,WAAU,OAAM,QAAO,cACrC,UAAWC,EAAAZ,EAAK,QAAQ,CAAC,EAC5B,CAAA;AAAA,QACA,gBAAAL,EAACa,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,QACvB,gBAAAb;AAAA,UAACkB;AAAA,UAAA;AAAA,YACC,SAASb,EAAK;AAAA,YACd,OAAOA,EAAK;AAAA,YACZ,MAAMA,EAAK;AAAA,YACX,eAAAnB;AAAA,UAAA;AAAA,QACF;AAAA,MAAA,GACF;AAAA,IAAA,KAlBa,GAAGmB,EAAK,KAAK,IAAIA,EAAK,IAAI,EAmBzC;AAAA,EAEH,CAAA,GACH,IAEC,gBAAAO,EAAAR,GAAA,EAAS,iBAAgB,UAAS,aAAY,UAAS,SAAQ,UAC9D,UAAA;AAAA,IAAC,gBAAAJ,EAAAe,GAAA,EAAM,KAAKI,EAAc,cAAe,CAAA;AAAA,IACzC,gBAAAnB,EAACa,GAAU,EAAA,SAAS,IAAK,CAAA;AAAA,sBACxBO,GAAK,EAAA,WAAU,OAAM,OAAM,cAAa,UAEzC,wCAAA;AAAA,EAAA,EACF,CAAA,EAEJ,CAAA;AAEJ,GAEeC,KAAAC,EAAKxC,CAAe;"}
1
+ {"version":3,"file":"monthly-timeline.js","sources":["../../../../src/features/timeline/monthly-timeline/monthly-timeline.tsx"],"sourcesContent":["import { type FC, memo, useCallback, useEffect, useMemo } from 'react';\n\nimport { type IMonthlyTimelineProps } from './monthly-timeline-types';\nimport { monthlyTimelineGet } from './api/use-monthly-timeline-get';\nimport MonthlyTimelineView from './monthly-timeline-view';\nimport AppLoader from '../../ui/loader/app-loader/app-loader';\nimport FlexView from '../../ui/layout/flex-view';\nimport Text from '../../ui/text/text';\nimport Image from '../../ui/image/image';\nimport Separator from '../../ui/separator/separator';\nimport { monthNames, yearImages } from './constants';\nimport Error from '../../ui/error/error';\nimport * as Styled from './monthly-timeline-styled';\nimport { getTimezone } from '../../../helpers/date-time';\nimport { ILLUSTRATIONS } from '../../../assets/illustrations/illustrations';\n\nconst MonthlyTimeline: FC<IMonthlyTimelineProps> = ({\n userType,\n studentId,\n courseStreams,\n onReportClick,\n onAPIComplete,\n}) => {\n const initialQueryParams = useMemo(\n () => ({\n course_streams: userType === 'TEACHER' ? courseStreams : [],\n timezone: getTimezone(),\n }),\n [courseStreams, userType],\n );\n\n const {\n get: getTimeline,\n data: timelineData = [],\n isProcessing,\n isProcessingFailed,\n isProcessed,\n } = monthlyTimelineGet(studentId, initialQueryParams);\n\n const fetchData = useCallback(() => {\n getTimeline(studentId, initialQueryParams);\n }, [getTimeline, initialQueryParams, studentId]);\n\n useEffect(() => {\n fetchData();\n }, [fetchData]);\n\n useEffect(() => {\n if (isProcessed || isProcessingFailed) {\n onAPIComplete?.(isProcessed && !isProcessingFailed);\n }\n }, [isProcessed, isProcessingFailed, onAPIComplete]);\n\n if (isProcessing && !timelineData.length) {\n return <AppLoader height=\"100dvh\" />;\n }\n\n if (isProcessingFailed) {\n return <Error onTryAgain={fetchData} height=\"100dvh\" />;\n }\n\n return (\n <>\n {timelineData?.length > 0 ? (\n <FlexView $gapX={2}>\n {timelineData.map((item, index) => {\n const isFirstItem = index === 0;\n const isDecember = item.month === 12;\n const showYearImage = !isFirstItem && isDecember;\n const yearImage = yearImages[item.year];\n\n return (\n <FlexView key={`${item.month}-${item.year}`} $width=\"100%\">\n {!isFirstItem && !showYearImage && <Separator heightX={2} />}\n {showYearImage && yearImage && (\n <Styled.ImageContainer $marginBottom={-122}>\n <Image src={yearImage} alt={item.year.toString()} />\n </Styled.ImageContainer>\n )}\n <FlexView $gutterX={1}>\n <Styled.DateText $renderAs=\"ac4\" $color=\"BLACK_T_60\">\n {monthNames[item.month - 1]}\n </Styled.DateText>\n <Separator heightX={1} />\n <MonthlyTimelineView\n reports={item.reports}\n month={item.month}\n year={item.year}\n onReportClick={onReportClick}\n />\n </FlexView>\n </FlexView>\n );\n })}\n </FlexView>\n ) : (\n <Styled.EmptyWrapper $justifyContent=\"center\" $alignItems=\"center\" $height=\"100%\">\n <Image src={ILLUSTRATIONS.EMPTY_REPORTS} />\n <Separator heightX={1.5} />\n <Text $renderAs=\"ab2\" color=\"BLACK_T_60\">\n Report will be available next month.\n </Text>\n </Styled.EmptyWrapper>\n )}\n </>\n );\n};\n\nexport default memo(MonthlyTimeline);\n"],"names":["MonthlyTimeline","userType","studentId","courseStreams","onReportClick","onAPIComplete","initialQueryParams","useMemo","getTimezone","getTimeline","timelineData","isProcessing","isProcessingFailed","isProcessed","monthlyTimelineGet","fetchData","useCallback","useEffect","jsx","AppLoader","Error","Fragment","FlexView","item","index","isFirstItem","isDecember","showYearImage","yearImage","yearImages","jsxs","Separator","Styled.ImageContainer","Image","Styled.DateText","monthNames","MonthlyTimelineView","Styled.EmptyWrapper","ILLUSTRATIONS","Text","monthlyTimeline","memo"],"mappings":";;;;;;;;;;;;;;AAgBA,MAAMA,IAA6C,CAAC;AAAA,EAClD,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,eAAAC;AAAA,EACA,eAAAC;AAAA,EACA,eAAAC;AACF,MAAM;AACJ,QAAMC,IAAqBC;AAAA,IACzB,OAAO;AAAA,MACL,gBAAgBN,MAAa,YAAYE,IAAgB,CAAC;AAAA,MAC1D,UAAUK,EAAY;AAAA,IAAA;AAAA,IAExB,CAACL,GAAeF,CAAQ;AAAA,EAAA,GAGpB;AAAA,IACJ,KAAKQ;AAAA,IACL,MAAMC,IAAe,CAAC;AAAA,IACtB,cAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,aAAAC;AAAA,EAAA,IACEC,EAAmBZ,GAAWI,CAAkB,GAE9CS,IAAYC,EAAY,MAAM;AAClC,IAAAP,EAAYP,GAAWI,CAAkB;AAAA,EACxC,GAAA,CAACG,GAAaH,GAAoBJ,C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d,OAAOA,EAAK;AAAA,YACZ,MAAMA,EAAK;AAAA,YACX,eAAAnB;AAAA,UAAA;AAAA,QACF;AAAA,MAAA,GACF;AAAA,IAAA,KAlBa,GAAGmB,EAAK,KAAK,IAAIA,EAAK,IAAI,EAmBzC;AAAA,EAEH,CAAA,GACH,IAEA,gBAAAO,EAACO,GAAA,EAAoB,iBAAgB,UAAS,aAAY,UAAS,SAAQ,QACzE,UAAA;AAAA,IAAC,gBAAAnB,EAAAe,GAAA,EAAM,KAAKK,EAAc,cAAe,CAAA;AAAA,IACzC,gBAAApB,EAACa,GAAU,EAAA,SAAS,IAAK,CAAA;AAAA,sBACxBQ,GAAK,EAAA,WAAU,OAAM,OAAM,cAAa,UAEzC,wCAAA;AAAA,EAAA,EACF,CAAA,EAEJ,CAAA;AAEJ,GAEeC,KAAAC,EAAKzC,CAAe;"}
@@ -1,20 +1,14 @@
1
- import { createGetAPI as s, createPatchAPI as a } from "@cuemath/rest-api";
2
- import { BASE_URL_V1 as r, BASE_URL_V2 as i } from "../../../constants/api.js";
3
- import { stringify as o } from "../../../helpers/query-string.js";
4
- const { useGet: u, invalidate: l } = s({
5
- getURL: (t, e) => `${r}/trial/home/v2/?${o(e)}`
6
- }), { usePatch: p } = a({
7
- getURL: () => `${r}/trial/home/v2/`
8
- }), { useGet: g } = s({
9
- getURL: (t) => `${i}/user-attempts/${t}/trial-diagnostic/report`
10
- }), { useGet: $ } = s({
11
- getURL: (t, e) => `${i}/user-attempts/${t}/trial-diagnostic/report/v2/?${o(e)}`
1
+ import { createGetAPI as r, createPatchAPI as a } from "@cuemath/rest-api";
2
+ import { BASE_URL_V1 as e } from "../../../constants/api.js";
3
+ import { stringify as i } from "../../../helpers/query-string.js";
4
+ const { useGet: s, invalidate: h } = r({
5
+ getURL: (o, t) => `${e}/trial/home/v2/?${i(t)}`
6
+ }), { usePatch: n } = a({
7
+ getURL: () => `${e}/trial/home/v2/`
12
8
  });
13
9
  export {
14
- l as invalidateTrialHome,
15
- g as useGetSessionInsights,
16
- $ as useGetSessionReports,
17
- u as useGetTrialHome,
18
- p as usePatchTrialHome
10
+ h as invalidateTrialHome,
11
+ s as useGetTrialHome,
12
+ n as usePatchTrialHome
19
13
  };
20
14
  //# sourceMappingURL=trial-home.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"trial-home.js","sources":["../../../../src/features/trial-session/api/trial-home.ts"],"sourcesContent":["import { createGetAPI, createPatchAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V1, BASE_URL_V2 } from '../../../constants/api';\nimport { stringify } from '../../../helpers/query-string';\nimport type { TSessionInsightsData } from '../comps/session-insights/session-insights-types';\nimport type { TSessionReportData } from '../comps/session-report/session-report-types';\nimport type { ITrialHomeData } from '../trial-session-types';\n\ninterface IGetTrailHomeQuery {\n teacher_id: string;\n student_id: string;\n viewer: string;\n}\n\ninterface ISessionInsightsQuery {\n student_level: string;\n student_name: string;\n}\n\nconst { useGet: useGetTrialHome, invalidate: invalidateTrialHome } = createGetAPI<\n ITrialHomeData,\n IGetTrailHomeQuery\n>({\n getURL: (_, query) => `${BASE_URL_V1}/trial/home/v2/?${stringify(query)}`,\n});\n\nconst { usePatch: usePatchTrialHome } = createPatchAPI({\n getURL: () => `${BASE_URL_V1}/trial/home/v2/`,\n});\n\nconst { useGet: useGetSessionInsights } = createGetAPI<TSessionInsightsData>({\n getURL: userAttemptId => `${BASE_URL_V2}/user-attempts/${userAttemptId}/trial-diagnostic/report`,\n});\n\nconst { useGet: useGetSessionReports } = createGetAPI<TSessionReportData, ISessionInsightsQuery>({\n getURL: (userAttemptId, query) =>\n `${BASE_URL_V2}/user-attempts/${userAttemptId}/trial-diagnostic/report/v2/?${stringify(query)}`,\n});\n\nexport {\n useGetTrialHome,\n usePatchTrialHome,\n invalidateTrialHome,\n useGetSessionReports,\n useGetSessionInsights,\n};\n"],"names":["useGetTrialHome","invalidateTrialHome","createGetAPI","_","query","BASE_URL_V1","stringify","usePatchTrialHome","createPatchAPI","useGetSessionInsights","userAttemptId","BASE_URL_V2","useGetSessionReports"],"mappings":";;;AAmBA,MAAM,EAAE,QAAQA,GAAiB,YAAYC,EAAA,IAAwBC,EAGnE;AAAA,EACA,QAAQ,CAACC,GAAGC,MAAU,GAAGC,CAAW,mBAAmBC,EAAUF,CAAK,CAAC;AACzE,CAAC,GAEK,EAAE,UAAUG,EAAkB,IAAIC,EAAe;AAAA,EACrD,QAAQ,MAAM,GAAGH,CAAW;AAC9B,CAAC,GAEK,EAAE,QAAQI,EAAsB,IAAIP,EAAmC;AAAA,EAC3E,QAAQ,CAAAQ,MAAiB,GAAGC,CAAW,kBAAkBD,CAAa;AACxE,CAAC,GAEK,EAAE,QAAQE,EAAqB,IAAIV,EAAwD;AAAA,EAC/F,QAAQ,CAACQ,GAAeN,MACtB,GAAGO,CAAW,kBAAkBD,CAAa,gCAAgCJ,EAAUF,CAAK,CAAC;AACjG,CAAC;"}
1
+ {"version":3,"file":"trial-home.js","sources":["../../../../src/features/trial-session/api/trial-home.ts"],"sourcesContent":["import { createGetAPI, createPatchAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V1 } from '../../../constants/api';\nimport { stringify } from '../../../helpers/query-string';\nimport type { ITrialHomeData } from '../trial-session-types';\n\ninterface IGetTrailHomeQuery {\n teacher_id: string;\n student_id: string;\n viewer: string;\n}\n\nconst { useGet: useGetTrialHome, invalidate: invalidateTrialHome } = createGetAPI<\n ITrialHomeData,\n IGetTrailHomeQuery\n>({\n getURL: (_, query) => `${BASE_URL_V1}/trial/home/v2/?${stringify(query)}`,\n});\n\nconst { usePatch: usePatchTrialHome } = createPatchAPI({\n getURL: () => `${BASE_URL_V1}/trial/home/v2/`,\n});\n\nexport { useGetTrialHome, usePatchTrialHome, invalidateTrialHome };\n"],"names":["useGetTrialHome","invalidateTrialHome","createGetAPI","_","query","BASE_URL_V1","stringify","usePatchTrialHome","createPatchAPI"],"mappings":";;;AAYA,MAAM,EAAE,QAAQA,GAAiB,YAAYC,EAAA,IAAwBC,EAGnE;AAAA,EACA,QAAQ,CAACC,GAAGC,MAAU,GAAGC,CAAW,mBAAmBC,EAAUF,CAAK,CAAC;AACzE,CAAC,GAEK,EAAE,UAAUG,EAAkB,IAAIC,EAAe;AAAA,EACrD,QAAQ,MAAM,GAAGH,CAAW;AAC9B,CAAC;"}
@@ -0,0 +1,16 @@
1
+ import { createGetAPI as s } from "@cuemath/rest-api";
2
+ import { BASE_URL_V2 as r } from "../../../constants/api.js";
3
+ import { stringify as o } from "../../../helpers/query-string.js";
4
+ const { useGet: a } = s({
5
+ getURL: (t) => `${r}/user-attempts/${t}/trial-diagnostic/report`
6
+ }), { useGet: g } = s({
7
+ getURL: (t, e) => `${r}/user-attempts/${t}/trial-diagnostic/report/v2/?${o(e)}`
8
+ }), { useGet: m } = s({
9
+ getURL: (t, e) => `${r}/user-attempts/${t}/trial-diagnostic/report/v3/?${o(e)}`
10
+ });
11
+ export {
12
+ a as useGetSessionInsights,
13
+ m as useGetSessionProgressReports,
14
+ g as useGetSessionReports
15
+ };
16
+ //# sourceMappingURL=trial-session-report.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trial-session-report.js","sources":["../../../../src/features/trial-session/api/trial-session-report.ts"],"sourcesContent":["import { createGetAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V2 } from '../../../constants/api';\nimport { type TSessionInsightsData } from '../comps/session-insights/session-insights-types';\nimport { type TSessionReportData } from '../comps/session-report/session-report-types';\nimport { stringify } from '../../../helpers/query-string';\nimport { type ISessionProgressSummary } from '../comps/session-progress-summary/session-progress-summary-types';\n\ninterface ISessionInsightsQuery {\n student_level: string;\n student_name: string;\n}\n\nconst { useGet: useGetSessionInsights } = createGetAPI<TSessionInsightsData>({\n getURL: userAttemptId => `${BASE_URL_V2}/user-attempts/${userAttemptId}/trial-diagnostic/report`,\n});\n\nconst { useGet: useGetSessionReports } = createGetAPI<TSessionReportData, ISessionInsightsQuery>({\n getURL: (userAttemptId, query) =>\n `${BASE_URL_V2}/user-attempts/${userAttemptId}/trial-diagnostic/report/v2/?${stringify(query)}`,\n});\n\nconst { useGet: useGetSessionProgressReports } = createGetAPI<\n ISessionProgressSummary,\n { student_name: string }\n>({\n getURL: (userAttemptId, query) =>\n `${BASE_URL_V2}/user-attempts/${userAttemptId}/trial-diagnostic/report/v3/?${stringify(query)}`,\n});\n\nexport { useGetSessionReports, useGetSessionInsights, useGetSessionProgressReports };\n"],"names":["useGetSessionInsights","createGetAPI","userAttemptId","BASE_URL_V2","useGetSessionReports","query","stringify","useGetSessionProgressReports"],"mappings":";;;AAaA,MAAM,EAAE,QAAQA,EAAsB,IAAIC,EAAmC;AAAA,EAC3E,QAAQ,CAAAC,MAAiB,GAAGC,CAAW,kBAAkBD,CAAa;AACxE,CAAC,GAEK,EAAE,QAAQE,EAAqB,IAAIH,EAAwD;AAAA,EAC/F,QAAQ,CAACC,GAAeG,MACtB,GAAGF,CAAW,kBAAkBD,CAAa,gCAAgCI,EAAUD,CAAK,CAAC;AACjG,CAAC,GAEK,EAAE,QAAQE,EAA6B,IAAIN,EAG/C;AAAA,EACA,QAAQ,CAACC,GAAeG,MACtB,GAAGF,CAAW,kBAAkBD,CAAa,gCAAgCI,EAAUD,CAAK,CAAC;AACjG,CAAC;"}
@@ -0,0 +1,9 @@
1
+ import { createGetAPI as t } from "@cuemath/rest-api";
2
+ import { BASE_URL_V1 as e } from "../../../constants/api.js";
3
+ const { useGet: i } = t({
4
+ getURL: () => `${e}/configs/trial_v3_topics`
5
+ });
6
+ export {
7
+ i as useGetTrialTopics
8
+ };
9
+ //# sourceMappingURL=trial-topics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trial-topics.js","sources":["../../../../src/features/trial-session/api/trial-topics.ts"],"sourcesContent":["import { createGetAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V1 } from '../../../constants/api';\n\ninterface ITrialTopicsData {\n [countryCode: string]: {\n [grade: number]: {\n [course: string]: {\n topic_image_url: string;\n topic_name: string;\n };\n };\n };\n}\n\nconst { useGet: useGetTrialTopics } = createGetAPI<ITrialTopicsData>({\n getURL: () => `${BASE_URL_V1}/configs/trial_v3_topics`,\n});\n\nexport { useGetTrialTopics };\n"],"names":["useGetTrialTopics","createGetAPI","BASE_URL_V1"],"mappings":";;AAeA,MAAM,EAAE,QAAQA,EAAkB,IAAIC,EAA+B;AAAA,EACnE,QAAQ,MAAM,GAAGC,CAAW;AAC9B,CAAC;"}
@@ -1,33 +1,33 @@
1
- import { getTheme as O } from "../../../ui/theme/get-theme.js";
1
+ import { getTheme as I } from "../../../ui/theme/get-theme.js";
2
2
  import { TrialPageId as x } from "../../trial-session-constants.js";
3
- const I = O(), {
4
- BLACK_T_08: l,
5
- WHITE_3: b,
3
+ const R = I(), {
4
+ BLACK_T_08: g,
5
+ WHITE_3: l,
6
6
  WHITE_4: A,
7
7
  WHITE_5: i,
8
8
  GREEN_1: o,
9
9
  GREEN_2: s,
10
10
  ORANGE_1: C,
11
- ORANGE_2: N,
12
- BLUE_1: y,
13
- BLUE_2: r,
14
- BLUE_3: L,
15
- PURPLE_1: E,
16
- PURPLE_2: S,
17
- YELLOW_1: g,
18
- YELLOW_2: _
19
- } = I.colors, U = (T) => T ? {
11
+ ORANGE_2: T,
12
+ BLUE_1: S,
13
+ BLUE_2: b,
14
+ BLUE_3: N,
15
+ PURPLE_1: y,
16
+ PURPLE_2: O,
17
+ YELLOW_1: r,
18
+ YELLOW_2: E
19
+ } = R.colors, U = (_) => _ ? {
20
20
  [x.SESSION_OVERVIEW]: [
21
- { xAxis: 2, yAxis: 1, bgColor: _ },
21
+ { xAxis: 2, yAxis: 1, bgColor: E },
22
22
  { xAxis: 14, yAxis: 1, bgColor: o },
23
23
  { xAxis: 3, yAxis: 10, bgColor: o },
24
24
  { xAxis: 16, yAxis: 6, bgColor: C }
25
25
  ],
26
26
  [x.STUDENT_INFORMATION]: [
27
- { xAxis: 2, yAxis: 1, bgColor: r },
28
- { xAxis: 17, yAxis: 3, bgColor: y },
29
- { xAxis: 1, yAxis: 9, bgColor: y },
30
- { xAxis: 16, yAxis: 8, bgColor: r }
27
+ { xAxis: 3, yAxis: 1, bgColor: l },
28
+ { xAxis: 14, yAxis: 1, bgColor: g },
29
+ { xAxis: 1, yAxis: 7, bgColor: g },
30
+ { xAxis: 17, yAxis: 9, bgColor: l }
31
31
  ],
32
32
  [x.LEARNING_LEVEL]: [
33
33
  { xAxis: 3, yAxis: 0, bgColor: s },
@@ -42,21 +42,21 @@ const I = O(), {
42
42
  { xAxis: 17, yAxis: 6, bgColor: o }
43
43
  ],
44
44
  [x.SCHOOL_GOALS]: [
45
- { xAxis: 2, yAxis: 1, bgColor: S },
46
- { xAxis: 16, yAxis: 0, bgColor: E },
47
- { xAxis: 1, yAxis: 8, bgColor: E },
48
- { xAxis: 17, yAxis: 10, bgColor: S }
45
+ { xAxis: 2, yAxis: 1, bgColor: O },
46
+ { xAxis: 16, yAxis: 0, bgColor: y },
47
+ { xAxis: 0, yAxis: 8, bgColor: y },
48
+ { xAxis: 17, yAxis: 10, bgColor: O }
49
49
  ],
50
50
  [x.TEST_PREP]: [
51
- { xAxis: 3, yAxis: 0, bgColor: y },
52
- { xAxis: 16, yAxis: 1, bgColor: r },
53
- { xAxis: 0, yAxis: 9, bgColor: r },
54
- { xAxis: 18, yAxis: 8, bgColor: y }
51
+ { xAxis: 3, yAxis: 0, bgColor: S },
52
+ { xAxis: 16, yAxis: 1, bgColor: b },
53
+ { xAxis: 0, yAxis: 9, bgColor: b },
54
+ { xAxis: 18, yAxis: 8, bgColor: S }
55
55
  ],
56
56
  [x.STUDENT_ENRICHMENT]: [
57
57
  { xAxis: 0, yAxis: 1, bgColor: C },
58
- { xAxis: 14, yAxis: 1, bgColor: N },
59
- { xAxis: 3, yAxis: 11, bgColor: N },
58
+ { xAxis: 14, yAxis: 1, bgColor: T },
59
+ { xAxis: 3, yAxis: 11, bgColor: T },
60
60
  { xAxis: 12, yAxis: 12, bgColor: C }
61
61
  ],
62
62
  [x.STUDENT_PERSONALIZATION]: [
@@ -65,26 +65,38 @@ const I = O(), {
65
65
  { xAxis: 0, yAxis: 10, bgColor: o },
66
66
  { xAxis: 12, yAxis: 12, bgColor: o }
67
67
  ],
68
+ [x.TOPIC_SELECTION]: [
69
+ { xAxis: 1, yAxis: 1, bgColor: o },
70
+ { xAxis: 13, yAxis: 2, bgColor: s },
71
+ { xAxis: 0, yAxis: 10, bgColor: o },
72
+ { xAxis: 12, yAxis: 12, bgColor: o }
73
+ ],
68
74
  [x.ADDITIONAL_INFO]: [
69
- { xAxis: 2, yAxis: 1, bgColor: l },
70
- { xAxis: 13, yAxis: 0, bgColor: b },
71
- { xAxis: 2, yAxis: 12, bgColor: l },
72
- { xAxis: 13, yAxis: 11, bgColor: b }
75
+ { xAxis: 2, yAxis: 1, bgColor: g },
76
+ { xAxis: 13, yAxis: 0, bgColor: l },
77
+ { xAxis: 2, yAxis: 12, bgColor: g },
78
+ { xAxis: 13, yAxis: 11, bgColor: l }
73
79
  ],
74
80
  [x.STUDENT_PROFILE]: [
75
- { xAxis: 3, yAxis: 1, bgColor: b },
76
- { xAxis: 14, yAxis: 1, bgColor: l },
77
- { xAxis: 1, yAxis: 7, bgColor: l },
78
- { xAxis: 17, yAxis: 9, bgColor: b }
81
+ { xAxis: 3, yAxis: 1, bgColor: l },
82
+ { xAxis: 14, yAxis: 1, bgColor: g },
83
+ { xAxis: 1, yAxis: 7, bgColor: g },
84
+ { xAxis: 17, yAxis: 9, bgColor: l }
79
85
  ],
80
86
  [x.PARENT_APP]: [
81
87
  { xAxis: 1, yAxis: 1, bgColor: s },
82
88
  { xAxis: 14, yAxis: 0, bgColor: C },
83
- { xAxis: 1, yAxis: 10, bgColor: L },
84
- { xAxis: 17, yAxis: 9, bgColor: g }
89
+ { xAxis: 1, yAxis: 10, bgColor: N },
90
+ { xAxis: 17, yAxis: 9, bgColor: r }
91
+ ],
92
+ [x.SESSION_PROGRESS_SUMMARY]: [
93
+ { xAxis: 1, yAxis: 1, bgColor: s },
94
+ { xAxis: 13, yAxis: 0, bgColor: C },
95
+ { xAxis: 3, yAxis: 13, bgColor: N },
96
+ { xAxis: 15, yAxis: 9, bgColor: r }
85
97
  ],
86
98
  [x.SESSION_SUMMARY]: [
87
- { xAxis: 2, yAxis: 1, bgColor: _ },
99
+ { xAxis: 2, yAxis: 1, bgColor: E },
88
100
  { xAxis: 14, yAxis: 1, bgColor: o },
89
101
  { xAxis: 2, yAxis: 10, bgColor: o },
90
102
  { xAxis: 16, yAxis: 8, bgColor: C }
@@ -96,22 +108,22 @@ const I = O(), {
96
108
  { xAxis: 17, yAxis: 8, bgColor: s }
97
109
  ],
98
110
  [x.SESSION_INSIGHTS]: [
99
- { xAxis: 1, yAxis: 1, bgColor: r },
100
- { xAxis: 16, yAxis: 1, bgColor: g },
111
+ { xAxis: 1, yAxis: 1, bgColor: b },
112
+ { xAxis: 16, yAxis: 1, bgColor: r },
101
113
  { xAxis: 1, yAxis: 9, bgColor: C },
102
- { xAxis: 17, yAxis: 8, bgColor: E }
114
+ { xAxis: 17, yAxis: 8, bgColor: y }
103
115
  ],
104
116
  [x.SESSION_REPORT]: [
105
- { xAxis: 1, yAxis: 1, bgColor: r },
106
- { xAxis: 16, yAxis: 1, bgColor: g },
117
+ { xAxis: 1, yAxis: 1, bgColor: b },
118
+ { xAxis: 16, yAxis: 1, bgColor: r },
107
119
  { xAxis: 1, yAxis: 9, bgColor: C },
108
- { xAxis: 17, yAxis: 8, bgColor: E }
120
+ { xAxis: 17, yAxis: 8, bgColor: y }
109
121
  ],
110
122
  [x.CLASS_PREFERENCE]: [
111
- { xAxis: 2, yAxis: 1, bgColor: g },
112
- { xAxis: 16, yAxis: 1, bgColor: _ },
113
- { xAxis: 2, yAxis: 9, bgColor: g },
114
- { xAxis: 17, yAxis: 8, bgColor: g }
123
+ { xAxis: 2, yAxis: 1, bgColor: r },
124
+ { xAxis: 16, yAxis: 1, bgColor: E },
125
+ { xAxis: 2, yAxis: 9, bgColor: r },
126
+ { xAxis: 17, yAxis: 8, bgColor: r }
115
127
  ],
116
128
  [x.WELCOME_CUEMATH]: [
117
129
  { xAxis: 2, yAxis: 0, bgColor: A },
@@ -149,7 +161,7 @@ const I = O(), {
149
161
  { xAxis: 3, yAxis: 9, bgColor: i },
150
162
  { xAxis: 17, yAxis: 10, bgColor: A }
151
163
  ]
152
- }[T] : void 0;
164
+ }[_] : void 0;
153
165
  export {
154
166
  U as getColoredBoxPosition
155
167
  };
@@ -1 +1 @@
1
- {"version":3,"file":"background-grid-utils.js","sources":["../../../../../src/features/trial-session/comps/background-grid/background-grid-utils.ts"],"sourcesContent":["import { getTheme } from '../../../ui/theme/get-theme';\nimport { TrialPageId } from '../../trial-session-constants';\nimport type { TColoredBox } from './background-grid-types';\n\nconst theme = getTheme();\nconst {\n BLACK_T_08,\n WHITE_3,\n WHITE_4,\n WHITE_5,\n GREEN_1,\n GREEN_2,\n ORANGE_1,\n ORANGE_2,\n BLUE_1,\n BLUE_2,\n BLUE_3,\n PURPLE_1,\n PURPLE_2,\n YELLOW_1,\n YELLOW_2,\n} = theme.colors;\n\nexport const getColoredBoxPosition = (slideId?: TrialPageId): TColoredBox[] | undefined => {\n if (!slideId) return;\n\n const positions: Partial<Record<TrialPageId, TColoredBox[]>> = {\n [TrialPageId.SESSION_OVERVIEW]: [\n { xAxis: 2, yAxis: 1, bgColor: YELLOW_2 },\n { xAxis: 14, yAxis: 1, bgColor: GREEN_1 },\n { xAxis: 3, yAxis: 10, bgColor: GREEN_1 },\n { xAxis: 16, yAxis: 6, bgColor: ORANGE_1 },\n ],\n [TrialPageId.STUDENT_INFORMATION]: [\n { xAxis: 2, yAxis: 1, bgColor: BLUE_2 },\n { xAxis: 17, yAxis: 3, bgColor: BLUE_1 },\n { xAxis: 1, yAxis: 9, bgColor: BLUE_1 },\n { xAxis: 16, yAxis: 8, bgColor: BLUE_2 },\n ],\n [TrialPageId.LEARNING_LEVEL]: [\n { xAxis: 3, yAxis: 0, bgColor: GREEN_2 },\n { xAxis: 16, yAxis: 1, bgColor: GREEN_2 },\n { xAxis: 2, yAxis: 9, bgColor: GREEN_1 },\n { xAxis: 17, yAxis: 6, bgColor: GREEN_1 },\n ],\n [TrialPageId.STUDENT_LEVEL]: [\n { xAxis: 2, yAxis: 0, bgColor: GREEN_2 },\n { xAxis: 16, yAxis: 1, bgColor: GREEN_2 },\n { xAxis: 2, yAxis: 9, bgColor: GREEN_1 },\n { xAxis: 17, yAxis: 6, bgColor: GREEN_1 },\n ],\n [TrialPageId.SCHOOL_GOALS]: [\n { xAxis: 2, yAxis: 1, bgColor: PURPLE_2 },\n { xAxis: 16, yAxis: 0, bgColor: PURPLE_1 },\n { xAxis: 1, yAxis: 8, bgColor: PURPLE_1 },\n { xAxis: 17, yAxis: 10, bgColor: PURPLE_2 },\n ],\n [TrialPageId.TEST_PREP]: [\n { xAxis: 3, yAxis: 0, bgColor: BLUE_1 },\n { xAxis: 16, yAxis: 1, bgColor: BLUE_2 },\n { xAxis: 0, yAxis: 9, bgColor: BLUE_2 },\n { xAxis: 18, yAxis: 8, bgColor: BLUE_1 },\n ],\n [TrialPageId.STUDENT_ENRICHMENT]: [\n { xAxis: 0, yAxis: 1, bgColor: ORANGE_1 },\n { xAxis: 14, yAxis: 1, bgColor: ORANGE_2 },\n { xAxis: 3, yAxis: 11, bgColor: ORANGE_2 },\n { xAxis: 12, yAxis: 12, bgColor: ORANGE_1 },\n ],\n [TrialPageId.STUDENT_PERSONALIZATION]: [\n { xAxis: 1, yAxis: 1, bgColor: GREEN_1 },\n { xAxis: 14, yAxis: 0, bgColor: GREEN_2 },\n { xAxis: 0, yAxis: 10, bgColor: GREEN_1 },\n { xAxis: 12, yAxis: 12, bgColor: GREEN_1 },\n ],\n [TrialPageId.ADDITIONAL_INFO]: [\n { xAxis: 2, yAxis: 1, bgColor: BLACK_T_08 },\n { xAxis: 13, yAxis: 0, bgColor: WHITE_3 },\n { xAxis: 2, yAxis: 12, bgColor: BLACK_T_08 },\n { xAxis: 13, yAxis: 11, bgColor: WHITE_3 },\n ],\n [TrialPageId.STUDENT_PROFILE]: [\n { xAxis: 3, yAxis: 1, bgColor: WHITE_3 },\n { xAxis: 14, yAxis: 1, bgColor: BLACK_T_08 },\n { xAxis: 1, yAxis: 7, bgColor: BLACK_T_08 },\n { xAxis: 17, yAxis: 9, bgColor: WHITE_3 },\n ],\n [TrialPageId.PARENT_APP]: [\n { xAxis: 1, yAxis: 1, bgColor: GREEN_2 },\n { xAxis: 14, yAxis: 0, bgColor: ORANGE_1 },\n { xAxis: 1, yAxis: 10, bgColor: BLUE_3 },\n { xAxis: 17, yAxis: 9, bgColor: YELLOW_1 },\n ],\n [TrialPageId.SESSION_SUMMARY]: [\n { xAxis: 2, yAxis: 1, bgColor: YELLOW_2 },\n { xAxis: 14, yAxis: 1, bgColor: GREEN_1 },\n { xAxis: 2, yAxis: 10, bgColor: GREEN_1 },\n { xAxis: 16, yAxis: 8, bgColor: ORANGE_1 },\n ],\n [TrialPageId.PRICING]: [\n { xAxis: 2, yAxis: 1, bgColor: GREEN_2 },\n { xAxis: 16, yAxis: 2, bgColor: GREEN_1 },\n { xAxis: 2, yAxis: 9, bgColor: GREEN_1 },\n { xAxis: 17, yAxis: 8, bgColor: GREEN_2 },\n ],\n [TrialPageId.SESSION_INSIGHTS]: [\n { xAxis: 1, yAxis: 1, bgColor: BLUE_2 },\n { xAxis: 16, yAxis: 1, bgColor: YELLOW_1 },\n { xAxis: 1, yAxis: 9, bgColor: ORANGE_1 },\n { xAxis: 17, yAxis: 8, bgColor: PURPLE_1 },\n ],\n [TrialPageId.SESSION_REPORT]: [\n { xAxis: 1, yAxis: 1, bgColor: BLUE_2 },\n { xAxis: 16, yAxis: 1, bgColor: YELLOW_1 },\n { xAxis: 1, yAxis: 9, bgColor: ORANGE_1 },\n { xAxis: 17, yAxis: 8, bgColor: PURPLE_1 },\n ],\n [TrialPageId.CLASS_PREFERENCE]: [\n { xAxis: 2, yAxis: 1, bgColor: YELLOW_1 },\n { xAxis: 16, yAxis: 1, bgColor: YELLOW_2 },\n { xAxis: 2, yAxis: 9, bgColor: YELLOW_1 },\n { xAxis: 17, yAxis: 8, bgColor: YELLOW_1 },\n ],\n [TrialPageId.WELCOME_CUEMATH]: [\n { xAxis: 2, yAxis: 0, bgColor: WHITE_4 },\n { xAxis: 16, yAxis: 1, bgColor: WHITE_5 },\n { xAxis: 3, yAxis: 9, bgColor: WHITE_5 },\n { xAxis: 17, yAxis: 10, bgColor: WHITE_4 },\n ],\n [TrialPageId.TEACHER_INTRO]: [\n { xAxis: 2, yAxis: 0, bgColor: WHITE_4 },\n { xAxis: 16, yAxis: 1, bgColor: WHITE_5 },\n { xAxis: 3, yAxis: 9, bgColor: WHITE_5 },\n { xAxis: 17, yAxis: 10, bgColor: WHITE_4 },\n ],\n [TrialPageId.STUDENT_INTRO]: [\n { xAxis: 2, yAxis: 0, bgColor: WHITE_4 },\n { xAxis: 16, yAxis: 1, bgColor: WHITE_5 },\n { xAxis: 3, yAxis: 9, bgColor: WHITE_5 },\n { xAxis: 17, yAxis: 10, bgColor: WHITE_4 },\n ],\n [TrialPageId.COMPLETED_WORKSHEET]: [\n { xAxis: 2, yAxis: 0, bgColor: WHITE_4 },\n { xAxis: 16, yAxis: 1, bgColor: WHITE_5 },\n { xAxis: 3, yAxis: 9, bgColor: WHITE_5 },\n { xAxis: 17, yAxis: 10, bgColor: WHITE_4 },\n ],\n [TrialPageId.WELCOME_BACK]: [\n { xAxis: 2, yAxis: 0, bgColor: WHITE_4 },\n { xAxis: 16, yAxis: 1, bgColor: WHITE_5 },\n { xAxis: 3, yAxis: 9, bgColor: WHITE_5 },\n { xAxis: 17, yAxis: 10, bgColor: WHITE_4 },\n ],\n [TrialPageId.THANK_YOU]: [\n { xAxis: 2, yAxis: 0, bgColor: WHITE_4 },\n { xAxis: 16, yAxis: 1, bgColor: WHITE_5 },\n { xAxis: 3, yAxis: 9, bgColor: WHITE_5 },\n { xAxis: 17, yAxis: 10, bgColor: WHITE_4 },\n ],\n };\n\n return positions[slideId];\n};\n"],"names":["theme","getTheme","BLACK_T_08","WHITE_3","WHITE_4","WHITE_5","GREEN_1","GREEN_2","ORANGE_1","ORANGE_2","BLUE_1","BLUE_2","BLUE_3","PURPLE_1","PURPLE_2","YELLOW_1","YELLOW_2","getColoredBoxPosition","slideId","TrialPageId"],"mappings":";;AAIA,MAAMA,IAAQC,EAAS,GACjB;AAAA,EACJ,YAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AACF,IAAIhB,EAAM,QAEGiB,IAAwB,CAACC,MAC/BA,IAE0D;AAAA,EAC7D,CAACC,EAAY,gBAAgB,GAAG;AAAA,IAC9B,EAAE,OAAO,GAAG,OAAO,GAAG,SAASH,EAAS;AAAA,IACxC,EAAE,OAAO,IAAI,OAAO,GAAG,SAASV,EAAQ;AAAA,IACxC,EAAE,OAAO,GAAG,OAAO,IAAI,SAASA,EAAQ;AAAA,IACxC,EAAE,OAAO,IAAI,OAAO,GAAG,SAASE,EAAS;AAAA,EAC3C;AAAA,EACA,CAACW,EAAY,mBAAmB,GAAG;AAAA,IACjC,EAAE,OAAO,GAAG,OAAO,GAAG,SAASR,EAAO;AAAA,IACtC,EAAE,OAAO,IAAI,OAAO,GAAG,SAASD,EAAO;AAAA,IACvC,EAAE,OAAO,GAAG,OAAO,GAAG,SAASA,EAAO;AAAA,IACtC,EAAE,OAAO,IAAI,OAAO,GAAG,SAASC,EAAO;AAAA,EACzC;AAAA,EACA,CAACQ,EAAY,cAAc,GAAG;AAAA,IAC5B,EAAE,OAAO,GAAG,OAAO,GAAG,SAASZ,EAAQ;AAA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AAG,OAAO,GAAG,SAASA,EAAQ;AAAA,IACvC,EAAE,OAAO,IAAI,OAAO,IAAI,SAASD,EAAQ;AAAA,EAC3C;AAAA,EACA,CAACe,EAAY,SAAS,GAAG;AAAA,IACvB,EAAE,OAAO,GAAG,OAAO,GAAG,SAASf,EAAQ;AAAA,IACvC,EAAE,OAAO,IAAI,OAAO,GAAG,SAASC,EAAQ;AAAA,IACxC,EAAE,OAAO,GAAG,OAAO,GAAG,SAASA,EAAQ;AAAA,IACvC,EAAE,OAAO,IAAI,OAAO,IAAI,SAASD,EAAQ;AAAA,EAC3C;AAAA,EAGec,CAAO,IAzIV;"}
1
+ {"version":3,"file":"background-grid-utils.js","sources":["../../../../../src/features/trial-session/comps/background-grid/background-grid-utils.ts"],"sourcesContent":["import { getTheme } from '../../../ui/theme/get-theme';\nimport { TrialPageId } from '../../trial-session-constants';\nimport type { TColoredBox } from './background-grid-types';\n\nconst theme = getTheme();\nconst {\n BLACK_T_08,\n WHITE_3,\n WHITE_4,\n WHITE_5,\n GREEN_1,\n GREEN_2,\n ORANGE_1,\n ORANGE_2,\n BLUE_1,\n BLUE_2,\n BLUE_3,\n PURPLE_1,\n PURPLE_2,\n YELLOW_1,\n YELLOW_2,\n} = theme.colors;\n\nexport const getColoredBoxPosition = (slideId?: TrialPageId): TColoredBox[] | undefined => {\n if (!slideId) return;\n\n const positions: Partial<Record<TrialPageId, TColoredBox[]>> = {\n [TrialPageId.SESSION_OVERVIEW]: [\n { xAxis: 2, yAxis: 1, bgColor: YELLOW_2 },\n { xAxis: 14, yAxis: 1, bgColor: GREEN_1 },\n { xAxis: 3, yAxis: 10, bgColor: GREEN_1 },\n { xAxis: 16, yAxis: 6, bgColor: ORANGE_1 },\n ],\n [TrialPageId.STUDENT_INFORMATION]: [\n { xAxis: 3, yAxis: 1, bgColor: WHITE_3 },\n { xAxis: 14, yAxis: 1, bgColor: BLACK_T_08 },\n { xAxis: 1, yAxis: 7, bgColor: BLACK_T_08 },\n { xAxis: 17, yAxis: 9, bgColor: WHITE_3 },\n ],\n [TrialPageId.LEARNING_LEVEL]: [\n { xAxis: 3, yAxis: 0, bgColor: GREEN_2 },\n { xAxis: 16, yAxis: 1, bgColor: GREEN_2 },\n { xAxis: 2, yAxis: 9, bgColor: GREEN_1 },\n { xAxis: 17, yAxis: 6, bgColor: GREEN_1 },\n ],\n [TrialPageId.STUDENT_LEVEL]: [\n { xAxis: 2, yAxis: 0, bgColor: GREEN_2 },\n { xAxis: 16, yAxis: 1, bgColor: GREEN_2 },\n { xAxis: 2, yAxis: 9, bgColor: GREEN_1 },\n { xAxis: 17, yAxis: 6, bgColor: GREEN_1 },\n ],\n [TrialPageId.SCHOOL_GOALS]: [\n { xAxis: 2, yAxis: 1, bgColor: PURPLE_2 },\n { xAxis: 16, yAxis: 0, bgColor: PURPLE_1 },\n { xAxis: 0, yAxis: 8, bgColor: PURPLE_1 },\n { xAxis: 17, yAxis: 10, bgColor: PURPLE_2 },\n ],\n [TrialPageId.TEST_PREP]: [\n { xAxis: 3, yAxis: 0, bgColor: BLUE_1 },\n { xAxis: 16, yAxis: 1, bgColor: BLUE_2 },\n { xAxis: 0, yAxis: 9, bgColor: BLUE_2 },\n { xAxis: 18, yAxis: 8, bgColor: BLUE_1 },\n ],\n [TrialPageId.STUDENT_ENRICHMENT]: [\n { xAxis: 0, yAxis: 1, bgColor: ORANGE_1 },\n { xAxis: 14, yAxis: 1, bgColor: ORANGE_2 },\n { xAxis: 3, yAxis: 11, bgColor: ORANGE_2 },\n { xAxis: 12, yAxis: 12, bgColor: ORANGE_1 },\n ],\n [TrialPageId.STUDENT_PERSONALIZATION]: [\n { xAxis: 1, yAxis: 1, bgColor: GREEN_1 },\n { xAxis: 14, yAxis: 0, bgColor: GREEN_2 },\n { xAxis: 0, yAxis: 10, bgColor: GREEN_1 },\n { xAxis: 12, yAxis: 12, bgColor: GREEN_1 },\n ],\n [TrialPageId.TOPIC_SELECTION]: [\n { xAxis: 1, yAxis: 1, bgColor: GREEN_1 },\n { xAxis: 13, yAxis: 2, bgColor: GREEN_2 },\n { xAxis: 0, yAxis: 10, bgColor: GREEN_1 },\n { xAxis: 12, yAxis: 12, bgColor: GREEN_1 },\n ],\n [TrialPageId.ADDITIONAL_INFO]: [\n { xAxis: 2, yAxis: 1, bgColor: BLACK_T_08 },\n { xAxis: 13, yAxis: 0, bgColor: WHITE_3 },\n { xAxis: 2, yAxis: 12, bgColor: BLACK_T_08 },\n { xAxis: 13, yAxis: 11, bgColor: WHITE_3 },\n ],\n [TrialPageId.STUDENT_PROFILE]: [\n { xAxis: 3, yAxis: 1, bgColor: WHITE_3 },\n { xAxis: 14, yAxis: 1, bgColor: BLACK_T_08 },\n { xAxis: 1, yAxis: 7, bgColor: BLACK_T_08 },\n { xAxis: 17, yAxis: 9, bgColor: WHITE_3 },\n ],\n [TrialPageId.PARENT_APP]: [\n { xAxis: 1, yAxis: 1, bgColor: GREEN_2 },\n { xAxis: 14, yAxis: 0, bgColor: ORANGE_1 },\n { xAxis: 1, yAxis: 10, bgColor: BLUE_3 },\n { xAxis: 17, yAxis: 9, bgColor: YELLOW_1 },\n ],\n [TrialPageId.SESSION_PROGRESS_SUMMARY]: [\n { xAxis: 1, yAxis: 1, bgColor: GREEN_2 },\n { xAxis: 13, yAxis: 0, bgColor: ORANGE_1 },\n { xAxis: 3, yAxis: 13, bgColor: BLUE_3 },\n { xAxis: 15, yAxis: 9, bgColor: YELLOW_1 },\n ],\n [TrialPageId.SESSION_SUMMARY]: [\n { xAxis: 2, yAxis: 1, bgColor: YELLOW_2 },\n { xAxis: 14, yAxis: 1, bgColor: GREEN_1 },\n { xAxis: 2, yAxis: 10, bgColor: GREEN_1 },\n { xAxis: 16, yAxis: 8, bgColor: ORANGE_1 },\n ],\n [TrialPageId.PRICING]: [\n { xAxis: 2, yAxis: 1, bgColor: GREEN_2 },\n { xAxis: 16, yAxis: 2, bgColor: GREEN_1 },\n { xAxis: 2, yAxis: 9, bgColor: GREEN_1 },\n { xAxis: 17, yAxis: 8, bgColor: GREEN_2 },\n ],\n [TrialPageId.SESSION_INSIGHTS]: [\n { xAxis: 1, yAxis: 1, bgColor: BLUE_2 },\n { xAxis: 16, yAxis: 1, bgColor: YELLOW_1 },\n { xAxis: 1, yAxis: 9, bgColor: ORANGE_1 },\n { xAxis: 17, yAxis: 8, bgColor: PURPLE_1 },\n ],\n [TrialPageId.SESSION_REPORT]: [\n { xAxis: 1, yAxis: 1, bgColor: BLUE_2 },\n { xAxis: 16, yAxis: 1, bgColor: YELLOW_1 },\n { xAxis: 1, yAxis: 9, bgColor: ORANGE_1 },\n { xAxis: 17, yAxis: 8, bgColor: PURPLE_1 },\n ],\n [TrialPageId.CLASS_PREFERENCE]: [\n { xAxis: 2, yAxis: 1, bgColor: YELLOW_1 },\n { xAxis: 16, yAxis: 1, bgColor: YELLOW_2 },\n { xAxis: 2, yAxis: 9, bgColor: YELLOW_1 },\n { xAxis: 17, yAxis: 8, bgColor: YELLOW_1 },\n ],\n [TrialPageId.WELCOME_CUEMATH]: [\n { xAxis: 2, yAxis: 0, bgColor: WHITE_4 },\n { xAxis: 16, yAxis: 1, bgColor: WHITE_5 },\n { xAxis: 3, yAxis: 9, bgColor: WHITE_5 },\n { xAxis: 17, yAxis: 10, bgColor: WHITE_4 },\n ],\n [TrialPageId.TEACHER_INTRO]: [\n { xAxis: 2, yAxis: 0, bgColor: WHITE_4 },\n { xAxis: 16, yAxis: 1, bgColor: WHITE_5 },\n { xAxis: 3, yAxis: 9, bgColor: WHITE_5 },\n { xAxis: 17, yAxis: 10, bgColor: WHITE_4 },\n ],\n [TrialPageId.STUDENT_INTRO]: [\n { xAxis: 2, yAxis: 0, bgColor: WHITE_4 },\n { xAxis: 16, yAxis: 1, bgColor: WHITE_5 },\n { xAxis: 3, yAxis: 9, bgColor: WHITE_5 },\n { xAxis: 17, yAxis: 10, bgColor: WHITE_4 },\n ],\n [TrialPageId.COMPLETED_WORKSHEET]: [\n { xAxis: 2, yAxis: 0, bgColor: WHITE_4 },\n { xAxis: 16, yAxis: 1, bgColor: WHITE_5 },\n { xAxis: 3, yAxis: 9, bgColor: WHITE_5 },\n { xAxis: 17, yAxis: 10, bgColor: WHITE_4 },\n ],\n [TrialPageId.WELCOME_BACK]: [\n { xAxis: 2, yAxis: 0, bgColor: WHITE_4 },\n { xAxis: 16, yAxis: 1, bgColor: WHITE_5 },\n { xAxis: 3, yAxis: 9, bgColor: WHITE_5 },\n { xAxis: 17, yAxis: 10, bgColor: WHITE_4 },\n ],\n [TrialPageId.THANK_YOU]: [\n { xAxis: 2, yAxis: 0, bgColor: WHITE_4 },\n { xAxis: 16, yAxis: 1, bgColor: WHITE_5 },\n { xAxis: 3, yAxis: 9, bgColor: WHITE_5 },\n { xAxis: 17, yAxis: 10, bgColor: WHITE_4 },\n ],\n };\n\n return positions[slideId];\n};\n"],"names":["theme","getTheme","BLACK_T_08","WHITE_3","WHITE_4","WHITE_5","GREEN_1","GREEN_2","ORANGE_1","ORANGE_2","BLUE_1","BLUE_2","BLUE_3","PURPLE_1","PURPLE_2","YELLOW_1","YELLOW_2","getColoredBoxPosition","slideId","TrialPageId"],"mappings":";;AAIA,MAAMA,IAAQC,EAAS,GACjB;AAAA,EACJ,YAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AACF,IAAIhB,EAAM,QAEGiB,IAAwB,CAACC,MAC/BA,IAE0D;AAAA,EAC7D,CAACC,EAAY,gBAAgB,GAAG;AAAA,IAC9B,EAAE,OAAO,GAAG,OAAO,GAAG,SAASH,EAAS;AAAA,IACxC,EAAE,OAAO,IAAI,OAAO,GAAG,SAASV,EAAQ;AAAA,I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,OAAO,IAAI,OAAO,GAAG,SAASC,EAAQ;AAAA,IACxC,EAAE,OAAO,GAAG,OAAO,GAAG,SAASA,EAAQ;AAAA,IACvC,EAAE,OAAO,IAAI,OAAO,IAAI,SAASD,EAAQ;AAAA,EAC3C;AAAA,EAGec,CAAO,IArJV;"}
@@ -1,15 +1,8 @@
1
- import r from "styled-components";
2
- import o from "../../../ui/layout/flex-view.js";
3
- const e = r.div`
4
- width: 100%;
5
- height: 100%;
6
- `, n = r(o)`
7
- width: 650px;
8
- margin: auto;
9
- position: relative;
10
- `, p = r.div(
1
+ import o from "styled-components";
2
+ import { RIGHT_PANEL_CONTENT_WIDTH as r } from "../../trial-session-constants.js";
3
+ const i = o.div(
11
4
  ({ theme: t }) => `
12
- width: 600px;
5
+ width: ${r - 150}px;
13
6
  height: ${t.layout.gutter * 2.25}px;
14
7
  position: absolute;
15
8
  top: -${t.layout.gutter * 1.25}px;
@@ -19,8 +12,6 @@ const e = r.div`
19
12
  `
20
13
  );
21
14
  export {
22
- e as Container,
23
- p as FixedLineSeparator,
24
- n as PreferenceWrapper
15
+ i as FixedLineSeparator
25
16
  };
26
17
  //# sourceMappingURL=class-preference-styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"class-preference-styled.js","sources":["../../../../../src/features/trial-session/comps/class-preference/class-preference-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`;\n\nconst PreferenceWrapper = styled(FlexView)`\n width: 650px;\n margin: auto;\n position: relative;\n`;\n\nconst FixedLineSeparator = styled.div(\n ({ theme }) => `\n width: 600px;\n height: ${theme.layout.gutter * 2.25}px;\n position: absolute;\n top: -${theme.layout.gutter * 1.25}px;\n background-image: none, linear-gradient(90deg, ${theme.colors.BLACK_1} 1px, transparent 1px);\n background-size: ${theme.layout.gutter * 3.125}px ${theme.layout.gutter * 3.125}px;\n transform: translateX(-${theme.layout.gutter * 1.625}px)\n `,\n);\n\nexport { Container, PreferenceWrapper, FixedLineSeparator };\n"],"names":["Container","styled","PreferenceWrapper","FlexView","FixedLineSeparator","theme"],"mappings":";;AAIA,MAAMA,IAAYC,EAAO;AAAA;AAAA;AAAA,GAKnBC,IAAoBD,EAAOE,CAAQ;AAAA;AAAA;AAAA;AAAA,GAMnCC,IAAqBH,EAAO;AAAA,EAChC,CAAC,EAAE,OAAAI,EAAA,MAAY;AAAA;AAAA,YAELA,EAAM,OAAO,SAAS,IAAI;AAAA;AAAA,UAE5BA,EAAM,OAAO,SAAS,IAAI;AAAA,mDACeA,EAAM,OAAO,OAAO;AAAA,qBAClDA,EAAM,OAAO,SAAS,KAAK,MAAMA,EAAM,OAAO,SAAS,KAAK;AAAA,2BACtDA,EAAM,OAAO,SAAS,KAAK;AAAA;AAEtD;"}
1
+ {"version":3,"file":"class-preference-styled.js","sources":["../../../../../src/features/trial-session/comps/class-preference/class-preference-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport { RIGHT_PANEL_CONTENT_WIDTH } from '../../trial-session-constants';\n\nconst FixedLineSeparator = styled.div(\n ({ theme }) => `\n width: ${RIGHT_PANEL_CONTENT_WIDTH - 150}px;\n height: ${theme.layout.gutter * 2.25}px;\n position: absolute;\n top: -${theme.layout.gutter * 1.25}px;\n background-image: none, linear-gradient(90deg, ${theme.colors.BLACK_1} 1px, transparent 1px);\n background-size: ${theme.layout.gutter * 3.125}px ${theme.layout.gutter * 3.125}px;\n transform: translateX(-${theme.layout.gutter * 1.625}px)\n `,\n);\n\nexport { FixedLineSeparator };\n"],"names":["FixedLineSeparator","styled","theme","RIGHT_PANEL_CONTENT_WIDTH"],"mappings":";;AAIA,MAAMA,IAAqBC,EAAO;AAAA,EAChC,CAAC,EAAE,OAAAC,EAAA,MAAY;AAAA,WACNC,IAA4B,GAAG;AAAA,YAC9BD,EAAM,OAAO,SAAS,IAAI;AAAA;AAAA,UAE5BA,EAAM,OAAO,SAAS,IAAI;AAAA,mDACeA,EAAM,OAAO,OAAO;AAAA,qBAClDA,EAAM,OAAO,SAAS,KAAK,MAAMA,EAAM,OAAO,SAAS,KAAK;AAAA,2BACtDA,EAAM,OAAO,SAAS,KAAK;AAAA;AAEtD;"}