@cuemath/leap 3.3.0 → 3.3.2-2.beta-guru-01

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 (399) hide show
  1. package/dist/assets/gif/gif.js +3 -0
  2. package/dist/assets/gif/gif.js.map +1 -1
  3. package/dist/assets/illustrations/illustrations.js +10 -1
  4. package/dist/assets/illustrations/illustrations.js.map +1 -1
  5. package/dist/assets/images/images.js +10 -0
  6. package/dist/assets/images/images.js.map +1 -1
  7. package/dist/assets/line-icons/icons/cue-coin.js +182 -0
  8. package/dist/assets/line-icons/icons/cue-coin.js.map +1 -0
  9. package/dist/assets/line-icons/icons/wins-common-icon.js +26 -0
  10. package/dist/assets/line-icons/icons/wins-common-icon.js.map +1 -0
  11. package/dist/assets/line-icons/icons/wins-epic-icon.js +25 -0
  12. package/dist/assets/line-icons/icons/wins-epic-icon.js.map +1 -0
  13. package/dist/assets/line-icons/icons/wins-legendary-icon.js +25 -0
  14. package/dist/assets/line-icons/icons/wins-legendary-icon.js.map +1 -0
  15. package/dist/assets/line-icons/icons/wins-mystery-icon.js +105 -0
  16. package/dist/assets/line-icons/icons/wins-mystery-icon.js.map +1 -0
  17. package/dist/assets/line-icons/icons/wins-mythic-icon.js +28 -0
  18. package/dist/assets/line-icons/icons/wins-mythic-icon.js.map +1 -0
  19. package/dist/assets/line-icons/icons/wins-rare-icon.js +28 -0
  20. package/dist/assets/line-icons/icons/wins-rare-icon.js.map +1 -0
  21. package/dist/assets/lottie/lottie.js +10 -3
  22. package/dist/assets/lottie/lottie.js.map +1 -1
  23. package/dist/constants/config.js +5 -0
  24. package/dist/constants/config.js.map +1 -0
  25. package/dist/constants/country.js +9 -0
  26. package/dist/constants/country.js.map +1 -1
  27. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +6 -6
  28. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +1 -1
  29. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar.js +4 -4
  30. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar.js.map +1 -1
  31. package/dist/features/auth/comps/otp-input/otp-input.js +19 -18
  32. package/dist/features/auth/comps/otp-input/otp-input.js.map +1 -1
  33. package/dist/features/auth/comps/pill-button/pill-button-styled.js +17 -17
  34. package/dist/features/auth/comps/pill-button/pill-button-styled.js.map +1 -1
  35. package/dist/features/auth/comps/pill-button/pill-button.js +26 -24
  36. package/dist/features/auth/comps/pill-button/pill-button.js.map +1 -1
  37. package/dist/features/auth/comps/user-list/user-item/user-item.js +32 -30
  38. package/dist/features/auth/comps/user-list/user-item/user-item.js.map +1 -1
  39. package/dist/features/auth/comps/user-list/user-list.js +20 -19
  40. package/dist/features/auth/comps/user-list/user-list.js.map +1 -1
  41. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-constants.js +9 -9
  42. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-constants.js.map +1 -1
  43. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-styled.js +58 -29
  44. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-styled.js.map +1 -1
  45. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide.js +78 -41
  46. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide.js.map +1 -1
  47. package/dist/features/auth/pla-signup/pla-analytics-events.js +5 -4
  48. package/dist/features/auth/pla-signup/pla-analytics-events.js.map +1 -1
  49. package/dist/features/auth/pla-signup/signup-header/signup-header.js +1 -1
  50. package/dist/features/auth/pla-signup/signup-header/signup-header.js.map +1 -1
  51. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js +37 -35
  52. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js.map +1 -1
  53. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js +75 -70
  54. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +1 -1
  55. package/dist/features/auth/signup/custom-input-field/custom-input-field.js +55 -50
  56. package/dist/features/auth/signup/custom-input-field/custom-input-field.js.map +1 -1
  57. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js +47 -25
  58. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js.map +1 -1
  59. package/dist/features/auth/signup-unavailable/signup-unavailable-styled.js +16 -0
  60. package/dist/features/auth/signup-unavailable/signup-unavailable-styled.js.map +1 -0
  61. package/dist/features/auth/signup-unavailable/signup-unavailable-view.js +62 -0
  62. package/dist/features/auth/signup-unavailable/signup-unavailable-view.js.map +1 -0
  63. package/dist/features/auth/signup-unavailable/signup-unavailable.js +17 -0
  64. package/dist/features/auth/signup-unavailable/signup-unavailable.js.map +1 -0
  65. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/question-overview.js +19 -18
  66. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/question-overview.js.map +1 -1
  67. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/sat-sheet-summary-styled.js +7 -7
  68. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/sat-sheet-summary-styled.js.map +1 -1
  69. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/sat-sheet-summary.js +26 -24
  70. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/sat-sheet-summary.js.map +1 -1
  71. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/summary-module.js +15 -13
  72. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/summary-module.js.map +1 -1
  73. package/dist/features/chapters/lpar-chapter/constants/index.js.map +1 -1
  74. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js +130 -69
  75. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js.map +1 -1
  76. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js +43 -33
  77. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js.map +1 -1
  78. package/dist/features/chapters-v2/chapter-details/chapter-details.js +137 -95
  79. package/dist/features/chapters-v2/chapter-details/chapter-details.js.map +1 -1
  80. package/dist/features/chapters-v2/comps/node-card/node-card-styled.js +36 -31
  81. package/dist/features/chapters-v2/comps/node-card/node-card-styled.js.map +1 -1
  82. package/dist/features/chapters-v2/comps/sat-mock-test/sat-mock-test-styled.js +22 -0
  83. package/dist/features/chapters-v2/comps/sat-mock-test/sat-mock-test-styled.js.map +1 -0
  84. package/dist/features/chapters-v2/comps/sat-mock-test/sat-mock-test.js +141 -0
  85. package/dist/features/chapters-v2/comps/sat-mock-test/sat-mock-test.js.map +1 -0
  86. package/dist/features/chapters-v2/constants/block-constants.js +7 -5
  87. package/dist/features/chapters-v2/constants/block-constants.js.map +1 -1
  88. package/dist/features/chapters-v2/utils/index.js +22 -12
  89. package/dist/features/chapters-v2/utils/index.js.map +1 -1
  90. package/dist/features/chapters-v2/utils/sat-sheet-utils.js +12 -0
  91. package/dist/features/chapters-v2/utils/sat-sheet-utils.js.map +1 -0
  92. package/dist/features/circle-games/games/web-view/web-view.js +0 -1
  93. package/dist/features/circle-games/games/web-view/web-view.js.map +1 -1
  94. package/dist/features/journey/hooks/use-chapter-page-journey/use-download-block-journey.js +86 -0
  95. package/dist/features/journey/hooks/use-chapter-page-journey/use-download-block-journey.js.map +1 -0
  96. package/dist/features/journey/hooks/use-chapter-page-journey/use-download-node-journey.js +140 -0
  97. package/dist/features/journey/hooks/use-chapter-page-journey/use-download-node-journey.js.map +1 -0
  98. package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js +8 -4
  99. package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js.map +1 -1
  100. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js +23 -29
  101. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js.map +1 -1
  102. package/dist/features/journey/journey-id/journey-id-student.js +1 -1
  103. package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
  104. package/dist/features/journey/journey-id/journey-id-teacher.js +2 -2
  105. package/dist/features/journey/journey-id/journey-id-teacher.js.map +1 -1
  106. package/dist/features/journey/mocks/chapter-page-journey-mock-data.js +400 -0
  107. package/dist/features/journey/mocks/chapter-page-journey-mock-data.js.map +1 -1
  108. package/dist/features/milestone/constants.js +13 -10
  109. package/dist/features/milestone/constants.js.map +1 -1
  110. package/dist/features/milestone/create/comps/add-custom-chapter/add-custom-chapter.js +42 -40
  111. package/dist/features/milestone/create/comps/add-custom-chapter/add-custom-chapter.js.map +1 -1
  112. package/dist/features/milestone/create/comps/add-custom-chapter/course-catalog.js +70 -64
  113. package/dist/features/milestone/create/comps/add-custom-chapter/course-catalog.js.map +1 -1
  114. package/dist/features/milestone/create/comps/add-custom-chapter/hooks/use-catalog-helpers.js +54 -29
  115. package/dist/features/milestone/create/comps/add-custom-chapter/hooks/use-catalog-helpers.js.map +1 -1
  116. package/dist/features/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapter-category/chapter-category-container.js +48 -28
  117. package/dist/features/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapter-category/chapter-category-container.js.map +1 -1
  118. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js +79 -76
  119. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js.map +1 -1
  120. package/dist/features/milestone/create/comps/chapters-selection-step/utils.js +97 -94
  121. package/dist/features/milestone/create/comps/chapters-selection-step/utils.js.map +1 -1
  122. package/dist/features/milestone/create/comps/class-details-step/class-details-step.js +160 -143
  123. package/dist/features/milestone/create/comps/class-details-step/class-details-step.js.map +1 -1
  124. package/dist/features/milestone/create/comps/class-details-step/class-details-utils.js +22 -12
  125. package/dist/features/milestone/create/comps/class-details-step/class-details-utils.js.map +1 -1
  126. package/dist/features/milestone/create/comps/goal-completion-date-selector/goal-completion-date-selector.js +6 -6
  127. package/dist/features/milestone/create/comps/test-type-step/test-type-step.js +64 -59
  128. package/dist/features/milestone/create/comps/test-type-step/test-type-step.js.map +1 -1
  129. package/dist/features/milestone/create/milestone-create-container.js +17 -15
  130. package/dist/features/milestone/create/milestone-create-container.js.map +1 -1
  131. package/dist/features/milestone/create/milestone-create-helpers.js +170 -153
  132. package/dist/features/milestone/create/milestone-create-helpers.js.map +1 -1
  133. package/dist/features/milestone/create/milestone-create-styled.js +1 -1
  134. package/dist/features/milestone/create/milestone-create-styled.js.map +1 -1
  135. package/dist/features/milestone/create/milestone-create.js +19 -17
  136. package/dist/features/milestone/create/milestone-create.js.map +1 -1
  137. package/dist/features/milestone/milestone-tests/tests-creation/test-stages/test-preview/test-preview.js +19 -20
  138. package/dist/features/milestone/milestone-tests/tests-creation/test-stages/test-preview/test-preview.js.map +1 -1
  139. package/dist/features/parent-dashboard/api/get-student-profile-summary.js +9 -0
  140. package/dist/features/parent-dashboard/api/get-student-profile-summary.js.map +1 -0
  141. package/dist/features/parent-dashboard/api/parent-home.js +10 -0
  142. package/dist/features/parent-dashboard/api/parent-home.js.map +1 -0
  143. package/dist/features/parent-dashboard/comps/compact-header/compact-header.js +30 -0
  144. package/dist/features/parent-dashboard/comps/compact-header/compact-header.js.map +1 -0
  145. package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features-constants.js +25 -0
  146. package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features-constants.js.map +1 -0
  147. package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features-styled.js +15 -0
  148. package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features-styled.js.map +1 -0
  149. package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features.js +90 -0
  150. package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features.js.map +1 -0
  151. package/dist/features/parent-dashboard/comps/math-practice/math-practice-constants.js +19 -0
  152. package/dist/features/parent-dashboard/comps/math-practice/math-practice-constants.js.map +1 -0
  153. package/dist/features/parent-dashboard/comps/math-practice/math-practice-styled.js +32 -0
  154. package/dist/features/parent-dashboard/comps/math-practice/math-practice-styled.js.map +1 -0
  155. package/dist/features/parent-dashboard/comps/math-practice/math-practice.js +67 -0
  156. package/dist/features/parent-dashboard/comps/math-practice/math-practice.js.map +1 -0
  157. package/dist/features/parent-dashboard/comps/parent-dashboard-faqs/parent-dashboard-faqs-constants.js +42 -0
  158. package/dist/features/parent-dashboard/comps/parent-dashboard-faqs/parent-dashboard-faqs-constants.js.map +1 -0
  159. package/dist/features/parent-dashboard/comps/parent-dashboard-faqs/parent-dashboard-faqs.js +20 -0
  160. package/dist/features/parent-dashboard/comps/parent-dashboard-faqs/parent-dashboard-faqs.js.map +1 -0
  161. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction-styled.js +10 -0
  162. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction-styled.js.map +1 -0
  163. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction.js +42 -0
  164. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction.js.map +1 -0
  165. package/dist/features/parent-dashboard/hooks/use-parent-home-data.js +67 -0
  166. package/dist/features/parent-dashboard/hooks/use-parent-home-data.js.map +1 -0
  167. package/dist/features/parent-dashboard/hooks/use-student-profile-summary-data.js +24 -0
  168. package/dist/features/parent-dashboard/hooks/use-student-profile-summary-data.js.map +1 -0
  169. package/dist/features/parent-dashboard/hooks/use-switch-user-journey.js +71 -0
  170. package/dist/features/parent-dashboard/hooks/use-switch-user-journey.js.map +1 -0
  171. package/dist/features/parent-dashboard/modals/help-and-support/help-and-support.js +40 -0
  172. package/dist/features/parent-dashboard/modals/help-and-support/help-and-support.js.map +1 -0
  173. package/dist/features/parent-dashboard/modals/student-login-info/student-login-info.js +44 -0
  174. package/dist/features/parent-dashboard/modals/student-login-info/student-login-info.js.map +1 -0
  175. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-helpers.js +32 -0
  176. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-helpers.js.map +1 -0
  177. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-styled.js +12 -0
  178. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-styled.js.map +1 -0
  179. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary.js +44 -0
  180. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary.js.map +1 -0
  181. package/dist/features/parent-dashboard/modals/trial-report/trial-report-styled.js +13 -0
  182. package/dist/features/parent-dashboard/modals/trial-report/trial-report-styled.js.map +1 -0
  183. package/dist/features/parent-dashboard/modals/trial-report/trial-report.js +28 -0
  184. package/dist/features/parent-dashboard/modals/trial-report/trial-report.js.map +1 -0
  185. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-constants.js +43 -0
  186. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-constants.js.map +1 -0
  187. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js +59 -0
  188. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js.map +1 -0
  189. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change.js +86 -0
  190. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change.js.map +1 -0
  191. package/dist/features/parent-dashboard/parent-dashboard-constants.js +26 -0
  192. package/dist/features/parent-dashboard/parent-dashboard-constants.js.map +1 -0
  193. package/dist/features/parent-dashboard/parent-dashboard-styled.js +33 -0
  194. package/dist/features/parent-dashboard/parent-dashboard-styled.js.map +1 -0
  195. package/dist/features/parent-dashboard/parent-dashboard-types.js +6 -0
  196. package/dist/features/parent-dashboard/parent-dashboard-types.js.map +1 -0
  197. package/dist/features/parent-dashboard/parent-dashboard-view.js +215 -0
  198. package/dist/features/parent-dashboard/parent-dashboard-view.js.map +1 -0
  199. package/dist/features/parent-dashboard/parent-dashboard.js +8 -0
  200. package/dist/features/parent-dashboard/parent-dashboard.js.map +1 -0
  201. package/dist/features/sentry/constants/ignored.js +10 -6
  202. package/dist/features/sentry/constants/ignored.js.map +1 -1
  203. package/dist/features/sheets/constants/sheet.js +23 -10
  204. package/dist/features/sheets/constants/sheet.js.map +1 -1
  205. package/dist/features/sheets/utils/is-v3-worksheet.js +17 -0
  206. package/dist/features/sheets/utils/is-v3-worksheet.js.map +1 -1
  207. package/dist/features/student-details/class-details/class-details-utils.js +6 -6
  208. package/dist/features/trial-session/api/course-stream.js.map +1 -1
  209. package/dist/features/trial-session/comps/about-cuemath/about-cuemath-constants.js +1 -1
  210. package/dist/features/trial-session/comps/about-cuemath/about-cuemath-constants.js.map +1 -1
  211. package/dist/features/trial-session/comps/background-grid/background-grid-utils.js +66 -60
  212. package/dist/features/trial-session/comps/background-grid/background-grid-utils.js.map +1 -1
  213. package/dist/features/trial-session/comps/learning-plan/index.js +62 -88
  214. package/dist/features/trial-session/comps/learning-plan/index.js.map +1 -1
  215. package/dist/features/trial-session/comps/offering-information/offering-information-constants.js +12 -12
  216. package/dist/features/trial-session/comps/offering-information/offering-information-constants.js.map +1 -1
  217. package/dist/features/trial-session/comps/pla/next-steps/next-steps-constants.js +25 -0
  218. package/dist/features/trial-session/comps/pla/next-steps/next-steps-constants.js.map +1 -0
  219. package/dist/features/trial-session/comps/pla/next-steps/next-steps-styled.js +43 -0
  220. package/dist/features/trial-session/comps/pla/next-steps/next-steps-styled.js.map +1 -0
  221. package/dist/features/trial-session/comps/pla/next-steps/next-steps.js +49 -0
  222. package/dist/features/trial-session/comps/pla/next-steps/next-steps.js.map +1 -0
  223. package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-countdown.js +29 -0
  224. package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-countdown.js.map +1 -0
  225. package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-status-config.js +132 -0
  226. package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-status-config.js.map +1 -0
  227. package/dist/features/trial-session/comps/pla/session-status/session-status-constants.js +11 -0
  228. package/dist/features/trial-session/comps/pla/session-status/session-status-constants.js.map +1 -0
  229. package/dist/features/trial-session/comps/pla/session-status/session-status-helpers.js +19 -0
  230. package/dist/features/trial-session/comps/pla/session-status/session-status-helpers.js.map +1 -0
  231. package/dist/features/trial-session/comps/pla/session-status/session-status-styled.js +17 -0
  232. package/dist/features/trial-session/comps/pla/session-status/session-status-styled.js.map +1 -0
  233. package/dist/features/trial-session/comps/pla/session-status/session-status.js +127 -0
  234. package/dist/features/trial-session/comps/pla/session-status/session-status.js.map +1 -0
  235. package/dist/features/trial-session/comps/pla/session-summary/session-summary-constants.js +53 -0
  236. package/dist/features/trial-session/comps/pla/session-summary/session-summary-constants.js.map +1 -0
  237. package/dist/features/trial-session/comps/pla/session-summary/session-summary.js +53 -0
  238. package/dist/features/trial-session/comps/pla/session-summary/session-summary.js.map +1 -0
  239. package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card-styled.js +17 -0
  240. package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card-styled.js.map +1 -0
  241. package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card.js +56 -0
  242. package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card.js.map +1 -0
  243. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-constants.js +5 -0
  244. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-constants.js.map +1 -0
  245. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-styled.js +17 -0
  246. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-styled.js.map +1 -0
  247. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-types.js +5 -0
  248. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-types.js.map +1 -0
  249. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions.js +96 -0
  250. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions.js.map +1 -0
  251. package/dist/features/trial-session/comps/school-goals/school-goals.js +25 -24
  252. package/dist/features/trial-session/comps/school-goals/school-goals.js.map +1 -1
  253. package/dist/features/trial-session/comps/session-report/report-404/report-404.js +34 -0
  254. package/dist/features/trial-session/comps/session-report/report-404/report-404.js.map +1 -0
  255. package/dist/features/trial-session/comps/session-report/report-information/report-card.js +41 -0
  256. package/dist/features/trial-session/comps/session-report/report-information/report-card.js.map +1 -0
  257. package/dist/features/trial-session/comps/session-report/report-information/report-information-styled.js +39 -0
  258. package/dist/features/trial-session/comps/session-report/report-information/report-information-styled.js.map +1 -0
  259. package/dist/features/trial-session/comps/session-report/report-information/report-information.js +179 -0
  260. package/dist/features/trial-session/comps/session-report/report-information/report-information.js.map +1 -0
  261. package/dist/features/trial-session/comps/session-report/session-report-styled.js +6 -29
  262. package/dist/features/trial-session/comps/session-report/session-report-styled.js.map +1 -1
  263. package/dist/features/trial-session/comps/session-report/session-report.js +44 -174
  264. package/dist/features/trial-session/comps/session-report/session-report.js.map +1 -1
  265. package/dist/features/trial-session/comps/student-personalization/student-personalization-styled.js +20 -5
  266. package/dist/features/trial-session/comps/student-personalization/student-personalization-styled.js.map +1 -1
  267. package/dist/features/trial-session/comps/student-personalization/student-personalization.js +59 -126
  268. package/dist/features/trial-session/comps/student-personalization/student-personalization.js.map +1 -1
  269. package/dist/features/trial-session/comps/student-profile/constant.js +10 -0
  270. package/dist/features/trial-session/comps/student-profile/constant.js.map +1 -0
  271. package/dist/features/trial-session/comps/student-profile/student-profile-highlights/student-profile-highlights.js +53 -0
  272. package/dist/features/trial-session/comps/student-profile/student-profile-highlights/student-profile-highlights.js.map +1 -0
  273. package/dist/features/trial-session/comps/student-profile/student-profile.js +93 -46
  274. package/dist/features/trial-session/comps/student-profile/student-profile.js.map +1 -1
  275. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-helpers.js +12 -0
  276. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-helpers.js.map +1 -0
  277. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-styled.js +121 -42
  278. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-styled.js.map +1 -1
  279. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js +174 -56
  280. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js.map +1 -1
  281. package/dist/features/trial-session/comps/worksheet/worksheet.js +23 -23
  282. package/dist/features/trial-session/comps/worksheet/worksheet.js.map +1 -1
  283. package/dist/features/trial-session/hooks/use-trial-session-navigation.js +65 -63
  284. package/dist/features/trial-session/hooks/use-trial-session-navigation.js.map +1 -1
  285. package/dist/features/trial-session/left-panel/index.js +1 -1
  286. package/dist/features/trial-session/left-panel/index.js.map +1 -1
  287. package/dist/features/trial-session/right-panel/slide-components-map.js +32 -32
  288. package/dist/features/trial-session/right-panel/slide-components-map.js.map +1 -1
  289. package/dist/features/trial-session/trial-session-constants.js +3 -3
  290. package/dist/features/trial-session/trial-session-constants.js.map +1 -1
  291. package/dist/features/trial-session/trial-session-types.js.map +1 -1
  292. package/dist/features/ui/buttons/icon-button/icon-button.js +32 -29
  293. package/dist/features/ui/buttons/icon-button/icon-button.js.map +1 -1
  294. package/dist/features/ui/constants/z-index.js +5 -3
  295. package/dist/features/ui/constants/z-index.js.map +1 -1
  296. package/dist/features/ui/inputs/base-select-input/select-section/select-section.js +12 -11
  297. package/dist/features/ui/inputs/base-select-input/select-section/select-section.js.map +1 -1
  298. package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list-styled.js +2 -7
  299. package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list-styled.js.map +1 -1
  300. package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js +29 -27
  301. package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js.map +1 -1
  302. package/dist/features/ui/modals/modal.js +30 -28
  303. package/dist/features/ui/modals/modal.js.map +1 -1
  304. package/dist/features/wins-dashboard/belts-elements-stickers/belts-elements-stickers.js +109 -0
  305. package/dist/features/wins-dashboard/belts-elements-stickers/belts-elements-stickers.js.map +1 -0
  306. package/dist/features/wins-dashboard/belts-elements-stickers/belts.js +95 -0
  307. package/dist/features/wins-dashboard/belts-elements-stickers/belts.js.map +1 -0
  308. package/dist/features/wins-dashboard/belts-elements-stickers/elements.js +184 -0
  309. package/dist/features/wins-dashboard/belts-elements-stickers/elements.js.map +1 -0
  310. package/dist/features/wins-dashboard/belts-elements-stickers/progress-bar-horizontal.js +36 -0
  311. package/dist/features/wins-dashboard/belts-elements-stickers/progress-bar-horizontal.js.map +1 -0
  312. package/dist/features/wins-dashboard/belts-elements-stickers/reward-elements.js +83 -0
  313. package/dist/features/wins-dashboard/belts-elements-stickers/reward-elements.js.map +1 -0
  314. package/dist/features/wins-dashboard/constants.js +161 -0
  315. package/dist/features/wins-dashboard/constants.js.map +1 -0
  316. package/dist/features/wins-dashboard/header/wins-header.js +95 -0
  317. package/dist/features/wins-dashboard/header/wins-header.js.map +1 -0
  318. package/dist/features/wins-dashboard/student-badges/animated-tabbar.js +66 -0
  319. package/dist/features/wins-dashboard/student-badges/animated-tabbar.js.map +1 -0
  320. package/dist/features/wins-dashboard/student-badges/hooks/use-student-badge-list-hook.js +135 -0
  321. package/dist/features/wins-dashboard/student-badges/hooks/use-student-badge-list-hook.js.map +1 -0
  322. package/dist/features/wins-dashboard/student-badges/student-badge.js +168 -0
  323. package/dist/features/wins-dashboard/student-badges/student-badge.js.map +1 -0
  324. package/dist/features/wins-dashboard/student-badges/student-badges-lists.js +137 -0
  325. package/dist/features/wins-dashboard/student-badges/student-badges-lists.js.map +1 -0
  326. package/dist/features/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.js +86 -90
  327. package/dist/features/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.js.map +1 -1
  328. package/dist/features/worksheet/worksheet/worksheet-behavior-helper.js +147 -0
  329. package/dist/features/worksheet/worksheet/worksheet-behavior-helper.js.map +1 -0
  330. package/dist/features/worksheet/worksheet/worksheet-container.js +62 -42
  331. package/dist/features/worksheet/worksheet/worksheet-container.js.map +1 -1
  332. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +197 -199
  333. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
  334. package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js +228 -300
  335. package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js.map +1 -1
  336. package/dist/features/worksheet/worksheet/worksheet-styled.js +34 -34
  337. package/dist/features/worksheet/worksheet/worksheet-styled.js.map +1 -1
  338. package/dist/features/worksheet/worksheet/worksheet-types.js.map +1 -1
  339. package/dist/features/worksheet/worksheet/worksheet.js +206 -215
  340. package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
  341. package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js +33 -33
  342. package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js.map +1 -1
  343. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js +30 -28
  344. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
  345. package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js +69 -73
  346. package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js.map +1 -1
  347. package/dist/features/worksheet/worksheet-preview/worksheet-preview.js +30 -79
  348. package/dist/features/worksheet/worksheet-preview/worksheet-preview.js.map +1 -1
  349. package/dist/index.d.ts +473 -45
  350. package/dist/index.js +695 -627
  351. package/dist/index.js.map +1 -1
  352. package/dist/node_modules/date-fns/_lib/getRoundingMethod.js +10 -0
  353. package/dist/node_modules/date-fns/_lib/getRoundingMethod.js.map +1 -0
  354. package/dist/node_modules/date-fns/differenceInMilliseconds.js +9 -0
  355. package/dist/node_modules/date-fns/differenceInMilliseconds.js.map +1 -0
  356. package/dist/node_modules/date-fns/differenceInSeconds.js +11 -0
  357. package/dist/node_modules/date-fns/differenceInSeconds.js.map +1 -0
  358. package/dist/node_modules/date-fns/fromUnixTime.js +9 -0
  359. package/dist/node_modules/date-fns/fromUnixTime.js.map +1 -0
  360. package/dist/static/awesome.4239f583.json +1 -0
  361. package/dist/static/black-belt.81b3ebf9.png +0 -0
  362. package/dist/static/blue-belt.508a1b4b.png +0 -0
  363. package/dist/static/{book-checked-green.c275dbd9.svg → book-checked-green.0436b91e.svg} +1 -1
  364. package/dist/static/brown-belt.09bb7e93.png +0 -0
  365. package/dist/static/clapping-hands.17e7ecf0.json +1 -0
  366. package/dist/static/common.9e8ceef1.svg +1 -0
  367. package/dist/static/community-bulb-yellow-2.f89c30f9.svg +1 -0
  368. package/dist/static/cool.cd6921bb.json +1 -0
  369. package/dist/static/epic.37a0265a.svg +1 -0
  370. package/dist/static/error-responsive.9916ff66.json +1 -0
  371. package/dist/static/error.dd744fa5.json +1 -0
  372. package/dist/static/green-belt.5501296f.png +0 -0
  373. package/dist/static/learning-puzzle-bot.6fe93cf6.svg +1 -0
  374. package/dist/static/legendary.f15d09ca.svg +1 -0
  375. package/dist/static/like-button.281a2618.json +1 -0
  376. package/dist/static/mastered-badge.91d25e92.png +0 -0
  377. package/dist/static/mystery.81ada5fb.svg +1 -0
  378. package/dist/static/mythic.58ba0ae0.svg +1 -0
  379. package/dist/static/orange-belt.1fefcc8c.png +0 -0
  380. package/dist/static/personalization.7a6c33e8.svg +1 -0
  381. package/dist/static/personalized-session.b4fd7df8.gif +0 -0
  382. package/dist/static/purple-belt.e15611b4.png +0 -0
  383. package/dist/static/rare.1ffaa311.svg +1 -0
  384. package/dist/static/red-belt.11f841d9.png +0 -0
  385. package/dist/static/regular-practice.b15f24d9.gif +0 -0
  386. package/dist/static/star-strike-emoji.c0b31028.json +1 -0
  387. package/dist/static/stepup.321df6ed.gif +0 -0
  388. package/dist/static/trophy.5ef1853a.json +1 -0
  389. package/dist/static/username-responsive.787b5515.json +1 -0
  390. package/dist/static/username.2c755605.json +1 -0
  391. package/dist/static/white-belt.ea93103e.png +0 -0
  392. package/dist/static/yellow-belt.0c47b8cc.png +0 -0
  393. package/package.json +1 -1
  394. package/dist/features/trial-session/comps/session-report/report-card.js +0 -26
  395. package/dist/features/trial-session/comps/session-report/report-card.js.map +0 -1
  396. package/dist/features/worksheet/worksheet/hooks/use-worksheet-journey.js +0 -28
  397. package/dist/features/worksheet/worksheet/hooks/use-worksheet-journey.js.map +0 -1
  398. package/dist/static/error.cbe1ddde.json +0 -1
  399. package/dist/static/username.9e034d51.json +0 -1
@@ -0,0 +1,42 @@
1
+ const e = [
2
+ {
3
+ accordionQuestion: "How do I find the right online math tutor in Cuemath?",
4
+ accordionAnswer: "Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles."
5
+ },
6
+ {
7
+ accordionQuestion: "Do online math tutors customize their classes according to the school curriculum?",
8
+ accordionAnswer: "Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles."
9
+ },
10
+ {
11
+ accordionQuestion: "How are Cuemath’s online math tutoring programs conducted?",
12
+ accordionAnswer: "Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles."
13
+ },
14
+ {
15
+ accordionQuestion: "Can Cuemath’s math tutors help with homework and test preparation?",
16
+ accordionAnswer: "Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles."
17
+ },
18
+ {
19
+ accordionQuestion: "How do Cuemath’s math tutors assess and inform student progress?",
20
+ accordionAnswer: "Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles."
21
+ },
22
+ {
23
+ accordionQuestion: "When do online math classes start? Are the classes flexible?",
24
+ accordionAnswer: "Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles."
25
+ },
26
+ {
27
+ accordionQuestion: "What technology or tools do Cuemath’s mathematics tutors use to enhance the math learning experience?",
28
+ accordionAnswer: "Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles."
29
+ },
30
+ {
31
+ accordionQuestion: "How qualified are online math tutors at Cuemath?",
32
+ accordionAnswer: "Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles."
33
+ },
34
+ {
35
+ accordionQuestion: "What if I don’t like the math tutor?",
36
+ accordionAnswer: "Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles."
37
+ }
38
+ ];
39
+ export {
40
+ e as faqsData
41
+ };
42
+ //# sourceMappingURL=parent-dashboard-faqs-constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parent-dashboard-faqs-constants.js","sources":["../../../../../src/features/parent-dashboard/comps/parent-dashboard-faqs/parent-dashboard-faqs-constants.ts"],"sourcesContent":["export const faqsData = [\n {\n accordionQuestion: 'How do I find the right online math tutor in Cuemath?',\n accordionAnswer:\n 'Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles.',\n },\n {\n accordionQuestion:\n 'Do online math tutors customize their classes according to the school curriculum?',\n accordionAnswer:\n 'Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles.',\n },\n {\n accordionQuestion: 'How are Cuemath’s online math tutoring programs conducted?',\n accordionAnswer:\n 'Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles.',\n },\n {\n accordionQuestion: 'Can Cuemath’s math tutors help with homework and test preparation?',\n accordionAnswer:\n 'Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles.',\n },\n {\n accordionQuestion: 'How do Cuemath’s math tutors assess and inform student progress?',\n accordionAnswer:\n 'Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles.',\n },\n {\n accordionQuestion: 'When do online math classes start? Are the classes flexible?',\n accordionAnswer:\n 'Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles.',\n },\n {\n accordionQuestion:\n 'What technology or tools do Cuemath’s mathematics tutors use to enhance the math learning experience?',\n accordionAnswer:\n 'Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles.',\n },\n {\n accordionQuestion: 'How qualified are online math tutors at Cuemath?',\n accordionAnswer:\n 'Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles.',\n },\n {\n accordionQuestion: 'What if I don’t like the math tutor?',\n accordionAnswer:\n 'Cuemath offers a personalized approach to finding the right online math tutor. You can start by taking a free trial class, where you will be matched with a tutor based on your learning needs and preferences. The tutors are experienced and trained to provide customized lessons that cater to individual learning styles.',\n },\n];\n"],"names":["faqsData"],"mappings":"AAAO,MAAMA,IAAW;AAAA,EACtB;AAAA,IACE,mBAAmB;AAAA,IACnB,iBACE;AAAA,EACJ;AAAA,EACA;AAAA,IACE,mBACE;AAAA,IACF,iBACE;AAAA,EACJ;AAAA,EACA;AAAA,IACE,mBAAmB;AAAA,IACnB,iBACE;AAAA,EACJ;AAAA,EACA;AAAA,IACE,mBAAmB;AAAA,IACnB,iBACE;AAAA,EACJ;AAAA,EACA;AAAA,IACE,mBAAmB;AAAA,IACnB,iBACE;AAAA,EACJ;AAAA,EACA;AAAA,IACE,mBAAmB;AAAA,IACnB,iBACE;AAAA,EACJ;AAAA,EACA;AAAA,IACE,mBACE;AAAA,IACF,iBACE;AAAA,EACJ;AAAA,EACA;AAAA,IACE,mBAAmB;AAAA,IACnB,iBACE;AAAA,EACJ;AAAA,EACA;AAAA,IACE,mBAAmB;AAAA,IACnB,iBACE;AAAA,EACJ;AACF;"}
@@ -0,0 +1,20 @@
1
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
+ import { useTheme as t } from "styled-components";
3
+ import a from "../../../ui/accordion/accordion.js";
4
+ import i from "../../../ui/layout/flex-view.js";
5
+ import m from "../../../ui/separator/separator.js";
6
+ import s from "../../../ui/text/text.js";
7
+ import { EDeviceType as n } from "../../../ui/theme/constants.js";
8
+ import { faqsData as d } from "./parent-dashboard-faqs-constants.js";
9
+ const c = () => {
10
+ const r = t().device <= n.MOBILE;
11
+ return /* @__PURE__ */ o(i, { children: [
12
+ /* @__PURE__ */ e(s, { $renderAs: "ah4-bold", $renderOnMobileAs: "ab1-bold", $color: "WHITE", children: "FAQs" }),
13
+ /* @__PURE__ */ e(m, { height: r ? 16 : 20 }),
14
+ /* @__PURE__ */ e(a, { theme: "dark", visibleBuffer: 2, defaultOpenElement: 0, accordionData: d })
15
+ ] });
16
+ }, E = c;
17
+ export {
18
+ E as default
19
+ };
20
+ //# sourceMappingURL=parent-dashboard-faqs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parent-dashboard-faqs.js","sources":["../../../../../src/features/parent-dashboard/comps/parent-dashboard-faqs/parent-dashboard-faqs.tsx"],"sourcesContent":["import { useTheme } from 'styled-components';\n\nimport Accordion from '../../../ui/accordion/accordion';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { EDeviceType } from '../../../ui/theme/constants';\nimport { faqsData } from './parent-dashboard-faqs-constants';\n\nconst ParentDashboardFaqs = () => {\n const theme = useTheme();\n const isMobile = theme.device <= EDeviceType.MOBILE;\n\n return (\n <FlexView>\n <Text $renderAs=\"ah4-bold\" $renderOnMobileAs=\"ab1-bold\" $color=\"WHITE\">\n FAQs\n </Text>\n <Separator height={isMobile ? 16 : 20} />\n <Accordion theme=\"dark\" visibleBuffer={2} defaultOpenElement={0} accordionData={faqsData} />\n </FlexView>\n );\n};\n\nexport default ParentDashboardFaqs;\n"],"names":["ParentDashboardFaqs","isMobile","useTheme","EDeviceType","FlexView","jsx","Text","Separator","Accordion","faqsData","ParentDashboardFaqs$1"],"mappings":";;;;;;;;AASA,MAAMA,IAAsB,MAAM;AAE1B,QAAAC,IADQC,IACS,UAAUC,EAAY;AAE7C,2BACGC,GACC,EAAA,UAAA;AAAA,IAAA,gBAAAC,EAACC,KAAK,WAAU,YAAW,mBAAkB,YAAW,QAAO,SAAQ,UAEvE,OAAA,CAAA;AAAA,IACC,gBAAAD,EAAAE,GAAA,EAAU,QAAQN,IAAW,KAAK,IAAI;AAAA,IACvC,gBAAAI,EAACG,KAAU,OAAM,QAAO,eAAe,GAAG,oBAAoB,GAAG,eAAeC,EAAU,CAAA;AAAA,EAC5F,EAAA,CAAA;AAEJ,GAEAC,IAAeV;"}
@@ -0,0 +1,10 @@
1
+ import r from "styled-components";
2
+ import t from "../../../ui/layout/flex-view.js";
3
+ const o = r(t)`
4
+ width: 100%;
5
+ max-width: 293px;
6
+ `;
7
+ export {
8
+ o as ImageWrapper
9
+ };
10
+ //# sourceMappingURL=pla-first-session-introduction-styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pla-first-session-introduction-styled.js","sources":["../../../../../src/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nconst ImageWrapper = styled(FlexView)`\n width: 100%;\n max-width: 293px;\n`;\n\nexport { ImageWrapper };\n"],"names":["ImageWrapper","styled","FlexView"],"mappings":";;AAIM,MAAAA,IAAeC,EAAOC,CAAQ;AAAA;AAAA;AAAA;"}
@@ -0,0 +1,42 @@
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import { memo as a } from "react";
3
+ import { ILLUSTRATIONS as c } from "../../../../assets/illustrations/illustrations.js";
4
+ import l from "../../../ui/buttons/button/button.js";
5
+ import h from "../../../ui/image/image.js";
6
+ import s from "../../../ui/layout/flex-view.js";
7
+ import r from "../../../ui/separator/separator.js";
8
+ import t from "../../../ui/text/text.js";
9
+ import d from "../../hooks/use-parent-home-data.js";
10
+ import { ImageWrapper as p } from "./pla-first-session-introduction-styled.js";
11
+ const f = ({
12
+ studentId: n,
13
+ onRunSystemCheck: m
14
+ }) => {
15
+ const { formattedNextSessionStart: o } = d(n);
16
+ return /* @__PURE__ */ i(s, { $justifyContent: "center", $alignItems: "center", $height: "100vh", $width: "100%", children: [
17
+ o && /* @__PURE__ */ i(s, { children: [
18
+ /* @__PURE__ */ e(t, { $renderAs: "ab1", $color: "BLACK_1", $align: "center", children: "We’re excited for your first session on" }),
19
+ /* @__PURE__ */ e(r, { height: 4 }),
20
+ /* @__PURE__ */ e(t, { $renderAs: "ab1-bold", $align: "center", children: o })
21
+ ] }),
22
+ /* @__PURE__ */ e(r, { heightX: 2.5 }),
23
+ /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(h, { src: c.LEARNING_PUZZLE_BOT, width: "100%" }) }),
24
+ /* @__PURE__ */ e(r, { heightX: 3.5 }),
25
+ /* @__PURE__ */ e(t, { $renderAs: "ab2", $color: "BLACK_1", $align: "center", children: "Let's make sure your device is ready for your child's session." }),
26
+ /* @__PURE__ */ e(r, { heightX: 1 }),
27
+ /* @__PURE__ */ e(
28
+ l,
29
+ {
30
+ renderAs: "primary",
31
+ label: "Run a system check",
32
+ shape: "square",
33
+ size: "small",
34
+ onClick: m
35
+ }
36
+ )
37
+ ] });
38
+ }, B = a(f);
39
+ export {
40
+ B as default
41
+ };
42
+ //# sourceMappingURL=pla-first-session-introduction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pla-first-session-introduction.js","sources":["../../../../../src/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction.tsx"],"sourcesContent":["import type { IFirstSessionIntroductionProps } from './pla-first-session-introduction-types';\n\nimport { memo, type FC } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Button from '../../../ui/buttons/button/button';\nimport Image from '../../../ui/image/image';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport useParentHomeData from '../../hooks/use-parent-home-data';\nimport * as Styled from './pla-first-session-introduction-styled';\n\nconst PlaFirstSessionIntroduction: FC<IFirstSessionIntroductionProps> = ({\n studentId,\n onRunSystemCheck,\n}) => {\n const { formattedNextSessionStart } = useParentHomeData(studentId);\n\n return (\n <FlexView $justifyContent=\"center\" $alignItems=\"center\" $height=\"100vh\" $width={'100%'}>\n {formattedNextSessionStart && (\n <FlexView>\n <Text $renderAs=\"ab1\" $color=\"BLACK_1\" $align=\"center\">\n We’re excited for your first session on\n </Text>\n <Separator height={4} />\n <Text $renderAs=\"ab1-bold\" $align=\"center\">\n {formattedNextSessionStart}\n </Text>\n </FlexView>\n )}\n <Separator heightX={2.5} />\n <Styled.ImageWrapper>\n <Image src={ILLUSTRATIONS.LEARNING_PUZZLE_BOT} width=\"100%\" />\n </Styled.ImageWrapper>\n <Separator heightX={3.5} />\n <Text $renderAs=\"ab2\" $color=\"BLACK_1\" $align=\"center\">\n Let's make sure your device is ready for your child's session.\n </Text>\n <Separator heightX={1} />\n <Button\n renderAs=\"primary\"\n label=\"Run a system check\"\n shape=\"square\"\n size=\"small\"\n onClick={onRunSystemCheck}\n />\n </FlexView>\n );\n};\n\nexport default memo(PlaFirstSessionIntroduction);\n"],"names":["PlaFirstSessionIntroduction","studentId","onRunSystemCheck","formattedNextSessionStart","useParentHomeData","jsxs","FlexView","jsx","Text","Separator","Styled.ImageWrapper","Image","ILLUSTRATIONS","Button","plaFirstSessionIntroduction","memo"],"mappings":";;;;;;;;;;AAaA,MAAMA,IAAkE,CAAC;AAAA,EACvE,WAAAC;AAAA,EACA,kBAAAC;AACF,MAAM;AACJ,QAAM,EAAE,2BAAAC,EAAA,IAA8BC,EAAkBH,CAAS;AAG/D,SAAA,gBAAAI,EAACC,KAAS,iBAAgB,UAAS,aAAY,UAAS,SAAQ,SAAQ,QAAQ,QAC7E,UAAA;AAAA,IAAAH,uBACEG,GACC,EAAA,UAAA;AAAA,MAAA,gBAAAC,EAACC,KAAK,WAAU,OAAM,QAAO,WAAU,QAAO,UAAS,UAEvD,0CAAA,CAAA;AAAA,MACA,gBAAAD,EAACE,GAAU,EAAA,QAAQ,EAAG,CAAA;AAAA,wBACrBD,GAAK,EAAA,WAAU,YAAW,QAAO,UAC/B,UACHL,GAAA;AAAA,IAAA,GACF;AAAA,IAEF,gBAAAI,EAACE,GAAU,EAAA,SAAS,IAAK,CAAA;AAAA,IACzB,gBAAAF,EAACG,GAAA,EACC,UAAA,gBAAAH,EAACI,GAAM,EAAA,KAAKC,EAAc,qBAAqB,OAAM,OAAA,CAAO,EAC9D,CAAA;AAAA,IACA,gBAAAL,EAACE,GAAU,EAAA,SAAS,IAAK,CAAA;AAAA,IACzB,gBAAAF,EAACC,KAAK,WAAU,OAAM,QAAO,WAAU,QAAO,UAAS,UAEvD,iEAAA,CAAA;AAAA,IACA,gBAAAD,EAACE,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,IACvB,gBAAAF;AAAA,MAACM;AAAA,MAAA;AAAA,QACC,UAAS;AAAA,QACT,OAAM;AAAA,QACN,OAAM;AAAA,QACN,MAAK;AAAA,QACL,SAASX;AAAA,MAAA;AAAA,IACX;AAAA,EACF,EAAA,CAAA;AAEJ,GAEeY,IAAAC,EAAKf,CAA2B;"}
@@ -0,0 +1,67 @@
1
+ import { useCallback as H, useEffect as p, useMemo as O } from "react";
2
+ import { useParentHomeGet as P } from "../api/parent-home.js";
3
+ import { formatDate as b } from "../../../node_modules/date-fns/format.js";
4
+ const k = (s) => {
5
+ const {
6
+ get: n,
7
+ data: a,
8
+ isStale: i,
9
+ isProcessingFailed: m
10
+ } = P(s), e = H(() => {
11
+ s && n(s);
12
+ }, [n, s]);
13
+ return p(() => {
14
+ e();
15
+ }, [e]), p(() => {
16
+ i && e();
17
+ }, [e, i]), O(() => {
18
+ var d;
19
+ const { teacher_details: r = null, session_details: o } = a ?? {};
20
+ if (!o)
21
+ return {
22
+ sessionDetails: null,
23
+ teacherDetails: null,
24
+ isOnlyOneSessionCompleted: !1,
25
+ isMoreThanOneSessionCompleted: !1,
26
+ isDemoDone: !1,
27
+ isSubscriptionCancelled: !1,
28
+ completedSessions: 0,
29
+ nextSessionEnd: 0,
30
+ nextSessionStart: 0,
31
+ upcomingSessions: [],
32
+ showLoading: !0,
33
+ isProcessingFailed: m,
34
+ fetchData: e
35
+ };
36
+ const {
37
+ completed_sessions: t = 0,
38
+ next_session_end: u,
39
+ next_session_start: l,
40
+ demo_class_status: S,
41
+ upcoming_sessions: f = [],
42
+ student_demo_id: _,
43
+ user_attempt_id: D
44
+ } = o, { first_name: h = "", last_name: x = "" } = r ?? {}, M = (d = `${h} ${x}`) == null ? void 0 : d.trim(), c = t > 0, g = c && t === 1, E = t > 1, C = b(l, "EEEE, MMM d 'at' h:mm a");
45
+ return {
46
+ sessionDetails: o,
47
+ teacherDetails: r,
48
+ teacherName: M,
49
+ completedSessions: t,
50
+ nextSessionEnd: u,
51
+ nextSessionStart: l,
52
+ classStatus: S,
53
+ upcomingSessions: f,
54
+ isDemoDone: c,
55
+ isOnlyOneSessionCompleted: g,
56
+ isMoreThanOneSessionCompleted: E,
57
+ demoId: _,
58
+ userAttemptId: D,
59
+ fetchData: e,
60
+ formattedNextSessionStart: C
61
+ };
62
+ }, [e, m, a]);
63
+ };
64
+ export {
65
+ k as default
66
+ };
67
+ //# sourceMappingURL=use-parent-home-data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-parent-home-data.js","sources":["../../../../src/features/parent-dashboard/hooks/use-parent-home-data.ts"],"sourcesContent":["import type { TSession } from '../../trial-session/comps/pla/upcoming-sessions/upcoming-sessions-types';\nimport type { EClassStatus, ISessionDetails, ITeacherDetails } from '../parent-dashboard-types';\n\nimport { format } from 'date-fns';\nimport { useCallback, useEffect, useMemo } from 'react';\n\nimport { useParentHomeGet } from '../api/parent-home';\n\ninterface IUseParentHomeDataReturn {\n sessionDetails: ISessionDetails | null;\n teacherDetails: ITeacherDetails | null;\n completedSessions: number;\n nextSessionEnd: number;\n nextSessionStart: number;\n classStatus?: EClassStatus | null;\n teacherName?: string;\n upcomingSessions?: TSession[];\n isDemoDone: boolean;\n isOnlyOneSessionCompleted: boolean;\n isMoreThanOneSessionCompleted: boolean;\n showLoading?: boolean;\n demoId?: string;\n userAttemptId?: string;\n isProcessingFailed?: boolean;\n fetchData: () => void;\n formattedNextSessionStart?: string;\n}\n\nconst useParentHomeData = (studentId: string): IUseParentHomeDataReturn => {\n const {\n get: getParentHome,\n data: parentHomeData,\n isStale,\n isProcessingFailed,\n } = useParentHomeGet(studentId);\n\n const fetchData = useCallback(() => {\n studentId && getParentHome(studentId);\n }, [getParentHome, studentId]);\n\n useEffect(() => {\n fetchData();\n }, [fetchData]);\n\n useEffect(() => {\n if (isStale) {\n fetchData();\n }\n }, [fetchData, isStale]);\n\n const parentHomeDataMemoised = useMemo(() => {\n const { teacher_details: teacherDetails = null, session_details: sessionDetails } =\n parentHomeData ?? {};\n\n if (!sessionDetails) {\n return {\n sessionDetails: null,\n teacherDetails: null,\n isOnlyOneSessionCompleted: false,\n isMoreThanOneSessionCompleted: false,\n isDemoDone: false,\n isSubscriptionCancelled: false,\n completedSessions: 0,\n nextSessionEnd: 0,\n nextSessionStart: 0,\n upcomingSessions: [],\n showLoading: true,\n isProcessingFailed,\n fetchData,\n };\n }\n\n const {\n completed_sessions: completedSessions = 0,\n next_session_end: nextSessionEnd,\n next_session_start: nextSessionStart,\n demo_class_status: classStatus,\n upcoming_sessions: upcomingSessions = [],\n student_demo_id: demoId,\n user_attempt_id: userAttemptId,\n } = sessionDetails;\n\n const { first_name = '', last_name = '' } = teacherDetails ?? {};\n const teacherName = `${first_name} ${last_name}`?.trim();\n\n const isDemoDone = completedSessions > 0;\n const isOnlyOneSessionCompleted = isDemoDone && completedSessions === 1;\n const isMoreThanOneSessionCompleted = completedSessions > 1;\n\n const formattedNextSessionStart = format(nextSessionStart, \"EEEE, MMM d 'at' h:mm a\");\n\n return {\n sessionDetails,\n teacherDetails,\n teacherName,\n completedSessions,\n nextSessionEnd,\n nextSessionStart,\n classStatus,\n upcomingSessions,\n isDemoDone,\n isOnlyOneSessionCompleted,\n isMoreThanOneSessionCompleted,\n demoId,\n userAttemptId,\n fetchData,\n formattedNextSessionStart,\n };\n }, [fetchData, isProcessingFailed, parentHomeData]);\n\n return parentHomeDataMemoised;\n};\n\nexport default useParentHomeData;\n"],"names":["useParentHomeData","studentId","getParentHome","parentHomeData","isStale","isProcessingFailed","useParentHomeGet","fetchData","useCallback","useEffect","useMemo","teacherDetails","sessionDetails","completedSessions","nextSessionEnd","nextSessionStart","classStatus","upcomingSessions","demoId","userAttemptId","first_name","last_name","teacherName","_a","isDemoDone","isOnlyOneSessionCompleted","isMoreThanOneSessionCompleted","formattedNextSessionStart","format"],"mappings":";;;AA4BM,MAAAA,IAAoB,CAACC,MAAgD;AACnE,QAAA;AAAA,IACJ,KAAKC;AAAA,IACL,MAAMC;AAAA,IACN,SAAAC;AAAA,IACA,oBAAAC;AAAA,EAAA,IACEC,EAAiBL,CAAS,GAExBM,IAAYC,EAAY,MAAM;AAClC,IAAAP,KAAaC,EAAcD,CAAS;AAAA,EAAA,GACnC,CAACC,GAAeD,CAAS,CAAC;AAE7B,SAAAQ,EAAU,MAAM;AACJ,IAAAF;EAAA,GACT,CAACA,CAAS,CAAC,GAEdE,EAAU,MAAM;AACd,IAAIL,KACQG;EACZ,GACC,CAACA,GAAWH,CAAO,CAAC,GAEQM,EAAQ,MAAM;;AACrC,UAAA,EAAE,iBAAiBC,IAAiB,MAAM,iBAAiBC,EAAe,IAC9ET,KAAkB;AAEpB,QAAI,CAACS;AACI,aAAA;AAAA,QACL,gBAAgB;AAAA,QAChB,gBAAgB;AAAA,QAChB,2BAA2B;AAAA,QAC3B,+BAA+B;AAAA,QAC/B,YAAY;AAAA,QACZ,yBAAyB;AAAA,QACzB,mBAAmB;AAAA,QACnB,gBAAgB;AAAA,QAChB,kBAAkB;AAAA,QAClB,kBAAkB,CAAC;AAAA,QACnB,aAAa;AAAA,QACb,oBAAAP;AAAA,QACA,WAAAE;AAAA,MAAA;AAIE,UAAA;AAAA,MACJ,oBAAoBM,IAAoB;AAAA,MACxC,kBAAkBC;AAAA,MAClB,oBAAoBC;AAAA,MACpB,mBAAmBC;AAAA,MACnB,mBAAmBC,IAAmB,CAAC;AAAA,MACvC,iBAAiBC;AAAA,MACjB,iBAAiBC;AAAA,IACf,IAAAP,GAEE,EAAE,YAAAQ,IAAa,IAAI,WAAAC,IAAY,GAAG,IAAIV,KAAkB,IACxDW,KAAcC,IAAA,GAAGH,CAAU,IAAIC,CAAS,OAA1B,gBAAAE,EAA8B,QAE5CC,IAAaX,IAAoB,GACjCY,IAA4BD,KAAcX,MAAsB,GAChEa,IAAgCb,IAAoB,GAEpDc,IAA4BC,EAAOb,GAAkB,yBAAyB;AAE7E,WAAA;AAAA,MACL,gBAAAH;AAAA,MACA,gBAAAD;AAAA,MACA,aAAAW;AAAA,MACA,mBAAAT;AAAA,MACA,gBAAAC;AAAA,MACA,kBAAAC;AAAA,MACA,aAAAC;AAAA,MACA,kBAAAC;AAAA,MACA,YAAAO;AAAA,MACA,2BAAAC;AAAA,MACA,+BAAAC;AAAA,MACA,QAAAR;AAAA,MACA,eAAAC;AAAA,MACA,WAAAZ;AAAA,MACA,2BAAAoB;AAAA,IAAA;AAAA,EAED,GAAA,CAACpB,GAAWF,GAAoBF,CAAc,CAAC;AAGpD;"}
@@ -0,0 +1,24 @@
1
+ import { useCallback as s, useEffect as i, useMemo as u } from "react";
2
+ import { useGetMileStoneConfig as l } from "../../milestone/create/api/milestone-config.js";
3
+ import { useStudentProfileSummaryGet as c } from "../api/get-student-profile-summary.js";
4
+ import { getLearningProfileSummary as g } from "../modals/student-profile-summary/student-profile-summary-helpers.js";
5
+ const f = { demo_type: "TRIAL_V3" }, C = (e) => {
6
+ const { get: o, data: r } = c(e), { get: m, data: a } = l(
7
+ e,
8
+ f
9
+ ), t = s(() => {
10
+ o(e), m(e, f);
11
+ }, [o, e, m]);
12
+ i(() => {
13
+ t();
14
+ }, [t]);
15
+ const n = u(() => g(a, r), [a, r]);
16
+ return u(
17
+ () => ({ summaryInfo: n, fetchSummaryData: t }),
18
+ [n, t]
19
+ );
20
+ };
21
+ export {
22
+ C as default
23
+ };
24
+ //# sourceMappingURL=use-student-profile-summary-data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-student-profile-summary-data.js","sources":["../../../../src/features/parent-dashboard/hooks/use-student-profile-summary-data.ts"],"sourcesContent":["import { useCallback, useEffect, useMemo } from 'react';\n\nimport { useGetMileStoneConfig } from '../../milestone/create/api/milestone-config';\nimport { useStudentProfileSummaryGet } from '../api/get-student-profile-summary';\nimport { getLearningProfileSummary } from '../modals/student-profile-summary/student-profile-summary-helpers';\n\nconst DEFAULT_DEMO_TYPE = { demo_type: 'TRIAL_V3' } as const;\n\nconst useStudentProfileSummaryData = (studentId: string) => {\n const { get: getStudentProfileSummary, data: summaryData } =\n useStudentProfileSummaryGet(studentId);\n\n const { get: getMilestoneConfig, data: milestoneConfigData } = useGetMileStoneConfig(\n studentId,\n DEFAULT_DEMO_TYPE,\n );\n\n const fetchSummaryData = useCallback(() => {\n getStudentProfileSummary(studentId);\n getMilestoneConfig(studentId, DEFAULT_DEMO_TYPE);\n }, [getStudentProfileSummary, studentId, getMilestoneConfig]);\n\n useEffect(() => {\n fetchSummaryData();\n }, [fetchSummaryData]);\n\n const summaryInfo = useMemo(() => {\n return getLearningProfileSummary(milestoneConfigData, summaryData);\n }, [milestoneConfigData, summaryData]);\n\n const result = useMemo(\n () => ({ summaryInfo, fetchSummaryData }),\n [summaryInfo, fetchSummaryData],\n );\n\n return result;\n};\n\nexport default useStudentProfileSummaryData;\n"],"names":["DEFAULT_DEMO_TYPE","useStudentProfileSummaryData","studentId","getStudentProfileSummary","summaryData","useStudentProfileSummaryGet","getMilestoneConfig","milestoneConfigData","useGetMileStoneConfig","fetchSummaryData","useCallback","useEffect","summaryInfo","useMemo","getLearningProfileSummary"],"mappings":";;;;AAMA,MAAMA,IAAoB,EAAE,WAAW,cAEjCC,IAA+B,CAACC,MAAsB;AAC1D,QAAM,EAAE,KAAKC,GAA0B,MAAMC,MAC3CC,EAA4BH,CAAS,GAEjC,EAAE,KAAKI,GAAoB,MAAMC,EAAwB,IAAAC;AAAA,IAC7DN;AAAA,IACAF;AAAA,EAAA,GAGIS,IAAmBC,EAAY,MAAM;AACzC,IAAAP,EAAyBD,CAAS,GAClCI,EAAmBJ,GAAWF,CAAiB;AAAA,EAC9C,GAAA,CAACG,GAA0BD,GAAWI,CAAkB,CAAC;AAE5D,EAAAK,EAAU,MAAM;AACG,IAAAF;EAAA,GAChB,CAACA,CAAgB,CAAC;AAEf,QAAAG,IAAcC,EAAQ,MACnBC,EAA0BP,GAAqBH,CAAW,GAChE,CAACG,GAAqBH,CAAW,CAAC;AAO9B,SALQS;AAAA,IACb,OAAO,EAAE,aAAAD,GAAa,kBAAAH;IACtB,CAACG,GAAaH,CAAgB;AAAA,EAAA;AAIlC;"}
@@ -0,0 +1,71 @@
1
+ import { jsx as o, jsxs as y } from "react/jsx-runtime";
2
+ import { useRef as C, useCallback as n } from "react";
3
+ import { useTheme as I } from "styled-components";
4
+ import { ILLUSTRATIONS as w } from "../../../assets/illustrations/illustrations.js";
5
+ import { JOURNEY_ID_STUDENT as E } from "../../journey/journey-id/journey-id-student.js";
6
+ import { IndicatorType as S } from "../../journey/use-journey/constants.js";
7
+ import { useJourney as b } from "../../journey/use-journey/use-journey.js";
8
+ import g from "../../ui/avatar/avatar.js";
9
+ import O from "../../ui/buttons/button/button.js";
10
+ import _ from "../../ui/image/image.js";
11
+ import h from "../../ui/layout/flex-view.js";
12
+ import x from "../../ui/separator/separator.js";
13
+ import J from "../../ui/text/text.js";
14
+ import { EDeviceType as L } from "../../ui/theme/constants.js";
15
+ const X = () => {
16
+ const e = E.PLA_SWITCH_USER_JOURNEY, { device: T } = I(), t = T <= L.MOBILE, f = C([]), r = t ? 40 : 64, { setJourney: s, endJourney: m, nextCoachmark: l } = b(), c = n(() => {
17
+ l(e, !1, 0, !1);
18
+ }, [e, l]), d = n(() => {
19
+ document.body.style.overflow = "unset", m(e);
20
+ }, [m, e]);
21
+ return n(
22
+ (i, a) => {
23
+ if (!(i != null && i.current))
24
+ return;
25
+ const u = [
26
+ {
27
+ originalElementToHighlightRef: i,
28
+ elementToHighlight: /* @__PURE__ */ o("div", { children: a ? /* @__PURE__ */ o(g, { size: r, avatar: a }) : /* @__PURE__ */ o(_, { src: w.STUDENT_AVATAR, width: r, height: r }) }),
29
+ type: S.TOOLTIP,
30
+ indicator: {
31
+ renderAs: "primary",
32
+ tooltipXCoOrdinates: t ? 98 : 42,
33
+ tooltipYCoOrdinates: t ? 20 : 36,
34
+ arrowSize: 12,
35
+ arrowYCoOrdinates: -36,
36
+ arrowXCoOrdinates: -100,
37
+ position: t ? "bottom" : "right",
38
+ backgroundColor: "PURPLE_4",
39
+ borderColor: "WHITE_1",
40
+ arrowColor: "WHITE_1",
41
+ tooltipItem: /* @__PURE__ */ y(h, { children: [
42
+ /* @__PURE__ */ o(J, { $renderAs: "ab3-bold", $color: "BLACK_1", children: "Tap here to switch back to the parent view" }),
43
+ /* @__PURE__ */ o(x, { heightX: 0.75 }),
44
+ /* @__PURE__ */ o(h, { $alignItems: "flex-end", children: /* @__PURE__ */ o(
45
+ O,
46
+ {
47
+ label: "Got it",
48
+ size: "xsmall",
49
+ width: 96,
50
+ renderAs: "secondary",
51
+ onClick: d
52
+ }
53
+ ) })
54
+ ] })
55
+ },
56
+ isActive: !1
57
+ }
58
+ ];
59
+ s(e, u);
60
+ const p = setTimeout(() => {
61
+ clearTimeout(p), document.body.style.overflow = "hidden", c();
62
+ }, 500);
63
+ f.current.push(p);
64
+ },
65
+ [r, d, c, t, e, s]
66
+ );
67
+ };
68
+ export {
69
+ X as usePLASwitchUserJourney
70
+ };
71
+ //# sourceMappingURL=use-switch-user-journey.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-switch-user-journey.js","sources":["../../../../src/features/parent-dashboard/hooks/use-switch-user-journey.tsx"],"sourcesContent":["import type { ICoachmarkProps } from '../../journey/use-journey/journey-context-types';\nimport type { IArrowTooltipProps } from '../../ui/arrow-tooltip/arrow-tooltip-types';\nimport type { IAvatarLayer } from '../../ui/avatar/avatar-types';\n\nimport { useCallback, useRef, type RefObject } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport { ILLUSTRATIONS } from '../../../assets/illustrations/illustrations';\nimport { JOURNEY_ID_STUDENT } from '../../journey/journey-id/journey-id-student';\nimport { IndicatorType } from '../../journey/use-journey/constants';\nimport { useJourney } from '../../journey/use-journey/use-journey';\nimport Avatar from '../../ui/avatar/avatar';\nimport Button from '../../ui/buttons/button/button';\nimport Image from '../../ui/image/image';\nimport FlexView from '../../ui/layout/flex-view';\nimport Separator from '../../ui/separator/separator';\nimport Text from '../../ui/text/text';\nimport { EDeviceType } from '../../ui/theme/constants';\n\nconst usePLASwitchUserJourney = () => {\n const journeyId = JOURNEY_ID_STUDENT.PLA_SWITCH_USER_JOURNEY;\n const { device } = useTheme();\n const isMobile = device <= EDeviceType.MOBILE;\n const timerRefs = useRef<ReturnType<typeof setTimeout>[]>([]);\n const avatarSize = isMobile ? 40 : 64;\n const { setJourney, endJourney, nextCoachmark } = useJourney();\n\n const handleNextCoachMark = useCallback(() => {\n nextCoachmark(journeyId, false, 0, false);\n }, [journeyId, nextCoachmark]);\n\n const handleEndJourney = useCallback(() => {\n document.body.style.overflow = 'unset';\n endJourney(journeyId);\n }, [endJourney, journeyId]);\n\n const startJourney = useCallback(\n (userAvatarRef: RefObject<HTMLDivElement>, avatar?: IAvatarLayer[] | null) => {\n if (!userAvatarRef?.current) {\n return;\n }\n\n const attemptSteps: ICoachmarkProps[] = [\n {\n originalElementToHighlightRef: userAvatarRef,\n elementToHighlight: (\n <div>\n {avatar ? (\n <Avatar size={avatarSize} avatar={avatar} />\n ) : (\n <Image src={ILLUSTRATIONS.STUDENT_AVATAR} width={avatarSize} height={avatarSize} />\n )}\n </div>\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n renderAs: 'primary',\n tooltipXCoOrdinates: isMobile ? 98 : 42,\n tooltipYCoOrdinates: isMobile ? 20 : 36,\n arrowSize: 12,\n arrowYCoOrdinates: -36,\n arrowXCoOrdinates: -100,\n position: isMobile ? 'bottom' : 'right',\n backgroundColor: 'PURPLE_4',\n borderColor: 'WHITE_1',\n arrowColor: 'WHITE_1',\n tooltipItem: (\n <FlexView>\n <Text $renderAs=\"ab3-bold\" $color=\"BLACK_1\">\n Tap here to switch back to the parent view\n </Text>\n <Separator heightX={0.75} />\n <FlexView $alignItems=\"flex-end\">\n <Button\n label=\"Got it\"\n size=\"xsmall\"\n width={96}\n renderAs=\"secondary\"\n onClick={handleEndJourney}\n />\n </FlexView>\n </FlexView>\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n ];\n\n setJourney(journeyId, attemptSteps);\n\n const delayBeforeStart = setTimeout(() => {\n clearTimeout(delayBeforeStart);\n document.body.style.overflow = 'hidden';\n handleNextCoachMark();\n }, 500);\n\n timerRefs.current.push(delayBeforeStart);\n },\n [avatarSize, handleEndJourney, handleNextCoachMark, isMobile, journeyId, setJourney],\n );\n\n return startJourney;\n};\n\nexport { usePLASwitchUserJourney };\n"],"names":["usePLASwitchUserJourney","journeyId","JOURNEY_ID_STUDENT","device","useTheme","isMobile","EDeviceType","timerRefs","useRef","avatarSize","setJourney","endJourney","nextCoachmark","useJourney","handleNextCoachMark","useCallback","handleEndJourney","userAvatarRef","avatar","attemptSteps","jsx","Avatar","Image","ILLUSTRATIONS","IndicatorType","FlexView","Text","Separator","Button","delayBeforeStart"],"mappings":";;;;;;;;;;;;;;AAmBA,MAAMA,IAA0B,MAAM;AACpC,QAAMC,IAAYC,EAAmB,yBAC/B,EAAE,QAAAC,MAAWC,KACbC,IAAWF,KAAUG,EAAY,QACjCC,IAAYC,EAAwC,CAAA,CAAE,GACtDC,IAAaJ,IAAW,KAAK,IAC7B,EAAE,YAAAK,GAAY,YAAAC,GAAY,eAAAC,MAAkBC,EAAW,GAEvDC,IAAsBC,EAAY,MAAM;AAC9B,IAAAH,EAAAX,GAAW,IAAO,GAAG,EAAK;AAAA,EAAA,GACvC,CAACA,GAAWW,CAAa,CAAC,GAEvBI,IAAmBD,EAAY,MAAM;AAChC,aAAA,KAAK,MAAM,WAAW,SAC/BJ,EAAWV,CAAS;AAAA,EAAA,GACnB,CAACU,GAAYV,CAAS,CAAC;AAmEnB,SAjEcc;AAAA,IACnB,CAACE,GAA0CC,MAAmC;AACxE,UAAA,EAACD,KAAA,QAAAA,EAAe;AAClB;AAGF,YAAME,IAAkC;AAAA,QACtC;AAAA,UACE,+BAA+BF;AAAA,UAC/B,oBACG,gBAAAG,EAAA,OAAA,EACE,cACE,gBAAAA,EAAAC,GAAA,EAAO,MAAMZ,GAAY,QAAAS,EAAA,CAAgB,IAEzC,gBAAAE,EAAAE,GAAA,EAAM,KAAKC,EAAc,gBAAgB,OAAOd,GAAY,QAAQA,GAAY,EAErF,CAAA;AAAA,UAEF,MAAMe,EAAc;AAAA,UACpB,WAAW;AAAA,YACT,UAAU;AAAA,YACV,qBAAqBnB,IAAW,KAAK;AAAA,YACrC,qBAAqBA,IAAW,KAAK;AAAA,YACrC,WAAW;AAAA,YACX,mBAAmB;AAAA,YACnB,mBAAmB;AAAA,YACnB,UAAUA,IAAW,WAAW;AAAA,YAChC,iBAAiB;AAAA,YACjB,aAAa;AAAA,YACb,YAAY;AAAA,YACZ,+BACGoB,GACC,EAAA,UAAA;AAAA,cAAA,gBAAAL,EAACM,GAAK,EAAA,WAAU,YAAW,QAAO,WAAU,UAE5C,8CAAA;AAAA,cACA,gBAAAN,EAACO,GAAU,EAAA,SAAS,KAAM,CAAA;AAAA,cAC1B,gBAAAP,EAACK,GAAS,EAAA,aAAY,YACpB,UAAA,gBAAAL;AAAA,gBAACQ;AAAA,gBAAA;AAAA,kBACC,OAAM;AAAA,kBACN,MAAK;AAAA,kBACL,OAAO;AAAA,kBACP,UAAS;AAAA,kBACT,SAASZ;AAAA,gBAAA;AAAA,cAAA,GAEb;AAAA,YAAA,GACF;AAAA,UAEJ;AAAA,UACA,UAAU;AAAA,QACZ;AAAA,MAAA;AAGF,MAAAN,EAAWT,GAAWkB,CAAY;AAE5B,YAAAU,IAAmB,WAAW,MAAM;AACxC,qBAAaA,CAAgB,GACpB,SAAA,KAAK,MAAM,WAAW,UACXf;SACnB,GAAG;AAEI,MAAAP,EAAA,QAAQ,KAAKsB,CAAgB;AAAA,IACzC;AAAA,IACA,CAACpB,GAAYO,GAAkBF,GAAqBT,GAAUJ,GAAWS,CAAU;AAAA,EAAA;AAIvF;"}
@@ -0,0 +1,40 @@
1
+ import { jsxs as s, jsx as o } from "react/jsx-runtime";
2
+ import { memo as l, useCallback as c } from "react";
3
+ import { useTheme as d } from "styled-components";
4
+ import { ILLUSTRATIONS as a } from "../../../../assets/illustrations/illustrations.js";
5
+ import h from "../../../ui/buttons/text-button/text-button.js";
6
+ import p from "../../../ui/image/image.js";
7
+ import u from "../../../ui/layout/flex-view.js";
8
+ import $ from "../../../ui/modals/use-modal-actions.js";
9
+ import r from "../../../ui/separator/separator.js";
10
+ import t from "../../../ui/text/text.js";
11
+ import { EDeviceType as b } from "../../../ui/theme/constants.js";
12
+ const A = ({}) => {
13
+ const { device: m } = d(), e = m <= b.MOBILE, { closeModal: i } = $(), n = c(() => {
14
+ i();
15
+ }, [i]);
16
+ return /* @__PURE__ */ s(
17
+ u,
18
+ {
19
+ $gutterX: e ? 1.5 : 2.5,
20
+ $gapX: e ? 1.5 : 2.5,
21
+ $width: e ? "100%" : 560,
22
+ $background: "BLACK_2",
23
+ $borderColor: "BLACK_5",
24
+ children: [
25
+ /* @__PURE__ */ o(p, { src: a.HANDSHAKE_GREEN, width: 64, height: 64 }),
26
+ /* @__PURE__ */ o(r, { heightX: 1 }),
27
+ /* @__PURE__ */ o(t, { $renderAs: "ah4-bold", $renderOnMobileAs: "ab1-bold", $color: "GREEN_4", children: "Have questions?" }),
28
+ /* @__PURE__ */ o(r, { heightX: 1 }),
29
+ /* @__PURE__ */ o(t, { $renderAs: "ub1", $renderOnMobileAs: "ub2", $color: "WHITE_1", children: "Please reach out to our admissions team at" }),
30
+ /* @__PURE__ */ o("a", { href: "mailto:admissions@cuemath.com", children: /* @__PURE__ */ o(t, { $renderAs: "ub1-bold", $inline: !0, $color: "WHITE_1", $textDecoration: "underline", children: "admissions@cuemath.com" }) }),
31
+ /* @__PURE__ */ o(r, { heightX: 2.5 }),
32
+ /* @__PURE__ */ o(h, { label: "Got it", color: "WHITE", onClick: n, size: "medium" })
33
+ ]
34
+ }
35
+ );
36
+ }, _ = l(A);
37
+ export {
38
+ _ as default
39
+ };
40
+ //# sourceMappingURL=help-and-support.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"help-and-support.js","sources":["../../../../../src/features/parent-dashboard/modals/help-and-support/help-and-support.tsx"],"sourcesContent":["import { memo, useCallback } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport TextButton from '../../../ui/buttons/text-button/text-button';\nimport Image from '../../../ui/image/image';\nimport FlexView from '../../../ui/layout/flex-view';\nimport useModalActions from '../../../ui/modals/use-modal-actions';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { EDeviceType } from '../../../ui/theme/constants';\n\nconst PLAHelpAndSupport = ({}) => {\n const { device } = useTheme();\n const isMobile = device <= EDeviceType.MOBILE;\n const { closeModal } = useModalActions();\n\n const handleClick = useCallback(() => {\n closeModal();\n }, [closeModal]);\n\n return (\n <FlexView\n $gutterX={isMobile ? 1.5 : 2.5}\n $gapX={isMobile ? 1.5 : 2.5}\n $width={isMobile ? '100%' : 560}\n $background=\"BLACK_2\"\n $borderColor=\"BLACK_5\"\n >\n <Image src={ILLUSTRATIONS.HANDSHAKE_GREEN} width={64} height={64} />\n <Separator heightX={1} />\n <Text $renderAs=\"ah4-bold\" $renderOnMobileAs=\"ab1-bold\" $color=\"GREEN_4\">\n Have questions?\n </Text>\n <Separator heightX={1} />\n <Text $renderAs=\"ub1\" $renderOnMobileAs=\"ub2\" $color=\"WHITE_1\">\n Please reach out to our admissions team at\n </Text>\n <a href=\"mailto:admissions@cuemath.com\">\n <Text $renderAs=\"ub1-bold\" $inline $color=\"WHITE_1\" $textDecoration=\"underline\">\n admissions@cuemath.com\n </Text>\n </a>\n <Separator heightX={2.5} />\n <TextButton label=\"Got it\" color=\"WHITE\" onClick={handleClick} size=\"medium\" />\n </FlexView>\n );\n};\n\nexport default memo(PLAHelpAndSupport);\n"],"names":["PLAHelpAndSupport","device","useTheme","isMobile","EDeviceType","closeModal","useModalActions","handleClick","useCallback","jsxs","FlexView","jsx","Image","ILLUSTRATIONS","Separator","Text","TextButton","helpAndSupport","memo"],"mappings":";;;;;;;;;;;AAYA,MAAMA,IAAoB,CAAC,CAAA,MAAO;AAC1B,QAAA,EAAE,QAAAC,MAAWC,KACbC,IAAWF,KAAUG,EAAY,QACjC,EAAE,YAAAC,MAAeC,KAEjBC,IAAcC,EAAY,MAAM;AACzB,IAAAH;EAAA,GACV,CAACA,CAAU,CAAC;AAGb,SAAA,gBAAAI;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,UAAUP,IAAW,MAAM;AAAA,MAC3B,OAAOA,IAAW,MAAM;AAAA,MACxB,QAAQA,IAAW,SAAS;AAAA,MAC5B,aAAY;AAAA,MACZ,cAAa;AAAA,MAEb,UAAA;AAAA,QAAA,gBAAAQ,EAACC,KAAM,KAAKC,EAAc,iBAAiB,OAAO,IAAI,QAAQ,IAAI;AAAA,QAClE,gBAAAF,EAACG,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,QACvB,gBAAAH,EAACI,KAAK,WAAU,YAAW,mBAAkB,YAAW,QAAO,WAAU,UAEzE,kBAAA,CAAA;AAAA,QACA,gBAAAJ,EAACG,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,QACvB,gBAAAH,EAACI,KAAK,WAAU,OAAM,mBAAkB,OAAM,QAAO,WAAU,UAE/D,6CAAA,CAAA;AAAA,QACC,gBAAAJ,EAAA,KAAA,EAAE,MAAK,iCACN,4BAACI,GAAK,EAAA,WAAU,YAAW,SAAO,IAAC,QAAO,WAAU,iBAAgB,aAAY,mCAEhF,CAAA,GACF;AAAA,QACA,gBAAAJ,EAACG,GAAU,EAAA,SAAS,IAAK,CAAA;AAAA,QACzB,gBAAAH,EAACK,KAAW,OAAM,UAAS,OAAM,SAAQ,SAAST,GAAa,MAAK,SAAS,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGnF,GAEeU,IAAAC,EAAKlB,CAAiB;"}
@@ -0,0 +1,44 @@
1
+ import { jsxs as i, jsx as o } from "react/jsx-runtime";
2
+ import { memo as m, useCallback as a } from "react";
3
+ import { useTheme as u } from "styled-components";
4
+ import $ from "../../../ui/buttons/text-button/text-button.js";
5
+ import h from "../../../ui/layout/flex-view.js";
6
+ import p from "../../../ui/modals/use-modal-actions.js";
7
+ import b from "../../../ui/modals/use-modal-params.js";
8
+ import l from "../../../ui/separator/separator.js";
9
+ import e from "../../../ui/text/text.js";
10
+ import { EDeviceType as f } from "../../../ui/theme/constants.js";
11
+ const g = () => {
12
+ const { device: d } = u(), r = d <= f.MOBILE, { closeModal: t } = p(), { username: c, onAcknowledge: n } = b(), s = a(() => {
13
+ t(), n();
14
+ }, [t, n]);
15
+ return /* @__PURE__ */ i(
16
+ h,
17
+ {
18
+ $gutterX: r ? 1.5 : 2.5,
19
+ $gapX: r ? 1.5 : 2.5,
20
+ $width: r ? "100%" : 570,
21
+ $background: "BLACK_2",
22
+ $borderColor: "BLACK_5",
23
+ children: [
24
+ /* @__PURE__ */ o(e, { $renderAs: "ah4-bold", $renderOnMobileAs: "ab1-bold", $color: "WHITE_1", children: "Student login created" }),
25
+ /* @__PURE__ */ o(l, { heightX: 0.75 }),
26
+ /* @__PURE__ */ i(e, { $renderAs: "ub1", $color: "WHITE_1", children: [
27
+ "Your child can directly login to",
28
+ " ",
29
+ /* @__PURE__ */ o(e, { $renderAs: "ub1-bold", $color: "WHITE_1", $inline: !0, children: "leap.cuemath.com" }),
30
+ " ",
31
+ "using “",
32
+ /* @__PURE__ */ o(e, { $renderAs: "ub1", $inline: !0, $color: "GREEN_4", children: `${c}` }),
33
+ "” as both username and password."
34
+ ] }),
35
+ /* @__PURE__ */ o(l, { heightX: 2.5 }),
36
+ /* @__PURE__ */ o($, { label: "Got it", color: "WHITE", onClick: s, size: "medium" })
37
+ ]
38
+ }
39
+ );
40
+ }, w = m(g);
41
+ export {
42
+ w as default
43
+ };
44
+ //# sourceMappingURL=student-login-info.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"student-login-info.js","sources":["../../../../../src/features/parent-dashboard/modals/student-login-info/student-login-info.tsx"],"sourcesContent":["import { memo, useCallback } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport TextButton from '../../../ui/buttons/text-button/text-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport useModalActions from '../../../ui/modals/use-modal-actions';\nimport useModalParams from '../../../ui/modals/use-modal-params';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { EDeviceType } from '../../../ui/theme/constants';\n\nconst StudentLoginInfoModal = () => {\n const { device } = useTheme();\n const isMobile = device <= EDeviceType.MOBILE;\n const { closeModal } = useModalActions();\n const { username, onAcknowledge } = useModalParams<{\n username: string;\n onAcknowledge: () => void;\n }>();\n\n const handleClick = useCallback(() => {\n closeModal();\n onAcknowledge();\n }, [closeModal, onAcknowledge]);\n\n return (\n <FlexView\n $gutterX={isMobile ? 1.5 : 2.5}\n $gapX={isMobile ? 1.5 : 2.5}\n $width={isMobile ? '100%' : 570}\n $background=\"BLACK_2\"\n $borderColor=\"BLACK_5\"\n >\n <Text $renderAs=\"ah4-bold\" $renderOnMobileAs=\"ab1-bold\" $color=\"WHITE_1\">\n Student login created\n </Text>\n <Separator heightX={0.75} />\n <Text $renderAs=\"ub1\" $color=\"WHITE_1\">\n Your child can directly login to{' '}\n <Text $renderAs=\"ub1-bold\" $color=\"WHITE_1\" $inline>\n leap.cuemath.com\n </Text>{' '}\n using “<Text $renderAs=\"ub1\" $inline $color=\"GREEN_4\">{`${username}`}</Text>” as both\n username and password.\n </Text>\n <Separator heightX={2.5} />\n <TextButton label=\"Got it\" color=\"WHITE\" onClick={handleClick} size=\"medium\" />\n </FlexView>\n );\n};\n\nexport default memo(StudentLoginInfoModal);\n"],"names":["StudentLoginInfoModal","device","useTheme","isMobile","EDeviceType","closeModal","useModalActions","username","onAcknowledge","useModalParams","handleClick","useCallback","jsxs","FlexView","jsx","Text","Separator","TextButton","studentLoginInfo","memo"],"mappings":";;;;;;;;;;AAWA,MAAMA,IAAwB,MAAM;AAC5B,QAAA,EAAE,QAAAC,MAAWC,KACbC,IAAWF,KAAUG,EAAY,QACjC,EAAE,YAAAC,MAAeC,KACjB,EAAE,UAAAC,GAAU,eAAAC,EAAc,IAAIC,EAGjC,GAEGC,IAAcC,EAAY,MAAM;AACzB,IAAAN,KACGG;EAAA,GACb,CAACH,GAAYG,CAAa,CAAC;AAG5B,SAAA,gBAAAI;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,UAAUV,IAAW,MAAM;AAAA,MAC3B,OAAOA,IAAW,MAAM;AAAA,MACxB,QAAQA,IAAW,SAAS;AAAA,MAC5B,aAAY;AAAA,MACZ,cAAa;AAAA,MAEb,UAAA;AAAA,QAAA,gBAAAW,EAACC,KAAK,WAAU,YAAW,mBAAkB,YAAW,QAAO,WAAU,UAEzE,wBAAA,CAAA;AAAA,QACA,gBAAAD,EAACE,GAAU,EAAA,SAAS,KAAM,CAAA;AAAA,QACzB,gBAAAJ,EAAAG,GAAA,EAAK,WAAU,OAAM,QAAO,WAAU,UAAA;AAAA,UAAA;AAAA,UACJ;AAAA,UACjC,gBAAAD,EAACC,KAAK,WAAU,YAAW,QAAO,WAAU,SAAO,IAAC,UAEpD,mBAAA,CAAA;AAAA,UAAQ;AAAA,UAAI;AAAA,UACL,gBAAAD,EAACC,GAAK,EAAA,WAAU,OAAM,SAAO,IAAC,QAAO,WAAW,UAAG,GAAAR,CAAQ,GAAG,CAAA;AAAA,UAAO;AAAA,QAAA,GAE9E;AAAA,QACA,gBAAAO,EAACE,GAAU,EAAA,SAAS,IAAK,CAAA;AAAA,QACzB,gBAAAF,EAACG,KAAW,OAAM,UAAS,OAAM,SAAQ,SAASP,GAAa,MAAK,SAAS,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGnF,GAEeQ,IAAAC,EAAKnB,CAAqB;"}
@@ -0,0 +1,32 @@
1
+ import { PREFERENCE_CATEGORY as t, COURSE_STREAMS as S } from "../../../milestone/constants.js";
2
+ import { getPreferencesFromConfig as v } from "../../../milestone/create/milestone-create-helpers.js";
3
+ import { GOAL_MAPPING as C } from "../../../trial-session/comps/student-profile/constant.js";
4
+ const A = (f, c) => {
5
+ var a, p, P;
6
+ const o = {
7
+ studentLevel: "",
8
+ studentObjectives: [],
9
+ learningPlan: [],
10
+ levelPreference: ""
11
+ };
12
+ if (!f || !c) return o;
13
+ const s = ((a = c.student_preferences) == null ? void 0 : a.preferences) ?? [], d = c.user_milestone_data ?? [];
14
+ if (s.length === 0) return o;
15
+ const l = (e) => s.find((n) => n.preference_category === e), m = (e) => s.filter((n) => n.preference_category === e), i = l(t.POSITION), u = ((p = l(t.LEVEL)) == null ? void 0 : p.preference_name) ?? "", E = m(t.OBJECTIVES), r = i ? (P = v(f, {
16
+ grade: "",
17
+ courseStream: S.MATH,
18
+ preferenceCategory: t.POSITION
19
+ })) == null ? void 0 : P.find(({ id: e }) => e === i.preference_code) : null, _ = r != null && r.label && (r != null && r.description) ? `${r.label}: ${r.description}` : "", g = E.map((e) => e.preference_name), O = d.map(
20
+ ({ goal_category: e, milestone_name: n }) => `${C[e]}: ${n}`
21
+ );
22
+ return {
23
+ studentLevel: _,
24
+ studentObjectives: g,
25
+ learningPlan: O,
26
+ levelPreference: u
27
+ };
28
+ };
29
+ export {
30
+ A as getLearningProfileSummary
31
+ };
32
+ //# sourceMappingURL=student-profile-summary-helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"student-profile-summary-helpers.js","sources":["../../../../../src/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-helpers.ts"],"sourcesContent":["import type {\n IMilestoneConfig,\n TGoalCategory,\n TPreferenceCategory,\n} from '../../../milestone/create/milestone-create-types';\nimport type { IStudentProfileSummaryResponse } from '../../api/get-student-profile-summary';\nimport type { IStudentProfileSummary } from '../../parent-dashboard-types';\n\nimport { COURSE_STREAMS, PREFERENCE_CATEGORY } from '../../../milestone/constants';\nimport { getPreferencesFromConfig } from '../../../milestone/create/milestone-create-helpers';\nimport { GOAL_MAPPING } from '../../../trial-session/comps/student-profile/constant';\n\nexport const getLearningProfileSummary = (\n configData?: IMilestoneConfig,\n summaryData?: IStudentProfileSummaryResponse,\n): IStudentProfileSummary => {\n const defaultSummary: IStudentProfileSummary = {\n studentLevel: '',\n studentObjectives: [],\n learningPlan: [],\n levelPreference: '',\n };\n\n if (!configData || !summaryData) return defaultSummary;\n\n const preferences = summaryData.student_preferences?.preferences ?? [];\n const userMilestoneData = summaryData.user_milestone_data ?? [];\n\n if (preferences.length === 0) return defaultSummary;\n\n const findPref = (category: TPreferenceCategory) =>\n preferences.find(p => p.preference_category === category);\n\n const filterPrefs = (category: TPreferenceCategory) =>\n preferences.filter(p => p.preference_category === category);\n\n const positionPref = findPref(PREFERENCE_CATEGORY.POSITION);\n const levelPreference = findPref(PREFERENCE_CATEGORY.LEVEL)?.preference_name ?? '';\n const objectivePrefs = filterPrefs(PREFERENCE_CATEGORY.OBJECTIVES);\n\n const positionInfo = positionPref\n ? getPreferencesFromConfig(configData, {\n grade: '',\n courseStream: COURSE_STREAMS.MATH,\n preferenceCategory: PREFERENCE_CATEGORY.POSITION,\n })?.find(({ id }) => id === positionPref.preference_code)\n : null;\n\n const studentLevel =\n positionInfo?.label && positionInfo?.description\n ? `${positionInfo.label}: ${positionInfo.description}`\n : '';\n\n const studentObjectives = objectivePrefs.map(p => p.preference_name);\n\n const learningPlan = userMilestoneData.map(\n ({ goal_category, milestone_name }) =>\n `${GOAL_MAPPING[goal_category as TGoalCategory]}: ${milestone_name}`,\n );\n\n return {\n studentLevel,\n studentObjectives,\n learningPlan,\n levelPreference,\n };\n};\n"],"names":["getLearningProfileSummary","configData","summaryData","defaultSummary","preferences","_a","userMilestoneData","findPref","category","p","filterPrefs","positionPref","PREFERENCE_CATEGORY","levelPreference","_b","objectivePrefs","positionInfo","_c","getPreferencesFromConfig","COURSE_STREAMS","id","studentLevel","studentObjectives","learningPlan","goal_category","milestone_name","GOAL_MAPPING"],"mappings":";;;AAYa,MAAAA,IAA4B,CACvCC,GACAC,MAC2B;;AAC3B,QAAMC,IAAyC;AAAA,IAC7C,cAAc;AAAA,IACd,mBAAmB,CAAC;AAAA,IACpB,cAAc,CAAC;AAAA,IACf,iBAAiB;AAAA,EAAA;AAGnB,MAAI,CAACF,KAAc,CAACC,EAAoB,QAAAC;AAExC,QAAMC,MAAcC,IAAAH,EAAY,wBAAZ,gBAAAG,EAAiC,gBAAe,CAAA,GAC9DC,IAAoBJ,EAAY,uBAAuB;AAEzD,MAAAE,EAAY,WAAW,EAAU,QAAAD;AAE/B,QAAAI,IAAW,CAACC,MAChBJ,EAAY,KAAK,CAAKK,MAAAA,EAAE,wBAAwBD,CAAQ,GAEpDE,IAAc,CAACF,MACnBJ,EAAY,OAAO,CAAKK,MAAAA,EAAE,wBAAwBD,CAAQ,GAEtDG,IAAeJ,EAASK,EAAoB,QAAQ,GACpDC,MAAkBC,IAAAP,EAASK,EAAoB,KAAK,MAAlC,gBAAAE,EAAqC,oBAAmB,IAC1EC,IAAiBL,EAAYE,EAAoB,UAAU,GAE3DI,IAAeL,KACjBM,IAAAC,EAAyBjB,GAAY;AAAA,IACnC,OAAO;AAAA,IACP,cAAckB,EAAe;AAAA,IAC7B,oBAAoBP,EAAoB;AAAA,EAAA,CACzC,MAJD,gBAAAK,EAII,KAAK,CAAC,EAAE,IAAAG,QAASA,MAAOT,EAAa,mBACzC,MAEEU,IACJL,KAAA,QAAAA,EAAc,UAASA,KAAA,QAAAA,EAAc,eACjC,GAAGA,EAAa,KAAK,KAAKA,EAAa,WAAW,KAClD,IAEAM,IAAoBP,EAAe,IAAI,CAAAN,MAAKA,EAAE,eAAe,GAE7Dc,IAAejB,EAAkB;AAAA,IACrC,CAAC,EAAE,eAAAkB,GAAe,gBAAAC,EAAe,MAC/B,GAAGC,EAAaF,CAA8B,CAAC,KAAKC,CAAc;AAAA,EAAA;AAG/D,SAAA;AAAA,IACL,cAAAJ;AAAA,IACA,mBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,iBAAAV;AAAA,EAAA;AAEJ;"}
@@ -0,0 +1,12 @@
1
+ import t from "styled-components";
2
+ import e from "../../../ui/layout/flex-view.js";
3
+ const r = t(e)`
4
+ width: 100%;
5
+ ${({ theme: i }) => i.mediaQueries.minWidthTablet} {
6
+ max-width: 560px;
7
+ }
8
+ `;
9
+ export {
10
+ r as Container
11
+ };
12
+ //# sourceMappingURL=student-profile-summary-styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"student-profile-summary-styled.js","sources":["../../../../../src/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nexport const Container = styled(FlexView)`\n width: 100%;\n ${({ theme }) => theme.mediaQueries.minWidthTablet} {\n max-width: 560px;\n }\n`;\n"],"names":["Container","styled","FlexView","theme"],"mappings":";;AAIa,MAAAA,IAAYC,EAAOC,CAAQ;AAAA;AAAA,IAEpC,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,aAAa,cAAc;AAAA;AAAA;AAAA;"}
@@ -0,0 +1,44 @@
1
+ import { jsx as t, jsxs as a } from "react/jsx-runtime";
2
+ import { memo as d, useMemo as u } from "react";
3
+ import { useTheme as c } from "styled-components";
4
+ import { ILLUSTRATIONS as r } from "../../../../assets/illustrations/illustrations.js";
5
+ import p from "../../../trial-session/comps/student-profile/student-profile-highlights/student-profile-highlights.js";
6
+ import f from "../../../ui/layout/flex-view.js";
7
+ import E from "../../../ui/loader/app-loader/app-loader.js";
8
+ import L from "../../../ui/modals/use-modal-params.js";
9
+ import g from "../../../ui/text/text.js";
10
+ import { EDeviceType as h } from "../../../ui/theme/constants.js";
11
+ import { Container as P } from "./student-profile-summary-styled.js";
12
+ const _ = () => {
13
+ const { studentName: o, summaryData: e } = L(), i = c().device <= h.MOBILE, n = u(() => {
14
+ const { studentLevel: m, studentObjectives: s = "", learningPlan: l = "" } = e ?? {};
15
+ return [
16
+ {
17
+ title: "Student Level",
18
+ description: m,
19
+ illustration: r.KNOWLEDGE_BLUE,
20
+ background: "BLUE_1"
21
+ },
22
+ {
23
+ illustration: r.ARROW_BOARD_GREEN,
24
+ background: "GREEN_1",
25
+ title: "Goals",
26
+ description: s
27
+ },
28
+ {
29
+ illustration: r.BOOK_CHECKED_PURPLE,
30
+ background: "PURPLE_1",
31
+ title: "Learning Plan",
32
+ description: l
33
+ }
34
+ ];
35
+ }, [e]);
36
+ return e ? /* @__PURE__ */ a(P, { $borderColor: "BLACK_1", children: [
37
+ i && /* @__PURE__ */ t(f, { $gutterX: 1, $gapX: 1.5, $background: "BLACK_2", children: /* @__PURE__ */ t(g, { $renderAs: "ab1-bold", $color: "WHITE_1", children: `${o}'s Profile` }) }),
38
+ /* @__PURE__ */ t(p, { profileHighlights: n })
39
+ ] }) : /* @__PURE__ */ t(E, { height: 200, width: 200 });
40
+ }, K = d(_);
41
+ export {
42
+ K as default
43
+ };
44
+ //# sourceMappingURL=student-profile-summary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"student-profile-summary.js","sources":["../../../../../src/features/parent-dashboard/modals/student-profile-summary/student-profile-summary.tsx"],"sourcesContent":["import type { IStudentProfileSummary } from '../../parent-dashboard-types';\nimport type { TProfileHighlight } from './student-profile-summary-types';\n\nimport { useMemo, memo } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport StudentProfileHighlights from '../../../trial-session/comps/student-profile/student-profile-highlights/student-profile-highlights';\nimport FlexView from '../../../ui/layout/flex-view';\nimport AppLoader from '../../../ui/loader/app-loader/app-loader';\nimport useModalParams from '../../../ui/modals/use-modal-params';\nimport Text from '../../../ui/text/text';\nimport { EDeviceType } from '../../../ui/theme/constants';\nimport * as Styled from './student-profile-summary-styled';\n\nconst StudentProfileSummary = () => {\n const { studentName, summaryData } = useModalParams<{\n studentName: string;\n summaryData: IStudentProfileSummary;\n }>();\n const theme = useTheme();\n const isMobile = theme.device <= EDeviceType.MOBILE;\n\n const profileHighlights: TProfileHighlight[] = useMemo(() => {\n const { studentLevel, studentObjectives = '', learningPlan = '' } = summaryData ?? {};\n\n return [\n {\n title: 'Student Level',\n description: studentLevel,\n illustration: ILLUSTRATIONS.KNOWLEDGE_BLUE,\n background: 'BLUE_1',\n },\n {\n illustration: ILLUSTRATIONS.ARROW_BOARD_GREEN,\n background: 'GREEN_1',\n title: 'Goals',\n description: studentObjectives,\n },\n {\n illustration: ILLUSTRATIONS.BOOK_CHECKED_PURPLE,\n background: 'PURPLE_1',\n title: 'Learning Plan',\n description: learningPlan,\n },\n ];\n }, [summaryData]);\n\n if (!summaryData) {\n return <AppLoader height={200} width={200} />;\n }\n\n return (\n <Styled.Container $borderColor=\"BLACK_1\">\n {isMobile && (\n <FlexView $gutterX={1} $gapX={1.5} $background=\"BLACK_2\">\n <Text $renderAs=\"ab1-bold\" $color=\"WHITE_1\">{`${studentName}'s Profile`}</Text>\n </FlexView>\n )}\n <StudentProfileHighlights profileHighlights={profileHighlights} />\n </Styled.Container>\n );\n};\n\nexport default memo(StudentProfileSummary);\n"],"names":["StudentProfileSummary","studentName","summaryData","useModalParams","isMobile","useTheme","EDeviceType","profileHighlights","useMemo","studentLevel","studentObjectives","learningPlan","ILLUSTRATIONS","jsxs","Styled.Container","FlexView","jsx","Text","StudentProfileHighlights","AppLoader","studentProfileSummary","memo"],"mappings":";;;;;;;;;;;AAeA,MAAMA,IAAwB,MAAM;AAClC,QAAM,EAAE,aAAAC,GAAa,aAAAC,EAAY,IAAIC,EAGlC,GAEGC,IADQC,IACS,UAAUC,EAAY,QAEvCC,IAAyCC,EAAQ,MAAM;AACrD,UAAA,EAAE,cAAAC,GAAc,mBAAAC,IAAoB,IAAI,cAAAC,IAAe,GAAG,IAAIT,KAAe;AAE5E,WAAA;AAAA,MACL;AAAA,QACE,OAAO;AAAA,QACP,aAAaO;AAAA,QACb,cAAcG,EAAc;AAAA,QAC5B,YAAY;AAAA,MACd;AAAA,MACA;AAAA,QACE,cAAcA,EAAc;AAAA,QAC5B,YAAY;AAAA,QACZ,OAAO;AAAA,QACP,aAAaF;AAAA,MACf;AAAA,MACA;AAAA,QACE,cAAcE,EAAc;AAAA,QAC5B,YAAY;AAAA,QACZ,OAAO;AAAA,QACP,aAAaD;AAAA,MACf;AAAA,IAAA;AAAA,EACF,GACC,CAACT,CAAW,CAAC;AAEhB,SAAKA,IAKF,gBAAAW,EAAAC,GAAA,EAAiB,cAAa,WAC5B,UAAA;AAAA,IAAAV,uBACEW,GAAS,EAAA,UAAU,GAAG,OAAO,KAAK,aAAY,WAC7C,UAAC,gBAAAC,EAAAC,GAAA,EAAK,WAAU,YAAW,QAAO,WAAW,UAAG,GAAAhB,CAAW,cAAa,EAC1E,CAAA;AAAA,IAEF,gBAAAe,EAACE,KAAyB,mBAAAX,GAAsC;AAAA,EAClE,EAAA,CAAA,IAXQ,gBAAAS,EAAAG,GAAA,EAAU,QAAQ,KAAK,OAAO,IAAK,CAAA;AAa/C,GAEeC,IAAAC,EAAKrB,CAAqB;"}
@@ -0,0 +1,13 @@
1
+ import t from "styled-components";
2
+ import e from "../../../ui/layout/flex-view.js";
3
+ const r = t(e)`
4
+ width: 100%;
5
+ max-height: 90vh;
6
+ ${({ theme: i }) => i.mediaQueries.minWidthTablet} {
7
+ max-width: 720px;
8
+ }
9
+ `;
10
+ export {
11
+ r as Container
12
+ };
13
+ //# sourceMappingURL=trial-report-styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trial-report-styled.js","sources":["../../../../../src/features/parent-dashboard/modals/trial-report/trial-report-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nexport const Container = styled(FlexView)`\n width: 100%;\n max-height: 90vh;\n ${({ theme }) => theme.mediaQueries.minWidthTablet} {\n max-width: 720px;\n }\n`;\n"],"names":["Container","styled","FlexView","theme"],"mappings":";;AAIa,MAAAA,IAAYC,EAAOC,CAAQ;AAAA;AAAA;AAAA,IAGpC,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,aAAa,cAAc;AAAA;AAAA;AAAA;"}