@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
@@ -1,10 +1,10 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { memo as y, useMemo as z, useCallback as A, useEffect as I } from "react";
3
- import J from "./milestone-create-components-map.js";
4
- import K from "./milestone-create-context.js";
5
- import { useFormDataPrefiller as L, useMilestoneFormTree as N, useFormTreeTraversal as Q } from "./milestone-create-hooks.js";
6
- import { Container as U, BodyContainer as W } from "./milestone-create-styled.js";
7
- const G = y(
2
+ import { memo as z, useMemo as A, useCallback as I, useEffect as J } from "react";
3
+ import K from "./milestone-create-components-map.js";
4
+ import L from "./milestone-create-context.js";
5
+ import { useFormDataPrefiller as N, useMilestoneFormTree as Q, useFormTreeTraversal as U } from "./milestone-create-hooks.js";
6
+ import { Container as W, BodyContainer as X } from "./milestone-create-styled.js";
7
+ const ee = z(
8
8
  ({
9
9
  studentName: h,
10
10
  studentId: x,
@@ -27,32 +27,33 @@ const G = y(
27
27
  classRatio: V,
28
28
  enrollmentType: u,
29
29
  canDeleteGoal: j,
30
+ isTeacherTrainingAccount: w,
30
31
  onDeleteGoal: r
31
32
  }) => {
32
- const { formDataState: s, setFormData: w } = L(c, {
33
+ const { formDataState: s, setFormData: H } = N(c, {
33
34
  schoolData: P,
34
35
  board: F,
35
36
  grade: T,
36
37
  config: a,
37
38
  flow: t,
38
39
  currentCountryCode: B
39
- }), H = N({
40
+ }), O = Q({
40
41
  flow: t,
41
42
  formDataState: s,
42
43
  isGoalCreation: d
43
- }), o = e ? s : c, m = e ? "edit" : "view", p = m === "view", { currentStep: n, updateFormData: O, handleBack: v } = Q({
44
+ }), o = e ? s : c, m = e ? "edit" : "view", p = m === "view", { currentStep: n, updateFormData: R, handleBack: v } = U({
44
45
  flow: t,
45
- updatedFormTree: H,
46
+ updatedFormTree: O,
46
47
  formData: o,
47
48
  formDataState: s,
48
- setFormData: w,
49
+ setFormData: H,
49
50
  handleExit: b
50
- }), { name: f } = n || {}, M = f ? J[f] : void 0, R = z(() => ({ handleBack: v, mode: m, flow: t }), [v, m, t]), q = A(() => {
51
+ }), { name: f } = n || {}, M = f ? K[f] : void 0, q = A(() => ({ handleBack: v, mode: m, flow: t }), [v, m, t]), y = I(() => {
51
52
  r == null || r();
52
53
  }, [r]);
53
- return I(() => {
54
+ return J(() => {
54
55
  e && e(o);
55
- }, [o, e]), /* @__PURE__ */ i(K.Provider, { value: R, children: /* @__PURE__ */ i(U, { $height: S, $minHeight: l, $viewMode: p, children: /* @__PURE__ */ i(W, { $viewMode: p, children: M && n && u ? /* @__PURE__ */ i(
56
+ }, [o, e]), /* @__PURE__ */ i(L.Provider, { value: q, children: /* @__PURE__ */ i(W, { $height: S, $minHeight: l, $viewMode: p, children: /* @__PURE__ */ i(X, { $viewMode: p, children: M && n && u ? /* @__PURE__ */ i(
56
57
  M,
57
58
  {
58
59
  studentName: h,
@@ -60,7 +61,7 @@ const G = y(
60
61
  isGoalCreation: d,
61
62
  config: a,
62
63
  formData: o,
63
- onFormDataChange: O,
64
+ onFormDataChange: R,
64
65
  onChapterExitWarning: C,
65
66
  studentId: x,
66
67
  onPreSubmit: $,
@@ -68,13 +69,14 @@ const G = y(
68
69
  courseStream: E,
69
70
  classRatio: V || 0,
70
71
  enrollmentType: u,
72
+ isTeacherTrainingAccount: w,
71
73
  canDeleteGoal: j,
72
- onDeleteGoal: q
74
+ onDeleteGoal: y
73
75
  }
74
76
  ) : void 0 }) }) });
75
77
  }
76
78
  );
77
79
  export {
78
- G as default
80
+ ee as default
79
81
  };
80
82
  //# sourceMappingURL=milestone-create.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"milestone-create.js","sources":["../../../../src/features/milestone/create/milestone-create.tsx"],"sourcesContent":["import type { MileStoneJourneyMode } from './milestone-create-context';\nimport type { IMileStoneCreateProps, IMilestoneFormData } from './milestone-create-types';\n\nimport React, { memo, useCallback, useEffect, useMemo } from 'react';\n\nimport ComponentsMap from './milestone-create-components-map';\nimport MilestoneCreateContext from './milestone-create-context';\nimport {\n useFormDataPrefiller,\n useFormTreeTraversal,\n useMilestoneFormTree,\n} from './milestone-create-hooks';\nimport { BodyContainer, Container } from './milestone-create-styled';\n\nconst MilestoneCreate: React.FC<IMileStoneCreateProps> = memo(\n ({\n studentName,\n studentId,\n height,\n minHeight,\n formData: formDataProp,\n config,\n onChapterExitWarning,\n onFormDataChange,\n onPreSubmit: handlePreSubmit,\n onExit: handleExit,\n board,\n schoolData,\n grade,\n flow,\n milestoneId,\n currentCountryCode,\n isGoalCreation,\n courseStream,\n classRatio,\n enrollmentType,\n canDeleteGoal,\n onDeleteGoal,\n }) => {\n const { formDataState, setFormData } = useFormDataPrefiller(formDataProp, {\n schoolData,\n board,\n grade,\n config,\n flow,\n currentCountryCode,\n });\n\n const updatedFormTree = useMilestoneFormTree({\n flow,\n formDataState,\n isGoalCreation,\n });\n\n const formData = (onFormDataChange ? formDataState : formDataProp) as IMilestoneFormData; //TODO: make better\n\n const mode: MileStoneJourneyMode = onFormDataChange ? 'edit' : 'view';\n const isViewMode = mode === 'view';\n\n const { currentStep, updateFormData, handleBack } = useFormTreeTraversal({\n flow,\n updatedFormTree,\n formData,\n formDataState,\n setFormData,\n handleExit,\n });\n\n const { name } = currentStep || {};\n const StepComponent = name ? ComponentsMap[name] : undefined;\n\n const contextValue = useMemo(() => ({ handleBack, mode, flow }), [handleBack, mode, flow]);\n\n const handleOnDeleteGoal = useCallback(() => {\n onDeleteGoal?.();\n }, [onDeleteGoal]);\n\n useEffect(() => {\n if (onFormDataChange) {\n onFormDataChange(formData);\n }\n }, [formData, onFormDataChange]);\n\n return (\n <MilestoneCreateContext.Provider value={contextValue}>\n <Container $height={height} $minHeight={minHeight} $viewMode={isViewMode}>\n <BodyContainer $viewMode={isViewMode}>\n {StepComponent && currentStep && enrollmentType ? (\n <StepComponent\n studentName={studentName}\n currentStep={currentStep}\n isGoalCreation={isGoalCreation}\n config={config}\n formData={formData}\n onFormDataChange={updateFormData}\n onChapterExitWarning={onChapterExitWarning}\n studentId={studentId}\n onPreSubmit={handlePreSubmit}\n milestoneId={milestoneId}\n courseStream={courseStream}\n classRatio={classRatio || 0}\n enrollmentType={enrollmentType}\n canDeleteGoal={canDeleteGoal}\n onDeleteGoal={handleOnDeleteGoal}\n />\n ) : undefined}\n </BodyContainer>\n </Container>\n </MilestoneCreateContext.Provider>\n );\n },\n);\n\nexport default MilestoneCreate;\n"],"names":["MilestoneCreate","memo","studentName","studentId","height","minHeight","formDataProp","config","onChapterExitWarning","onFormDataChange","handlePreSubmit","handleExit","board","schoolData","grade","flow","milestoneId","currentCountryCode","isGoalCreation","courseStream","classRatio","enrollmentType","canDeleteGoal","onDeleteGoal","formDataState","setFormData","useFormDataPrefiller","updatedFormTree","useMilestoneFormTree","formData","mode","isViewMode","currentStep","updateFormData","handleBack","useFormTreeTraversal","name","StepComponent","ComponentsMap","contextValue","useMemo","handleOnDeleteGoal","useCallback","useEffect","jsx","MilestoneCreateContext","Container","BodyContainer"],"mappings":";;;;;;AAcA,MAAMA,IAAmDC;AAAA,EACvD,CAAC;AAAA,IACC,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,WAAAC;AAAA,IACA,UAAUC;AAAA,IACV,QAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,aAAaC;AAAA,IACb,QAAQC;AAAA,IACR,OAAAC;AAAA,IACA,YAAAC;AAAA,IACA,OAAAC;AAAA,IACA,MAAAC;AAAA,IACA,aAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,YAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,cAAAC;AAAA,EAAA,MACI;AACJ,UAAM,EAAE,eAAAC,GAAe,aAAAC,MAAgBC,EAAqBpB,GAAc;AAAA,MACxE,YAAAO;AAAA,MACA,OAAAD;AAAA,MACA,OAAAE;AAAA,MACA,QAAAP;AAAA,MACA,MAAAQ;AAAA,MACA,oBAAAE;AAAA,IAAA,CACD,GAEKU,IAAkBC,EAAqB;AAAA,MAC3C,MAAAb;AAAA,MACA,eAAAS;AAAA,MACA,gBAAAN;AAAA,IAAA,CACD,GAEKW,IAAYpB,IAAmBe,IAAgBlB,GAE/CwB,IAA6BrB,IAAmB,SAAS,QACzDsB,IAAaD,MAAS,QAEtB,EAAE,aAAAE,GAAa,gBAAAC,GAAgB,YAAAC,EAAA,IAAeC,EAAqB;AAAA,MACvE,MAAApB;AAAA,MACA,iBAAAY;AAAA,MACA,UAAAE;AAAA,MACA,eAAAL;AAAA,MACA,aAAAC;AAAA,MACA,YAAAd;AAAA,IAAA,CACD,GAEK,EAAE,MAAAyB,EAAA,IAASJ,KAAe,IAC1BK,IAAgBD,IAAOE,EAAcF,CAAI,IAAI,QAE7CG,IAAeC,EAAQ,OAAO,EAAE,YAAAN,GAAY,MAAAJ,GAAM,MAAAf,EAAK,IAAI,CAACmB,GAAYJ,GAAMf,CAAI,CAAC,GAEnF0B,IAAqBC,EAAY,MAAM;AAC5B,MAAAnB,KAAA,QAAAA;AAAA,IAAA,GACd,CAACA,CAAY,CAAC;AAEjB,WAAAoB,EAAU,MAAM;AACd,MAAIlC,KACFA,EAAiBoB,CAAQ;AAAA,IAC3B,GACC,CAACA,GAAUpB,CAAgB,CAAC,GAG7B,gBAAAmC,EAACC,EAAuB,UAAvB,EAAgC,OAAON,GACtC,UAAA,gBAAAK,EAACE,KAAU,SAAS1C,GAAQ,YAAYC,GAAW,WAAW0B,GAC5D,UAAC,gBAAAa,EAAAG,GAAA,EAAc,WAAWhB,GACvB,UAAAM,KAAiBL,KAAeX,IAC/B,gBAAAuB;AAAA,MAACP;AAAA,MAAA;AAAA,QACC,aAAAnC;AAAA,QACA,aAAA8B;AAAA,QACA,gBAAAd;AAAA,QACA,QAAAX;AAAA,QACA,UAAAsB;AAAA,QACA,kBAAkBI;AAAA,QAClB,sBAAAzB;AAAA,QACA,WAAAL;AAAA,QACA,aAAaO;AAAA,QACb,aAAAM;AAAA,QACA,cAAAG;AAAA,QACA,YAAYC,KAAc;AAAA,QAC1B,gBAAAC;AAAA,QACA,eAAAC;AAAA,QACA,cAAcmB;AAAA,MAAA;AAAA,IAChB,IACE,OACN,CAAA,EACF,CAAA,EACF,CAAA;AAAA,EAEJ;AACF;"}
1
+ {"version":3,"file":"milestone-create.js","sources":["../../../../src/features/milestone/create/milestone-create.tsx"],"sourcesContent":["import type { MileStoneJourneyMode } from './milestone-create-context';\nimport type { IMileStoneCreateProps, IMilestoneFormData } from './milestone-create-types';\n\nimport React, { memo, useCallback, useEffect, useMemo } from 'react';\n\nimport ComponentsMap from './milestone-create-components-map';\nimport MilestoneCreateContext from './milestone-create-context';\nimport {\n useFormDataPrefiller,\n useFormTreeTraversal,\n useMilestoneFormTree,\n} from './milestone-create-hooks';\nimport { BodyContainer, Container } from './milestone-create-styled';\n\nconst MilestoneCreate: React.FC<IMileStoneCreateProps> = memo(\n ({\n studentName,\n studentId,\n height,\n minHeight,\n formData: formDataProp,\n config,\n onChapterExitWarning,\n onFormDataChange,\n onPreSubmit: handlePreSubmit,\n onExit: handleExit,\n board,\n schoolData,\n grade,\n flow,\n milestoneId,\n currentCountryCode,\n isGoalCreation,\n courseStream,\n classRatio,\n enrollmentType,\n canDeleteGoal,\n isTeacherTrainingAccount,\n onDeleteGoal,\n }) => {\n const { formDataState, setFormData } = useFormDataPrefiller(formDataProp, {\n schoolData,\n board,\n grade,\n config,\n flow,\n currentCountryCode,\n });\n\n const updatedFormTree = useMilestoneFormTree({\n flow,\n formDataState,\n isGoalCreation,\n });\n\n const formData = (onFormDataChange ? formDataState : formDataProp) as IMilestoneFormData; //TODO: make better\n\n const mode: MileStoneJourneyMode = onFormDataChange ? 'edit' : 'view';\n const isViewMode = mode === 'view';\n\n const { currentStep, updateFormData, handleBack } = useFormTreeTraversal({\n flow,\n updatedFormTree,\n formData,\n formDataState,\n setFormData,\n handleExit,\n });\n\n const { name } = currentStep || {};\n const StepComponent = name ? ComponentsMap[name] : undefined;\n\n const contextValue = useMemo(() => ({ handleBack, mode, flow }), [handleBack, mode, flow]);\n\n const handleOnDeleteGoal = useCallback(() => {\n onDeleteGoal?.();\n }, [onDeleteGoal]);\n\n useEffect(() => {\n if (onFormDataChange) {\n onFormDataChange(formData);\n }\n }, [formData, onFormDataChange]);\n\n return (\n <MilestoneCreateContext.Provider value={contextValue}>\n <Container $height={height} $minHeight={minHeight} $viewMode={isViewMode}>\n <BodyContainer $viewMode={isViewMode}>\n {StepComponent && currentStep && enrollmentType ? (\n <StepComponent\n studentName={studentName}\n currentStep={currentStep}\n isGoalCreation={isGoalCreation}\n config={config}\n formData={formData}\n onFormDataChange={updateFormData}\n onChapterExitWarning={onChapterExitWarning}\n studentId={studentId}\n onPreSubmit={handlePreSubmit}\n milestoneId={milestoneId}\n courseStream={courseStream}\n classRatio={classRatio || 0}\n enrollmentType={enrollmentType}\n isTeacherTrainingAccount={isTeacherTrainingAccount}\n canDeleteGoal={canDeleteGoal}\n onDeleteGoal={handleOnDeleteGoal}\n />\n ) : undefined}\n </BodyContainer>\n </Container>\n </MilestoneCreateContext.Provider>\n );\n },\n);\n\nexport default MilestoneCreate;\n"],"names":["MilestoneCreate","memo","studentName","studentId","height","minHeight","formDataProp","config","onChapterExitWarning","onFormDataChange","handlePreSubmit","handleExit","board","schoolData","grade","flow","milestoneId","currentCountryCode","isGoalCreation","courseStream","classRatio","enrollmentType","canDeleteGoal","isTeacherTrainingAccount","onDeleteGoal","formDataState","setFormData","useFormDataPrefiller","updatedFormTree","useMilestoneFormTree","formData","mode","isViewMode","currentStep","updateFormData","handleBack","useFormTreeTraversal","name","StepComponent","ComponentsMap","contextValue","useMemo","handleOnDeleteGoal","useCallback","useEffect","jsx","MilestoneCreateContext","Container","BodyContainer"],"mappings":";;;;;;AAcA,MAAMA,KAAmDC;AAAA,EACvD,CAAC;AAAA,IACC,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,WAAAC;AAAA,IACA,UAAUC;AAAA,IACV,QAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,aAAaC;AAAA,IACb,QAAQC;AAAA,IACR,OAAAC;AAAA,IACA,YAAAC;AAAA,IACA,OAAAC;AAAA,IACA,MAAAC;AAAA,IACA,aAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,YAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,0BAAAC;AAAA,IACA,cAAAC;AAAA,EAAA,MACI;AACJ,UAAM,EAAE,eAAAC,GAAe,aAAAC,MAAgBC,EAAqBrB,GAAc;AAAA,MACxE,YAAAO;AAAA,MACA,OAAAD;AAAA,MACA,OAAAE;AAAA,MACA,QAAAP;AAAA,MACA,MAAAQ;AAAA,MACA,oBAAAE;AAAA,IAAA,CACD,GAEKW,IAAkBC,EAAqB;AAAA,MAC3C,MAAAd;AAAA,MACA,eAAAU;AAAA,MACA,gBAAAP;AAAA,IAAA,CACD,GAEKY,IAAYrB,IAAmBgB,IAAgBnB,GAE/CyB,IAA6BtB,IAAmB,SAAS,QACzDuB,IAAaD,MAAS,QAEtB,EAAE,aAAAE,GAAa,gBAAAC,GAAgB,YAAAC,EAAA,IAAeC,EAAqB;AAAA,MACvE,MAAArB;AAAA,MACA,iBAAAa;AAAA,MACA,UAAAE;AAAA,MACA,eAAAL;AAAA,MACA,aAAAC;AAAA,MACA,YAAAf;AAAA,IAAA,CACD,GAEK,EAAE,MAAA0B,EAAA,IAASJ,KAAe,IAC1BK,IAAgBD,IAAOE,EAAcF,CAAI,IAAI,QAE7CG,IAAeC,EAAQ,OAAO,EAAE,YAAAN,GAAY,MAAAJ,GAAM,MAAAhB,EAAK,IAAI,CAACoB,GAAYJ,GAAMhB,CAAI,CAAC,GAEnF2B,IAAqBC,EAAY,MAAM;AAC5B,MAAAnB,KAAA,QAAAA;AAAA,IAAA,GACd,CAACA,CAAY,CAAC;AAEjB,WAAAoB,EAAU,MAAM;AACd,MAAInC,KACFA,EAAiBqB,CAAQ;AAAA,IAC3B,GACC,CAACA,GAAUrB,CAAgB,CAAC,GAG7B,gBAAAoC,EAACC,EAAuB,UAAvB,EAAgC,OAAON,GACtC,UAAA,gBAAAK,EAACE,KAAU,SAAS3C,GAAQ,YAAYC,GAAW,WAAW2B,GAC5D,UAAC,gBAAAa,EAAAG,GAAA,EAAc,WAAWhB,GACvB,UAAAM,KAAiBL,KAAeZ,IAC/B,gBAAAwB;AAAA,MAACP;AAAA,MAAA;AAAA,QACC,aAAApC;AAAA,QACA,aAAA+B;AAAA,QACA,gBAAAf;AAAA,QACA,QAAAX;AAAA,QACA,UAAAuB;AAAA,QACA,kBAAkBI;AAAA,QAClB,sBAAA1B;AAAA,QACA,WAAAL;AAAA,QACA,aAAaO;AAAA,QACb,aAAAM;AAAA,QACA,cAAAG;AAAA,QACA,YAAYC,KAAc;AAAA,QAC1B,gBAAAC;AAAA,QACA,0BAAAE;AAAA,QACA,eAAAD;AAAA,QACA,cAAcoB;AAAA,MAAA;AAAA,IAChB,IACE,OACN,CAAA,EACF,CAAA,EACF,CAAA;AAAA,EAEJ;AACF;"}
@@ -1,20 +1,20 @@
1
1
  import { jsxs as h, Fragment as I, jsx as r } from "react/jsx-runtime";
2
- import { memo as A, useState as E, useMemo as a, useCallback as l } from "react";
3
- import N from "../../../../../ui/buttons/button/button.js";
4
- import w from "../../../../../worksheet/worksheet-preview/worksheet-preview.js";
5
- import { TESTS_CREATION_ANALYTICS_EVENTS as C } from "../../tests-creation-analytics-events.js";
6
- import { ButtonWrapper as b } from "./test-preview-styled.js";
7
- const y = A((d) => {
8
- const { studentId: m, items: e, testNumber: n, isAssignInProgress: c, onTestStageChange: o, onTestSheetAssign: T } = d, [p, i] = E(!1), t = a(() => e == null ? void 0 : e.map((s) => s.ref), [e]), u = a(
2
+ import { memo as A, useState as N, useMemo as a, useCallback as d } from "react";
3
+ import w from "../../../../../ui/buttons/button/button.js";
4
+ import C from "../../../../../worksheet/worksheet-preview/worksheet-preview.js";
5
+ import { TESTS_CREATION_ANALYTICS_EVENTS as E } from "../../tests-creation-analytics-events.js";
6
+ import { ButtonWrapper as v } from "./test-preview-styled.js";
7
+ const y = A((l) => {
8
+ const { studentId: m, items: e, testNumber: o, isAssignInProgress: T, onTestStageChange: n, onTestSheetAssign: c } = l, [p, i] = N(!1), t = a(() => e == null ? void 0 : e.map((s) => s.ref), [e]), u = a(
9
9
  () => ({
10
10
  step: "preview",
11
11
  items: e,
12
- title: `Test ${n}`
12
+ title: `Test ${o}`
13
13
  }),
14
- [n, e]
15
- ), f = l(() => {
16
- o("DIFFICULTY_AND_DURATION_SELECTION");
17
- }, [o]), S = l(
14
+ [o, e]
15
+ ), f = d(() => {
16
+ n("DIFFICULTY_AND_DURATION_SELECTION");
17
+ }, [n]), S = d(
18
18
  (s) => {
19
19
  i(s);
20
20
  },
@@ -22,33 +22,32 @@ const y = A((d) => {
22
22
  );
23
23
  return !t || t.length === 0 ? null : /* @__PURE__ */ h(I, { children: [
24
24
  /* @__PURE__ */ r(
25
- w,
25
+ C,
26
26
  {
27
27
  activityReference: "test",
28
- action: "review",
28
+ mode: "preview",
29
29
  nodeType: "DYNAMIC",
30
30
  userType: "STUDENT",
31
31
  studentId: m ?? "student-id",
32
32
  isLessonV3Enabled: !1,
33
33
  worksheetName: "Preview test",
34
- scribblingEnabled: !1,
35
34
  items: t,
36
35
  onBackIconClick: f,
37
36
  onWorksheetLoaded: S
38
37
  }
39
38
  ),
40
- p && /* @__PURE__ */ r(b, { children: /* @__PURE__ */ r(
41
- N,
39
+ p && /* @__PURE__ */ r(v, { children: /* @__PURE__ */ r(
40
+ w,
42
41
  {
43
42
  widthX: 6,
44
43
  renderAs: "primary",
45
44
  size: "small",
46
45
  shape: "square",
47
46
  label: "Assign",
48
- analyticsLabel: C.CUSTOM_TEST_ASSIGNED,
47
+ analyticsLabel: E.CUSTOM_TEST_ASSIGNED,
49
48
  analyticsProps: u,
50
- onClick: T,
51
- disabled: !!c
49
+ onClick: c,
50
+ disabled: !!T
52
51
  }
53
52
  ) })
54
53
  ] });
@@ -1 +1 @@
1
- {"version":3,"file":"test-preview.js","sources":["../../../../../../../src/features/milestone/milestone-tests/tests-creation/test-stages/test-preview/test-preview.tsx"],"sourcesContent":["import type { ITestPreviewProps } from './test-preview-types';\nimport type { FC } from 'react';\n\nimport { memo, useCallback, useMemo, useState } from 'react';\n\nimport Button from '../../../../../ui/buttons/button/button';\nimport PreviewWorksheet from '../../../../../worksheet/worksheet-preview/worksheet-preview';\nimport { TESTS_CREATION_ANALYTICS_EVENTS } from '../../tests-creation-analytics-events';\nimport * as Styled from './test-preview-styled';\n\nconst TestPreview: FC<ITestPreviewProps> = memo(props => {\n const { studentId, items, testNumber, isAssignInProgress, onTestStageChange, onTestSheetAssign } =\n props;\n\n const [testPreviewLoaded, setTestPreviewLoaded] = useState(false);\n\n const itemRefs = useMemo(() => items?.map(item => item.ref), [items]);\n const analyticsProps = useMemo(\n () => ({\n step: 'preview',\n items,\n title: `Test ${testNumber}`,\n }),\n [testNumber, items],\n );\n\n const handleOnBack = useCallback(() => {\n onTestStageChange('DIFFICULTY_AND_DURATION_SELECTION');\n }, [onTestStageChange]);\n\n const handleOnPreviewLoad = useCallback(\n (loaded: boolean) => {\n setTestPreviewLoaded(loaded);\n },\n [setTestPreviewLoaded],\n );\n\n if (!itemRefs || itemRefs.length === 0) return null;\n\n return (\n <>\n <PreviewWorksheet\n activityReference=\"test\"\n action=\"review\"\n nodeType=\"DYNAMIC\"\n userType=\"STUDENT\"\n studentId={studentId ?? 'student-id'}\n isLessonV3Enabled={false}\n worksheetName=\"Preview test\"\n scribblingEnabled={false}\n items={itemRefs}\n onBackIconClick={handleOnBack}\n onWorksheetLoaded={handleOnPreviewLoad}\n />\n\n {testPreviewLoaded && (\n <Styled.ButtonWrapper>\n <Button\n widthX={6}\n renderAs={'primary'}\n size=\"small\"\n shape=\"square\"\n label=\"Assign\"\n analyticsLabel={TESTS_CREATION_ANALYTICS_EVENTS.CUSTOM_TEST_ASSIGNED}\n analyticsProps={analyticsProps}\n onClick={onTestSheetAssign}\n disabled={!!isAssignInProgress}\n />\n </Styled.ButtonWrapper>\n )}\n </>\n );\n});\n\nexport default TestPreview;\n"],"names":["TestPreview","memo","props","studentId","items","testNumber","isAssignInProgress","onTestStageChange","onTestSheetAssign","testPreviewLoaded","setTestPreviewLoaded","useState","itemRefs","useMemo","item","analyticsProps","handleOnBack","useCallback","handleOnPreviewLoad","loaded","jsxs","Fragment","jsx","PreviewWorksheet","Styled.ButtonWrapper","Button","TESTS_CREATION_ANALYTICS_EVENTS"],"mappings":";;;;;;AAUM,MAAAA,IAAqCC,EAAK,CAASC,MAAA;AACvD,QAAM,EAAE,WAAAC,GAAW,OAAAC,GAAO,YAAAC,GAAY,oBAAAC,GAAoB,mBAAAC,GAAmB,mBAAAC,EAC3E,IAAAN,GAEI,CAACO,GAAmBC,CAAoB,IAAIC,EAAS,EAAK,GAE1DC,IAAWC,EAAQ,MAAMT,KAAA,gBAAAA,EAAO,IAAI,CAAQU,MAAAA,EAAK,MAAM,CAACV,CAAK,CAAC,GAC9DW,IAAiBF;AAAA,IACrB,OAAO;AAAA,MACL,MAAM;AAAA,MACN,OAAAT;AAAA,MACA,OAAO,QAAQC,CAAU;AAAA,IAAA;AAAA,IAE3B,CAACA,GAAYD,CAAK;AAAA,EAAA,GAGdY,IAAeC,EAAY,MAAM;AACrC,IAAAV,EAAkB,mCAAmC;AAAA,EAAA,GACpD,CAACA,CAAiB,CAAC,GAEhBW,IAAsBD;AAAA,IAC1B,CAACE,MAAoB;AACnB,MAAAT,EAAqBS,CAAM;AAAA,IAC7B;AAAA,IACA,CAACT,CAAoB;AAAA,EAAA;AAGvB,SAAI,CAACE,KAAYA,EAAS,WAAW,IAAU,OAI3C,gBAAAQ,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,mBAAkB;AAAA,QAClB,QAAO;AAAA,QACP,UAAS;AAAA,QACT,UAAS;AAAA,QACT,WAAWpB,KAAa;AAAA,QACxB,mBAAmB;AAAA,QACnB,eAAc;AAAA,QACd,mBAAmB;AAAA,QACnB,OAAOS;AAAA,QACP,iBAAiBI;AAAA,QACjB,mBAAmBE;AAAA,MAAA;AAAA,IACrB;AAAA,IAECT,KACC,gBAAAa,EAACE,GAAA,EACC,UAAA,gBAAAF;AAAA,MAACG;AAAA,MAAA;AAAA,QACC,QAAQ;AAAA,QACR,UAAU;AAAA,QACV,MAAK;AAAA,QACL,OAAM;AAAA,QACN,OAAM;AAAA,QACN,gBAAgBC,EAAgC;AAAA,QAChD,gBAAAX;AAAA,QACA,SAASP;AAAA,QACT,UAAU,CAAC,CAACF;AAAA,MAAA;AAAA,IAAA,GAEhB;AAAA,EAEJ,EAAA,CAAA;AAEJ,CAAC;"}
1
+ {"version":3,"file":"test-preview.js","sources":["../../../../../../../src/features/milestone/milestone-tests/tests-creation/test-stages/test-preview/test-preview.tsx"],"sourcesContent":["import type { ITestPreviewProps } from './test-preview-types';\nimport type { FC } from 'react';\n\nimport { memo, useCallback, useMemo, useState } from 'react';\n\nimport Button from '../../../../../ui/buttons/button/button';\nimport PreviewWorksheet from '../../../../../worksheet/worksheet-preview/worksheet-preview';\nimport { TESTS_CREATION_ANALYTICS_EVENTS } from '../../tests-creation-analytics-events';\nimport * as Styled from './test-preview-styled';\n\nconst TestPreview: FC<ITestPreviewProps> = memo(props => {\n const { studentId, items, testNumber, isAssignInProgress, onTestStageChange, onTestSheetAssign } =\n props;\n\n const [testPreviewLoaded, setTestPreviewLoaded] = useState(false);\n\n const itemRefs = useMemo(() => items?.map(item => item.ref), [items]);\n const analyticsProps = useMemo(\n () => ({\n step: 'preview',\n items,\n title: `Test ${testNumber}`,\n }),\n [testNumber, items],\n );\n\n const handleOnBack = useCallback(() => {\n onTestStageChange('DIFFICULTY_AND_DURATION_SELECTION');\n }, [onTestStageChange]);\n\n const handleOnPreviewLoad = useCallback(\n (loaded: boolean) => {\n setTestPreviewLoaded(loaded);\n },\n [setTestPreviewLoaded],\n );\n\n if (!itemRefs || itemRefs.length === 0) return null;\n\n return (\n <>\n <PreviewWorksheet\n activityReference=\"test\"\n mode=\"preview\"\n nodeType=\"DYNAMIC\"\n userType=\"STUDENT\"\n studentId={studentId ?? 'student-id'}\n isLessonV3Enabled={false}\n worksheetName=\"Preview test\"\n items={itemRefs}\n onBackIconClick={handleOnBack}\n onWorksheetLoaded={handleOnPreviewLoad}\n />\n\n {testPreviewLoaded && (\n <Styled.ButtonWrapper>\n <Button\n widthX={6}\n renderAs={'primary'}\n size=\"small\"\n shape=\"square\"\n label=\"Assign\"\n analyticsLabel={TESTS_CREATION_ANALYTICS_EVENTS.CUSTOM_TEST_ASSIGNED}\n analyticsProps={analyticsProps}\n onClick={onTestSheetAssign}\n disabled={!!isAssignInProgress}\n />\n </Styled.ButtonWrapper>\n )}\n </>\n );\n});\n\nexport default TestPreview;\n"],"names":["TestPreview","memo","props","studentId","items","testNumber","isAssignInProgress","onTestStageChange","onTestSheetAssign","testPreviewLoaded","setTestPreviewLoaded","useState","itemRefs","useMemo","item","analyticsProps","handleOnBack","useCallback","handleOnPreviewLoad","loaded","jsxs","Fragment","jsx","PreviewWorksheet","Styled.ButtonWrapper","Button","TESTS_CREATION_ANALYTICS_EVENTS"],"mappings":";;;;;;AAUM,MAAAA,IAAqCC,EAAK,CAASC,MAAA;AACvD,QAAM,EAAE,WAAAC,GAAW,OAAAC,GAAO,YAAAC,GAAY,oBAAAC,GAAoB,mBAAAC,GAAmB,mBAAAC,EAC3E,IAAAN,GAEI,CAACO,GAAmBC,CAAoB,IAAIC,EAAS,EAAK,GAE1DC,IAAWC,EAAQ,MAAMT,KAAA,gBAAAA,EAAO,IAAI,CAAQU,MAAAA,EAAK,MAAM,CAACV,CAAK,CAAC,GAC9DW,IAAiBF;AAAA,IACrB,OAAO;AAAA,MACL,MAAM;AAAA,MACN,OAAAT;AAAA,MACA,OAAO,QAAQC,CAAU;AAAA,IAAA;AAAA,IAE3B,CAACA,GAAYD,CAAK;AAAA,EAAA,GAGdY,IAAeC,EAAY,MAAM;AACrC,IAAAV,EAAkB,mCAAmC;AAAA,EAAA,GACpD,CAACA,CAAiB,CAAC,GAEhBW,IAAsBD;AAAA,IAC1B,CAACE,MAAoB;AACnB,MAAAT,EAAqBS,CAAM;AAAA,IAC7B;AAAA,IACA,CAACT,CAAoB;AAAA,EAAA;AAGvB,SAAI,CAACE,KAAYA,EAAS,WAAW,IAAU,OAI3C,gBAAAQ,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,mBAAkB;AAAA,QAClB,MAAK;AAAA,QACL,UAAS;AAAA,QACT,UAAS;AAAA,QACT,WAAWpB,KAAa;AAAA,QACxB,mBAAmB;AAAA,QACnB,eAAc;AAAA,QACd,OAAOS;AAAA,QACP,iBAAiBI;AAAA,QACjB,mBAAmBE;AAAA,MAAA;AAAA,IACrB;AAAA,IAECT,KACC,gBAAAa,EAACE,GAAA,EACC,UAAA,gBAAAF;AAAA,MAACG;AAAA,MAAA;AAAA,QACC,QAAQ;AAAA,QACR,UAAU;AAAA,QACV,MAAK;AAAA,QACL,OAAM;AAAA,QACN,OAAM;AAAA,QACN,gBAAgBC,EAAgC;AAAA,QAChD,gBAAAX;AAAA,QACA,SAASP;AAAA,QACT,UAAU,CAAC,CAACF;AAAA,MAAA;AAAA,IAAA,GAEhB;AAAA,EAEJ,EAAA,CAAA;AAEJ,CAAC;"}
@@ -0,0 +1,9 @@
1
+ import { createGetAPI as t } from "@cuemath/rest-api";
2
+ import { BASE_URL_V1 as r } from "../../../constants/api.js";
3
+ const { useGet: m } = t({
4
+ getURL: (e) => `${r}/students/${e}/course-streams/MATH/goals-preferences/`
5
+ });
6
+ export {
7
+ m as useStudentProfileSummaryGet
8
+ };
9
+ //# sourceMappingURL=get-student-profile-summary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-student-profile-summary.js","sources":["../../../../src/features/parent-dashboard/api/get-student-profile-summary.ts"],"sourcesContent":["import type { TCourseStream } from '../../milestone/create/milestone-create-types';\nimport type { IMilestoneData } from '../../milestone/milestone-list-container/milestone-list/milestone-list-types';\n\nimport { createGetAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V1 } from '../../../constants/api';\n\nexport type TPreference = {\n preference_category: string;\n preference_code: string;\n preference_name: string;\n};\n\ninterface IStudentPreferences {\n course_stream: TCourseStream;\n preferences: TPreference[];\n student_id: string;\n updated_on_ts: number;\n}\n\nexport interface IStudentProfileSummaryResponse {\n student_preferences: IStudentPreferences;\n user_milestone_data: IMilestoneData[];\n}\n\nconst { useGet: useStudentProfileSummaryGet } = createGetAPI<IStudentProfileSummaryResponse>({\n getURL: studentId =>\n `${BASE_URL_V1}/students/${studentId}/course-streams/MATH/goals-preferences/`,\n});\n\nexport { useStudentProfileSummaryGet };\n"],"names":["useStudentProfileSummaryGet","createGetAPI","studentId","BASE_URL_V1"],"mappings":";;AAyBA,MAAM,EAAE,QAAQA,EAA4B,IAAIC,EAA6C;AAAA,EAC3F,QAAQ,CAAAC,MACN,GAAGC,CAAW,aAAaD,CAAS;AACxC,CAAC;"}
@@ -0,0 +1,10 @@
1
+ import { createGetAPI as t } from "@cuemath/rest-api";
2
+ import { BASE_URL_V1 as o } from "../../../constants/api.js";
3
+ const { useGet: m, invalidate: n } = t({
4
+ getURL: (e) => `${o}/students/${e}/parent-home`
5
+ });
6
+ export {
7
+ n as invalidateParentHome,
8
+ m as useParentHomeGet
9
+ };
10
+ //# sourceMappingURL=parent-home.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parent-home.js","sources":["../../../../src/features/parent-dashboard/api/parent-home.ts"],"sourcesContent":["import type { IParentHome } from '../parent-dashboard-types';\n\nimport { createGetAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V1 } from '../../../constants/api';\n\nconst { useGet: useParentHomeGet, invalidate: invalidateParentHome } = createGetAPI<IParentHome>({\n getURL: studentId => `${BASE_URL_V1}/students/${studentId}/parent-home`,\n});\n\nexport { useParentHomeGet, invalidateParentHome };\n"],"names":["useParentHomeGet","invalidateParentHome","createGetAPI","studentId","BASE_URL_V1"],"mappings":";;AAMA,MAAM,EAAE,QAAQA,GAAkB,YAAYC,EAAA,IAAyBC,EAA0B;AAAA,EAC/F,QAAQ,CAAAC,MAAa,GAAGC,CAAW,aAAaD,CAAS;AAC3D,CAAC;"}
@@ -0,0 +1,30 @@
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
+ import { memo as c } from "react";
3
+ import { useTheme as a } from "styled-components";
4
+ import { ILLUSTRATIONS as p } from "../../../../assets/illustrations/illustrations.js";
5
+ import s from "../../../auth/comps/linear-progress-bar/linear-progress-bar.js";
6
+ import f from "../../../ui/image/image.js";
7
+ import o from "../../../ui/layout/flex-view.js";
8
+ import { EDeviceType as l } from "../../../ui/theme/constants.js";
9
+ const d = ({ progressPercentage: r, showProgress: t, HeaderAvatar: m }) => {
10
+ const { device: i } = a();
11
+ return i <= l.TABLET ? /* @__PURE__ */ n(
12
+ o,
13
+ {
14
+ $gutterX: 1,
15
+ $gapX: 1,
16
+ $flexDirection: "row",
17
+ $alignItems: "center",
18
+ $background: "WHITE_T_05",
19
+ $flexColumnGapX: 1,
20
+ children: [
21
+ m,
22
+ t && r ? /* @__PURE__ */ e(s, { percentage: r, borderRadius: 8 }) : /* @__PURE__ */ e(o, { $flex: 1, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ e(f, { width: 90, src: p.CIRCLE_CUEMATH_LOGO_WHITE }) })
23
+ ]
24
+ }
25
+ ) : null;
26
+ }, H = c(d);
27
+ export {
28
+ H as default
29
+ };
30
+ //# sourceMappingURL=compact-header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compact-header.js","sources":["../../../../../src/features/parent-dashboard/comps/compact-header/compact-header.tsx"],"sourcesContent":["import type { ICompactHeaderProps } from './compact-header-types';\n\nimport { memo } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport LinearProgressBar from '../../../auth/comps/linear-progress-bar/linear-progress-bar';\nimport Image from '../../../ui/image/image';\nimport FlexView from '../../../ui/layout/flex-view';\nimport { EDeviceType } from '../../../ui/theme/constants';\n\nconst CompactHeader = ({ progressPercentage, showProgress, HeaderAvatar }: ICompactHeaderProps) => {\n const { device } = useTheme();\n const isCompact = device <= EDeviceType.TABLET;\n\n if (!isCompact) return null;\n\n return (\n <FlexView\n $gutterX={1}\n $gapX={1}\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $background=\"WHITE_T_05\"\n $flexColumnGapX={1}\n >\n {HeaderAvatar}\n {showProgress && progressPercentage ? (\n <LinearProgressBar percentage={progressPercentage} borderRadius={8} />\n ) : (\n <FlexView $flex={1} $justifyContent=\"center\" $alignItems=\"center\">\n <Image width={90} src={ILLUSTRATIONS.CIRCLE_CUEMATH_LOGO_WHITE} />\n </FlexView>\n )}\n </FlexView>\n );\n};\n\nexport default memo(CompactHeader);\n"],"names":["CompactHeader","progressPercentage","showProgress","HeaderAvatar","device","useTheme","EDeviceType","jsxs","FlexView","jsx","LinearProgressBar","Image","ILLUSTRATIONS","CompactHeader$1","memo"],"mappings":";;;;;;;;AAWA,MAAMA,IAAgB,CAAC,EAAE,oBAAAC,GAAoB,cAAAC,GAAc,cAAAC,QAAwC;AAC3F,QAAA,EAAE,QAAAC,MAAWC;AAGf,SAFcD,KAAUE,EAAY,SAKtC,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,UAAU;AAAA,MACV,OAAO;AAAA,MACP,gBAAe;AAAA,MACf,aAAY;AAAA,MACZ,aAAY;AAAA,MACZ,iBAAiB;AAAA,MAEhB,UAAA;AAAA,QAAAL;AAAA,QACAD,KAAgBD,IACf,gBAAAQ,EAACC,GAAkB,EAAA,YAAYT,GAAoB,cAAc,EAAA,CAAG,IAEpE,gBAAAQ,EAACD,GAAS,EAAA,OAAO,GAAG,iBAAgB,UAAS,aAAY,UACvD,UAAC,gBAAAC,EAAAE,GAAA,EAAM,OAAO,IAAI,KAAKC,EAAc,0BAAA,CAA2B,EAClE,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,IAjBiB;AAqBzB,GAEeC,IAAAC,EAAKd,CAAa;"}
@@ -0,0 +1,25 @@
1
+ import { GIF as t } from "../../../../assets/gif/gif.js";
2
+ const o = [
3
+ {
4
+ icon: t.STAY_CONNECTED,
5
+ title: "STAY CONNECTED",
6
+ description: "Chat with your tutor and receive real-time updates.",
7
+ bgColor: "BLUE_6"
8
+ },
9
+ {
10
+ icon: t.TRACK_PROGRESS,
11
+ title: "TRACK PROGRESS",
12
+ description: "Progress, strengths, and areas of improvement.",
13
+ bgColor: "PURPLE_6"
14
+ },
15
+ {
16
+ icon: t.EASY_RESCHEDULING,
17
+ title: "EASY RESCHEDULING",
18
+ description: "Conveniently change your class timings.",
19
+ bgColor: "GREEN_6"
20
+ }
21
+ ];
22
+ export {
23
+ o as benefits
24
+ };
25
+ //# sourceMappingURL=cuemath-app-features-constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cuemath-app-features-constants.js","sources":["../../../../../src/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features-constants.ts"],"sourcesContent":["import type { ICuemathAppBenefit } from './cuemath-app-features-types';\n\nimport { GIF } from '../../../../assets/gif/gif';\n\nexport const benefits: ICuemathAppBenefit[] = [\n {\n icon: GIF.STAY_CONNECTED,\n title: 'STAY CONNECTED',\n description: 'Chat with your tutor and receive real-time updates.',\n bgColor: 'BLUE_6',\n },\n {\n icon: GIF.TRACK_PROGRESS,\n title: 'TRACK PROGRESS',\n description: 'Progress, strengths, and areas of improvement.',\n bgColor: 'PURPLE_6',\n },\n {\n icon: GIF.EASY_RESCHEDULING,\n title: 'EASY RESCHEDULING',\n description: 'Conveniently change your class timings.',\n bgColor: 'GREEN_6',\n },\n];\n"],"names":["benefits","GIF"],"mappings":";AAIO,MAAMA,IAAiC;AAAA,EAC5C;AAAA,IACE,MAAMC,EAAI;AAAA,IACV,OAAO;AAAA,IACP,aAAa;AAAA,IACb,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,MAAMA,EAAI;AAAA,IACV,OAAO;AAAA,IACP,aAAa;AAAA,IACb,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,MAAMA,EAAI;AAAA,IACV,OAAO;AAAA,IACP,aAAa;AAAA,IACb,SAAS;AAAA,EACX;AACF;"}
@@ -0,0 +1,15 @@
1
+ import i from "styled-components";
2
+ import t from "../../../ui/layout/flex-view.js";
3
+ const h = i(t)(
4
+ ({ theme: e }) => `
5
+ height: 100%;
6
+ ${e.mediaQueries.minWidthTablet} {
7
+ width: 100%;
8
+ max-height: 250px;
9
+ }
10
+ `
11
+ );
12
+ export {
13
+ h as ImageWrapper
14
+ };
15
+ //# sourceMappingURL=cuemath-app-features-styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cuemath-app-features-styled.js","sources":["../../../../../src/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nexport const ImageWrapper = styled(FlexView)(\n ({ theme }) => `\n height: 100%;\n ${theme.mediaQueries.minWidthTablet} {\n width: 100%;\n max-height: 250px;\n }\n`,\n);\n"],"names":["ImageWrapper","styled","FlexView","theme"],"mappings":";;AAIa,MAAAA,IAAeC,EAAOC,CAAQ;AAAA,EACzC,CAAC,EAAE,OAAAC,EAAA,MAAY;AAAA;AAAA,IAEbA,EAAM,aAAa,cAAc;AAAA;AAAA;AAAA;AAAA;AAKrC;"}
@@ -0,0 +1,90 @@
1
+ import { jsxs as t, jsx as e, Fragment as s } from "react/jsx-runtime";
2
+ import { memo as $, useCallback as f } from "react";
3
+ import { useTheme as u } from "styled-components";
4
+ import { ILLUSTRATIONS as b } from "../../../../assets/illustrations/illustrations.js";
5
+ import g from "../../../../assets/line-icons/icons/next2.js";
6
+ import { CUEMATH_APP_URL as w } from "../../../../constants/config.js";
7
+ import A from "../../../ui/buttons/button/button.js";
8
+ import c from "../../../ui/image/image.js";
9
+ import o from "../../../ui/layout/flex-view.js";
10
+ import a from "../../../ui/separator/separator.js";
11
+ import n from "../../../ui/text/text.js";
12
+ import { EDeviceType as I } from "../../../ui/theme/constants.js";
13
+ import { benefits as T } from "./cuemath-app-features-constants.js";
14
+ import { ImageWrapper as x } from "./cuemath-app-features-styled.js";
15
+ const C = () => {
16
+ const l = u(), r = l.device <= I.MOBILE, m = f(() => {
17
+ window.open(w, "_blank");
18
+ }, []);
19
+ return /* @__PURE__ */ t(o, { children: [
20
+ /* @__PURE__ */ t(o, { $flexDirection: "row", $justifyContent: "space-between", $alignItems: "center", children: [
21
+ /* @__PURE__ */ t(o, { children: [
22
+ /* @__PURE__ */ e(n, { $renderAs: "ah4-bold", $renderOnMobileAs: "ab1-bold", $color: "WHITE", children: "Do more with the Cuemath app" }),
23
+ !r && /* @__PURE__ */ t(s, { children: [
24
+ /* @__PURE__ */ e(a, { height: 4 }),
25
+ /* @__PURE__ */ t(o, { $flexDirection: "row", $alignItems: "center", $flexColumnGapX: 0.25, children: [
26
+ /* @__PURE__ */ e(n, { $renderAs: "ub1", $color: "WHITE_T_60", children: "Scan QR to download the app" }),
27
+ /* @__PURE__ */ e(g, { height: 24, width: 24, color: l.colors.WHITE_T_60 })
28
+ ] })
29
+ ] })
30
+ ] }),
31
+ !r && /* @__PURE__ */ e(o, { $background: "WHITE", children: /* @__PURE__ */ e(c, { src: b.CUEMATH_APP_QR_CODE, width: 60, height: 60 }) })
32
+ ] }),
33
+ /* @__PURE__ */ e(a, { height: r ? 16 : 20 }),
34
+ /* @__PURE__ */ e(o, { $flexGapX: 1, $justifyContent: "center", $flexDirection: r ? "column" : "row", children: T.map(({ icon: h, title: i, description: p, bgColor: d }) => /* @__PURE__ */ t(
35
+ o,
36
+ {
37
+ $flex: 1,
38
+ $flexDirection: r ? "row" : "column",
39
+ $alignItems: r ? "normal" : "center",
40
+ children: [
41
+ /* @__PURE__ */ e(
42
+ x,
43
+ {
44
+ $height: r ? "auto" : "100%",
45
+ $width: r ? "auto" : "100%",
46
+ children: /* @__PURE__ */ e(
47
+ c,
48
+ {
49
+ src: h,
50
+ height: r ? "auto" : 250,
51
+ width: r ? 84 : "100%",
52
+ alt: i
53
+ }
54
+ )
55
+ }
56
+ ),
57
+ /* @__PURE__ */ t(
58
+ o,
59
+ {
60
+ $background: d,
61
+ $gutterX: r ? 1 : 1.5,
62
+ $gapX: r ? 1 : 1.5,
63
+ $flex: 1,
64
+ $width: "100%",
65
+ children: [
66
+ /* @__PURE__ */ e(n, { $renderAs: "ac3-black", $color: "WHITE", $renderOnMobileAs: "ac4-black", children: i }),
67
+ /* @__PURE__ */ e(n, { $renderAs: "ub3", $color: "WHITE", children: p })
68
+ ]
69
+ }
70
+ )
71
+ ]
72
+ },
73
+ i
74
+ )) }),
75
+ r && /* @__PURE__ */ e(o, { $gapX: 1, children: /* @__PURE__ */ e(
76
+ A,
77
+ {
78
+ label: "Download the app",
79
+ renderAs: "secondary",
80
+ size: "small",
81
+ shape: "square",
82
+ onClick: m
83
+ }
84
+ ) })
85
+ ] });
86
+ }, R = $(C);
87
+ export {
88
+ R as default
89
+ };
90
+ //# sourceMappingURL=cuemath-app-features.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cuemath-app-features.js","sources":["../../../../../src/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features.tsx"],"sourcesContent":["import { memo, useCallback, type FC } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Next2Icon from '../../../../assets/line-icons/icons/next2';\nimport { CUEMATH_APP_URL } from '../../../../constants/config';\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';\nimport { benefits } from './cuemath-app-features-constants';\nimport * as Styled from './cuemath-app-features-styled';\n\nconst CuemathAppFeatures: FC = () => {\n const theme = useTheme();\n const isMobile = theme.device <= EDeviceType.MOBILE;\n\n const handleOpenApp = useCallback(() => {\n window.open(CUEMATH_APP_URL, '_blank');\n }, []);\n\n return (\n <FlexView>\n <FlexView $flexDirection=\"row\" $justifyContent=\"space-between\" $alignItems=\"center\">\n <FlexView>\n <Text $renderAs=\"ah4-bold\" $renderOnMobileAs=\"ab1-bold\" $color=\"WHITE\">\n Do more with the Cuemath app\n </Text>\n {!isMobile && (\n <>\n <Separator height={4} />\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $flexColumnGapX={0.25}>\n <Text $renderAs=\"ub1\" $color=\"WHITE_T_60\">\n Scan QR to download the app\n </Text>\n <Next2Icon height={24} width={24} color={theme.colors.WHITE_T_60} />\n </FlexView>\n </>\n )}\n </FlexView>\n {!isMobile && (\n <FlexView $background=\"WHITE\">\n <Image src={ILLUSTRATIONS.CUEMATH_APP_QR_CODE} width={60} height={60} />\n </FlexView>\n )}\n </FlexView>\n <Separator height={isMobile ? 16 : 20} />\n <FlexView $flexGapX={1} $justifyContent=\"center\" $flexDirection={isMobile ? 'column' : 'row'}>\n {benefits.map(({ icon, title, description, bgColor }) => (\n <FlexView\n key={title}\n $flex={1}\n $flexDirection={isMobile ? 'row' : 'column'}\n $alignItems={isMobile ? 'normal' : 'center'}\n >\n <Styled.ImageWrapper\n $height={isMobile ? 'auto' : '100%'}\n $width={isMobile ? 'auto' : '100%'}\n >\n <Image\n src={icon}\n height={isMobile ? 'auto' : 250}\n width={isMobile ? 84 : '100%'}\n alt={title}\n />\n </Styled.ImageWrapper>\n <FlexView\n $background={bgColor}\n $gutterX={isMobile ? 1 : 1.5}\n $gapX={isMobile ? 1 : 1.5}\n $flex={1}\n $width=\"100%\"\n >\n <Text $renderAs=\"ac3-black\" $color=\"WHITE\" $renderOnMobileAs=\"ac4-black\">\n {title}\n </Text>\n <Text $renderAs=\"ub3\" $color=\"WHITE\">\n {description}\n </Text>\n </FlexView>\n </FlexView>\n ))}\n </FlexView>\n {isMobile && (\n <FlexView $gapX={1}>\n <Button\n label=\"Download the app\"\n renderAs=\"secondary\"\n size=\"small\"\n shape=\"square\"\n onClick={handleOpenApp}\n />\n </FlexView>\n )}\n </FlexView>\n );\n};\n\nexport default memo(CuemathAppFeatures);\n"],"names":["CuemathAppFeatures","theme","useTheme","isMobile","EDeviceType","handleOpenApp","useCallback","CUEMATH_APP_URL","FlexView","jsxs","jsx","Text","Fragment","Separator","Next2Icon","Image","ILLUSTRATIONS","benefits","icon","title","description","bgColor","Styled.ImageWrapper","Button","CuemathAppFeatures$1","memo"],"mappings":";;;;;;;;;;;;;;AAeA,MAAMA,IAAyB,MAAM;AACnC,QAAMC,IAAQC,KACRC,IAAWF,EAAM,UAAUG,EAAY,QAEvCC,IAAgBC,EAAY,MAAM;AAC/B,WAAA,KAAKC,GAAiB,QAAQ;AAAA,EACvC,GAAG,CAAE,CAAA;AAEL,2BACGC,GACC,EAAA,UAAA;AAAA,IAAA,gBAAAC,EAACD,KAAS,gBAAe,OAAM,iBAAgB,iBAAgB,aAAY,UACzE,UAAA;AAAA,MAAA,gBAAAC,EAACD,GACC,EAAA,UAAA;AAAA,QAAA,gBAAAE,EAACC,KAAK,WAAU,YAAW,mBAAkB,YAAW,QAAO,SAAQ,UAEvE,+BAAA,CAAA;AAAA,QACC,CAACR,KAEE,gBAAAM,EAAAG,GAAA,EAAA,UAAA;AAAA,UAAC,gBAAAF,EAAAG,GAAA,EAAU,QAAQ,EAAG,CAAA;AAAA,4BACrBL,GAAS,EAAA,gBAAe,OAAM,aAAY,UAAS,iBAAiB,MACnE,UAAA;AAAA,YAAA,gBAAAE,EAACC,GAAK,EAAA,WAAU,OAAM,QAAO,cAAa,UAE1C,+BAAA;AAAA,YACA,gBAAAD,EAACI,KAAU,QAAQ,IAAI,OAAO,IAAI,OAAOb,EAAM,OAAO,WAAY,CAAA;AAAA,UAAA,GACpE;AAAA,QAAA,GACF;AAAA,MAAA,GAEJ;AAAA,MACC,CAACE,KACC,gBAAAO,EAAAF,GAAA,EAAS,aAAY,SACpB,UAAA,gBAAAE,EAACK,GAAM,EAAA,KAAKC,EAAc,qBAAqB,OAAO,IAAI,QAAQ,GAAI,CAAA,GACxE;AAAA,IAAA,GAEJ;AAAA,IACC,gBAAAN,EAAAG,GAAA,EAAU,QAAQV,IAAW,KAAK,IAAI;AAAA,sBACtCK,GAAS,EAAA,WAAW,GAAG,iBAAgB,UAAS,gBAAgBL,IAAW,WAAW,OACpF,UAAAc,EAAS,IAAI,CAAC,EAAE,MAAAC,GAAM,OAAAC,GAAO,aAAAC,GAAa,SAAAC,QACzC,gBAAAZ;AAAA,MAACD;AAAA,MAAA;AAAA,QAEC,OAAO;AAAA,QACP,gBAAgBL,IAAW,QAAQ;AAAA,QACnC,aAAaA,IAAW,WAAW;AAAA,QAEnC,UAAA;AAAA,UAAA,gBAAAO;AAAA,YAACY;AAAAA,YAAA;AAAA,cACC,SAASnB,IAAW,SAAS;AAAA,cAC7B,QAAQA,IAAW,SAAS;AAAA,cAE5B,UAAA,gBAAAO;AAAA,gBAACK;AAAA,gBAAA;AAAA,kBACC,KAAKG;AAAA,kBACL,QAAQf,IAAW,SAAS;AAAA,kBAC5B,OAAOA,IAAW,KAAK;AAAA,kBACvB,KAAKgB;AAAA,gBAAA;AAAA,cACP;AAAA,YAAA;AAAA,UACF;AAAA,UACA,gBAAAV;AAAA,YAACD;AAAA,YAAA;AAAA,cACC,aAAaa;AAAA,cACb,UAAUlB,IAAW,IAAI;AAAA,cACzB,OAAOA,IAAW,IAAI;AAAA,cACtB,OAAO;AAAA,cACP,QAAO;AAAA,cAEP,UAAA;AAAA,gBAAA,gBAAAO,EAACC,KAAK,WAAU,aAAY,QAAO,SAAQ,mBAAkB,aAC1D,UACHQ,EAAA,CAAA;AAAA,kCACCR,GAAK,EAAA,WAAU,OAAM,QAAO,SAC1B,UACHS,GAAA;AAAA,cAAA;AAAA,YAAA;AAAA,UACF;AAAA,QAAA;AAAA,MAAA;AAAA,MA7BKD;AAAA,IA+BR,CAAA,GACH;AAAA,IACChB,KACC,gBAAAO,EAACF,GAAS,EAAA,OAAO,GACf,UAAA,gBAAAE;AAAA,MAACa;AAAA,MAAA;AAAA,QACC,OAAM;AAAA,QACN,UAAS;AAAA,QACT,MAAK;AAAA,QACL,OAAM;AAAA,QACN,SAASlB;AAAA,MAAA;AAAA,IAAA,GAEb;AAAA,EAEJ,EAAA,CAAA;AAEJ,GAEemB,IAAAC,EAAKzB,CAAkB;"}
@@ -0,0 +1,19 @@
1
+ import { GIF as t } from "../../../../assets/gif/gif.js";
2
+ const a = [
3
+ {
4
+ title: "Strategy Games",
5
+ image: t.GAMES
6
+ },
7
+ {
8
+ title: "Logic Puzzles",
9
+ image: t.PUZZLES
10
+ },
11
+ {
12
+ title: "Mental Math",
13
+ image: t.SKILLS
14
+ }
15
+ ];
16
+ export {
17
+ a as mathPracticeData
18
+ };
19
+ //# sourceMappingURL=math-practice-constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"math-practice-constants.js","sources":["../../../../../src/features/parent-dashboard/comps/math-practice/math-practice-constants.ts"],"sourcesContent":["import { GIF } from '../../../../assets/gif/gif';\n\nexport const mathPracticeData = [\n {\n title: 'Strategy Games',\n image: GIF.GAMES,\n },\n {\n title: 'Logic Puzzles',\n image: GIF.PUZZLES,\n },\n {\n title: 'Mental Math',\n image: GIF.SKILLS,\n },\n];\n"],"names":["mathPracticeData","GIF"],"mappings":";AAEO,MAAMA,IAAmB;AAAA,EAC9B;AAAA,IACE,OAAO;AAAA,IACP,OAAOC,EAAI;AAAA,EACb;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,OAAOA,EAAI;AAAA,EACb;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,OAAOA,EAAI;AAAA,EACb;AACF;"}
@@ -0,0 +1,32 @@
1
+ import o from "styled-components";
2
+ import e from "../../../ui/layout/flex-view.js";
3
+ const n = o.div`
4
+ width: 100%;
5
+ max-width: 100%;
6
+ overflow: hidden;
7
+ `, r = o(e)`
8
+ width: 100%;
9
+ flex-shrink: 0;
10
+ overflow: hidden;
11
+ `, l = o(e)`
12
+ overflow-x: auto;
13
+ overflow-y: hidden;
14
+ scroll-behavior: smooth;
15
+ -webkit-overflow-scrolling: touch;
16
+ &::-webkit-scrollbar {
17
+ display: none;
18
+ }
19
+ `, d = o.div`
20
+ display: flex;
21
+ flex-direction: column;
22
+ align-items: center;
23
+ flex-shrink: 0;
24
+ min-width: fit-content;
25
+ `;
26
+ export {
27
+ n as Container,
28
+ d as ContentItem,
29
+ l as ContentWrapper,
30
+ r as HeaderWrapper
31
+ };
32
+ //# sourceMappingURL=math-practice-styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"math-practice-styled.js","sources":["../../../../../src/features/parent-dashboard/comps/math-practice/math-practice-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nexport const Container = styled.div`\n width: 100%;\n max-width: 100%;\n overflow: hidden;\n`;\n\nexport const HeaderWrapper = styled(FlexView)`\n width: 100%;\n flex-shrink: 0;\n overflow: hidden;\n`;\n\nexport const ContentWrapper = styled(FlexView)`\n overflow-x: auto;\n overflow-y: hidden;\n scroll-behavior: smooth;\n -webkit-overflow-scrolling: touch;\n &::-webkit-scrollbar {\n display: none;\n }\n`;\n\nexport const ContentItem = styled.div`\n display: flex;\n flex-direction: column;\n align-items: center;\n flex-shrink: 0;\n min-width: fit-content;\n`;\n"],"names":["Container","styled","HeaderWrapper","FlexView","ContentWrapper","ContentItem"],"mappings":";;AAIO,MAAMA,IAAYC,EAAO;AAAA;AAAA;AAAA;AAAA,GAMnBC,IAAgBD,EAAOE,CAAQ;AAAA;AAAA;AAAA;AAAA,GAM/BC,IAAiBH,EAAOE,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAUhCE,IAAcJ,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
@@ -0,0 +1,67 @@
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
+ import { memo as l } from "react";
3
+ import { useTheme as h } from "styled-components";
4
+ import d from "../../../ui/buttons/text-button/text-button.js";
5
+ import p from "../../../ui/image/image.js";
6
+ import n from "../../../ui/layout/flex-view.js";
7
+ import c from "../../../ui/separator/separator.js";
8
+ import m from "../../../ui/text/text.js";
9
+ import { EDeviceType as s } from "../../../ui/theme/constants.js";
10
+ import { mathPracticeData as $ } from "./math-practice-constants.js";
11
+ import { Container as f, HeaderWrapper as b, ContentWrapper as u, ContentItem as x } from "./math-practice-styled.js";
12
+ const g = l(({ onSwitchUser: o }) => {
13
+ const r = h().device <= s.MOBILE;
14
+ return /* @__PURE__ */ t(f, { children: [
15
+ /* @__PURE__ */ t(
16
+ b,
17
+ {
18
+ $flexDirection: "row",
19
+ $justifyContent: "space-between",
20
+ $alignItems: "center",
21
+ $flexColumnGapX: 1,
22
+ $width: "100%",
23
+ $gutterX: 1,
24
+ children: [
25
+ /* @__PURE__ */ e(n, { $flex: 1, children: /* @__PURE__ */ e(m, { $renderAs: "ah4-bold", $renderOnMobileAs: "ab1-bold", $color: "WHITE", children: "Keep your child engaged with daily math practice" }) }),
26
+ o && /* @__PURE__ */ e(n, { children: /* @__PURE__ */ e(
27
+ d,
28
+ {
29
+ label: "Switch User",
30
+ sizeOnMobile: "small",
31
+ color: "WHITE_1",
32
+ onClick: o
33
+ }
34
+ ) })
35
+ ]
36
+ }
37
+ ),
38
+ /* @__PURE__ */ e(c, { height: r ? 16 : 20 }),
39
+ /* @__PURE__ */ e(
40
+ u,
41
+ {
42
+ $alignItems: "center",
43
+ $flexDirection: "row",
44
+ $width: "100%",
45
+ $flexColumnGapX: 1,
46
+ $gutterX: 1,
47
+ children: $.map(({ title: i, image: a }) => /* @__PURE__ */ t(x, { children: [
48
+ /* @__PURE__ */ e(
49
+ p,
50
+ {
51
+ src: a,
52
+ width: r ? 144 : 200,
53
+ height: r ? 144 : 200,
54
+ withLoader: !0
55
+ }
56
+ ),
57
+ /* @__PURE__ */ e(c, { height: r ? 16 : 20 }),
58
+ /* @__PURE__ */ e(m, { $renderAs: "ac3-black", $renderOnMobileAs: "ac4-black", $color: "WHITE_T_60", children: i })
59
+ ] }, i))
60
+ }
61
+ )
62
+ ] });
63
+ }), X = g;
64
+ export {
65
+ X as default
66
+ };
67
+ //# sourceMappingURL=math-practice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"math-practice.js","sources":["../../../../../src/features/parent-dashboard/comps/math-practice/math-practice.tsx"],"sourcesContent":["import type { IMathPracticeProps } from './math-practice-types';\n\nimport { memo, type FC } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport TextButton from '../../../ui/buttons/text-button/text-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';\nimport { mathPracticeData } from './math-practice-constants';\nimport * as Styled from './math-practice-styled';\n\nconst MathPractice: FC<IMathPracticeProps> = memo(({ onSwitchUser }) => {\n const theme = useTheme();\n const isMobile = theme.device <= EDeviceType.MOBILE;\n\n return (\n <Styled.Container>\n <Styled.HeaderWrapper\n $flexDirection=\"row\"\n $justifyContent=\"space-between\"\n $alignItems=\"center\"\n $flexColumnGapX={1}\n $width=\"100%\"\n $gutterX={1}\n >\n <FlexView $flex={1}>\n <Text $renderAs=\"ah4-bold\" $renderOnMobileAs=\"ab1-bold\" $color=\"WHITE\">\n Keep your child engaged with daily math practice\n </Text>\n </FlexView>\n {onSwitchUser && (\n <FlexView>\n <TextButton\n label=\"Switch User\"\n sizeOnMobile=\"small\"\n color=\"WHITE_1\"\n onClick={onSwitchUser}\n />\n </FlexView>\n )}\n </Styled.HeaderWrapper>\n\n <Separator height={isMobile ? 16 : 20} />\n\n <Styled.ContentWrapper\n $alignItems=\"center\"\n $flexDirection=\"row\"\n $width=\"100%\"\n $flexColumnGapX={1}\n $gutterX={1}\n >\n {mathPracticeData.map(({ title, image }) => (\n <Styled.ContentItem key={title}>\n <Image\n src={image}\n width={isMobile ? 144 : 200}\n height={isMobile ? 144 : 200}\n withLoader\n />\n <Separator height={isMobile ? 16 : 20} />\n <Text $renderAs=\"ac3-black\" $renderOnMobileAs=\"ac4-black\" $color=\"WHITE_T_60\">\n {title}\n </Text>\n </Styled.ContentItem>\n ))}\n </Styled.ContentWrapper>\n </Styled.Container>\n );\n});\n\nexport default MathPractice;\n"],"names":["MathPractice","memo","onSwitchUser","isMobile","useTheme","EDeviceType","jsxs","Styled.Container","Styled.HeaderWrapper","jsx","FlexView","Text","TextButton","Separator","Styled.ContentWrapper","mathPracticeData","title","image","Styled.ContentItem","Image","MathPractice$1"],"mappings":";;;;;;;;;;;AAcA,MAAMA,IAAuCC,EAAK,CAAC,EAAE,cAAAC,QAAmB;AAEhE,QAAAC,IADQC,IACS,UAAUC,EAAY;AAG3C,SAAA,gBAAAC,EAACC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAD;AAAA,MAACE;AAAAA,MAAA;AAAA,QACC,gBAAe;AAAA,QACf,iBAAgB;AAAA,QAChB,aAAY;AAAA,QACZ,iBAAiB;AAAA,QACjB,QAAO;AAAA,QACP,UAAU;AAAA,QAEV,UAAA;AAAA,UAAA,gBAAAC,EAACC,GAAS,EAAA,OAAO,GACf,UAAA,gBAAAD,EAACE,GAAK,EAAA,WAAU,YAAW,mBAAkB,YAAW,QAAO,SAAQ,UAAA,mDAEvE,CAAA,GACF;AAAA,UACCT,uBACEQ,GACC,EAAA,UAAA,gBAAAD;AAAA,YAACG;AAAA,YAAA;AAAA,cACC,OAAM;AAAA,cACN,cAAa;AAAA,cACb,OAAM;AAAA,cACN,SAASV;AAAA,YAAA;AAAA,UAAA,GAEb;AAAA,QAAA;AAAA,MAAA;AAAA,IAEJ;AAAA,IAEC,gBAAAO,EAAAI,GAAA,EAAU,QAAQV,IAAW,KAAK,IAAI;AAAA,IAEvC,gBAAAM;AAAA,MAACK;AAAAA,MAAA;AAAA,QACC,aAAY;AAAA,QACZ,gBAAe;AAAA,QACf,QAAO;AAAA,QACP,iBAAiB;AAAA,QACjB,UAAU;AAAA,QAET,UAAAC,EAAiB,IAAI,CAAC,EAAE,OAAAC,GAAO,OAAAC,QAC9B,gBAAAX,EAACY,GAAA,EACC,UAAA;AAAA,UAAA,gBAAAT;AAAA,YAACU;AAAA,YAAA;AAAA,cACC,KAAKF;AAAA,cACL,OAAOd,IAAW,MAAM;AAAA,cACxB,QAAQA,IAAW,MAAM;AAAA,cACzB,YAAU;AAAA,YAAA;AAAA,UACZ;AAAA,UACC,gBAAAM,EAAAI,GAAA,EAAU,QAAQV,IAAW,KAAK,IAAI;AAAA,UACvC,gBAAAM,EAACE,KAAK,WAAU,aAAY,mBAAkB,aAAY,QAAO,cAC9D,UACHK,EAAA,CAAA;AAAA,QAAA,EAAA,GAVuBA,CAWzB,CACD;AAAA,MAAA;AAAA,IACH;AAAA,EACF,EAAA,CAAA;AAEJ,CAAC,GAEDI,IAAepB;"}