@cuemath/leap 2.9.9 → 2.9.11-as1

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 (324) hide show
  1. package/dist/assets/illustrations/illustrations.js +9 -0
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/line-icons/icons/bin2.js +7 -8
  4. package/dist/assets/line-icons/icons/bin2.js.map +1 -1
  5. package/dist/assets/line-icons/icons/chevron-left.js.map +1 -1
  6. package/dist/assets/line-icons/icons/exclamation.js +26 -0
  7. package/dist/assets/line-icons/icons/exclamation.js.map +1 -0
  8. package/dist/assets/line-icons/icons/home2.js +25 -0
  9. package/dist/assets/line-icons/icons/home2.js.map +1 -0
  10. package/dist/assets/line-icons/icons/important.js +23 -0
  11. package/dist/assets/line-icons/icons/important.js.map +1 -0
  12. package/dist/assets/line-icons/icons/skip-colored.js +43 -0
  13. package/dist/assets/line-icons/icons/skip-colored.js.map +1 -0
  14. package/dist/assets/line-icons/icons/status.js +41 -0
  15. package/dist/assets/line-icons/icons/status.js.map +1 -0
  16. package/dist/assets/lottie/lottie.js +9 -1
  17. package/dist/assets/lottie/lottie.js.map +1 -1
  18. package/dist/constants/api.js +3 -2
  19. package/dist/constants/api.js.map +1 -1
  20. package/dist/features/analytics-events/platform-events-student.js +3 -3
  21. package/dist/features/analytics-events/platform-events-student.js.map +1 -1
  22. package/dist/features/analytics-events/whitelist-events.js +13 -11
  23. package/dist/features/analytics-events/whitelist-events.js.map +1 -1
  24. package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js +99 -33
  25. package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js.map +1 -1
  26. package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js +92 -49
  27. package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js.map +1 -1
  28. package/dist/features/chapters/chapters-list/chapters-list-styled.js +5 -5
  29. package/dist/features/chapters/chapters-list/chapters-list-styled.js.map +1 -1
  30. package/dist/features/chapters/chapters-list/chapters-list.js +64 -70
  31. package/dist/features/chapters/chapters-list/chapters-list.js.map +1 -1
  32. package/dist/features/chapters-v2/api/chapter.js +10 -0
  33. package/dist/features/chapters-v2/api/chapter.js.map +1 -0
  34. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js +112 -0
  35. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js.map +1 -0
  36. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections-styled.js +35 -0
  37. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections-styled.js.map +1 -0
  38. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js +83 -0
  39. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js.map +1 -0
  40. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner-styled.js +90 -0
  41. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner-styled.js.map +1 -0
  42. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner.js +98 -0
  43. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner.js.map +1 -0
  44. package/dist/features/chapters-v2/chapter-details/chapter-details-styled.js +51 -0
  45. package/dist/features/chapters-v2/chapter-details/chapter-details-styled.js.map +1 -0
  46. package/dist/features/chapters-v2/chapter-details/chapter-details.js +129 -0
  47. package/dist/features/chapters-v2/chapter-details/chapter-details.js.map +1 -0
  48. package/dist/features/chapters-v2/comps/node-card/border-path-animation.js +13 -0
  49. package/dist/features/chapters-v2/comps/node-card/border-path-animation.js.map +1 -0
  50. package/dist/features/chapters-v2/comps/node-card/node-card-styled.js +159 -0
  51. package/dist/features/chapters-v2/comps/node-card/node-card-styled.js.map +1 -0
  52. package/dist/features/chapters-v2/comps/node-card/node-card-tags.js +16 -0
  53. package/dist/features/chapters-v2/comps/node-card/node-card-tags.js.map +1 -0
  54. package/dist/features/chapters-v2/comps/node-card/node-card.js +12 -0
  55. package/dist/features/chapters-v2/comps/node-card/node-card.js.map +1 -0
  56. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-option.js +30 -0
  57. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-option.js.map +1 -0
  58. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options-styled.js +32 -0
  59. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options-styled.js.map +1 -0
  60. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options.js +9 -0
  61. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options.js.map +1 -0
  62. package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js +189 -0
  63. package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js.map +1 -0
  64. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js +194 -0
  65. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js.map +1 -0
  66. package/dist/features/chapters-v2/comps/tag/tag-styled.js +13 -0
  67. package/dist/features/chapters-v2/comps/tag/tag-styled.js.map +1 -0
  68. package/dist/features/chapters-v2/comps/tag/tag.js +28 -0
  69. package/dist/features/chapters-v2/comps/tag/tag.js.map +1 -0
  70. package/dist/features/chapters-v2/constants/block-constants.js +20 -0
  71. package/dist/features/chapters-v2/constants/block-constants.js.map +1 -0
  72. package/dist/features/chapters-v2/constants/node-constants.js +14 -0
  73. package/dist/features/chapters-v2/constants/node-constants.js.map +1 -0
  74. package/dist/features/chapters-v2/utils/index.js +45 -0
  75. package/dist/features/chapters-v2/utils/index.js.map +1 -0
  76. package/dist/features/chapters-v2/utils/node-card-utils.js +169 -0
  77. package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -0
  78. package/dist/features/circle-games/sign-up/comp/circular-steps/circular-steps-styled.js +4 -4
  79. package/dist/features/circle-games/sign-up/comp/circular-steps/circular-steps-styled.js.map +1 -1
  80. package/dist/features/circle-games/sign-up/constants.js +7 -7
  81. package/dist/features/circle-games/sign-up/constants.js.map +1 -1
  82. package/dist/features/communication/pub-sub/constants.js +12 -6
  83. package/dist/features/communication/pub-sub/constants.js.map +1 -1
  84. package/dist/features/homework/card-menu-option.js +28 -0
  85. package/dist/features/homework/card-menu-option.js.map +1 -0
  86. package/dist/features/homework/card-menu-options.js +22 -0
  87. package/dist/features/homework/card-menu-options.js.map +1 -0
  88. package/dist/features/homework/card-title.js +16 -0
  89. package/dist/features/homework/card-title.js.map +1 -0
  90. package/dist/features/homework/homework-analytics-events.js +10 -0
  91. package/dist/features/homework/homework-analytics-events.js.map +1 -0
  92. package/dist/features/homework/homework-card-view.js +143 -0
  93. package/dist/features/homework/homework-card-view.js.map +1 -0
  94. package/dist/features/homework/homework-card.js +245 -0
  95. package/dist/features/homework/homework-card.js.map +1 -0
  96. package/dist/features/homework/hw-card-list/api/get-homeworks.js +10 -0
  97. package/dist/features/homework/hw-card-list/api/get-homeworks.js.map +1 -0
  98. package/dist/features/homework/hw-card-list/hw-card-list-styled.js +63 -0
  99. package/dist/features/homework/hw-card-list/hw-card-list-styled.js.map +1 -0
  100. package/dist/features/homework/hw-card-list/hw-card-list-view.js +157 -0
  101. package/dist/features/homework/hw-card-list/hw-card-list-view.js.map +1 -0
  102. package/dist/features/homework/hw-card-list/hw-card-list.js +67 -0
  103. package/dist/features/homework/hw-card-list/hw-card-list.js.map +1 -0
  104. package/dist/features/homework/node-progress.js +29 -0
  105. package/dist/features/homework/node-progress.js.map +1 -0
  106. package/dist/features/homework/styles.js +130 -0
  107. package/dist/features/homework/styles.js.map +1 -0
  108. package/dist/features/homework/utils.js +48 -0
  109. package/dist/features/homework/utils.js.map +1 -0
  110. package/dist/features/journey/comps/coachmark/coachmark.js +24 -24
  111. package/dist/features/journey/comps/coachmark/coachmark.js.map +1 -1
  112. package/dist/features/journey/hooks/use-chapter-journey.js +173 -0
  113. package/dist/features/journey/hooks/use-chapter-journey.js.map +1 -0
  114. package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js +268 -0
  115. package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js.map +1 -0
  116. package/dist/features/journey/hooks/use-home-page-journey/recent-chapters-mock.js +513 -0
  117. package/dist/features/journey/hooks/use-home-page-journey/recent-chapters-mock.js.map +1 -0
  118. package/dist/features/journey/hooks/use-home-page-journey/styles.js +23 -0
  119. package/dist/features/journey/hooks/use-home-page-journey/styles.js.map +1 -0
  120. package/dist/features/journey/hooks/use-home-page-journey/tooltip-item.js +22 -0
  121. package/dist/features/journey/hooks/use-home-page-journey/tooltip-item.js.map +1 -0
  122. package/dist/features/journey/hooks/use-home-page-journey/use-home-page-journey.js +270 -0
  123. package/dist/features/journey/hooks/use-home-page-journey/use-home-page-journey.js.map +1 -0
  124. package/dist/features/journey/journey-id/journey-id-student.js +1 -1
  125. package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
  126. package/dist/features/journey/journey-id/journey-id-teacher.js +5 -0
  127. package/dist/features/journey/journey-id/journey-id-teacher.js.map +1 -0
  128. package/dist/features/journey/mocks/chapter-page-journey-mock-data.js +584 -0
  129. package/dist/features/journey/mocks/chapter-page-journey-mock-data.js.map +1 -0
  130. package/dist/features/journey/use-journey/journey-context-provider.js +36 -28
  131. package/dist/features/journey/use-journey/journey-context-provider.js.map +1 -1
  132. package/dist/features/journey/use-journey/journey-styled.js +10 -5
  133. package/dist/features/journey/use-journey/journey-styled.js.map +1 -1
  134. package/dist/features/milestone/create/api/goal-submit.js +1 -1
  135. package/dist/features/milestone/create/api/goal-submit.js.map +1 -1
  136. package/dist/features/milestone/create/comps/chapter-item/chapter-item.js +42 -49
  137. package/dist/features/milestone/create/comps/chapter-item/chapter-item.js.map +1 -1
  138. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step-styled.js +12 -4
  139. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step-styled.js.map +1 -1
  140. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js +128 -105
  141. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js.map +1 -1
  142. package/dist/features/milestone/create/comps/sheets-list/sheets-list-styled.js +14 -20
  143. package/dist/features/milestone/create/comps/sheets-list/sheets-list-styled.js.map +1 -1
  144. package/dist/features/milestone/create/comps/sheets-list/sheets-list.js +26 -50
  145. package/dist/features/milestone/create/comps/sheets-list/sheets-list.js.map +1 -1
  146. package/dist/features/milestone/create/milestone-create.js +49 -43
  147. package/dist/features/milestone/create/milestone-create.js.map +1 -1
  148. package/dist/features/milestone/create/utils/index.js +33 -38
  149. package/dist/features/milestone/create/utils/index.js.map +1 -1
  150. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/get-milestone.js +1 -1
  151. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/get-milestone.js.map +1 -1
  152. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/patch-goal-plan.js +1 -1
  153. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/patch-goal-plan.js.map +1 -1
  154. package/dist/features/milestone/edit/comps/edit-milestone-modal/index.js +51 -53
  155. package/dist/features/milestone/edit/comps/edit-milestone-modal/index.js.map +1 -1
  156. package/dist/features/milestone/edit/goal-drafts/goal-draft-edit-container.js +42 -40
  157. package/dist/features/milestone/edit/goal-drafts/goal-draft-edit-container.js.map +1 -1
  158. package/dist/features/milestone/edit/goal-edit-container.js +64 -62
  159. package/dist/features/milestone/edit/goal-edit-container.js.map +1 -1
  160. package/dist/features/milestone/edit/goal-edit-helpers.js +50 -53
  161. package/dist/features/milestone/edit/goal-edit-helpers.js.map +1 -1
  162. package/dist/features/milestone/edit/milestone-edit-container.js +54 -52
  163. package/dist/features/milestone/edit/milestone-edit-container.js.map +1 -1
  164. package/dist/features/milestone/milestone-list-container/api/get-milestone-resources.js +1 -1
  165. package/dist/features/milestone/milestone-list-container/api/get-milestone-resources.js.map +1 -1
  166. package/dist/features/milestone/milestone-list-container/api/get-milestones.js +9 -17
  167. package/dist/features/milestone/milestone-list-container/api/get-milestones.js.map +1 -1
  168. package/dist/features/milestone/milestone-list-container/api/get-tests-list.js +1 -1
  169. package/dist/features/milestone/milestone-list-container/api/get-tests-list.js.map +1 -1
  170. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js +138 -105
  171. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js.map +1 -1
  172. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/goals/goal-action-ctas.js +107 -123
  173. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/goals/goal-action-ctas.js.map +1 -1
  174. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js +157 -176
  175. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js.map +1 -1
  176. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs-styled.js +24 -10
  177. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs-styled.js.map +1 -1
  178. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js +80 -86
  179. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js.map +1 -1
  180. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-utils.js +10 -22
  181. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-utils.js.map +1 -1
  182. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-styled.js +70 -37
  183. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-styled.js.map +1 -1
  184. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js +114 -176
  185. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js.map +1 -1
  186. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-rank.js +29 -16
  187. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-rank.js.map +1 -1
  188. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-styled.js +17 -25
  189. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-styled.js.map +1 -1
  190. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome.js +23 -35
  191. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome.js.map +1 -1
  192. package/dist/features/milestone/milestone-list-container/milestone-list-container.js +110 -113
  193. package/dist/features/milestone/milestone-list-container/milestone-list-container.js.map +1 -1
  194. package/dist/features/milestone/milestone-resources/resources-assign/api/goal-resource-assign.js +1 -1
  195. package/dist/features/milestone/milestone-resources/resources-assign/api/goal-resource-assign.js.map +1 -1
  196. package/dist/features/milestone/milestone-resources/resources-assign/resources-assign.js +8 -8
  197. package/dist/features/milestone/milestone-resources/resources-assign/resources-assign.js.map +1 -1
  198. package/dist/features/milestone/milestone-resources/resources-list/resources-list-styled.js +1 -1
  199. package/dist/features/milestone/milestone-resources/resources-list/resources-list-styled.js.map +1 -1
  200. package/dist/features/milestone/milestone-resources/resources-list/resources-list.js +116 -113
  201. package/dist/features/milestone/milestone-resources/resources-list/resources-list.js.map +1 -1
  202. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js +165 -0
  203. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js.map +1 -0
  204. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view-styled.js +25 -0
  205. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view-styled.js.map +1 -0
  206. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js +87 -0
  207. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js.map +1 -0
  208. package/dist/features/milestone/milestone-tests/tests-creation/api/test-sheet-assign.js +5 -5
  209. package/dist/features/milestone/milestone-tests/tests-creation/api/test-sheet-assign.js.map +1 -1
  210. package/dist/features/milestone/milestone-tests/tests-creation/test-stages/chapter-selection/chapter-item/chapter-item.js.map +1 -1
  211. package/dist/features/milestone/milestone-tests/tests-creation/tests-creation.js +46 -50
  212. package/dist/features/milestone/milestone-tests/tests-creation/tests-creation.js.map +1 -1
  213. package/dist/features/post-game-stats/digital-meter/constants.js +10 -9
  214. package/dist/features/post-game-stats/digital-meter/constants.js.map +1 -1
  215. package/dist/features/post-game-stats/digital-meter/digital-meter-styled.js +1 -1
  216. package/dist/features/post-game-stats/digital-meter/digital-meter-styled.js.map +1 -1
  217. package/dist/features/post-game-stats/digital-meter/digital-meter.js +88 -86
  218. package/dist/features/post-game-stats/digital-meter/digital-meter.js.map +1 -1
  219. package/dist/features/post-game-stats/digital-meter/helper.js +3 -13
  220. package/dist/features/post-game-stats/digital-meter/helper.js.map +1 -1
  221. package/dist/features/recent-chapters/api/get-recent-chapters.js +9 -0
  222. package/dist/features/recent-chapters/api/get-recent-chapters.js.map +1 -0
  223. package/dist/features/recent-chapters/recent-chapters-styled.js +16 -0
  224. package/dist/features/recent-chapters/recent-chapters-styled.js.map +1 -0
  225. package/dist/features/recent-chapters/recent-chapters.js +39 -0
  226. package/dist/features/recent-chapters/recent-chapters.js.map +1 -0
  227. package/dist/features/sheet-v2/resource-list/resource-list.js +45 -0
  228. package/dist/features/sheet-v2/resource-list/resource-list.js.map +1 -0
  229. package/dist/features/sheets/resources-list/resource-item/styled.js +1 -1
  230. package/dist/features/sheets/resources-list/resource-item/styled.js.map +1 -1
  231. package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/teacher-actions/teacher-actions-constant.js +4 -3
  232. package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/teacher-actions/teacher-actions-constant.js.map +1 -1
  233. package/dist/features/trial-session/comps/learning-plan/index.js.map +1 -1
  234. package/dist/features/ui/animated-arc/animated-arc-constants.js +5 -0
  235. package/dist/features/ui/animated-arc/animated-arc-constants.js.map +1 -0
  236. package/dist/features/ui/animated-arc/animated-arc-helpers.js +14 -0
  237. package/dist/features/ui/animated-arc/animated-arc-helpers.js.map +1 -0
  238. package/dist/features/ui/animated-arc/animated-arc-styled.js +33 -0
  239. package/dist/features/ui/animated-arc/animated-arc-styled.js.map +1 -0
  240. package/dist/features/ui/animated-arc/animated-arc.js +49 -0
  241. package/dist/features/ui/animated-arc/animated-arc.js.map +1 -0
  242. package/dist/features/ui/animated-arc/constants.js +5 -0
  243. package/dist/features/ui/animated-arc/constants.js.map +1 -0
  244. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +30 -29
  245. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
  246. package/dist/features/ui/constants/z-index.js +1 -1
  247. package/dist/features/ui/constants/z-index.js.map +1 -1
  248. package/dist/features/ui/context-menu/context-menu-styled.js +28 -14
  249. package/dist/features/ui/context-menu/context-menu-styled.js.map +1 -1
  250. package/dist/features/ui/context-menu/context-menu.js +37 -19
  251. package/dist/features/ui/context-menu/context-menu.js.map +1 -1
  252. package/dist/features/ui/image/image.js +12 -12
  253. package/dist/features/ui/image/image.js.map +1 -1
  254. package/dist/features/ui/inputs/base-input/base-input-styled.js +77 -67
  255. package/dist/features/ui/inputs/base-input/base-input-styled.js.map +1 -1
  256. package/dist/features/ui/inputs/base-input/base-input.js +49 -47
  257. package/dist/features/ui/inputs/base-input/base-input.js.map +1 -1
  258. package/dist/features/ui/inputs/text-input/text-input.js +14 -12
  259. package/dist/features/ui/inputs/text-input/text-input.js.map +1 -1
  260. package/dist/features/ui/lottie-animation/lottie-animation.js +48 -31
  261. package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
  262. package/dist/features/ui/text/text.js +29 -27
  263. package/dist/features/ui/text/text.js.map +1 -1
  264. package/dist/features/ui/theme/button.js +41 -7
  265. package/dist/features/ui/theme/button.js.map +1 -1
  266. package/dist/features/ui/theme/input.js +67 -14
  267. package/dist/features/ui/theme/input.js.map +1 -1
  268. package/dist/index.d.ts +371 -35
  269. package/dist/index.js +449 -423
  270. package/dist/index.js.map +1 -1
  271. package/dist/node_modules/date-fns/differenceInDays.js +17 -0
  272. package/dist/node_modules/date-fns/differenceInDays.js.map +1 -0
  273. package/dist/static/chapter-header-bg-2.c8d96894.svg +1 -0
  274. package/dist/static/competitive-arena.b9c40801.json +1 -0
  275. package/dist/static/learn.71b13323.json +1 -0
  276. package/dist/static/node-custom-test-bg.d3b757be.svg +1 -0
  277. package/dist/static/node-learn-bg.b61f815c.svg +1 -0
  278. package/dist/static/node-practice-bg.16cbaf2a.svg +1 -0
  279. package/dist/static/node-project-bg.e6a33e28.svg +1 -0
  280. package/dist/static/node-puzzle-bg.3422135c.svg +1 -0
  281. package/dist/static/node-recap-bg.546154e4.svg +1 -0
  282. package/dist/static/node-test-prep-bg.42c0b9c4.svg +1 -0
  283. package/dist/static/node-video-bg.3df3f73a.svg +1 -0
  284. package/dist/static/practice.158dd488.json +1 -0
  285. package/dist/static/project.eb665827.json +1 -0
  286. package/dist/static/puzzle.b298c7e4.json +1 -0
  287. package/dist/static/recap.0dd2c1e2.json +1 -0
  288. package/dist/static/test.803d6036.json +1 -0
  289. package/dist/static/video.b41451e2.json +1 -0
  290. package/package.json +1 -1
  291. package/dist/features/milestone/create/comps/milestone-progress-v2/milestone-progress-v2.js +0 -92
  292. package/dist/features/milestone/create/comps/milestone-progress-v2/milestone-progress-v2.js.map +0 -1
  293. package/dist/features/milestone/create/comps/milestone-progress-v2/styled.js +0 -25
  294. package/dist/features/milestone/create/comps/milestone-progress-v2/styled.js.map +0 -1
  295. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element-styled.js +0 -13
  296. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element-styled.js.map +0 -1
  297. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element.js +0 -38
  298. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element.js.map +0 -1
  299. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-status.js +0 -53
  300. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-status.js.map +0 -1
  301. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-info.js +0 -25
  302. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-info.js.map +0 -1
  303. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-cta.js +0 -71
  304. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-cta.js.map +0 -1
  305. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-styled.js +0 -31
  306. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-styled.js.map +0 -1
  307. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js +0 -38
  308. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js.map +0 -1
  309. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item.js +0 -79
  310. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item.js.map +0 -1
  311. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list-styled.js +0 -18
  312. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list-styled.js.map +0 -1
  313. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js +0 -51
  314. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js.map +0 -1
  315. package/dist/features/milestone/milestone-tests/tests-list/tests-list-styled.js +0 -11
  316. package/dist/features/milestone/milestone-tests/tests-list/tests-list-styled.js.map +0 -1
  317. package/dist/features/milestone/milestone-tests/tests-list/tests-list.js +0 -135
  318. package/dist/features/milestone/milestone-tests/tests-list/tests-list.js.map +0 -1
  319. package/dist/features/post-game-stats/digital-meter/comp/animated-arc/animated-arc-styled.js +0 -17
  320. package/dist/features/post-game-stats/digital-meter/comp/animated-arc/animated-arc-styled.js.map +0 -1
  321. package/dist/features/post-game-stats/digital-meter/comp/animated-arc/animated-arc.js +0 -50
  322. package/dist/features/post-game-stats/digital-meter/comp/animated-arc/animated-arc.js.map +0 -1
  323. package/dist/features/post-game-stats/digital-meter/comp/animated-arc/constants.js +0 -6
  324. package/dist/features/post-game-stats/digital-meter/comp/animated-arc/constants.js.map +0 -1
@@ -0,0 +1,270 @@
1
+ import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
+ import { useRef as d, useCallback as m, useMemo as K, useEffect as D } from "react";
3
+ import H from "../../../chapters/chapters-list/chapter-item/chapter-item.js";
4
+ import U from "../../../homework/homework-card.js";
5
+ import I from "../../../homework/hw-card-list/hw-card-list-view.js";
6
+ import J from "../../../milestone/milestone-list-container/milestone-list-container.js";
7
+ import T from "../../../ui/layout/flex-view.js";
8
+ import P from "../../../ui/text/text.js";
9
+ import { JOURNEY_ID_STUDENT as M } from "../../journey-id/journey-id-student.js";
10
+ import { IndicatorType as p } from "../../use-journey/constants.js";
11
+ import { useJourney as W } from "../../use-journey/use-journey.js";
12
+ import { HOMEWORK_DETAILS as C } from "./home-page-homeworks-mock.js";
13
+ import { RECENT_CHAPTERS as h } from "./recent-chapters-mock.js";
14
+ import { ChaptersWrapper as v, ELementWrapper as g } from "./styles.js";
15
+ import u from "./tooltip-item.js";
16
+ const ae = () => {
17
+ const r = M.HOMEPAGE_JOURNEY, n = d(null), i = d(null), y = d(null), w = d([]), { nextCoachmark: E, setJourney: O, endJourney: b } = W(), e = m(() => null, []), A = m(() => {
18
+ b(r), document.body.style.overflow = "unset";
19
+ }, [b, r]), s = m(() => {
20
+ E(r, !1, 0, !0);
21
+ }, [E, r]), L = m(
22
+ ({ studentId: a, stream: S, userType: l }) => {
23
+ var k, x;
24
+ const { title: X, subtext: _ } = C[0], N = l === "STUDENT";
25
+ if (!(n != null && n.current) || !(i != null && i.current))
26
+ return;
27
+ const $ = [
28
+ {
29
+ originalElementToHighlightRef: n,
30
+ isActive: !1,
31
+ type: p.TOOLTIP,
32
+ elementToHighlight: /* @__PURE__ */ c(
33
+ T,
34
+ {
35
+ $flexGapX: 2.5,
36
+ $marginBottomX: 8,
37
+ $background: "WHITE",
38
+ $widthX: 47,
39
+ $gutterX: 1,
40
+ children: [
41
+ /* @__PURE__ */ o(
42
+ I,
43
+ {
44
+ userType: l,
45
+ studentId: a,
46
+ isHwProcessing: !1,
47
+ hwDetails: C,
48
+ onTestStart: e,
49
+ onNodeAttempt: e,
50
+ onTestPreview: e,
51
+ onNodeView: e,
52
+ onTestReview: e,
53
+ onNodeReview: e,
54
+ onNodeUnassign: e
55
+ }
56
+ ),
57
+ /* @__PURE__ */ c(T, { $flexRowGapX: 1, ref: y, children: [
58
+ /* @__PURE__ */ c(P, { $renderAs: "ac4-black", $color: "BLACK_T_60", children: [
59
+ "Recent Chapters (",
60
+ (k = h) == null ? void 0 : k.length,
61
+ ")"
62
+ ] }),
63
+ /* @__PURE__ */ o(v, { children: h.map((t, f) => /* @__PURE__ */ o(
64
+ H,
65
+ {
66
+ chapter: t,
67
+ onChapterClick: e,
68
+ itemIndex: f
69
+ },
70
+ t.id
71
+ )) })
72
+ ] }),
73
+ /* @__PURE__ */ o(
74
+ J,
75
+ {
76
+ milestoneType: "ACTIVE",
77
+ activeMilestoneId: "",
78
+ activeTabId: "",
79
+ canCreatePlan: !1,
80
+ courseStream: S,
81
+ isClassOngoing: !1,
82
+ isStudentPresent: !1,
83
+ parentName: "",
84
+ studentId: a,
85
+ studentName: "",
86
+ teacherName: "",
87
+ userType: l,
88
+ onAddChapter: e,
89
+ onAddOutcome: e,
90
+ onChapterClick: e,
91
+ onCreatePlan: e,
92
+ onDelete: e,
93
+ onDraftPublish: e,
94
+ onEdit: e,
95
+ onExpandPastMilestones: e,
96
+ onNodeView: e,
97
+ onNodeReview: e,
98
+ onWidgetTabSelection: e,
99
+ onAssignResources: e,
100
+ onNodeReset: e,
101
+ onNodeUnassign: e,
102
+ onCreateMilestoneTest: e,
103
+ onTestPreview: e,
104
+ onTestReview: e
105
+ }
106
+ )
107
+ ]
108
+ }
109
+ ),
110
+ indicator: {
111
+ position: "top",
112
+ tooltipXCoOrdinates: 0,
113
+ tooltipYCoOrdinates: 0,
114
+ backgroundColor: "BLUE_4",
115
+ borderColor: "BLACK",
116
+ arrowColor: "BLACK",
117
+ arrowSize: 12,
118
+ width: 264,
119
+ tooltipItem: /* @__PURE__ */ o(
120
+ u,
121
+ {
122
+ text: `Welcome to the all new ${N ? "learning" : "tutoring"} homepage.`,
123
+ buttonLabel: "Next",
124
+ onButtonClick: s
125
+ }
126
+ )
127
+ }
128
+ },
129
+ {
130
+ originalElementToHighlightRef: i,
131
+ elementToHighlight: /* @__PURE__ */ o(g, { children: /* @__PURE__ */ o(
132
+ I,
133
+ {
134
+ userType: l,
135
+ studentId: a,
136
+ isHwProcessing: !1,
137
+ hwDetails: C,
138
+ onTestStart: e,
139
+ onNodeAttempt: e,
140
+ onTestPreview: e,
141
+ onNodeView: e,
142
+ onTestReview: e,
143
+ onNodeReview: e,
144
+ onNodeUnassign: e
145
+ }
146
+ ) }),
147
+ type: p.TOOLTIP,
148
+ indicator: {
149
+ position: "top",
150
+ tooltipXCoOrdinates: -197,
151
+ tooltipYCoOrdinates: -12,
152
+ arrowXCoOrdinates: -110,
153
+ backgroundColor: "GREEN_4",
154
+ borderColor: "BLACK",
155
+ arrowColor: "BLACK",
156
+ width: 264,
157
+ arrowSize: 12,
158
+ tooltipItem: /* @__PURE__ */ o(
159
+ u,
160
+ {
161
+ text: `Homework is now easy to access and easy to ${N ? "complete" : "review"}!`,
162
+ buttonLabel: "Next",
163
+ onButtonClick: s
164
+ }
165
+ )
166
+ },
167
+ isActive: !1
168
+ },
169
+ {
170
+ originalElementToHighlightRef: i,
171
+ elementToHighlight: /* @__PURE__ */ o(g, { children: /* @__PURE__ */ o(
172
+ U,
173
+ {
174
+ isInQueue: !1,
175
+ userType: l,
176
+ header: X,
177
+ subHeader: _ || "",
178
+ nodeData: C[0],
179
+ renderAs: "homework",
180
+ studentId: a,
181
+ shouldOpenOnRight: !1
182
+ }
183
+ ) }),
184
+ type: p.TOOLTIP,
185
+ indicator: {
186
+ position: "top",
187
+ tooltipXCoOrdinates: -35,
188
+ tooltipYCoOrdinates: -7,
189
+ backgroundColor: "PURPLE_4",
190
+ borderColor: "BLACK",
191
+ arrowColor: "BLACK",
192
+ arrowXCoOrdinates: -97,
193
+ arrowSize: 12,
194
+ width: 264,
195
+ tooltipItem: /* @__PURE__ */ o(
196
+ u,
197
+ {
198
+ text: "Track homework status and their due dates.",
199
+ buttonLabel: "Next",
200
+ onButtonClick: s
201
+ }
202
+ )
203
+ },
204
+ isActive: !1
205
+ },
206
+ {
207
+ originalElementToHighlightRef: n,
208
+ elementToHighlight: /* @__PURE__ */ o(g, { children: /* @__PURE__ */ c(T, { $flexRowGapX: 1, children: [
209
+ /* @__PURE__ */ c(P, { $renderAs: "ac4-black", $color: "BLACK_T_60", children: [
210
+ "Recent Chapters (",
211
+ (x = h) == null ? void 0 : x.length,
212
+ ")"
213
+ ] }),
214
+ /* @__PURE__ */ o(v, { children: h.map((t, f) => /* @__PURE__ */ o(
215
+ H,
216
+ {
217
+ chapter: t,
218
+ onChapterClick: e,
219
+ itemIndex: f
220
+ },
221
+ t.id
222
+ )) })
223
+ ] }) }),
224
+ type: p.TOOLTIP,
225
+ indicator: {
226
+ position: "top",
227
+ tooltipXCoOrdinates: -200,
228
+ tooltipYCoOrdinates: -10,
229
+ backgroundColor: "YELLOW_4",
230
+ borderColor: "BLACK",
231
+ arrowColor: "BLACK",
232
+ arrowXCoOrdinates: -97,
233
+ arrowSize: 12,
234
+ width: 264,
235
+ tooltipItem: /* @__PURE__ */ o(
236
+ u,
237
+ {
238
+ text: "Access all your recent chapters in one place.",
239
+ buttonLabel: "Got it",
240
+ onButtonClick: A
241
+ }
242
+ )
243
+ },
244
+ isActive: !1
245
+ }
246
+ ];
247
+ O(r, $);
248
+ const R = setTimeout(() => {
249
+ var t;
250
+ clearTimeout(R), l === "STUDENT" ? window.scrollTo(0, 0) : (t = document.getElementById("tab-content-container")) == null || t.scrollTo(0, 0), document.body.style.overflow = "hidden", s();
251
+ }, 200);
252
+ w.current.push(R);
253
+ },
254
+ [A, e, s, r, O]
255
+ ), B = K(
256
+ () => ({
257
+ homepageRef: n,
258
+ homeworkRef: i,
259
+ startJourney: L
260
+ }),
261
+ [L]
262
+ );
263
+ return D(() => () => {
264
+ w.current.forEach((a) => clearTimeout(a)), w.current = [];
265
+ }, []), B;
266
+ };
267
+ export {
268
+ ae as useHomePageJourney
269
+ };
270
+ //# sourceMappingURL=use-home-page-journey.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-home-page-journey.js","sources":["../../../../../src/features/journey/hooks/use-home-page-journey/use-home-page-journey.tsx"],"sourcesContent":["import type { INodeDataProps } from '../../../chapters-v2/comps/node-card/node-card-types';\nimport type { IChapterDataProps } from '../../../chapters/chapter/chapter-types';\nimport type { TCourseStream } from '../../../milestone/create/milestone-create-types';\nimport type { IArrowTooltipProps } from '../../../ui/arrow-tooltip/arrow-tooltip-types';\nimport type { ICoachmarkProps } from '../../use-journey/journey-context-types';\nimport type { IHomepageStartJourneyProps } from './homepage-journey-types';\n\nimport { useCallback, useEffect, useMemo, useRef } from 'react';\n\nimport ChapterItem from '../../../chapters/chapters-list/chapter-item/chapter-item';\nimport HomeworkCard from '../../../homework/homework-card';\nimport HwCardListView from '../../../homework/hw-card-list/hw-card-list-view';\nimport MilestoneListContainer from '../../../milestone/milestone-list-container/milestone-list-container';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\nimport { JOURNEY_ID_STUDENT } from '../../journey-id/journey-id-student';\nimport { IndicatorType } from '../../use-journey/constants';\nimport { useJourney } from '../../use-journey/use-journey';\nimport { HOMEWORK_DETAILS } from './home-page-homeworks-mock';\nimport { RECENT_CHAPTERS } from './recent-chapters-mock';\nimport { ChaptersWrapper, ELementWrapper } from './styles';\nimport TooltipItem from './tooltip-item';\n\nexport const useHomePageJourney = () => {\n const journeyId = JOURNEY_ID_STUDENT.HOMEPAGE_JOURNEY;\n\n const homepageRef = useRef<HTMLDivElement>(null);\n const homeworkRef = useRef<HTMLDivElement>(null);\n const recentChaptersRef = useRef<HTMLDivElement>(null);\n const timerRefs = useRef<ReturnType<typeof setTimeout>[]>([]);\n const { nextCoachmark, setJourney, endJourney } = useJourney();\n\n const emptyFunction = useCallback(() => null, []);\n\n const handleEndJourney = useCallback(() => {\n endJourney(journeyId);\n document.body.style.overflow = 'unset';\n }, [endJourney, journeyId]);\n\n const handleNextCoachmark = useCallback(() => {\n nextCoachmark(journeyId, false, 0, true);\n }, [nextCoachmark, journeyId]);\n\n const startJourney = useCallback(\n ({ studentId, stream, userType }: IHomepageStartJourneyProps) => {\n const { title, subtext } = HOMEWORK_DETAILS[0] as INodeDataProps;\n const isStudent = userType === 'STUDENT';\n\n if (!homepageRef?.current || !homeworkRef?.current) {\n return;\n }\n\n const homepageSteps: ICoachmarkProps[] = [\n {\n originalElementToHighlightRef: homepageRef,\n isActive: false,\n type: IndicatorType.TOOLTIP,\n elementToHighlight: (\n <FlexView\n $flexGapX={2.5}\n $marginBottomX={8}\n $background=\"WHITE\"\n $widthX={47}\n $gutterX={1}\n >\n <HwCardListView\n userType={userType}\n studentId={studentId}\n isHwProcessing={false}\n hwDetails={HOMEWORK_DETAILS as INodeDataProps[]}\n onTestStart={emptyFunction}\n onNodeAttempt={emptyFunction}\n onTestPreview={emptyFunction}\n onNodeView={emptyFunction}\n onTestReview={emptyFunction}\n onNodeReview={emptyFunction}\n onNodeUnassign={emptyFunction}\n />\n <FlexView $flexRowGapX={1} ref={recentChaptersRef}>\n <Text $renderAs=\"ac4-black\" $color=\"BLACK_T_60\">\n Recent Chapters ({RECENT_CHAPTERS?.length})\n </Text>\n <ChaptersWrapper>\n {RECENT_CHAPTERS.map((chapter, idx) => (\n <ChapterItem\n key={chapter.id}\n chapter={chapter as unknown as IChapterDataProps}\n onChapterClick={emptyFunction}\n itemIndex={idx}\n />\n ))}\n </ChaptersWrapper>\n </FlexView>\n <MilestoneListContainer\n milestoneType=\"ACTIVE\"\n activeMilestoneId={''}\n activeTabId={''}\n canCreatePlan={false}\n courseStream={stream as TCourseStream}\n isClassOngoing={false}\n isStudentPresent={false}\n parentName={''}\n studentId={studentId}\n studentName={''}\n teacherName={''}\n userType={userType}\n //* Callbacks\n onAddChapter={emptyFunction}\n onAddOutcome={emptyFunction}\n onChapterClick={emptyFunction}\n onCreatePlan={emptyFunction}\n onDelete={emptyFunction}\n onDraftPublish={emptyFunction}\n onEdit={emptyFunction}\n onExpandPastMilestones={emptyFunction}\n onNodeView={emptyFunction}\n onNodeReview={emptyFunction}\n onWidgetTabSelection={emptyFunction}\n //* Resource callbacks\n onAssignResources={emptyFunction}\n onNodeReset={emptyFunction}\n onNodeUnassign={emptyFunction}\n //* Tests callbacks\n onCreateMilestoneTest={emptyFunction}\n onTestPreview={emptyFunction}\n onTestReview={emptyFunction}\n />\n </FlexView>\n ),\n indicator: {\n position: 'top',\n tooltipXCoOrdinates: 0,\n tooltipYCoOrdinates: 0,\n backgroundColor: 'BLUE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n arrowSize: 12,\n width: 264,\n tooltipItem: (\n <TooltipItem\n text={`Welcome to the all new ${isStudent ? 'learning' : 'tutoring'} homepage.`}\n buttonLabel=\"Next\"\n onButtonClick={handleNextCoachmark}\n />\n ),\n } as IArrowTooltipProps,\n },\n {\n originalElementToHighlightRef: homeworkRef,\n elementToHighlight: (\n <ELementWrapper>\n <HwCardListView\n userType={userType}\n studentId={studentId}\n isHwProcessing={false}\n hwDetails={HOMEWORK_DETAILS as INodeDataProps[]}\n onTestStart={emptyFunction}\n onNodeAttempt={emptyFunction}\n onTestPreview={emptyFunction}\n onNodeView={emptyFunction}\n onTestReview={emptyFunction}\n onNodeReview={emptyFunction}\n onNodeUnassign={emptyFunction}\n />\n </ELementWrapper>\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n position: 'top',\n tooltipXCoOrdinates: -197,\n tooltipYCoOrdinates: -12,\n arrowXCoOrdinates: -110,\n backgroundColor: 'GREEN_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n width: 264,\n arrowSize: 12,\n tooltipItem: (\n <TooltipItem\n text={`Homework is now easy to access and easy to ${\n isStudent ? 'complete' : 'review'\n }!`}\n buttonLabel=\"Next\"\n onButtonClick={handleNextCoachmark}\n />\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n {\n originalElementToHighlightRef: homeworkRef,\n elementToHighlight: (\n <ELementWrapper>\n <HomeworkCard\n isInQueue={false}\n userType={userType}\n header={title}\n subHeader={subtext || ''}\n nodeData={HOMEWORK_DETAILS[0] as INodeDataProps}\n renderAs=\"homework\"\n studentId={studentId}\n shouldOpenOnRight={false}\n />\n </ELementWrapper>\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n position: 'top',\n tooltipXCoOrdinates: -35,\n tooltipYCoOrdinates: -7,\n backgroundColor: 'PURPLE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n arrowXCoOrdinates: -97,\n arrowSize: 12,\n width: 264,\n tooltipItem: (\n <TooltipItem\n text=\"Track homework status and their due dates.\"\n buttonLabel=\"Next\"\n onButtonClick={handleNextCoachmark}\n />\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n {\n originalElementToHighlightRef: homepageRef,\n elementToHighlight: (\n <ELementWrapper>\n <FlexView $flexRowGapX={1}>\n <Text $renderAs=\"ac4-black\" $color=\"BLACK_T_60\">\n Recent Chapters ({RECENT_CHAPTERS?.length})\n </Text>\n <ChaptersWrapper>\n {RECENT_CHAPTERS.map((chapter, idx) => (\n <ChapterItem\n key={chapter.id}\n chapter={chapter as unknown as IChapterDataProps}\n onChapterClick={emptyFunction}\n itemIndex={idx}\n />\n ))}\n </ChaptersWrapper>\n </FlexView>\n </ELementWrapper>\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n position: 'top',\n tooltipXCoOrdinates: -200,\n tooltipYCoOrdinates: -10,\n backgroundColor: 'YELLOW_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n arrowXCoOrdinates: -97,\n arrowSize: 12,\n width: 264,\n tooltipItem: (\n <TooltipItem\n text=\"Access all your recent chapters in one place.\"\n buttonLabel=\"Got it\"\n onButtonClick={handleEndJourney}\n />\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n ];\n\n setJourney(journeyId, homepageSteps);\n\n const delayBeforeStart = setTimeout(() => {\n clearTimeout(delayBeforeStart);\n if (userType === 'STUDENT') {\n window.scrollTo(0, 0);\n } else {\n document.getElementById('tab-content-container')?.scrollTo(0, 0);\n }\n document.body.style.overflow = 'hidden';\n handleNextCoachmark();\n }, 200);\n\n timerRefs.current.push(delayBeforeStart); // Store to cleanup later\n },\n [handleEndJourney, emptyFunction, handleNextCoachmark, journeyId, setJourney],\n );\n\n const data = useMemo(\n () => ({\n homepageRef,\n homeworkRef,\n startJourney,\n }),\n [startJourney],\n );\n\n // Cleanup on unmount\n useEffect(() => {\n return () => {\n timerRefs.current.forEach(timer => clearTimeout(timer));\n timerRefs.current = [];\n };\n }, []);\n\n return data;\n};\n"],"names":["useHomePageJourney","journeyId","JOURNEY_ID_STUDENT","homepageRef","useRef","homeworkRef","recentChaptersRef","timerRefs","nextCoachmark","setJourney","endJourney","useJourney","emptyFunction","useCallback","handleEndJourney","handleNextCoachmark","startJourney","studentId","stream","userType","title","subtext","HOMEWORK_DETAILS","isStudent","homepageSteps","IndicatorType","jsxs","FlexView","jsx","HwCardListView","Text","_a","RECENT_CHAPTERS","ChaptersWrapper","chapter","idx","ChapterItem","MilestoneListContainer","TooltipItem","ELementWrapper","HomeworkCard","_b","delayBeforeStart","data","useMemo","useEffect","timer"],"mappings":";;;;;;;;;;;;;;;AAuBO,MAAMA,KAAq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E_STREAK_UPDATE_JOURNEY", R.CIRCLE_TUTORIAL_JOURNEY = "CIRCLE_TUTORIAL_JOURNEY", R.CIRCLE_TABLES_INTRO_JOURNEY = "CIRCLE_TABLES_INTRO_JOURNEY", R.CIRCLE_STREAK_REDUCTION_JOURNEY = "CIRCLE_STREAK_REDUCTION_JOURNEY", R))(E || {});
1
+ var E = /* @__PURE__ */ ((R) => (R.CIRCLE_ACTIVITIES_INTRO_JOURNEY = "CIRCLE_ACTIVITIES_INTRO_JOURNEY", R.CIRCLE_LEADERBOARD_INTRO_JOURNEY = "CIRCLE_LEADERBOARD_INTRO_JOURNEY", R.CIRCLE_POINTS_REWARD_JOURNEY = "CIRCLE_POINTS_REWARD_JOURNEY", R.CIRCLE_STREAK_UPDATE_JOURNEY = "CIRCLE_STREAK_UPDATE_JOURNEY", R.CIRCLE_TUTORIAL_JOURNEY = "CIRCLE_TUTORIAL_JOURNEY", R.CIRCLE_TABLES_INTRO_JOURNEY = "CIRCLE_TABLES_INTRO_JOURNEY", R.CIRCLE_STREAK_REDUCTION_JOURNEY = "CIRCLE_STREAK_REDUCTION_JOURNEY", R.HOMEPAGE_JOURNEY = "HOMEPAGE_JOURNEY", R.CHAPTER_PAGE_JOURNEY = "CHAPTER_PAGE_JOURNEY", R))(E || {});
2
2
  export {
3
3
  E as JOURNEY_ID_STUDENT
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"journey-id-student.js","sources":["../../../../src/features/journey/journey-id/journey-id-student.ts"],"sourcesContent":["export enum JOURNEY_ID_STUDENT {\n CIRCLE_ACTIVITIES_INTRO_JOURNEY = 'CIRCLE_ACTIVITIES_INTRO_JOURNEY',\n CIRCLE_LEADERBOARD_INTRO_JOURNEY = 'CIRCLE_LEADERBOARD_INTRO_JOURNEY',\n CIRCLE_POINTS_REWARD_JOURNEY = 'CIRCLE_POINTS_REWARD_JOURNEY',\n CIRCLE_STREAK_UPDATE_JOURNEY = 'CIRCLE_STREAK_UPDATE_JOURNEY',\n CIRCLE_TUTORIAL_JOURNEY = 'CIRCLE_TUTORIAL_JOURNEY',\n CIRCLE_TABLES_INTRO_JOURNEY = 'CIRCLE_TABLES_INTRO_JOURNEY',\n\n // TODO: Deprecate bottom journeys, they are not actually journeys\n CIRCLE_STREAK_REDUCTION_JOURNEY = 'CIRCLE_STREAK_REDUCTION_JOURNEY',\n}\n"],"names":["JOURNEY_ID_STUDENT"],"mappings":"AAAY,IAAAA,sBAAAA,OACVA,EAAA,kCAAkC,mCAClCA,EAAA,mCAAmC,oCACnCA,EAAA,+BAA+B,gCAC/BA,EAAA,+BAA+B,gCAC/BA,EAAA,0BAA0B,2BAC1BA,EAAA,8BAA8B,+BAG9BA,EAAA,kCAAkC,mCATxBA,IAAAA,KAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"journey-id-student.js","sources":["../../../../src/features/journey/journey-id/journey-id-student.ts"],"sourcesContent":["export enum JOURNEY_ID_STUDENT {\n CIRCLE_ACTIVITIES_INTRO_JOURNEY = 'CIRCLE_ACTIVITIES_INTRO_JOURNEY',\n CIRCLE_LEADERBOARD_INTRO_JOURNEY = 'CIRCLE_LEADERBOARD_INTRO_JOURNEY',\n CIRCLE_POINTS_REWARD_JOURNEY = 'CIRCLE_POINTS_REWARD_JOURNEY',\n CIRCLE_STREAK_UPDATE_JOURNEY = 'CIRCLE_STREAK_UPDATE_JOURNEY',\n CIRCLE_TUTORIAL_JOURNEY = 'CIRCLE_TUTORIAL_JOURNEY',\n CIRCLE_TABLES_INTRO_JOURNEY = 'CIRCLE_TABLES_INTRO_JOURNEY',\n\n // TODO: Deprecate bottom journeys, they are not actually journeys\n CIRCLE_STREAK_REDUCTION_JOURNEY = 'CIRCLE_STREAK_REDUCTION_JOURNEY',\n HOMEPAGE_JOURNEY = 'HOMEPAGE_JOURNEY',\n CHAPTER_PAGE_JOURNEY = 'CHAPTER_PAGE_JOURNEY',\n}\n"],"names":["JOURNEY_ID_STUDENT"],"mappings":"AAAY,IAAAA,sBAAAA,OACVA,EAAA,kCAAkC,mCAClCA,EAAA,mCAAmC,oCACnCA,EAAA,+BAA+B,gCAC/BA,EAAA,+BAA+B,gCAC/BA,EAAA,0BAA0B,2BAC1BA,EAAA,8BAA8B,+BAG9BA,EAAA,kCAAkC,mCAClCA,EAAA,mBAAmB,oBACnBA,EAAA,uBAAuB,wBAXbA,IAAAA,KAAA,CAAA,CAAA;"}
@@ -0,0 +1,5 @@
1
+ var P = /* @__PURE__ */ ((E) => (E.HOMEPAGE_JOURNEY = "HOMEPAGE_JOURNEY", E.CHAPTER_PAGE_JOURNEY = "CHAPTER_PAGE_JOURNEY", E))(P || {});
2
+ export {
3
+ P as JOURNEY_ID_TEACHER
4
+ };
5
+ //# sourceMappingURL=journey-id-teacher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"journey-id-teacher.js","sources":["../../../../src/features/journey/journey-id/journey-id-teacher.ts"],"sourcesContent":["export enum JOURNEY_ID_TEACHER {\n HOMEPAGE_JOURNEY = 'HOMEPAGE_JOURNEY',\n CHAPTER_PAGE_JOURNEY = 'CHAPTER_PAGE_JOURNEY',\n}\n"],"names":["JOURNEY_ID_TEACHER"],"mappings":"AAAY,IAAAA,sBAAAA,OACVA,EAAA,mBAAmB,oBACnBA,EAAA,uBAAuB,wBAFbA,IAAAA,KAAA,CAAA,CAAA;"}