@cuemath/leap 3.5.59 → 3.5.60-link0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) 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/homework/homework-card-view.js +43 -43
  11. package/dist/features/homework/homework-card-view.js.map +1 -1
  12. package/dist/features/homework/homework-card.js +44 -46
  13. package/dist/features/homework/homework-card.js.map +1 -1
  14. package/dist/features/homework/hw-card-list/api/get-homeworks.js.map +1 -1
  15. package/dist/features/homework/hw-card-list/hw-card-list-view.js +39 -41
  16. package/dist/features/homework/hw-card-list/hw-card-list-view.js.map +1 -1
  17. package/dist/features/journey/tracking-id/tracking-id-student.js +1 -1
  18. package/dist/features/journey/tracking-id/tracking-id-student.js.map +1 -1
  19. package/dist/features/math-fit/math-fit-report/comps/score-section/score-section.js +43 -43
  20. package/dist/features/math-fit/math-fit-report/comps/score-section/score-section.js.map +1 -1
  21. package/dist/features/milestone/create/api/milestone-config.js.map +1 -1
  22. package/dist/features/parent-dashboard/modals/trial-report/trial-report.js +1 -1
  23. package/dist/features/parent-dashboard/modals/trial-report/trial-report.js.map +1 -1
  24. package/dist/features/sheets/constants/sheet.js +1 -0
  25. package/dist/features/sheets/constants/sheet.js.map +1 -1
  26. package/dist/features/sheets/utils/is-v3-worksheet.js +3 -2
  27. package/dist/features/sheets/utils/is-v3-worksheet.js.map +1 -1
  28. package/dist/features/timeline/monthly-timeline/monthly-report/monthly-report-types.js +1 -1
  29. package/dist/features/timeline/monthly-timeline/monthly-report/monthly-report-types.js.map +1 -1
  30. package/dist/features/trial-session/api/trial-home.js +10 -16
  31. package/dist/features/trial-session/api/trial-home.js.map +1 -1
  32. package/dist/features/trial-session/api/trial-session-report.js +16 -0
  33. package/dist/features/trial-session/api/trial-session-report.js.map +1 -0
  34. package/dist/features/trial-session/api/trial-topics.js +9 -0
  35. package/dist/features/trial-session/api/trial-topics.js.map +1 -0
  36. package/dist/features/trial-session/comps/background-grid/background-grid-utils.js +62 -50
  37. package/dist/features/trial-session/comps/background-grid/background-grid-utils.js.map +1 -1
  38. package/dist/features/trial-session/comps/class-preference/class-preference-styled.js +5 -14
  39. package/dist/features/trial-session/comps/class-preference/class-preference-styled.js.map +1 -1
  40. package/dist/features/trial-session/comps/class-preference/class-preference.js +55 -53
  41. package/dist/features/trial-session/comps/class-preference/class-preference.js.map +1 -1
  42. package/dist/features/trial-session/comps/communication-slide/communication-slide-constants.js +3 -2
  43. package/dist/features/trial-session/comps/communication-slide/communication-slide-constants.js.map +1 -1
  44. package/dist/features/trial-session/comps/confirmation-modal/hooks/use-confirmation-modal.js +27 -27
  45. package/dist/features/trial-session/comps/confirmation-modal/hooks/use-confirmation-modal.js.map +1 -1
  46. package/dist/features/trial-session/comps/learning-session/learning-session-styled.js +19 -18
  47. package/dist/features/trial-session/comps/learning-session/learning-session-styled.js.map +1 -1
  48. package/dist/features/trial-session/comps/learning-session/learning-session.js +34 -43
  49. package/dist/features/trial-session/comps/learning-session/learning-session.js.map +1 -1
  50. package/dist/features/trial-session/comps/navigation-bar/index.js +56 -58
  51. package/dist/features/trial-session/comps/navigation-bar/index.js.map +1 -1
  52. package/dist/features/trial-session/comps/offering-information/offering-information-constants.js +29 -6
  53. package/dist/features/trial-session/comps/offering-information/offering-information-constants.js.map +1 -1
  54. package/dist/features/trial-session/comps/offering-information/offering-information.js +74 -64
  55. package/dist/features/trial-session/comps/offering-information/offering-information.js.map +1 -1
  56. package/dist/features/trial-session/comps/school-goals/school-goals-styled.js +10 -9
  57. package/dist/features/trial-session/comps/school-goals/school-goals-styled.js.map +1 -1
  58. package/dist/features/trial-session/comps/school-goals/school-goals-view.js +40 -39
  59. package/dist/features/trial-session/comps/school-goals/school-goals-view.js.map +1 -1
  60. package/dist/features/trial-session/comps/school-goals/school-goals.js +39 -37
  61. package/dist/features/trial-session/comps/school-goals/school-goals.js.map +1 -1
  62. package/dist/features/trial-session/comps/session-insights/session-insights-styled.js +12 -20
  63. package/dist/features/trial-session/comps/session-insights/session-insights-styled.js.map +1 -1
  64. package/dist/features/trial-session/comps/session-insights/session-insights.js +64 -63
  65. package/dist/features/trial-session/comps/session-insights/session-insights.js.map +1 -1
  66. package/dist/features/trial-session/comps/session-overview/session-overview-styled.js +13 -12
  67. package/dist/features/trial-session/comps/session-overview/session-overview-styled.js.map +1 -1
  68. package/dist/features/trial-session/comps/session-overview/session-overview-utils.js +21 -5
  69. package/dist/features/trial-session/comps/session-overview/session-overview-utils.js.map +1 -1
  70. package/dist/features/trial-session/comps/session-overview/session-overview.js +20 -20
  71. package/dist/features/trial-session/comps/session-overview/session-overview.js.map +1 -1
  72. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-styled.js +61 -0
  73. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-styled.js.map +1 -0
  74. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-types.js +5 -0
  75. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-types.js.map +1 -0
  76. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-view.js +135 -0
  77. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-view.js.map +1 -0
  78. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary.js +53 -0
  79. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary.js.map +1 -0
  80. package/dist/features/trial-session/comps/session-report/report-404/report-404.js +15 -16
  81. package/dist/features/trial-session/comps/session-report/report-404/report-404.js.map +1 -1
  82. package/dist/features/trial-session/comps/session-report/session-report.js +35 -33
  83. package/dist/features/trial-session/comps/session-report/session-report.js.map +1 -1
  84. package/dist/features/trial-session/comps/student-enrichment/student-enrichment-styled.js +9 -16
  85. package/dist/features/trial-session/comps/student-enrichment/student-enrichment-styled.js.map +1 -1
  86. package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js +39 -37
  87. package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js.map +1 -1
  88. package/dist/features/trial-session/comps/student-feedback/student-feedback-styled.js +10 -9
  89. package/dist/features/trial-session/comps/student-feedback/student-feedback-styled.js.map +1 -1
  90. package/dist/features/trial-session/comps/student-info/student-info-constants.js +35 -0
  91. package/dist/features/trial-session/comps/student-info/student-info-constants.js.map +1 -0
  92. package/dist/features/trial-session/comps/student-info/student-info-helpers.js +12 -0
  93. package/dist/features/trial-session/comps/student-info/student-info-helpers.js.map +1 -0
  94. package/dist/features/trial-session/comps/student-info/student-info-styled.js +26 -11
  95. package/dist/features/trial-session/comps/student-info/student-info-styled.js.map +1 -1
  96. package/dist/features/trial-session/comps/student-info/student-info.js +113 -78
  97. package/dist/features/trial-session/comps/student-info/student-info.js.map +1 -1
  98. package/dist/features/trial-session/comps/student-personalization/student-personalization-styled.js +3 -12
  99. package/dist/features/trial-session/comps/student-personalization/student-personalization-styled.js.map +1 -1
  100. package/dist/features/trial-session/comps/student-personalization/student-personalization.js +34 -33
  101. package/dist/features/trial-session/comps/student-personalization/student-personalization.js.map +1 -1
  102. package/dist/features/trial-session/comps/student-profile/student-profile.js +45 -44
  103. package/dist/features/trial-session/comps/student-profile/student-profile.js.map +1 -1
  104. package/dist/features/trial-session/comps/teacher-intro/teacher-intro.js +9 -8
  105. package/dist/features/trial-session/comps/teacher-intro/teacher-intro.js.map +1 -1
  106. package/dist/features/trial-session/comps/test-prep/test-prep-styled.js +11 -19
  107. package/dist/features/trial-session/comps/test-prep/test-prep-styled.js.map +1 -1
  108. package/dist/features/trial-session/comps/test-prep/test-prep.js +31 -29
  109. package/dist/features/trial-session/comps/test-prep/test-prep.js.map +1 -1
  110. package/dist/features/trial-session/comps/topic-selection/topic-selection-styled.js +42 -0
  111. package/dist/features/trial-session/comps/topic-selection/topic-selection-styled.js.map +1 -0
  112. package/dist/features/trial-session/comps/topic-selection/topic-selection.js +84 -0
  113. package/dist/features/trial-session/comps/topic-selection/topic-selection.js.map +1 -0
  114. package/dist/features/trial-session/comps/whiteboard/whiteboard-styled.js +21 -0
  115. package/dist/features/trial-session/comps/whiteboard/whiteboard-styled.js.map +1 -0
  116. package/dist/features/trial-session/comps/whiteboard/whiteboard.js +99 -0
  117. package/dist/features/trial-session/comps/whiteboard/whiteboard.js.map +1 -0
  118. package/dist/features/trial-session/comps/worksheet/worksheet.js +35 -33
  119. package/dist/features/trial-session/comps/worksheet/worksheet.js.map +1 -1
  120. package/dist/features/trial-session/context/trial-session-context.js +2 -0
  121. package/dist/features/trial-session/context/trial-session-context.js.map +1 -1
  122. package/dist/features/trial-session/helper.js +70 -64
  123. package/dist/features/trial-session/helper.js.map +1 -1
  124. package/dist/features/trial-session/hooks/use-trial-session-navigation.js +201 -164
  125. package/dist/features/trial-session/hooks/use-trial-session-navigation.js.map +1 -1
  126. package/dist/features/trial-session/right-panel/right-panel-styled.js +8 -8
  127. package/dist/features/trial-session/right-panel/right-panel-styled.js.map +1 -1
  128. package/dist/features/trial-session/right-panel/slide-components-map.js +42 -36
  129. package/dist/features/trial-session/right-panel/slide-components-map.js.map +1 -1
  130. package/dist/features/trial-session/trial-session-constants.js +22 -18
  131. package/dist/features/trial-session/trial-session-constants.js.map +1 -1
  132. package/dist/features/trial-session/trial-session-types.js.map +1 -1
  133. package/dist/features/trial-session/trial-session-view.js +82 -77
  134. package/dist/features/trial-session/trial-session-view.js.map +1 -1
  135. package/dist/features/trial-session/trial-session.js +38 -38
  136. package/dist/features/trial-session/trial-session.js.map +1 -1
  137. package/dist/features/ui/inputs/checkbox-input/checkbox-input.js +21 -21
  138. package/dist/features/ui/inputs/checkbox-input/checkbox-input.js.map +1 -1
  139. package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js +12 -12
  140. package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js.map +1 -1
  141. package/dist/features/ui/theme/clrs.js +1 -0
  142. package/dist/features/ui/theme/clrs.js.map +1 -1
  143. package/dist/features/worksheet/worksheet/mocks/activity.js +6 -0
  144. package/dist/features/worksheet/worksheet/mocks/activity.js.map +1 -0
  145. package/dist/features/worksheet/worksheet/mocks/signed-requests.js +5 -0
  146. package/dist/features/worksheet/worksheet/mocks/signed-requests.js.map +1 -0
  147. package/dist/features/worksheet/worksheet/stories/use-canvas-sync-broker-story.js +57 -0
  148. package/dist/features/worksheet/worksheet/stories/use-canvas-sync-broker-story.js.map +1 -0
  149. package/dist/features/worksheet/worksheet/stories/worksheet-story-container.js +263 -0
  150. package/dist/features/worksheet/worksheet/stories/worksheet-story-container.js.map +1 -0
  151. package/dist/features/worksheet/worksheet/stories/worksheet-student.js +177 -0
  152. package/dist/features/worksheet/worksheet/stories/worksheet-student.js.map +1 -0
  153. package/dist/features/worksheet/worksheet/stories/worksheet-teacher.js +267 -0
  154. package/dist/features/worksheet/worksheet/stories/worksheet-teacher.js.map +1 -0
  155. package/dist/features/worksheet/worksheet/worksheet-behavior-helper.js +2 -6
  156. package/dist/features/worksheet/worksheet/worksheet-behavior-helper.js.map +1 -1
  157. package/dist/features/worksheet/worksheet/worksheet-helpers.js +38 -37
  158. package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
  159. package/dist/features/worksheet/worksheet/worksheet-store/helpers/get-computed-properties.js +36 -35
  160. package/dist/features/worksheet/worksheet/worksheet-store/helpers/get-computed-properties.js.map +1 -1
  161. package/dist/features/worksheet/worksheet/worksheet-store/helpers/get-questions-from-items.js +61 -58
  162. package/dist/features/worksheet/worksheet/worksheet-store/helpers/get-questions-from-items.js.map +1 -1
  163. package/dist/features/worksheet/worksheet/worksheet-types.js.map +1 -1
  164. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js +35 -28
  165. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
  166. package/dist/index.d.ts +13 -5
  167. package/dist/index.js +1 -1
  168. package/dist/node_modules/query-string/base.js +1 -1
  169. package/dist/node_modules/query-string/node_modules/decode-uri-component/index.js.map +1 -0
  170. package/dist/node_modules/uuid/dist/esm-browser/regex.js +5 -0
  171. package/dist/node_modules/uuid/dist/esm-browser/regex.js.map +1 -0
  172. package/dist/node_modules/uuid/dist/esm-browser/rng.js +2 -3
  173. package/dist/node_modules/uuid/dist/esm-browser/rng.js.map +1 -1
  174. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +10 -6
  175. package/dist/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -1
  176. package/dist/node_modules/uuid/dist/esm-browser/v4.js +9 -12
  177. package/dist/node_modules/uuid/dist/esm-browser/v4.js.map +1 -1
  178. package/dist/node_modules/uuid/dist/esm-browser/validate.js +8 -0
  179. package/dist/node_modules/uuid/dist/esm-browser/validate.js.map +1 -0
  180. package/dist/types/models/worksheet.js +1 -1
  181. package/dist/types/models/worksheet.js.map +1 -1
  182. package/package.json +1 -1
  183. package/dist/node_modules/decode-uri-component/index.js.map +0 -1
  184. package/dist/node_modules/uuid/dist/esm-browser/native.js +0 -7
  185. package/dist/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
  186. /package/dist/node_modules/{decode-uri-component → query-string/node_modules/decode-uri-component}/index.js +0 -0
@@ -1,28 +1,28 @@
1
- import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
- import { memo as T, useState as h, useEffect as E } from "react";
1
+ import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
+ import { memo as T, useState as h, useEffect as w } from "react";
3
3
  import c from "../../../ui/image/image.js";
4
- import n from "../../../ui/layout/flex-view.js";
5
- import _ from "../../../ui/separator/separator.js";
6
- import w from "../../../ui/theme/clrs.js";
4
+ import o from "../../../ui/layout/flex-view.js";
5
+ import E from "../../../ui/separator/separator.js";
7
6
  import { useTrialSessionContext as S } from "../../context/use-trial-session-context.js";
8
- import { TrialPageId as k } from "../../trial-session-constants.js";
9
- import L from "../slide-header/index.js";
10
- import { learningSessionImages as s, sessionPerks as x } from "./learning-session-constants.js";
11
- import { Container as R, FlexRelative as A, FloatingElement as j, ImageWrapper as K, GreenTick as $, TextElement as B, Slider as H, SliderContent as W, MathText as v } from "./learning-session-styled.js";
12
- const { GREEN_4: m } = w(), Q = T(function() {
13
- const { slideConfig: g } = S(), { id: u, enableSessionPerk: f } = g, l = u === k.COMPLETED_WORKSHEET, [i, a] = h(0), [p, d] = h(!0);
14
- return E(() => {
15
- i === s.length - 1 && setTimeout(() => {
16
- d(!1), a(0);
7
+ import { TrialPageId as _ } from "../../trial-session-constants.js";
8
+ import k from "../slide-header/index.js";
9
+ import { learningSessionImages as s, sessionPerks as L } from "./learning-session-constants.js";
10
+ import { Container as x, FlexRelative as A, FloatingElement as R, ImageWrapper as j, GreenTick as $, TextElement as K, Slider as B, SliderContent as H, MathText as W } from "./learning-session-styled.js";
11
+ import v from "../communication-slide/index.js";
12
+ const Q = T(function() {
13
+ const { slideConfig: m } = S(), { id: g, renderAVIn: u, enableSessionPerk: f } = m, d = g === _.COMPLETED_WORKSHEET, [n, a] = h(0), [p, l] = h(!0);
14
+ return w(() => {
15
+ n === s.length - 1 && setTimeout(() => {
16
+ l(!1), a(0);
17
17
  }, 500);
18
18
  const t = setInterval(() => {
19
- d(!0), a((r) => (r + 1) % s.length);
19
+ l(!0), a((r) => (r + 1) % s.length);
20
20
  }, 1e3);
21
21
  return () => clearInterval(t);
22
- }, [i]), /* @__PURE__ */ o(R, { children: [
23
- /* @__PURE__ */ e(_, { height: 60 }),
24
- /* @__PURE__ */ e(L, {}),
25
- /* @__PURE__ */ e(n, { $alignItems: "center", children: /* @__PURE__ */ o(
22
+ }, [n]), u === "right" ? /* @__PURE__ */ e(v, {}) : /* @__PURE__ */ i(x, { children: [
23
+ /* @__PURE__ */ e(E, { height: 60 }),
24
+ /* @__PURE__ */ e(k, {}),
25
+ /* @__PURE__ */ e(o, { $alignItems: "center", children: /* @__PURE__ */ i(
26
26
  A,
27
27
  {
28
28
  $width: 550,
@@ -33,10 +33,10 @@ const { GREEN_4: m } = w(), Q = T(function() {
33
33
  $alignItems: "center",
34
34
  $justifyContent: "center",
35
35
  children: [
36
- f && x.map((t) => {
36
+ f && L.map((t) => {
37
37
  const { title: r, image: C, position: b, backgroundColor: I } = t;
38
- return /* @__PURE__ */ o(
39
- j,
38
+ return /* @__PURE__ */ i(
39
+ R,
40
40
  {
41
41
  $width: 104,
42
42
  $height: 104,
@@ -47,27 +47,18 @@ const { GREEN_4: m } = w(), Q = T(function() {
47
47
  $background: I,
48
48
  $position: b,
49
49
  children: [
50
- /* @__PURE__ */ o(K, { children: [
51
- l ? /* @__PURE__ */ e(
52
- $,
53
- {
54
- width: 24,
55
- height: 28,
56
- color: m,
57
- $top: -15,
58
- $right: -20
59
- }
60
- ) : null,
50
+ /* @__PURE__ */ i(j, { children: [
51
+ d ? /* @__PURE__ */ e($, { width: 24, height: 28, $top: -15, $right: -20 }) : null,
61
52
  /* @__PURE__ */ e(c, { withLoader: !0, height: 56, width: 56, src: C })
62
53
  ] }),
63
- /* @__PURE__ */ e(B, { $renderAs: "ac4-black", $align: "center", children: r })
54
+ /* @__PURE__ */ e(K, { $renderAs: "ac4-black", $align: "center", children: r })
64
55
  ]
65
56
  },
66
57
  r
67
58
  );
68
59
  }),
69
60
  /* @__PURE__ */ e(
70
- n,
61
+ o,
71
62
  {
72
63
  $width: 470,
73
64
  $height: 470,
@@ -76,8 +67,8 @@ const { GREEN_4: m } = w(), Q = T(function() {
76
67
  $borderColor: "BLACK_T_08",
77
68
  $alignItems: "center",
78
69
  $justifyContent: "center",
79
- children: /* @__PURE__ */ o(
80
- n,
70
+ children: /* @__PURE__ */ i(
71
+ o,
81
72
  {
82
73
  $width: 370,
83
74
  $height: 370,
@@ -88,18 +79,18 @@ const { GREEN_4: m } = w(), Q = T(function() {
88
79
  $justifyContent: "center",
89
80
  $position: "relative",
90
81
  children: [
91
- l ? /* @__PURE__ */ e($, { width: 60, height: 72, color: m, $top: 40, $right: 60 }) : null,
82
+ d ? /* @__PURE__ */ e($, { width: 60, height: 72, $top: 40, $right: 60 }) : null,
92
83
  /* @__PURE__ */ e(
93
- H,
84
+ B,
94
85
  {
95
86
  $width: 270,
96
87
  $height: 270,
97
88
  $borderRadius: 270,
98
89
  $borderColor: "BLACK_T_87",
99
90
  children: s.map((t, r) => /* @__PURE__ */ e(
100
- W,
91
+ H,
101
92
  {
102
- $offset: r - i,
93
+ $offset: r - n,
103
94
  $transitionEnabled: p,
104
95
  children: /* @__PURE__ */ e(
105
96
  c,
@@ -112,11 +103,11 @@ const { GREEN_4: m } = w(), Q = T(function() {
112
103
  }
113
104
  )
114
105
  },
115
- r
106
+ t
116
107
  ))
117
108
  }
118
109
  ),
119
- /* @__PURE__ */ e(v, { $renderAs: "ac3-black", children: "School Math" })
110
+ /* @__PURE__ */ e(W, { $renderAs: "ac3-black", children: "School Math" })
120
111
  ]
121
112
  }
122
113
  )
@@ -1 +1 @@
1
- {"version":3,"file":"learning-session.js","sources":["../../../../../src/features/trial-session/comps/learning-session/learning-session.tsx"],"sourcesContent":["import { memo, useEffect, useState } from 'react';\n\nimport Image from '../../../ui/image/image';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport getColors from '../../../ui/theme/clrs';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport { TrialPageId } from '../../trial-session-constants';\nimport SlideHeader from '../slide-header';\nimport { learningSessionImages, sessionPerks } from './learning-session-constants';\nimport * as Styled from './learning-session-styled';\n\nconst { GREEN_4 } = getColors();\n\nconst LearningSession = memo(function LearningSession() {\n const { slideConfig } = useTrialSessionContext();\n const { id, enableSessionPerk } = slideConfig;\n\n const worksheetCompleted = id === TrialPageId.COMPLETED_WORKSHEET;\n\n const [currentIndex, setCurrentIndex] = useState(0);\n const [transitionEnabled, setTransitionEnabled] = useState(true);\n\n useEffect(() => {\n if (currentIndex === learningSessionImages.length - 1) {\n setTimeout(() => {\n setTransitionEnabled(false);\n setCurrentIndex(0);\n }, 500);\n }\n\n const timer = setInterval(() => {\n setTransitionEnabled(true);\n setCurrentIndex(prevIndex => (prevIndex + 1) % learningSessionImages.length);\n }, 1000);\n\n return () => clearInterval(timer);\n }, [currentIndex]);\n\n return (\n <Styled.Container>\n <Separator height={60} />\n <SlideHeader />\n <FlexView $alignItems=\"center\">\n <Styled.FlexRelative\n $width={550}\n $height={549}\n $borderRadius={550}\n $background=\"WHITE_1\"\n $borderColor=\"BLACK_T_04\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n >\n {enableSessionPerk &&\n sessionPerks.map(sessionPerk => {\n const { title, image, position, backgroundColor } = sessionPerk;\n\n return (\n <Styled.FloatingElement\n key={title}\n $width={104}\n $height={104}\n $borderRadius={104}\n $borderColor=\"BLACK_1\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $background={backgroundColor}\n $position={position}\n >\n <Styled.ImageWrapper>\n {worksheetCompleted ? (\n <Styled.GreenTick\n width={24}\n height={28}\n color={GREEN_4}\n $top={-15}\n $right={-20}\n />\n ) : null}\n <Image withLoader height={56} width={56} src={image} />\n </Styled.ImageWrapper>\n <Styled.TextElement $renderAs=\"ac4-black\" $align=\"center\">\n {title}\n </Styled.TextElement>\n </Styled.FloatingElement>\n );\n })}\n\n <FlexView\n $width={470}\n $height={470}\n $borderRadius={470}\n $background=\"WHITE_2\"\n $borderColor=\"BLACK_T_08\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n >\n <FlexView\n $width={370}\n $height={370}\n $borderRadius={370}\n $background=\"WHITE_3\"\n $borderColor=\"BLACK_T_15\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $position=\"relative\"\n >\n {worksheetCompleted ? (\n <Styled.GreenTick width={60} height={72} color={GREEN_4} $top={40} $right={60} />\n ) : null}\n <Styled.Slider\n $width={270}\n $height={270}\n $borderRadius={270}\n $borderColor=\"BLACK_T_87\"\n >\n {learningSessionImages.map((imageUrl, index) => {\n return (\n <Styled.SliderContent\n key={index}\n $offset={index - currentIndex}\n $transitionEnabled={transitionEnabled}\n >\n <Image\n withLoader\n src={imageUrl}\n width={270}\n height={270}\n alt={`slide-${index}`}\n />\n </Styled.SliderContent>\n );\n })}\n </Styled.Slider>\n <Styled.MathText $renderAs=\"ac3-black\">School Math</Styled.MathText>\n </FlexView>\n </FlexView>\n </Styled.FlexRelative>\n </FlexView>\n </Styled.Container>\n );\n});\n\nexport default LearningSession;\n"],"names":["GREEN_4","getColors","LearningSession","memo","slideConfig","useTrialSessionContext","id","enableSessionPerk","worksheetCompleted","TrialPageId","currentIndex","setCurrentIndex","useState","transitionEnabled","setTransitionEnabled","useEffect","learningSessionImages","timer","prevIndex","jsxs","Styled.Container","jsx","Separator","SlideHeader","FlexView","Styled.FlexRelative","sessionPerks","sessionPerk","title","image","position","backgroundColor","Styled.FloatingElement","Styled.ImageWrapper","Styled.GreenTick","Image","Styled.TextElement","Styled.Slider","imageUrl","index","Styled.SliderContent","Styled.MathText"],"mappings":";;;;;;;;;;;AAYA,MAAM,EAAE,SAAAA,EAAQ,IAAIC,KAEdC,IAAkBC,EAAK,WAA2B;AAChD,QAAA,EAAE,aAAAC,MAAgBC,KAClB,EAAE,IAAAC,GAAI,mBAAAC,EAAsB,IAAAH,GAE5BI,IAAqBF,MAAOG,EAAY,qBAExC,CAACC,GAAcC,CAAe,IAAIC,EAAS,CAAC,GAC5C,CAACC,GAAmBC,CAAoB,IAAIF,EAAS,EAAI;AAE/D,SAAAG,EAAU,MAAM;AACV,IAAAL,MAAiBM,EAAsB,SAAS,KAClD,WAAW,MAAM;AACf,MAAAF,EAAqB,EAAK,GAC1BH,EAAg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ACH;AAAA,sCACCE,GAAA,EAAgB,WAAU,aAAY,UAAW,eAAA;AAAA,kBAAA;AAAA,gBAAA;AAAA,cACpD;AAAA,YAAA;AAAA,UACF;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA,GAEJ;AAAA,EACF,EAAA,CAAA;AAEJ,CAAC;"}
1
+ {"version":3,"file":"learning-session.js","sources":["../../../../../src/features/trial-session/comps/learning-session/learning-session.tsx"],"sourcesContent":["import { memo, useEffect, useState } from 'react';\n\nimport Image from '../../../ui/image/image';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport { TrialPageId } from '../../trial-session-constants';\nimport SlideHeader from '../slide-header';\nimport { learningSessionImages, sessionPerks } from './learning-session-constants';\nimport * as Styled from './learning-session-styled';\nimport CommunicationSlide from '../communication-slide';\n\nconst LearningSession = memo(function LearningSession() {\n const { slideConfig } = useTrialSessionContext();\n const { id, renderAVIn, enableSessionPerk } = slideConfig;\n\n const worksheetCompleted = id === TrialPageId.COMPLETED_WORKSHEET;\n\n const [currentIndex, setCurrentIndex] = useState(0);\n const [transitionEnabled, setTransitionEnabled] = useState(true);\n\n useEffect(() => {\n if (currentIndex === learningSessionImages.length - 1) {\n setTimeout(() => {\n setTransitionEnabled(false);\n setCurrentIndex(0);\n }, 500);\n }\n\n const timer = setInterval(() => {\n setTransitionEnabled(true);\n setCurrentIndex(prevIndex => (prevIndex + 1) % learningSessionImages.length);\n }, 1000);\n\n return () => clearInterval(timer);\n }, [currentIndex]);\n\n if (renderAVIn === 'right') return <CommunicationSlide />;\n\n return (\n <Styled.Container>\n <Separator height={60} />\n <SlideHeader />\n <FlexView $alignItems=\"center\">\n <Styled.FlexRelative\n $width={550}\n $height={549}\n $borderRadius={550}\n $background=\"WHITE_1\"\n $borderColor=\"BLACK_T_04\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n >\n {enableSessionPerk &&\n sessionPerks.map(sessionPerk => {\n const { title, image, position, backgroundColor } = sessionPerk;\n\n return (\n <Styled.FloatingElement\n key={title}\n $width={104}\n $height={104}\n $borderRadius={104}\n $borderColor=\"BLACK_1\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $background={backgroundColor}\n $position={position}\n >\n <Styled.ImageWrapper>\n {worksheetCompleted ? (\n <Styled.GreenTick width={24} height={28} $top={-15} $right={-20} />\n ) : null}\n <Image withLoader height={56} width={56} src={image} />\n </Styled.ImageWrapper>\n <Styled.TextElement $renderAs=\"ac4-black\" $align=\"center\">\n {title}\n </Styled.TextElement>\n </Styled.FloatingElement>\n );\n })}\n\n <FlexView\n $width={470}\n $height={470}\n $borderRadius={470}\n $background=\"WHITE_2\"\n $borderColor=\"BLACK_T_08\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n >\n <FlexView\n $width={370}\n $height={370}\n $borderRadius={370}\n $background=\"WHITE_3\"\n $borderColor=\"BLACK_T_15\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $position=\"relative\"\n >\n {worksheetCompleted ? (\n <Styled.GreenTick width={60} height={72} $top={40} $right={60} />\n ) : null}\n <Styled.Slider\n $width={270}\n $height={270}\n $borderRadius={270}\n $borderColor=\"BLACK_T_87\"\n >\n {learningSessionImages.map((imageUrl, index) => {\n return (\n <Styled.SliderContent\n key={imageUrl}\n $offset={index - currentIndex}\n $transitionEnabled={transitionEnabled}\n >\n <Image\n withLoader\n src={imageUrl}\n width={270}\n height={270}\n alt={`slide-${index}`}\n />\n </Styled.SliderContent>\n );\n })}\n </Styled.Slider>\n <Styled.MathText $renderAs=\"ac3-black\">School Math</Styled.MathText>\n </FlexView>\n </FlexView>\n </Styled.FlexRelative>\n </FlexView>\n </Styled.Container>\n );\n});\n\nexport default LearningSession;\n"],"names":["LearningSession","memo","slideConfig","useTrialSessionContext","id","renderAVIn","enableSessionPerk","worksheetCompleted","TrialPageId","currentIndex","setCurrentIndex","useState","transitionEnabled","setTransitionEnabled","useEffect","learningSessionImages","timer","prevIndex","jsx","CommunicationSlide","jsxs","Styled.Container","Separator","SlideHeader","FlexView","Styled.FlexRelative","sessionPerks","sessionPerk","title","image","position","backgroundColor","Styled.FloatingElement","Styled.ImageWrapper","Styled.GreenTick","Image","Styled.TextElement","Styled.Slider","imageUrl","index","Styled.SliderContent","Styled.MathText"],"mappings":";;;;;;;;;;;AAYM,MAAAA,IAAkBC,EAAK,WAA2B;AAChD,QAAA,EAAE,aAAAC,MAAgBC,KAClB,EAAE,IAAAC,GAAI,YAAAC,GAAY,mBAAAC,EAAA,IAAsBJ,GAExCK,IAAqBH,MAAOI,EAAY,qBAExC,CAACC,GAAcC,CAAe,IAAIC,EAAS,CAAC,GAC5C,CAACC,GAAmBC,CAAoB,IAAIF,EAAS,EAAI;AAkB/D,SAhBAG,EAAU,MAAM;AACV,IAAAL,MAAiBM,EAAsB,SAAS,KAClD,WAAW,MAAM;AACf,MAAAF,EAAqB,EAAK,GAC1BH,EAAgB,CAAC;AAAA,OAChB,GAAG;AAGF,UAAAM,IAAQ,YAAY,MAAM;AAC9B,MAAAH,EAAqB,EAAI,GACzBH,EAAgB,CAAcO,OAAAA,IAAY,KAAKF,EAAsB,MAAM;AAAA,OAC1E,GAAI;AAEA,WAAA,MAAM,cAAcC,CAAK;AAAA,EAAA,GAC/B,CAACP,CAAY,CAAC,GAEbJ,MAAe,UAAgB,gBAAAa,EAACC,GAAmB,CAAA,CAAA,IAGrD,gBAAAC,EAACC,GAAA,EACC,UAAA;AAAA,IAAC,gBAAAH,EAAAI,GAAA,EAAU,QAAQ,GAAI,CAAA;AAAA,sBACtBC,GAAY,EAAA;AAAA,IACb,gBAAAL,EAACM,GAAS,EAAA,aAAY,UACpB,UAAA,gBAAAJ;AAAA,MAACK;AAAAA,MAAA;AAAA,QACC,QAAQ;AAAA,QACR,SAAS;AAAA,QACT,eAAe;AAAA,QACf,aAAY;AAAA,QACZ,cAAa;AAAA,QACb,aAAY;AAAA,QACZ,iBAAgB;AAAA,QAE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QAAQ,IAAI,MAAM,IAAI,QAAQ,GAAA,CAAI,IAC7D;AAAA,oBACJ,gBAAAhB;AAAA,sBAACmB;AAAAA,sBAAA;AAAA,wBACC,QAAQ;AAAA,wBACR,SAAS;AAAA,wBACT,eAAe;AAAA,wBACf,cAAa;AAAA,wBAEZ,UAAsBtB,EAAA,IAAI,CAACuB,GAAUC,MAElC,gBAAArB;AAAA,0BAACsB;AAAAA,0BAAA;AAAA,4BAEC,SAASD,IAAQ9B;AAAA,4BACjB,oBAAoBG;AAAA,4BAEpB,UAAA,gBAAAM;AAAA,8BAACiB;AAAA,8BAAA;AAAA,gCACC,YAAU;AAAA,gCACV,KAAKG;AAAA,gCACL,OAAO;AAAA,gCACP,QAAQ;AAAA,gCACR,KAAK,SAASC,CAAK;AAAA,8BAAA;AAAA,4BACrB;AAAA,0BAAA;AAAA,0BAVKD;AAAA,wBAAA,CAaV;AAAA,sBAAA;AAAA,oBACH;AAAA,sCACCG,GAAA,EAAgB,WAAU,aAAY,UAAW,eAAA;AAAA,kBAAA;AAAA,gBAAA;AAAA,cACpD;AAAA,YAAA;AAAA,UACF;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA,GAEJ;AAAA,EACF,EAAA,CAAA;AAEJ,CAAC;"}
@@ -1,104 +1,102 @@
1
- import { jsxs as c, jsx as n } from "react/jsx-runtime";
2
- import { useMemo as s, useCallback as u } from "react";
3
- import _ from "../../../ui/arrow-tooltip/arrow-tooltip.js";
4
- import z from "../../../ui/buttons/button/button.js";
5
- import b from "../../../ui/buttons/icon-button/icon-button.js";
6
- import g from "../../../ui/layout/flex-view.js";
7
- import h from "../../../ui/text/text.js";
8
- import { useTrialSessionContext as E } from "../../context/use-trial-session-context.js";
9
- import { isPLASource as S } from "../../helper.js";
1
+ import { jsxs as d, jsx as t } from "react/jsx-runtime";
2
+ import { useMemo as c, useCallback as I } from "react";
3
+ import k from "../../../ui/arrow-tooltip/arrow-tooltip.js";
4
+ import M from "../../../ui/buttons/button/button.js";
5
+ import h from "../../../ui/buttons/icon-button/icon-button.js";
6
+ import C from "../../../ui/layout/flex-view.js";
7
+ import L from "../../../ui/text/text.js";
8
+ import { useTrialSessionContext as z } from "../../context/use-trial-session-context.js";
9
+ import { isPLASource as O } from "../../helper.js";
10
10
  import { useTrialSessionNavigation as F } from "../../hooks/use-trial-session-navigation.js";
11
11
  import { Container as G, ForwardArrow as K } from "./navigation-bar-styled.js";
12
- import M from "../../../../assets/line-icons/icons/back2.js";
13
- const ee = () => {
14
- var f;
12
+ import { TrialPageId as R, MAXIMUM_TOPICS_TO_SELECT as x } from "../../trial-session-constants.js";
13
+ import X from "../../../../assets/line-icons/icons/back2.js";
14
+ const re = () => {
15
+ var g;
15
16
  const {
16
- slideConfig: x,
17
- buttonState: L,
18
- openEndClassModal: C,
17
+ slideConfig: $,
18
+ buttonState: A,
19
+ openEndClassModal: B,
19
20
  studentAbsentInClass: e,
20
- trialHomeData: a,
21
- formData: I
22
- } = E(), { handleNavigation: o } = F(), {
23
- left: { isDisabled: m, isLoading: $ },
24
- right: { isDisabled: p, isLoading: B }
25
- } = L || {}, { prevPage: A, nextPage: v } = x || {}, { buttonLabel: l, pageId: r } = A || {}, { buttonLabel: d, pageId: i } = v || {}, { numberInNameError: t } = I || {}, y = r && !i, w = S((f = a == null ? void 0 : a.intel_student) == null ? void 0 : f.source), D = s(
26
- () => p || e || t,
27
- [p, e, t]
28
- ), P = s(
21
+ trialHomeData: s,
22
+ formData: T
23
+ } = z(), { handleNavigation: n } = F(), {
24
+ left: { isDisabled: m, isLoading: y },
25
+ right: { isDisabled: p, isLoading: P }
26
+ } = A || {}, { id: f, prevPage: v, nextPage: w } = $ || {}, { buttonLabel: a, pageId: o } = v || {}, { buttonLabel: l, pageId: r } = w || {}, { numberInNameError: i, selectedTopics: u = [] } = T || {}, D = o && !r, _ = O((g = s == null ? void 0 : s.intel_student) == null ? void 0 : g.source), E = c(
27
+ () => p || e || i,
28
+ [p, e, i]
29
+ ), S = c(
29
30
  () => m || e,
30
31
  [m, e]
31
- ), T = s(() => t ? "Please enter a valid name" : "Waiting for student to join...", [t]), j = s(
32
- () => e || t,
33
- [e, t]
34
- ), k = u(() => {
35
- o("next", i);
36
- }, [o, i]), N = u(() => {
37
- o("prev", r);
38
- }, [o, r]);
39
- return /* @__PURE__ */ c(
32
+ ), b = c(() => i ? "Please enter a valid name" : f === R.TOPIC_SELECTION && u.length < x ? `Select any ${x} topics to proceed` : e ? "Waiting for student to join..." : "", [f, i, u.length, e]), j = I(() => {
33
+ n("next", r);
34
+ }, [n, r]), N = I(() => {
35
+ n("prev", o);
36
+ }, [n, o]);
37
+ return /* @__PURE__ */ d(
40
38
  G,
41
39
  {
42
40
  $flexDirection: "row-reverse",
43
41
  $justifyContent: "space-between",
44
42
  $alignItems: "center",
45
43
  children: [
46
- y && /* @__PURE__ */ n(
47
- z,
44
+ D && /* @__PURE__ */ t(
45
+ M,
48
46
  {
49
47
  renderAs: "tertiary",
50
48
  size: "small",
51
- label: w ? "End the session" : "End the class",
49
+ label: _ ? "End the session" : "End the class",
52
50
  shape: "square",
53
- onClick: C
51
+ onClick: B
54
52
  }
55
53
  ),
56
- i && d && /* @__PURE__ */ c(g, { $flexDirection: "row", $alignItems: "center", $justifyContent: "center", $flexGap: 12, children: [
57
- /* @__PURE__ */ n(h, { $renderAs: "ab2", $color: "BLACK_T_60", children: d }),
58
- /* @__PURE__ */ n(
59
- _,
54
+ r && l && /* @__PURE__ */ d(C, { $flexDirection: "row", $alignItems: "center", $justifyContent: "center", $flexGap: 12, children: [
55
+ /* @__PURE__ */ t(L, { $renderAs: "ab2", $color: "BLACK_T_60", children: l }),
56
+ /* @__PURE__ */ t(
57
+ k,
60
58
  {
61
59
  widthX: 8,
62
60
  zIndex: 2,
63
61
  position: "top-left",
64
62
  renderAs: "primary",
65
- tooltipItem: T,
66
- hidden: !j,
67
- children: /* @__PURE__ */ n(
68
- b,
63
+ tooltipItem: b,
64
+ hidden: !b,
65
+ children: /* @__PURE__ */ t(
66
+ h,
69
67
  {
70
68
  Icon: K,
71
69
  renderAs: "primary",
72
- analyticsLabel: d,
70
+ analyticsLabel: l,
73
71
  size: "small",
74
- onClick: k,
75
- disabled: D,
76
- busy: B
72
+ onClick: j,
73
+ disabled: E,
74
+ busy: P
77
75
  }
78
76
  )
79
77
  }
80
78
  )
81
79
  ] }),
82
- r && l && /* @__PURE__ */ c(g, { $flexDirection: "row", $alignItems: "center", $justifyContent: "center", $flexGap: 12, children: [
83
- /* @__PURE__ */ n(
84
- b,
80
+ o && a && /* @__PURE__ */ d(C, { $flexDirection: "row", $alignItems: "center", $justifyContent: "center", $flexGap: 12, children: [
81
+ /* @__PURE__ */ t(
82
+ h,
85
83
  {
86
- Icon: M,
84
+ Icon: X,
87
85
  renderAs: "secondary",
88
- analyticsLabel: l,
86
+ analyticsLabel: a,
89
87
  size: "small",
90
88
  onClick: N,
91
- disabled: P,
92
- busy: $
89
+ disabled: S,
90
+ busy: y
93
91
  }
94
92
  ),
95
- /* @__PURE__ */ n(h, { $renderAs: "ab2", $color: "BLACK_T_60", children: l })
93
+ /* @__PURE__ */ t(L, { $renderAs: "ab2", $color: "BLACK_T_60", children: a })
96
94
  ] })
97
95
  ]
98
96
  }
99
97
  );
100
98
  };
101
99
  export {
102
- ee as default
100
+ re as default
103
101
  };
104
102
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../src/features/trial-session/comps/navigation-bar/index.tsx"],"sourcesContent":["import { useCallback, useMemo, type FC } from 'react';\n\nimport ArrowTooltip from '../../../ui/arrow-tooltip/arrow-tooltip';\nimport Button from '../../../ui/buttons/button/button';\nimport IconButton from '../../../ui/buttons/icon-button/icon-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport { isPLASource } from '../../helper';\nimport { useTrialSessionNavigation } from '../../hooks/use-trial-session-navigation';\nimport * as Styled from './navigation-bar-styled';\n\nconst NavigationBar: FC = () => {\n const {\n slideConfig,\n buttonState,\n openEndClassModal,\n studentAbsentInClass,\n trialHomeData,\n formData,\n } = useTrialSessionContext();\n\n const { handleNavigation } = useTrialSessionNavigation();\n\n const {\n left: { isDisabled: isLeftBtnDisabled, isLoading: isLeftBtnLoading },\n right: { isDisabled: isRightBtnDisabled, isLoading: isRightBtnLoading },\n } = buttonState || {};\n\n const { prevPage, nextPage } = slideConfig || {};\n const { buttonLabel: prevButtonLabel, pageId: prevPageId } = prevPage || {};\n const { buttonLabel: nextButtonLabel, pageId: nextPageId } = nextPage || {};\n const { numberInNameError } = formData || {};\n\n const isLastPage = prevPageId && !nextPageId;\n const isPLA = isPLASource(trialHomeData?.intel_student?.source);\n\n const nextButtonDisabled = useMemo(\n () => isRightBtnDisabled || studentAbsentInClass || numberInNameError,\n [isRightBtnDisabled, studentAbsentInClass, numberInNameError],\n );\n const prevButtonDisabled = useMemo(\n () => isLeftBtnDisabled || studentAbsentInClass,\n [isLeftBtnDisabled, studentAbsentInClass],\n );\n\n const tooltipContent = useMemo(() => {\n if (numberInNameError) return 'Please enter a valid name';\n\n return 'Waiting for student to join...';\n }, [numberInNameError]);\n const showTooltip = useMemo(\n () => studentAbsentInClass || numberInNameError,\n [studentAbsentInClass, numberInNameError],\n );\n\n const handleNext = useCallback(() => {\n handleNavigation('next', nextPageId);\n }, [handleNavigation, nextPageId]);\n\n const handlePrev = useCallback(() => {\n handleNavigation('prev', prevPageId);\n }, [handleNavigation, prevPageId]);\n\n return (\n <Styled.Container\n $flexDirection=\"row-reverse\"\n $justifyContent=\"space-between\"\n $alignItems=\"center\"\n >\n {isLastPage && (\n <Button\n renderAs=\"tertiary\"\n size=\"small\"\n label={isPLA ? 'End the session' : 'End the class'}\n shape=\"square\"\n onClick={openEndClassModal}\n />\n )}\n {nextPageId && nextButtonLabel && (\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $justifyContent=\"center\" $flexGap={12}>\n <Text $renderAs=\"ab2\" $color=\"BLACK_T_60\">\n {nextButtonLabel}\n </Text>\n <ArrowTooltip\n widthX={8}\n zIndex={2}\n position=\"top-left\"\n renderAs=\"primary\"\n tooltipItem={tooltipContent}\n hidden={!showTooltip}\n >\n <IconButton\n Icon={Styled.ForwardArrow}\n renderAs=\"primary\"\n analyticsLabel={nextButtonLabel}\n size=\"small\"\n onClick={handleNext}\n disabled={nextButtonDisabled}\n busy={isRightBtnLoading}\n />\n </ArrowTooltip>\n </FlexView>\n )}\n {prevPageId && prevButtonLabel && (\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $justifyContent=\"center\" $flexGap={12}>\n <IconButton\n Icon={Styled.BackwardArrow}\n renderAs=\"secondary\"\n analyticsLabel={prevButtonLabel}\n size=\"small\"\n onClick={handlePrev}\n disabled={prevButtonDisabled}\n busy={isLeftBtnLoading}\n />\n <Text $renderAs=\"ab2\" $color=\"BLACK_T_60\">\n {prevButtonLabel}\n </Text>\n </FlexView>\n )}\n </Styled.Container>\n );\n};\n\nexport default NavigationBar;\n"],"names":["NavigationBar","slideConfig","buttonState","openEndClassModal","studentAbsentInClass","trialHomeData","formData","useTrialSessionContext","handleNavigation","useTrialSessionNavigation","isLeftBtnDisabled","isLeftBtnLoading","isRightBtnDisabled","isRightBtnLoading","prevPage","nextPage","prevButtonLabel","prevPageId","nextButtonLabel","nextPageId","numberInNameError","isLastPage","isPLA","isPLASource","_a","nextButtonDisabled","useMemo","prevButtonDisabled","tooltipContent","showTooltip","handleNext","useCallback","handlePrev","jsxs","Styled.Container","jsx","Button","FlexView","Text","ArrowTooltip","IconButton","Styled.ForwardArrow","Styled.BackwardArrow"],"mappings":";;;;;;;;;;;;AAYA,MAAMA,KAAoB,MAAM;;AACxB,QAAA;AAAA,IACJ,aAAAC;AAAA,IACA,aAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,UAAAC;AAAA,MACEC,EAAuB,GAErB,EAAE,kB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UAAS;AAAA,YACT,MAAK;AAAA,YACL,OAAOd,IAAQ,oBAAoB;AAAA,YACnC,OAAM;AAAA,YACN,SAASnB;AAAA,UAAA;AAAA,QACX;AAAA,QAEDgB,KAAcD,KACb,gBAAAe,EAACI,GAAS,EAAA,gBAAe,OAAM,aAAY,UAAS,iBAAgB,UAAS,UAAU,IACrF,UAAA;AAAA,UAAA,gBAAAF,EAACG,GAAK,EAAA,WAAU,OAAM,QAAO,cAC1B,UACHpB,GAAA;AAAA,UACA,gBAAAiB;AAAA,YAACI;AAAA,YAAA;AAAA,cACC,QAAQ;AAAA,cACR,QAAQ;AAAA,cACR,UAAS;AAAA,cACT,UAAS;AAAA,cACT,aAAaX;AAAA,cACb,QAAQ,CAACC;AAAA,cAET,UAAA,gBAAAM;AAAA,gBAACK;AAAA,gBAAA;AAAA,kBACC,MAAMC;AAAAA,kBACN,UAAS;AAAA,kBACT,gBAAgBvB;AAAA,kBAChB,MAAK;AAAA,kBACL,SAASY;AAAA,kBACT,UAAUL;AAAA,kBACV,MAAMZ;AAAA,gBAAA;AAAA,cACR;AAAA,YAAA;AAAA,UACF;AAAA,QAAA,GACF;AAAA,QAEDI,KAAcD,KACb,gBAAAiB,EAACI,GAAS,EAAA,gBAAe,OAAM,aAAY,UAAS,iBAAgB,UAAS,UAAU,IACrF,UAAA;AAAA,UAAA,gBAAAF;AAAA,YAACK;AAAA,YAAA;AAAA,cACC,MAAME;AAAAA,cACN,UAAS;AAAA,cACT,gBAAgB1B;AAAA,cAChB,MAAK;AAAA,cACL,SAASgB;AAAA,cACT,UAAUL;AAAA,cACV,MAAMhB;AAAA,YAAA;AAAA,UACR;AAAA,4BACC2B,GAAK,EAAA,WAAU,OAAM,QAAO,cAC1B,UACHtB,GAAA;AAAA,QAAA,GACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/features/trial-session/comps/navigation-bar/index.tsx"],"sourcesContent":["import { useCallback, useMemo, type FC } from 'react';\n\nimport ArrowTooltip from '../../../ui/arrow-tooltip/arrow-tooltip';\nimport Button from '../../../ui/buttons/button/button';\nimport IconButton from '../../../ui/buttons/icon-button/icon-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport { isPLASource } from '../../helper';\nimport { useTrialSessionNavigation } from '../../hooks/use-trial-session-navigation';\nimport * as Styled from './navigation-bar-styled';\nimport { MAXIMUM_TOPICS_TO_SELECT, TrialPageId } from '../../trial-session-constants';\n\nconst NavigationBar: FC = () => {\n const {\n slideConfig,\n buttonState,\n openEndClassModal,\n studentAbsentInClass,\n trialHomeData,\n formData,\n } = useTrialSessionContext();\n\n const { handleNavigation } = useTrialSessionNavigation();\n\n const {\n left: { isDisabled: isLeftBtnDisabled, isLoading: isLeftBtnLoading },\n right: { isDisabled: isRightBtnDisabled, isLoading: isRightBtnLoading },\n } = buttonState || {};\n\n const { id, prevPage, nextPage } = slideConfig || {};\n const { buttonLabel: prevButtonLabel, pageId: prevPageId } = prevPage || {};\n const { buttonLabel: nextButtonLabel, pageId: nextPageId } = nextPage || {};\n const { numberInNameError, selectedTopics = [] } = formData || {};\n\n const isLastPage = prevPageId && !nextPageId;\n const isPLA = isPLASource(trialHomeData?.intel_student?.source);\n\n const nextButtonDisabled = useMemo(\n () => isRightBtnDisabled || studentAbsentInClass || numberInNameError,\n [isRightBtnDisabled, studentAbsentInClass, numberInNameError],\n );\n const prevButtonDisabled = useMemo(\n () => isLeftBtnDisabled || studentAbsentInClass,\n [isLeftBtnDisabled, studentAbsentInClass],\n );\n\n const tooltipContent = useMemo(() => {\n if (numberInNameError) return 'Please enter a valid name';\n\n if (id === TrialPageId.TOPIC_SELECTION && selectedTopics.length < MAXIMUM_TOPICS_TO_SELECT)\n return `Select any ${MAXIMUM_TOPICS_TO_SELECT} topics to proceed`;\n\n if (studentAbsentInClass) return 'Waiting for student to join...';\n\n return '';\n }, [id, numberInNameError, selectedTopics.length, studentAbsentInClass]);\n\n const handleNext = useCallback(() => {\n handleNavigation('next', nextPageId);\n }, [handleNavigation, nextPageId]);\n\n const handlePrev = useCallback(() => {\n handleNavigation('prev', prevPageId);\n }, [handleNavigation, prevPageId]);\n\n return (\n <Styled.Container\n $flexDirection=\"row-reverse\"\n $justifyContent=\"space-between\"\n $alignItems=\"center\"\n >\n {isLastPage && (\n <Button\n renderAs=\"tertiary\"\n size=\"small\"\n label={isPLA ? 'End the session' : 'End the class'}\n shape=\"square\"\n onClick={openEndClassModal}\n />\n )}\n {nextPageId && nextButtonLabel && (\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $justifyContent=\"center\" $flexGap={12}>\n <Text $renderAs=\"ab2\" $color=\"BLACK_T_60\">\n {nextButtonLabel}\n </Text>\n <ArrowTooltip\n widthX={8}\n zIndex={2}\n position=\"top-left\"\n renderAs=\"primary\"\n tooltipItem={tooltipContent}\n hidden={!tooltipContent}\n >\n <IconButton\n Icon={Styled.ForwardArrow}\n renderAs=\"primary\"\n analyticsLabel={nextButtonLabel}\n size=\"small\"\n onClick={handleNext}\n disabled={nextButtonDisabled}\n busy={isRightBtnLoading}\n />\n </ArrowTooltip>\n </FlexView>\n )}\n {prevPageId && prevButtonLabel && (\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $justifyContent=\"center\" $flexGap={12}>\n <IconButton\n Icon={Styled.BackwardArrow}\n renderAs=\"secondary\"\n analyticsLabel={prevButtonLabel}\n size=\"small\"\n onClick={handlePrev}\n disabled={prevButtonDisabled}\n busy={isLeftBtnLoading}\n />\n <Text $renderAs=\"ab2\" $color=\"BLACK_T_60\">\n {prevButtonLabel}\n </Text>\n </FlexView>\n )}\n </Styled.Container>\n );\n};\n\nexport default NavigationBar;\n"],"names":["NavigationBar","slideConfig","buttonState","openEndClassModal","studentAbsentInClass","trialHomeData","formData","useTrialSessionContext","handleNavigation","useTrialSessionNavigation","isLeftBtnDisabled","isLeftBtnLoading","isRightBtnDisabled","isRightBtnLoading","id","prevPage","nextPage","prevButtonLabel","prevPageId","nextButtonLabel","nextPageId","numberInNameError","selectedTopics","isLastPage","isPLA","isPLASource","_a","nextButtonDisabled","useMemo","prevButtonDisabled","tooltipContent","TrialPageId","MAXIMUM_TOPICS_TO_SELECT","handleNext","useCallback","handlePrev","jsxs","Styled.Container","jsx","Button","FlexView","Text","ArrowTooltip","IconButton","Styled.ForwardArrow","Styled.BackwardArrow"],"mappings":";;;;;;;;;;;;;AAaA,MAAMA,KAAoB,MAAM;;AACxB,QAAA;AAAA,IACJ,aAAAC;AAAA,IACA,aAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,UAAAC;AAAA,MACEC,EAAuB,GAErB,EAAE,kBAAAC,MAAqBC,KAEvB;AAAA,IACJ,MAAM,EAAE,YAAYC,GAAmB,WAAWC,EAAiB;AAAA,IACnE,OAAO,EAAE,YAAYC,GAAoB,WAAWC,EAAkB;AAAA,EAAA,IACpEX,KAAe,CAAA,GAEb,EAAE,IAAAY,GAAI,UAAAC,GAAU,UAAAC,EAAS,IAAIf,KAAe,CAAA,GAC5C,EAAE,aAAagB,GAAiB,QAAQC,EAAW,IAAIH,KAAY,IACnE,EAAE,aAAaI,GAAiB,QAAQC,EAAW,IAAIJ,KAAY,IACnE,EAAE,mBAAAK,GAAmB,gBAAAC,IAAiB,CAAG,EAAA,IAAIhB,KAAY,CAAA,GAEzDiB,IAAaL,KAAc,CAACE,GAC5BI,IAAQC,GAAYC,IAAArB,KAAA,gBAAAA,EAAe,kBAAf,gBAAAqB,EAA8B,MAAM,GAExDC,IAAqBC;AAAA,IACzB,MAAMhB,KAAsBR,KAAwBiB;AAAA,IACpD,CAACT,GAAoBR,GAAsBiB,CAAiB;AAAA,EAAA,GAExDQ,IAAqBD;AAAA,IACzB,MAAMlB,KAAqBN;AAAA,IAC3B,CAACM,GAAmBN,CAAoB;AAAA,EAAA,GAGpC0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AAA,gBAAA;AAAA,cACR;AAAA,YAAA;AAAA,UACF;AAAA,QAAA,GACF;AAAA,QAEDK,KAAcD,KACb,gBAAAmB,EAACI,GAAS,EAAA,gBAAe,OAAM,aAAY,UAAS,iBAAgB,UAAS,UAAU,IACrF,UAAA;AAAA,UAAA,gBAAAF;AAAA,YAACK;AAAA,YAAA;AAAA,cACC,MAAME;AAAAA,cACN,UAAS;AAAA,cACT,gBAAgB5B;AAAA,cAChB,MAAK;AAAA,cACL,SAASkB;AAAA,cACT,UAAUN;AAAA,cACV,MAAMlB;AAAA,YAAA;AAAA,UACR;AAAA,4BACC8B,GAAK,EAAA,WAAU,OAAM,QAAO,cAC1B,UACHxB,GAAA;AAAA,QAAA,GACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;"}
@@ -22,6 +22,28 @@ const o = [
22
22
  dimension: ["100%", "100%"]
23
23
  }
24
24
  ], e = [
25
+ {
26
+ title: "School Success",
27
+ description: "Keep in sync with school, get help with homework, and prepare for school tests.",
28
+ infoBackground: "PURPLE_1",
29
+ animationSource: n.SCHOOL_SUCCESS_MINI,
30
+ dimension: ["100%", "100%"]
31
+ },
32
+ {
33
+ title: "Test Prep",
34
+ description: "Prepare for contests and standardized tests, like the AMC, Math Kangaroo, SAT, CogAT, NJSLA, etc.",
35
+ infoBackground: "BLUE_1",
36
+ animationSource: n.TEST_PREP_MINI,
37
+ dimension: ["100%", "100%"]
38
+ },
39
+ {
40
+ title: "Enrichment",
41
+ description: "Explore beyond-school topics like Financial Math, Data Science, etc.",
42
+ infoBackground: "ORANGE_1",
43
+ animationSource: n.ENRICHMENT_MINI,
44
+ dimension: ["100%", "100%"]
45
+ }
46
+ ], a = [
25
47
  {
26
48
  title: `stay
27
49
  connected`,
@@ -29,7 +51,7 @@ connected`,
29
51
  receive real-time updates.`,
30
52
  infoBackground: "BLUE_1",
31
53
  animationSource: n.STAY_CONNECTED,
32
- dimension: ["100%", "100%"]
54
+ dimension: [233, 250]
33
55
  },
34
56
  {
35
57
  title: `track
@@ -38,7 +60,7 @@ progress`,
38
60
  areas of improvement.`,
39
61
  infoBackground: "PURPLE_1",
40
62
  animationSource: n.TRACK_PROGRESS,
41
- dimension: ["100%", "100%"]
63
+ dimension: [233, 250]
42
64
  },
43
65
  {
44
66
  title: `easy
@@ -47,9 +69,9 @@ rescheduling`,
47
69
  your class timings.`,
48
70
  infoBackground: "GREEN_1",
49
71
  animationSource: n.EASY_RESCHEDULING,
50
- dimension: ["100%", "100%"]
72
+ dimension: [233, 250]
51
73
  }
52
- ], a = [
74
+ ], t = [
53
75
  {
54
76
  title: `mental
55
77
  math`,
@@ -85,8 +107,9 @@ and stay sharp.`,
85
107
  }
86
108
  ];
87
109
  export {
88
- a as circleDetails,
110
+ t as circleDetails,
89
111
  o as goalDetails,
90
- e as parentAppDetails
112
+ e as goalPlans,
113
+ a as parentAppDetails
91
114
  };
92
115
  //# sourceMappingURL=offering-information-constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"offering-information-constants.js","sources":["../../../../../src/features/trial-session/comps/offering-information/offering-information-constants.ts"],"sourcesContent":["import { GIF } from '../../../../assets/gif/gif';\nimport type { TColorNames } from '../../../ui/types';\n\ntype TCircleDetails = {\n title: string;\n description: string | string[];\n animationBackground?: TColorNames;\n infoBackground: TColorNames;\n animationSource: string;\n animationPadding?: number;\n dimension?: (number | string | undefined)[];\n coverAnimation?: boolean;\n}[];\n\nconst goalDetails: TCircleDetails = [\n {\n title: 'Personalized Sessions',\n description: 'Aligned with school curriculum or specific needs',\n infoBackground: 'YELLOW_1',\n animationSource: GIF.PERSONALIZED_SESSION,\n dimension: ['100%', '100%'],\n },\n {\n title: 'Regular Practice',\n description: 'Homework assignments plus daily practice on app',\n infoBackground: 'PURPLE_1',\n animationSource: GIF.REGULAR_PRACTICE,\n dimension: ['100%', '100%'],\n },\n {\n title: 'Parent-tutor conference',\n description: 'Progress review and approach adjustment',\n infoBackground: 'GREEN_1',\n animationSource: GIF.STEPUP,\n dimension: ['100%', '100%'],\n },\n];\n\nconst parentAppDetails: TCircleDetails = [\n {\n title: 'stay \\nconnected',\n description: 'Chat with your tutor and \\nreceive real-time updates.',\n infoBackground: 'BLUE_1',\n animationSource: GIF.STAY_CONNECTED,\n dimension: ['100%', '100%'],\n },\n {\n title: 'track \\nprogress',\n description: 'Progress, strengths, and \\nareas of improvement.',\n infoBackground: 'PURPLE_1',\n animationSource: GIF.TRACK_PROGRESS,\n dimension: ['100%', '100%'],\n },\n {\n title: 'easy \\nrescheduling',\n description: 'Conveniently change \\nyour class timings.',\n infoBackground: 'GREEN_1',\n animationSource: GIF.EASY_RESCHEDULING,\n dimension: ['100%', '100%'],\n },\n];\n\nconst circleDetails: TCircleDetails = [\n {\n title: 'mental \\nmath',\n description: 'Get faster and stay \\nahead in school.',\n animationBackground: 'YELLOW_4',\n infoBackground: 'YELLOW_1',\n animationSource: GIF.SKILLS,\n animationPadding: 25,\n dimension: [200, 200],\n },\n {\n title: 'strategy \\ngames',\n description: 'Train to think deeper \\nand plan ahead',\n animationBackground: 'BLUE_4',\n infoBackground: 'BLUE_1',\n animationSource: GIF.GAMES,\n animationPadding: 25,\n dimension: [200, 200],\n },\n {\n title: 'logic \\npuzzles',\n description: 'Think in new ways, \\nand stay sharp.',\n animationBackground: 'ORANGE_4',\n infoBackground: 'ORANGE_1',\n animationSource: GIF.PUZZLES,\n animationPadding: 25,\n dimension: [200, 200],\n },\n];\n\nexport { goalDetails, parentAppDetails, circleDetails };\n"],"names":["goalDetails","GIF","parentAppDetails","circleDetails"],"mappings":";AAcA,MAAMA,IAA8B;AAAA,EAClC;AAAA,IACE,OAAO;AAAA,IACP,aAAa;AAAA,IACb,gBAAgB;AAAA,IAChB,iBAAiBC,EAAI;AAAA,IACrB,WAAW,CAAC,QAAQ,MAAM;AAAA,EAC5B;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,aAAa;AAAA,IACb,gBAAgB;AAAA,IAChB,iBAAiBA,EAAI;AAAA,IAC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,CAAC,KAAK,GAAG;AAAA,EACtB;AACF;"}
1
+ {"version":3,"file":"offering-information-constants.js","sources":["../../../../../src/features/trial-session/comps/offering-information/offering-information-constants.ts"],"sourcesContent":["import { GIF } from '../../../../assets/gif/gif';\nimport type { TColorNames } from '../../../ui/types';\n\ntype TCircleDetails = {\n title: string;\n description: string | string[];\n animationBackground?: TColorNames;\n infoBackground: TColorNames;\n animationSource: string;\n animationPadding?: number;\n dimension?: (number | string | undefined)[];\n coverAnimation?: boolean;\n}[];\n\nconst goalDetails: TCircleDetails = [\n {\n title: 'Personalized Sessions',\n description: 'Aligned with school curriculum or specific needs',\n infoBackground: 'YELLOW_1',\n animationSource: GIF.PERSONALIZED_SESSION,\n dimension: ['100%', '100%'],\n },\n {\n title: 'Regular Practice',\n description: 'Homework assignments plus daily practice on app',\n infoBackground: 'PURPLE_1',\n animationSource: GIF.REGULAR_PRACTICE,\n dimension: ['100%', '100%'],\n },\n {\n title: 'Parent-tutor conference',\n description: 'Progress review and approach adjustment',\n infoBackground: 'GREEN_1',\n animationSource: GIF.STEPUP,\n dimension: ['100%', '100%'],\n },\n];\n\nconst goalPlans: TCircleDetails = [\n {\n title: 'School Success',\n description: 'Keep in sync with school, get help with homework, and prepare for school tests.',\n infoBackground: 'PURPLE_1',\n animationSource: GIF.SCHOOL_SUCCESS_MINI,\n dimension: ['100%', '100%'],\n },\n {\n title: 'Test Prep',\n description:\n 'Prepare for contests and standardized tests, like the AMC, Math Kangaroo, SAT, CogAT, NJSLA, etc.',\n infoBackground: 'BLUE_1',\n animationSource: GIF.TEST_PREP_MINI,\n dimension: ['100%', '100%'],\n },\n {\n title: 'Enrichment',\n description: 'Explore beyond-school topics like Financial Math, Data Science, etc.',\n infoBackground: 'ORANGE_1',\n animationSource: GIF.ENRICHMENT_MINI,\n dimension: ['100%', '100%'],\n },\n];\n\nconst parentAppDetails: TCircleDetails = [\n {\n title: 'stay \\nconnected',\n description: 'Chat with your tutor and \\nreceive real-time updates.',\n infoBackground: 'BLUE_1',\n animationSource: GIF.STAY_CONNECTED,\n dimension: [233, 250],\n },\n {\n title: 'track \\nprogress',\n description: 'Progress, strengths, and \\nareas of improvement.',\n infoBackground: 'PURPLE_1',\n animationSource: GIF.TRACK_PROGRESS,\n dimension: [233, 250],\n },\n {\n title: 'easy \\nrescheduling',\n description: 'Conveniently change \\nyour class timings.',\n infoBackground: 'GREEN_1',\n animationSource: GIF.EASY_RESCHEDULING,\n dimension: [233, 250],\n },\n];\n\nconst circleDetails: TCircleDetails = [\n {\n title: 'mental \\nmath',\n description: 'Get faster and stay \\nahead in school.',\n animationBackground: 'YELLOW_4',\n infoBackground: 'YELLOW_1',\n animationSource: GIF.SKILLS,\n animationPadding: 25,\n dimension: [200, 200],\n },\n {\n title: 'strategy \\ngames',\n description: 'Train to think deeper \\nand plan ahead',\n animationBackground: 'BLUE_4',\n infoBackground: 'BLUE_1',\n animationSource: GIF.GAMES,\n animationPadding: 25,\n dimension: [200, 200],\n },\n {\n title: 'logic \\npuzzles',\n description: 'Think in new ways, \\nand stay sharp.',\n animationBackground: 'ORANGE_4',\n infoBackground: 'ORANGE_1',\n animationSource: GIF.PUZZLES,\n animationPadding: 25,\n dimension: [200, 200],\n },\n];\n\nexport { goalDetails, goalPlans, parentAppDetails, circleDetails };\n"],"names":["goalDetails","GIF","goalPlans","parentAppDetails","circleDetails"],"mappings":";AAcA,MAAMA,IAA8B;AAAA,EAClC;AAAA,IACE,OAAO;AAAA,IACP,aAAa;AAAA,IACb,gBAAgB;AAAA,IAChB,iBAAiBC,EAAI;AAAA,IACrB,WAAW,CAAC,QAAQ,MAAM;AAAA,EAC5B;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,aAAa;AAAA,IACb,gBAAgB;AAAA,IAChB,iBAAiBA,EAAI;AAAA,IACrB,WAAW,CAAC,QAAQ,MAAM;AAAA,EAC5B;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,aAAa;AAAA,IACb,gBAAgB;AAAA,IAChB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