@cuemath/leap 2.9.9-as6 → 2.9.10

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 (307) hide show
  1. package/dist/assets/illustrations/illustrations.js +0 -9
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/line-icons/icons/bin2.js +8 -7
  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/lottie/lottie.js +1 -9
  7. package/dist/assets/lottie/lottie.js.map +1 -1
  8. package/dist/constants/api.js +2 -3
  9. package/dist/constants/api.js.map +1 -1
  10. package/dist/features/analytics-events/platform-events-student.js +3 -3
  11. package/dist/features/analytics-events/platform-events-student.js.map +1 -1
  12. package/dist/features/analytics-events/whitelist-events.js +11 -13
  13. package/dist/features/analytics-events/whitelist-events.js.map +1 -1
  14. package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js +33 -99
  15. package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js.map +1 -1
  16. package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js +49 -92
  17. package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js.map +1 -1
  18. package/dist/features/chapters/chapters-list/chapters-list-styled.js +5 -5
  19. package/dist/features/chapters/chapters-list/chapters-list-styled.js.map +1 -1
  20. package/dist/features/chapters/chapters-list/chapters-list.js +70 -64
  21. package/dist/features/chapters/chapters-list/chapters-list.js.map +1 -1
  22. package/dist/features/circle-games/hooks/use-circle-sounds/use-circle-sounds.js +104 -74
  23. package/dist/features/circle-games/hooks/use-circle-sounds/use-circle-sounds.js.map +1 -1
  24. package/dist/features/circle-games/sign-up/comp/circular-steps/circular-steps-styled.js +4 -4
  25. package/dist/features/circle-games/sign-up/comp/circular-steps/circular-steps-styled.js.map +1 -1
  26. package/dist/features/circle-games/sign-up/constants.js +7 -7
  27. package/dist/features/circle-games/sign-up/constants.js.map +1 -1
  28. package/dist/features/communication/pub-sub/constants.js +6 -12
  29. package/dist/features/communication/pub-sub/constants.js.map +1 -1
  30. package/dist/features/journey/comps/coachmark/coachmark-styled.js +8 -26
  31. package/dist/features/journey/comps/coachmark/coachmark-styled.js.map +1 -1
  32. package/dist/features/journey/comps/coachmark/coachmark.js +24 -24
  33. package/dist/features/journey/comps/coachmark/coachmark.js.map +1 -1
  34. package/dist/features/journey/journey-id/journey-id-student.js +1 -1
  35. package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
  36. package/dist/features/journey/use-journey/journey-context-provider.js +28 -36
  37. package/dist/features/journey/use-journey/journey-context-provider.js.map +1 -1
  38. package/dist/features/journey/use-journey/journey-styled.js +5 -10
  39. package/dist/features/journey/use-journey/journey-styled.js.map +1 -1
  40. package/dist/features/milestone/create/api/goal-submit.js +1 -1
  41. package/dist/features/milestone/create/api/goal-submit.js.map +1 -1
  42. package/dist/features/milestone/create/comps/chapter-item/chapter-item.js +49 -42
  43. package/dist/features/milestone/create/comps/chapter-item/chapter-item.js.map +1 -1
  44. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step-styled.js +4 -12
  45. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step-styled.js.map +1 -1
  46. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js +105 -128
  47. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js.map +1 -1
  48. package/dist/features/milestone/create/comps/milestone-progress-v2/milestone-progress-v2.js +92 -0
  49. package/dist/features/milestone/create/comps/milestone-progress-v2/milestone-progress-v2.js.map +1 -0
  50. package/dist/features/milestone/create/comps/milestone-progress-v2/styled.js +25 -0
  51. package/dist/features/milestone/create/comps/milestone-progress-v2/styled.js.map +1 -0
  52. package/dist/features/milestone/create/comps/sheets-list/sheets-list-styled.js +20 -14
  53. package/dist/features/milestone/create/comps/sheets-list/sheets-list-styled.js.map +1 -1
  54. package/dist/features/milestone/create/comps/sheets-list/sheets-list.js +50 -26
  55. package/dist/features/milestone/create/comps/sheets-list/sheets-list.js.map +1 -1
  56. package/dist/features/milestone/create/milestone-create.js +43 -49
  57. package/dist/features/milestone/create/milestone-create.js.map +1 -1
  58. package/dist/features/milestone/create/utils/index.js +38 -33
  59. package/dist/features/milestone/create/utils/index.js.map +1 -1
  60. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/get-milestone.js +1 -1
  61. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/get-milestone.js.map +1 -1
  62. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/patch-goal-plan.js +1 -1
  63. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/patch-goal-plan.js.map +1 -1
  64. package/dist/features/milestone/edit/comps/edit-milestone-modal/index.js +53 -51
  65. package/dist/features/milestone/edit/comps/edit-milestone-modal/index.js.map +1 -1
  66. package/dist/features/milestone/edit/goal-drafts/goal-draft-edit-container.js +40 -42
  67. package/dist/features/milestone/edit/goal-drafts/goal-draft-edit-container.js.map +1 -1
  68. package/dist/features/milestone/edit/goal-edit-container.js +62 -64
  69. package/dist/features/milestone/edit/goal-edit-container.js.map +1 -1
  70. package/dist/features/milestone/edit/goal-edit-helpers.js +53 -50
  71. package/dist/features/milestone/edit/goal-edit-helpers.js.map +1 -1
  72. package/dist/features/milestone/edit/milestone-edit-container.js +52 -54
  73. package/dist/features/milestone/edit/milestone-edit-container.js.map +1 -1
  74. package/dist/features/milestone/milestone-list-container/api/get-milestone-resources.js +1 -1
  75. package/dist/features/milestone/milestone-list-container/api/get-milestone-resources.js.map +1 -1
  76. package/dist/features/milestone/milestone-list-container/api/get-milestones.js +17 -9
  77. package/dist/features/milestone/milestone-list-container/api/get-milestones.js.map +1 -1
  78. package/dist/features/milestone/milestone-list-container/api/get-tests-list.js +1 -1
  79. package/dist/features/milestone/milestone-list-container/api/get-tests-list.js.map +1 -1
  80. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js +105 -138
  81. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js.map +1 -1
  82. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element-styled.js +13 -0
  83. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element-styled.js.map +1 -0
  84. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element.js +38 -0
  85. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element.js.map +1 -0
  86. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/goals/goal-action-ctas.js +123 -107
  87. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/goals/goal-action-ctas.js.map +1 -1
  88. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js +176 -157
  89. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js.map +1 -1
  90. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs-styled.js +10 -24
  91. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs-styled.js.map +1 -1
  92. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js +86 -80
  93. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js.map +1 -1
  94. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-utils.js +22 -10
  95. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-utils.js.map +1 -1
  96. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-status.js +53 -0
  97. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-status.js.map +1 -0
  98. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-styled.js +37 -70
  99. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-styled.js.map +1 -1
  100. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js +176 -114
  101. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js.map +1 -1
  102. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-info.js +25 -0
  103. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-info.js.map +1 -0
  104. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-rank.js +16 -29
  105. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-rank.js.map +1 -1
  106. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-styled.js +25 -17
  107. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-styled.js.map +1 -1
  108. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome.js +35 -23
  109. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome.js.map +1 -1
  110. package/dist/features/milestone/milestone-list-container/milestone-list-container.js +113 -110
  111. package/dist/features/milestone/milestone-list-container/milestone-list-container.js.map +1 -1
  112. package/dist/features/milestone/milestone-resources/resources-assign/api/goal-resource-assign.js +1 -1
  113. package/dist/features/milestone/milestone-resources/resources-assign/api/goal-resource-assign.js.map +1 -1
  114. package/dist/features/milestone/milestone-resources/resources-assign/resources-assign.js +8 -8
  115. package/dist/features/milestone/milestone-resources/resources-assign/resources-assign.js.map +1 -1
  116. package/dist/features/milestone/milestone-resources/resources-list/resources-list-styled.js +1 -1
  117. package/dist/features/milestone/milestone-resources/resources-list/resources-list-styled.js.map +1 -1
  118. package/dist/features/milestone/milestone-resources/resources-list/resources-list.js +113 -116
  119. package/dist/features/milestone/milestone-resources/resources-list/resources-list.js.map +1 -1
  120. package/dist/features/milestone/milestone-tests/tests-creation/api/test-sheet-assign.js +5 -5
  121. package/dist/features/milestone/milestone-tests/tests-creation/api/test-sheet-assign.js.map +1 -1
  122. package/dist/features/milestone/milestone-tests/tests-creation/test-stages/chapter-selection/chapter-item/chapter-item.js.map +1 -1
  123. package/dist/features/milestone/milestone-tests/tests-creation/tests-creation.js +50 -46
  124. package/dist/features/milestone/milestone-tests/tests-creation/tests-creation.js.map +1 -1
  125. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-cta.js +71 -0
  126. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-cta.js.map +1 -0
  127. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-styled.js +31 -0
  128. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-styled.js.map +1 -0
  129. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js +38 -0
  130. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js.map +1 -0
  131. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item.js +79 -0
  132. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item.js.map +1 -0
  133. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list-styled.js +18 -0
  134. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list-styled.js.map +1 -0
  135. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js +51 -0
  136. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js.map +1 -0
  137. package/dist/features/milestone/milestone-tests/tests-list/tests-list-styled.js +11 -0
  138. package/dist/features/milestone/milestone-tests/tests-list/tests-list-styled.js.map +1 -0
  139. package/dist/features/milestone/milestone-tests/tests-list/tests-list.js +135 -0
  140. package/dist/features/milestone/milestone-tests/tests-list/tests-list.js.map +1 -0
  141. package/dist/features/sheets/resources-list/resource-item/styled.js +1 -1
  142. package/dist/features/sheets/resources-list/resource-item/styled.js.map +1 -1
  143. package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/teacher-actions/teacher-actions-constant.js +3 -4
  144. package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/teacher-actions/teacher-actions-constant.js.map +1 -1
  145. package/dist/features/trial-session/comps/learning-plan/index.js.map +1 -1
  146. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +29 -30
  147. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
  148. package/dist/features/ui/constants/z-index.js +1 -1
  149. package/dist/features/ui/constants/z-index.js.map +1 -1
  150. package/dist/features/ui/context-menu/context-menu-styled.js +14 -28
  151. package/dist/features/ui/context-menu/context-menu-styled.js.map +1 -1
  152. package/dist/features/ui/context-menu/context-menu.js +15 -30
  153. package/dist/features/ui/context-menu/context-menu.js.map +1 -1
  154. package/dist/features/ui/lottie-animation/lottie-animation.js +13 -19
  155. package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
  156. package/dist/features/ui/theme/button.js +107 -22
  157. package/dist/features/ui/theme/button.js.map +1 -1
  158. package/dist/features/worksheet/worksheet/hooks/use-create-imperative-handle.js +96 -78
  159. package/dist/features/worksheet/worksheet/hooks/use-create-imperative-handle.js.map +1 -1
  160. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js +79 -47
  161. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js.map +1 -1
  162. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +150 -147
  163. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
  164. package/dist/features/worksheet/worksheet/worksheet-types.js.map +1 -1
  165. package/dist/features/worksheet/worksheet/worksheet.js +325 -300
  166. package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
  167. package/dist/index.d.ts +46 -351
  168. package/dist/index.js +471 -503
  169. package/dist/index.js.map +1 -1
  170. package/package.json +1 -1
  171. package/dist/assets/line-icons/icons/alarm.js +0 -41
  172. package/dist/assets/line-icons/icons/alarm.js.map +0 -1
  173. package/dist/assets/line-icons/icons/dart.js +0 -23
  174. package/dist/assets/line-icons/icons/dart.js.map +0 -1
  175. package/dist/assets/line-icons/icons/exclamation.js +0 -26
  176. package/dist/assets/line-icons/icons/exclamation.js.map +0 -1
  177. package/dist/assets/line-icons/icons/home2.js +0 -25
  178. package/dist/assets/line-icons/icons/home2.js.map +0 -1
  179. package/dist/assets/line-icons/icons/important.js +0 -23
  180. package/dist/assets/line-icons/icons/important.js.map +0 -1
  181. package/dist/assets/line-icons/icons/puzzle.js +0 -25
  182. package/dist/assets/line-icons/icons/puzzle.js.map +0 -1
  183. package/dist/assets/line-icons/icons/recap.js +0 -32
  184. package/dist/assets/line-icons/icons/recap.js.map +0 -1
  185. package/dist/assets/line-icons/icons/skip-colored.js +0 -43
  186. package/dist/assets/line-icons/icons/skip-colored.js.map +0 -1
  187. package/dist/assets/line-icons/icons/status.js +0 -41
  188. package/dist/assets/line-icons/icons/status.js.map +0 -1
  189. package/dist/assets/line-icons/icons/testtube.js +0 -33
  190. package/dist/assets/line-icons/icons/testtube.js.map +0 -1
  191. package/dist/features/chapters-v2/api/chapter.js +0 -10
  192. package/dist/features/chapters-v2/api/chapter.js.map +0 -1
  193. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js +0 -112
  194. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js.map +0 -1
  195. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections-styled.js +0 -35
  196. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections-styled.js.map +0 -1
  197. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js +0 -83
  198. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js.map +0 -1
  199. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner-styled.js +0 -90
  200. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner-styled.js.map +0 -1
  201. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner.js +0 -98
  202. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner.js.map +0 -1
  203. package/dist/features/chapters-v2/chapter-details/chapter-details-styled.js +0 -51
  204. package/dist/features/chapters-v2/chapter-details/chapter-details-styled.js.map +0 -1
  205. package/dist/features/chapters-v2/chapter-details/chapter-details.js +0 -129
  206. package/dist/features/chapters-v2/chapter-details/chapter-details.js.map +0 -1
  207. package/dist/features/chapters-v2/comps/node-card/border-path-animation.js +0 -13
  208. package/dist/features/chapters-v2/comps/node-card/border-path-animation.js.map +0 -1
  209. package/dist/features/chapters-v2/comps/node-card/node-card-styled.js +0 -159
  210. package/dist/features/chapters-v2/comps/node-card/node-card-styled.js.map +0 -1
  211. package/dist/features/chapters-v2/comps/node-card/node-card-tags.js +0 -16
  212. package/dist/features/chapters-v2/comps/node-card/node-card-tags.js.map +0 -1
  213. package/dist/features/chapters-v2/comps/node-card/node-card.js +0 -12
  214. package/dist/features/chapters-v2/comps/node-card/node-card.js.map +0 -1
  215. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-option.js +0 -30
  216. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-option.js.map +0 -1
  217. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options-styled.js +0 -32
  218. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options-styled.js.map +0 -1
  219. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options.js +0 -9
  220. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options.js.map +0 -1
  221. package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js +0 -189
  222. package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js.map +0 -1
  223. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js +0 -194
  224. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js.map +0 -1
  225. package/dist/features/chapters-v2/comps/tag/tag-styled.js +0 -13
  226. package/dist/features/chapters-v2/comps/tag/tag-styled.js.map +0 -1
  227. package/dist/features/chapters-v2/comps/tag/tag.js +0 -28
  228. package/dist/features/chapters-v2/comps/tag/tag.js.map +0 -1
  229. package/dist/features/chapters-v2/constants/block-constants.js +0 -20
  230. package/dist/features/chapters-v2/constants/block-constants.js.map +0 -1
  231. package/dist/features/chapters-v2/constants/node-constants.js +0 -14
  232. package/dist/features/chapters-v2/constants/node-constants.js.map +0 -1
  233. package/dist/features/chapters-v2/utils/index.js +0 -38
  234. package/dist/features/chapters-v2/utils/index.js.map +0 -1
  235. package/dist/features/chapters-v2/utils/node-card-utils.js +0 -177
  236. package/dist/features/chapters-v2/utils/node-card-utils.js.map +0 -1
  237. package/dist/features/homework/card-menu-option.js +0 -28
  238. package/dist/features/homework/card-menu-option.js.map +0 -1
  239. package/dist/features/homework/card-menu-options.js +0 -22
  240. package/dist/features/homework/card-menu-options.js.map +0 -1
  241. package/dist/features/homework/card-title.js +0 -16
  242. package/dist/features/homework/card-title.js.map +0 -1
  243. package/dist/features/homework/homework-analytics-events.js +0 -10
  244. package/dist/features/homework/homework-analytics-events.js.map +0 -1
  245. package/dist/features/homework/homework-card-view.js +0 -143
  246. package/dist/features/homework/homework-card-view.js.map +0 -1
  247. package/dist/features/homework/homework-card.js +0 -245
  248. package/dist/features/homework/homework-card.js.map +0 -1
  249. package/dist/features/homework/hw-card-list/api/get-homeworks.js +0 -10
  250. package/dist/features/homework/hw-card-list/api/get-homeworks.js.map +0 -1
  251. package/dist/features/homework/hw-card-list/hw-card-list-styled.js +0 -63
  252. package/dist/features/homework/hw-card-list/hw-card-list-styled.js.map +0 -1
  253. package/dist/features/homework/hw-card-list/hw-card-list-view.js +0 -157
  254. package/dist/features/homework/hw-card-list/hw-card-list-view.js.map +0 -1
  255. package/dist/features/homework/hw-card-list/hw-card-list.js +0 -67
  256. package/dist/features/homework/hw-card-list/hw-card-list.js.map +0 -1
  257. package/dist/features/homework/node-progress.js +0 -29
  258. package/dist/features/homework/node-progress.js.map +0 -1
  259. package/dist/features/homework/styles.js +0 -130
  260. package/dist/features/homework/styles.js.map +0 -1
  261. package/dist/features/homework/utils.js +0 -48
  262. package/dist/features/homework/utils.js.map +0 -1
  263. package/dist/features/journey/hooks/use-chapter-journey.js +0 -194
  264. package/dist/features/journey/hooks/use-chapter-journey.js.map +0 -1
  265. package/dist/features/journey/hooks/use-home-page-journey.js +0 -279
  266. package/dist/features/journey/hooks/use-home-page-journey.js.map +0 -1
  267. package/dist/features/journey/journey-id/journey-id-teacher.js +0 -5
  268. package/dist/features/journey/journey-id/journey-id-teacher.js.map +0 -1
  269. package/dist/features/journey/mocks/chapter-page-journey-mock-data.js +0 -587
  270. package/dist/features/journey/mocks/chapter-page-journey-mock-data.js.map +0 -1
  271. package/dist/features/journey/mocks/home-page-homwworks-mock.js +0 -268
  272. package/dist/features/journey/mocks/home-page-homwworks-mock.js.map +0 -1
  273. package/dist/features/journey/mocks/recent-chapters-mock.js +0 -531
  274. package/dist/features/journey/mocks/recent-chapters-mock.js.map +0 -1
  275. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js +0 -165
  276. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js.map +0 -1
  277. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view-styled.js +0 -25
  278. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view-styled.js.map +0 -1
  279. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js +0 -87
  280. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js.map +0 -1
  281. package/dist/features/recent-chapters/api/get-recent-chapters.js +0 -9
  282. package/dist/features/recent-chapters/api/get-recent-chapters.js.map +0 -1
  283. package/dist/features/recent-chapters/recent-chapters-styled.js +0 -16
  284. package/dist/features/recent-chapters/recent-chapters-styled.js.map +0 -1
  285. package/dist/features/recent-chapters/recent-chapters.js +0 -39
  286. package/dist/features/recent-chapters/recent-chapters.js.map +0 -1
  287. package/dist/features/sheet-v2/resource-list/resource-list.js +0 -45
  288. package/dist/features/sheet-v2/resource-list/resource-list.js.map +0 -1
  289. package/dist/node_modules/date-fns/differenceInDays.js +0 -17
  290. package/dist/node_modules/date-fns/differenceInDays.js.map +0 -1
  291. package/dist/static/chapter-header-bg-2.c8d96894.svg +0 -1
  292. package/dist/static/competitive-arena.b9c40801.json +0 -1
  293. package/dist/static/learn.71b13323.json +0 -1
  294. package/dist/static/node-custom-test-bg.d3b757be.svg +0 -1
  295. package/dist/static/node-learn-bg.b61f815c.svg +0 -1
  296. package/dist/static/node-practice-bg.16cbaf2a.svg +0 -1
  297. package/dist/static/node-project-bg.e6a33e28.svg +0 -1
  298. package/dist/static/node-puzzle-bg.3422135c.svg +0 -1
  299. package/dist/static/node-recap-bg.546154e4.svg +0 -1
  300. package/dist/static/node-test-prep-bg.42c0b9c4.svg +0 -1
  301. package/dist/static/node-video-bg.3df3f73a.svg +0 -1
  302. package/dist/static/practice.158dd488.json +0 -1
  303. package/dist/static/project.eb665827.json +0 -1
  304. package/dist/static/puzzle.b298c7e4.json +0 -1
  305. package/dist/static/recap.0dd2c1e2.json +0 -1
  306. package/dist/static/test.803d6036.json +0 -1
  307. package/dist/static/video.b41451e2.json +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"block-sections-styled.js","sources":["../../../../../src/features/chapters-v2/chapter-details/block-sections/block-sections-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\ninterface IBlockSectionWrapper {\n $lastBlock?: boolean;\n}\n\nconst BlockSectionWrapper = styled(FlexView)<IBlockSectionWrapper>(({ $lastBlock }) => {\n return `\n padding-top: 32px;\n ${$lastBlock ? 'padding-bottom: 32px;' : 'padding-bottom: 0px;'}\n `;\n});\n\ninterface IBlockSheetContainer {\n $opacity?: number;\n}\n\nconst BlockSheetContainer = styled.div<IBlockSheetContainer>(({ $opacity }) => {\n return `\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n grid-row-gap: 12px;\n grid-column-gap: 16px;\n opacity: ${$opacity ?? 1};\n\n `;\n});\n\nconst BlockOptionsWrapper = styled(FlexView)(({ theme }) => {\n return `\n cursor: pointer;\n \n &:hover {\n border-radius: 50%;\n background: ${theme.colors.WHITE_4}; \n }\n `;\n});\n\nconst ChapterDetailsWrapper = styled(FlexView)`\n min-height: calc(\n 100vh - 168px - 56px + 64px\n ); // 168 chapter banner, 56 header height , 64 bottom padding\n\n &:last-child {\n padding-bottom: 64px;\n }\n`;\n\nexport { BlockSectionWrapper, ChapterDetailsWrapper, BlockSheetContainer, BlockOptionsWrapper };\n"],"names":["BlockSectionWrapper","styled","FlexView","$lastBlock","BlockSheetContainer","$opacity","BlockOptionsWrapper","theme","ChapterDetailsWrapper"],"mappings":";;AAQA,MAAMA,IAAsBC,EAAOC,CAAQ,EAAwB,CAAC,EAAE,YAAAC,QAC7D;AAAA;AAAA,MAEHA,IAAa,0BAA0B,sBAAsB;AAAA,GAElE,GAMKC,IAAsBH,EAAO,IAA0B,CAAC,EAAE,UAAAI,QACvD;AAAA;AAAA;AAAA;AAAA;AAAA,eAKMA,KAAY,CAAC;AAAA;AAAA,GAG3B,GAEKC,IAAsBL,EAAOC,CAAQ,EAAE,CAAC,EAAE,OAAAK,QACvC;AAAA;AAAA;AAAA;AAAA;AAAA,oBAKWA,EAAM,OAAO,OAAO;AAAA;AAAA,GAGvC,GAEKC,IAAwBP,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
@@ -1,83 +0,0 @@
1
- import { jsxs as I, jsx as s } from "react/jsx-runtime";
2
- import { memo as w, useMemo as x } from "react";
3
- import h from "./block-section-view.js";
4
- import { ChapterDetailsWrapper as L } from "./block-sections-styled.js";
5
- const E = w((g) => {
6
- const {
7
- blocks: t,
8
- imageHue: n,
9
- userType: l,
10
- coreBlocksRef: _,
11
- onNodeAttempt: i,
12
- onNodeAttemptLocationChange: r,
13
- onNodeMarkAsDone: c,
14
- onNodeReattempt: p,
15
- onNodeReview: d,
16
- onNodeView: k,
17
- onBlockSkipUnskip: m
18
- } = g;
19
- let a = 0;
20
- const { goalBlocks: u, nonGoalBlocks: B } = x(
21
- () => t.reduce(
22
- (o, e) => (e.section_code === "GOALS" || e.section_code === "READINESS" ? o.goalBlocks.push(e) : o.nonGoalBlocks.push(e), o),
23
- { goalBlocks: [], nonGoalBlocks: [] }
24
- ),
25
- [t]
26
- );
27
- return /* @__PURE__ */ I(
28
- L,
29
- {
30
- $width: "100%",
31
- $background: B.length ? "WHITE_1" : `${n}_1`,
32
- children: [
33
- /* @__PURE__ */ s("div", { ref: _, children: u.map((o, e) => {
34
- const { block_type: N, block_id: S, is_skipped: A } = o;
35
- let f = 0;
36
- const G = e === u.length - 1;
37
- return N === "GOAL" && (A || (a += 1), f = a), /* @__PURE__ */ s(
38
- h,
39
- {
40
- blockData: o,
41
- userType: l,
42
- isLastBlock: G,
43
- lessonIdx: f,
44
- imageHue: n,
45
- isGoalBlock: !0,
46
- onNodeAttempt: i,
47
- onNodeAttemptLocationChange: r,
48
- onNodeMarkAsDone: c,
49
- onNodeReattempt: p,
50
- onNodeReview: d,
51
- onNodeView: k,
52
- onBlockSkipUnskip: m
53
- },
54
- S
55
- );
56
- }) }),
57
- B.map((o) => {
58
- const { block_id: e } = o;
59
- return /* @__PURE__ */ s(
60
- h,
61
- {
62
- blockData: o,
63
- userType: l,
64
- imageHue: n,
65
- onNodeAttempt: i,
66
- onNodeAttemptLocationChange: r,
67
- onNodeMarkAsDone: c,
68
- onNodeReattempt: p,
69
- onNodeReview: d,
70
- onNodeView: k,
71
- onBlockSkipUnskip: m
72
- },
73
- e
74
- );
75
- })
76
- ]
77
- }
78
- );
79
- });
80
- export {
81
- E as default
82
- };
83
- //# sourceMappingURL=block-sections.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"block-sections.js","sources":["../../../../../src/features/chapters-v2/chapter-details/block-sections/block-sections.tsx"],"sourcesContent":["import type { IBlockSectionsProps } from './block-sections-types';\nimport type { FC } from 'react';\n\nimport { memo, useMemo } from 'react';\n\nimport BlockSectionView from './block-section-view';\nimport * as Styled from './block-sections-styled';\n\nconst BlockSections: FC<IBlockSectionsProps> = memo(props => {\n const {\n blocks,\n imageHue,\n userType,\n coreBlocksRef,\n onNodeAttempt,\n onNodeAttemptLocationChange,\n onNodeMarkAsDone,\n onNodeReattempt,\n onNodeReview,\n onNodeView,\n onBlockSkipUnskip,\n } = props;\n\n let lessonCount = 0;\n\n const { goalBlocks, nonGoalBlocks } = useMemo(\n () =>\n blocks.reduce(\n (acc, block) => {\n if (block.section_code === 'GOALS' || block.section_code === 'READINESS') {\n acc.goalBlocks.push(block);\n } else {\n acc.nonGoalBlocks.push(block);\n }\n\n return acc;\n },\n { goalBlocks: [] as typeof blocks, nonGoalBlocks: [] as typeof blocks },\n ),\n [blocks],\n );\n\n return (\n <Styled.ChapterDetailsWrapper\n $width=\"100%\"\n $background={!nonGoalBlocks.length ? `${imageHue}_1` : 'WHITE_1'}\n >\n <div ref={coreBlocksRef}>\n {goalBlocks.map((blockData, idx) => {\n const { block_type: blockType, block_id: blockId, is_skipped: isSkipped } = blockData;\n let lessonIdx = 0;\n\n const isLastBlock = idx === goalBlocks.length - 1;\n\n if (blockType === 'GOAL') {\n if (!isSkipped) {\n lessonCount += 1;\n }\n\n lessonIdx = lessonCount;\n }\n\n return (\n <BlockSectionView\n blockData={blockData}\n userType={userType}\n isLastBlock={isLastBlock}\n key={blockId}\n lessonIdx={lessonIdx}\n imageHue={imageHue}\n isGoalBlock\n onNodeAttempt={onNodeAttempt}\n onNodeAttemptLocationChange={onNodeAttemptLocationChange}\n onNodeMarkAsDone={onNodeMarkAsDone}\n onNodeReattempt={onNodeReattempt}\n onNodeReview={onNodeReview}\n onNodeView={onNodeView}\n onBlockSkipUnskip={onBlockSkipUnskip}\n />\n );\n })}\n </div>\n\n {nonGoalBlocks.map(blockData => {\n const { block_id: blockId } = blockData;\n\n return (\n <BlockSectionView\n key={blockId}\n blockData={blockData}\n userType={userType}\n imageHue={imageHue}\n onNodeAttempt={onNodeAttempt}\n onNodeAttemptLocationChange={onNodeAttemptLocationChange}\n onNodeMarkAsDone={onNodeMarkAsDone}\n onNodeReattempt={onNodeReattempt}\n onNodeReview={onNodeReview}\n onNodeView={onNodeView}\n onBlockSkipUnskip={onBlockSkipUnskip}\n />\n );\n })}\n </Styled.ChapterDetailsWrapper>\n );\n});\n\nexport default BlockSections;\n"],"names":["BlockSections","memo","props","blocks","imageHue","userType","coreBlocksRef","onNodeAttempt","onNodeAttemptLocationChange","onNodeMarkAsDone","onNodeReattempt","onNodeReview","onNodeView","onBlockSkipUnskip","lessonCount","goalBlocks","nonGoalBlocks","useMemo","acc","block","jsxs","Styled.ChapterDetailsWrapper","jsx","blockData","idx","blockType","blockId","isSkipped","lessonIdx","isLastBlock","BlockSectionView"],"mappings":";;;;AAQM,MAAAA,IAAyCC,EAAK,CAASC,MAAA;AACrD,QAAA;AAAA,IACJ,QAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,eAAAC;AAAA,IACA,eAAAC;AAAA,IACA,6BAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,YAAAC;AAAA,IACA,mBAAAC;AAAA,EACE,IAAAX;AAEJ,MAAIY,IAAc;AAEZ,QAAA,EAAE,YAAAC,GAAY,eAAAC,EAAA,IAAkBC;AAAA,IACpC,MACEd,EAAO;AAAA,MACL,CAACe,GAAKC,OACAA,EAAM,iBAAiB,WAAWA,EAAM,iBAAiB,cACvDD,EAAA,WAAW,KAAKC,CAAK,IAErBD,EAAA,cAAc,KAAKC,CAAK,GAGvBD;AAAA,MAET,EAAE,YAAY,CAAA,GAAqB,eAAe,GAAoB;AAAA,IACxE;AAAA,IACF,CAACf,CAAM;AAAA,EAAA;AAIP,SAAA,gBAAAiB;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,QAAO;AAAA,MACP,aAAcL,EAAc,SAA2B,YAAlB,GAAGZ,CAAQ;AAAA,MAEhD,UAAA;AAAA,QAAA,gBAAAkB,EAAC,SAAI,KAAKhB,GACP,YAAW,IAAI,CAACiB,GAAWC,MAAQ;AAClC,gBAAM,EAAE,YAAYC,GAAW,UAAUC,GAAS,YAAYC,EAAc,IAAAJ;AAC5E,cAAIK,IAAY;AAEV,gBAAAC,IAAcL,MAAQT,EAAW,SAAS;AAEhD,iBAAIU,MAAc,WACXE,MACYb,KAAA,IAGLc,IAAAd,IAIZ,gBAAAQ;AAAA,YAACQ;AAAA,YAAA;AAAA,cACC,WAAAP;AAAA,cACA,UAAAlB;AAAA,cACA,aAAAwB;AAAA,cAEA,WAAAD;AAAA,cACA,UAAAxB;AAAA,cACA,aAAW;AAAA,cACX,eAAAG;AAAA,cACA,6BAAAC;AAAA,cACA,kBAAAC;AAAA,cACA,iBAAAC;AAAA,cACA,cAAAC;AAAA,cACA,YAAAC;AAAA,cACA,mBAAAC;AAAA,YAAA;AAAA,YAVKa;AAAA,UAAA;AAAA,QAaV,CAAA,GACH;AAAA,QAECV,EAAc,IAAI,CAAaO,MAAA;AACxB,gBAAA,EAAE,UAAUG,EAAY,IAAAH;AAG5B,iBAAA,gBAAAD;AAAA,YAACQ;AAAA,YAAA;AAAA,cAEC,WAAAP;AAAA,cACA,UAAAlB;AAAA,cACA,UAAAD;AAAA,cACA,eAAAG;AAAA,cACA,6BAAAC;AAAA,cACA,kBAAAC;AAAA,cACA,iBAAAC;AAAA,cACA,cAAAC;AAAA,cACA,YAAAC;AAAA,cACA,mBAAAC;AAAA,YAAA;AAAA,YAVKa;AAAA,UAAA;AAAA,QAWP,CAEH;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;"}
@@ -1,90 +0,0 @@
1
- import o from "styled-components";
2
- import x from "../../../../assets/line-icons/icons/important.js";
3
- import i from "../../../ui/layout/flex-view.js";
4
- const f = o(i)(() => `
5
- position: relative;
6
- height: 168px;
7
- `);
8
- o.div`
9
- width: 760px;
10
- height: 100%;
11
- position: relative;
12
- `;
13
- const m = o(i)`
14
- position: absolute;
15
- left: 73px;
16
- top: 32px;
17
- `, $ = o.img(({ theme: e }) => {
18
- const { gutter: t } = e.layout;
19
- return `
20
- width: ${t * 6.625}px;
21
- height: ${t * 6.625}px;
22
- border-radius: 50%;
23
- z-index: 1;
24
- `;
25
- }), y = o.svg(() => `
26
- position: absolute;
27
- inset: 50%;
28
- transform: translate(-50%, -50%) rotate(-90deg);
29
- z-index: 2;
30
- `), I = o.circle(
31
- ({ theme: e, $progressCircle: t, $progress: n, $progressBackground: s }) => {
32
- const { colors: r, layout: l } = e, { WHITE_1: h } = r, { gutter: a } = l, p = a * 21, u = t ? p - n : n;
33
- return `
34
- stroke-dasharray: ${p};
35
- stroke-dashoffset: ${u};
36
- stroke: ${t ? r[s || "BLACK"] : h};
37
-
38
- stroke-width: ${a * 0.1875}px;
39
- fill: none;
40
- `;
41
- }
42
- ), b = o(i)(({ theme: e }) => `
43
- position: absolute;
44
- top: 50%;
45
- left: ${e.layout.gutter * 13.75}px;
46
- transform: translateY(-50%);
47
- z-index: 1;
48
- `), k = o(x)(({
49
- theme: e,
50
- $progress: t,
51
- $top: n,
52
- $left: s
53
- }) => {
54
- const { gutter: r } = e.layout;
55
- return t ? `
56
- width: ${r * 1.25}px;
57
- height: ${r * 1.25}px;
58
- position: absolute;
59
- top: ${n ?? 0}px;
60
- left: ${s ?? 0}px;
61
- transform: translate(-50%, -50%);
62
- z-index: 2;
63
- ` : `
64
- width: ${r * 0.75}px;
65
- height: ${r * 0.75}px;
66
- `;
67
- }), w = o.div(({ theme: e }) => {
68
- const { layout: t } = e;
69
- return `
70
- position: absolute;
71
- top: 6px;
72
- right: 8px;
73
- z-index: 2;
74
-
75
- width: ${t.gutter * 1.25}px;
76
- height: ${t.gutter * 1.25}px;
77
- border-radius: 50%;
78
- `;
79
- });
80
- export {
81
- f as BannerContainer,
82
- $ as BannerImage,
83
- m as BannerImageWrapper,
84
- b as BannerTitleWrapper,
85
- y as ChapterProgressSVG,
86
- I as ChapterProgressSVGCircle,
87
- w as StyledCheckIcon,
88
- k as StyledImportantIcon
89
- };
90
- //# sourceMappingURL=chapter-banner-styled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chapter-banner-styled.js","sources":["../../../../../src/features/chapters-v2/chapter-details/chapter-banner/chapter-banner-styled.tsx"],"sourcesContent":["import type { TColorNames } from '../../../ui/types';\n\nimport styled from 'styled-components';\n\nimport ImportantIcon from '../../../../assets/line-icons/icons/important';\nimport FlexView from '../../../ui/layout/flex-view';\n\nconst BannerContainer = styled(FlexView)(() => {\n return `\n position: relative;\n height: 168px;\n `;\n});\n\nconst BannerContainerBg = styled.div`\n width: 760px;\n height: 100%;\n position: relative;\n`;\n\nconst BannerImageWrapper = styled(FlexView)`\n position: absolute;\n left: 73px;\n top: 32px;\n`;\n\nconst BannerImage = styled.img(({ theme }) => {\n const { gutter } = theme.layout;\n\n return `\n width: ${gutter * 6.625}px;\n height: ${gutter * 6.625}px;\n border-radius: 50%;\n z-index: 1;\n `;\n});\n\nconst ChapterProgressSVG = styled.svg(() => {\n return `\n position: absolute;\n inset: 50%;\n transform: translate(-50%, -50%) rotate(-90deg);\n z-index: 2;\n `;\n});\n\ninterface IChapterProgressSVGCircleProps {\n $progressCircle?: boolean;\n $progress: number;\n $progressBackground?: TColorNames;\n}\n\nconst ChapterProgressSVGCircle = styled.circle<IChapterProgressSVGCircleProps>(\n ({ theme, $progressCircle, $progress, $progressBackground }) => {\n const { colors, layout } = theme;\n const { WHITE_1 } = colors;\n const { gutter } = layout;\n\n const strokeDashArray = gutter * 21;\n const strokeDashOffset = $progressCircle ? strokeDashArray - $progress : $progress;\n\n return `\n stroke-dasharray: ${strokeDashArray};\n stroke-dashoffset: ${strokeDashOffset};\n stroke: ${$progressCircle ? colors[$progressBackground || 'BLACK'] : WHITE_1};\n\n stroke-width: ${gutter * 0.1875}px;\n fill: none;\n `;\n },\n);\n\nconst BannerTitleWrapper = styled(FlexView)(({ theme }) => {\n return `\n position: absolute;\n top: 50%;\n left: ${theme.layout.gutter * 13.75}px;\n transform: translateY(-50%);\n z-index: 1;\n `;\n});\n\ninterface IStyledImportantIconProps {\n $left?: number;\n $top?: number;\n $progress?: boolean;\n}\n\nconst StyledImportantIcon = styled(ImportantIcon)<IStyledImportantIconProps>(({\n theme,\n $progress,\n $top,\n $left,\n}) => {\n const { gutter } = theme.layout;\n\n if ($progress) {\n return `\n width: ${gutter * 1.25}px;\n height: ${gutter * 1.25}px;\n position: absolute;\n top: ${$top ?? 0}px;\n left: ${$left ?? 0}px;\n transform: translate(-50%, -50%);\n z-index: 2;\n `;\n }\n\n return `\n width: ${gutter * 0.75}px;\n height: ${gutter * 0.75}px;\n `;\n});\n\nconst StyledCheckIcon = styled.div(({ theme }) => {\n const { layout } = theme;\n\n return `\n position: absolute;\n top: 6px;\n right: 8px;\n z-index: 2;\n\n width: ${layout.gutter * 1.25}px;\n height: ${layout.gutter * 1.25}px;\n border-radius: 50%;\n `;\n});\n\nexport {\n BannerContainer,\n BannerContainerBg,\n BannerImageWrapper,\n BannerImage,\n ChapterProgressSVG,\n ChapterProgressSVGCircle,\n BannerTitleWrapper,\n StyledImportantIcon,\n StyledCheckIcon,\n};\n"],"names":["BannerContainer","styled","FlexView","BannerImageWrapper","BannerImage","theme","gutter","ChapterProgressSVG","ChapterProgressSVGCircle","$progressCircle","$progress","$progressBackground","colors","layout","WHITE_1","strokeDashArray","strokeDashOffset","BannerTitleWrapper","StyledImportantIcon","ImportantIcon","$top","$left","StyledCheckIcon"],"mappings":";;;AAOA,MAAMA,IAAkBC,EAAOC,CAAQ,EAAE,MAChC;AAAA;AAAA;AAAA,GAIR;AAEyBD,EAAO;AAAA;AAAA;AAAA;AAAA;AAM3B,MAAAE,IAAqBF,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA,GAMpCE,IAAcH,EAAO,IAAI,CAAC,EAAE,OAAAI,QAAY;AAC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AI,QAAY;AAC1C,QAAA,EAAE,QAAAQ,EAAW,IAAAR;AAEZ,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAMIQ,EAAO,SAAS,IAAI;AAAA,cACnBA,EAAO,SAAS,IAAI;AAAA;AAAA;AAGlC,CAAC;"}
@@ -1,98 +0,0 @@
1
- import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
- import { memo as D, useMemo as d } from "react";
3
- import { ILLUSTRATIONS as b } from "../../../../assets/illustrations/illustrations.js";
4
- import g from "../../../../assets/line-icons/icons/check2.js";
5
- import V from "../../../ui/image/image.js";
6
- import n from "../../../ui/layout/flex-view.js";
7
- import i from "../../../ui/text/text.js";
8
- import C from "../../comps/tag/tag.js";
9
- import { getChapterCompletionPercentage as W } from "../../utils/index.js";
10
- import { BannerContainer as M, BannerImageWrapper as O, BannerImage as X, ChapterProgressSVG as j, ChapterProgressSVGCircle as $, StyledImportantIcon as f, StyledCheckIcon as H, BannerTitleWrapper as N } from "./chapter-banner-styled.js";
11
- const a = 52, l = 54, c = 54, re = D((I) => {
12
- const { progressStats: o, imageHue: S, title: x, imageUrl: R, bannerRef: u } = I, t = d(() => W(o), [o]), { iconTopVal: E, iconLeftVal: w } = d(() => {
13
- const h = (-(t === 100 ? 60 : t) * 3.6 - 180) * Math.PI / 180, A = c + a * Math.sin(h), B = l + a * Math.cos(h);
14
- return {
15
- iconLeftVal: A,
16
- iconTopVal: B
17
- };
18
- }, [t]);
19
- if (!o) return null;
20
- const { mandatory: T, optional: _, classwork: k } = o, { completed: y = 0, total: s = 0 } = T || {}, { completed: G = 0, total: p = 0 } = _ || {}, { completed: L = 0, total: m = 0 } = k || {}, P = m > 0 && L === m;
21
- return /* @__PURE__ */ e(
22
- M,
23
- {
24
- $flexDirection: "row",
25
- $justifyContent: "center",
26
- $alignItems: "center",
27
- $widthX: 50,
28
- $background: `${S}_4`,
29
- ref: u,
30
- children: /* @__PURE__ */ r(n, { $height: 168, $position: "relative", children: [
31
- /* @__PURE__ */ e(
32
- V,
33
- {
34
- width: "100%",
35
- height: "168px",
36
- src: b.CHAPTER_HEADER_BG,
37
- alt: "Chapter header background",
38
- withLoader: !0
39
- }
40
- ),
41
- /* @__PURE__ */ r(O, { children: [
42
- /* @__PURE__ */ e(X, { src: R, alt: "Chapter image" }),
43
- /* @__PURE__ */ r(j, { width: "108px", height: "108px", children: [
44
- /* @__PURE__ */ e(
45
- $,
46
- {
47
- $progress: 0,
48
- r: a,
49
- cx: l,
50
- cy: c
51
- }
52
- ),
53
- /* @__PURE__ */ e(
54
- $,
55
- {
56
- $progressCircle: !0,
57
- $progressBackground: "BLACK",
58
- $progress: 3.3 * t,
59
- r: a,
60
- cx: l,
61
- cy: c
62
- }
63
- )
64
- ] }),
65
- t > 0 && /* @__PURE__ */ e(f, { $progress: !0, $top: E, $left: w }),
66
- t === 100 && /* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(C, { Icon: g }) })
67
- ] }),
68
- /* @__PURE__ */ r(N, { $flexGap: 4, children: [
69
- /* @__PURE__ */ e(i, { $renderAs: "ah4-bold", children: x }),
70
- /* @__PURE__ */ r(n, { $flexDirection: "row", $alignItems: "center", $flexGapX: 2.75, children: [
71
- !!s && /* @__PURE__ */ r(n, { $position: "relative", $flexDirection: "row", children: [
72
- /* @__PURE__ */ e(f, {}),
73
- /* @__PURE__ */ r(n, { $flexDirection: "row", $alignItems: "center", $flexGap: 8, children: [
74
- /* @__PURE__ */ r(i, { $renderAs: "ab2", children: [
75
- "Core - ",
76
- y,
77
- "/",
78
- s
79
- ] }),
80
- P && /* @__PURE__ */ e(C, { Icon: g, label: "CW" })
81
- ] })
82
- ] }),
83
- p > 0 && /* @__PURE__ */ r(i, { $renderAs: "ab2", children: [
84
- "Supplementary - ",
85
- G,
86
- "/",
87
- p
88
- ] })
89
- ] })
90
- ] })
91
- ] })
92
- }
93
- );
94
- });
95
- export {
96
- re as default
97
- };
98
- //# sourceMappingURL=chapter-banner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chapter-banner.js","sources":["../../../../../src/features/chapters-v2/chapter-details/chapter-banner/chapter-banner.tsx"],"sourcesContent":["import type { IChapterBannerProps } from './chapter-banner-types';\nimport type { FC } from 'react';\n\nimport { memo, useMemo } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Check2Icon from '../../../../assets/line-icons/icons/check2';\nimport Image from '../../../ui/image/image';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\nimport Tag from '../../comps/tag/tag';\nimport { getChapterCompletionPercentage } from '../../utils';\nimport * as Styled from './chapter-banner-styled';\n\nconst PROGRESS_CIRCLE_RADIUS = 52;\nconst PROGRESS_CIRCLE_CENTER_X = 54;\nconst PROGRESS_CIRCLE_CENTER_Y = 54;\n\n// This component renders a banner for a chapter, displaying its title, progress, and associated tags.\n// It includes an image, progress visualization, and details about the chapter's core and supplementary sheets.\n// It calculates the completion percentage and dynamically positions an icon based on progress.\nconst ChapterBanner: FC<IChapterBannerProps> = memo(props => {\n const { progressStats, imageHue, title, imageUrl, bannerRef } = props;\n\n const completionPercentage = useMemo(() => {\n return getChapterCompletionPercentage(progressStats);\n }, [progressStats]);\n\n const { iconTopVal, iconLeftVal } = useMemo(() => {\n //* Calculate the position of the important icon based on the completion percentage\n //* Convert degrees to radians\n const angleInDegree = completionPercentage === 100 ? 60 : completionPercentage;\n\n const angleInRadian = ((-angleInDegree * 3.6 - 180) * Math.PI) / 180;\n const positionX = PROGRESS_CIRCLE_CENTER_Y + PROGRESS_CIRCLE_RADIUS * Math.sin(angleInRadian);\n const positionY = PROGRESS_CIRCLE_CENTER_X + PROGRESS_CIRCLE_RADIUS * Math.cos(angleInRadian);\n\n return {\n iconLeftVal: positionX,\n iconTopVal: positionY,\n };\n }, [completionPercentage]);\n\n if (!progressStats) return null;\n\n const { mandatory, optional, classwork: classWork } = progressStats;\n const { completed: completedMandatorySheets = 0, total: totalMandatorySheets = 0 } =\n mandatory || {};\n const { completed: completedOptionalSheets = 0, total: totalOptionalSheets = 0 } = optional || {};\n const { completed: completedClassWorkSheets = 0, total: totalClassWorkSheets = 0 } =\n classWork || {};\n const showClassWorkTag =\n totalClassWorkSheets > 0 && completedClassWorkSheets === totalClassWorkSheets;\n\n return (\n <Styled.BannerContainer\n $flexDirection=\"row\"\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $widthX={50}\n $background={`${imageHue}_4`}\n ref={bannerRef}\n >\n <FlexView $height={168} $position=\"relative\">\n <Image\n width=\"100%\"\n height=\"168px\"\n src={ILLUSTRATIONS.CHAPTER_HEADER_BG}\n alt=\"Chapter header background\"\n withLoader\n />\n <Styled.BannerImageWrapper>\n <Styled.BannerImage src={imageUrl} alt=\"Chapter image\" />\n <Styled.ChapterProgressSVG width=\"108px\" height=\"108px\">\n <Styled.ChapterProgressSVGCircle\n $progress={0}\n r={PROGRESS_CIRCLE_RADIUS}\n cx={PROGRESS_CIRCLE_CENTER_X}\n cy={PROGRESS_CIRCLE_CENTER_Y}\n />\n <Styled.ChapterProgressSVGCircle\n $progressCircle\n $progressBackground={'BLACK'}\n $progress={3.3 * completionPercentage}\n r={PROGRESS_CIRCLE_RADIUS}\n cx={PROGRESS_CIRCLE_CENTER_X}\n cy={PROGRESS_CIRCLE_CENTER_Y}\n />\n </Styled.ChapterProgressSVG>\n\n {completionPercentage > 0 && (\n <Styled.StyledImportantIcon $progress $top={iconTopVal} $left={iconLeftVal} />\n )}\n\n {completionPercentage === 100 && (\n <Styled.StyledCheckIcon>\n <Tag Icon={Check2Icon} />\n </Styled.StyledCheckIcon>\n )}\n </Styled.BannerImageWrapper>\n <Styled.BannerTitleWrapper $flexGap={4}>\n <Text $renderAs=\"ah4-bold\">{title}</Text>\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $flexGapX={2.75}>\n {!!totalMandatorySheets && (\n <FlexView $position=\"relative\" $flexDirection=\"row\">\n <Styled.StyledImportantIcon />\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $flexGap={8}>\n <Text $renderAs=\"ab2\">\n Core - {completedMandatorySheets}/{totalMandatorySheets}\n </Text>\n {showClassWorkTag && <Tag Icon={Check2Icon} label=\"CW\" />}\n </FlexView>\n </FlexView>\n )}\n {totalOptionalSheets > 0 && (\n <Text $renderAs=\"ab2\">\n Supplementary - {completedOptionalSheets}/{totalOptionalSheets}\n </Text>\n )}\n </FlexView>\n </Styled.BannerTitleWrapper>\n </FlexView>\n </Styled.BannerContainer>\n );\n});\n\nexport default ChapterBanner;\n"],"names":["PROGRESS_CIRCLE_RADIUS","PROGRESS_CIRCLE_CENTER_X","PROGRESS_CIRCLE_CENTER_Y","ChapterBanner","memo","props","progressStats","imageHue","title","imageUrl","bannerRef","completionPercentage","useMemo","getChapterCompletionPercentage","iconTopVal","iconLeftVal","angleInRadian","positionX","positionY","mandatory","optional","classWork","completedMandatorySheets","totalMandatorySheets","completedOptionalSheets","totalOptionalSheets","completedClassWorkSheets","totalClassWorkSheets","showClassWorkTag","jsx","Styled.BannerContainer","jsxs","FlexView","Image","ILLUSTRATIONS","Styled.BannerImageWrapper","Styled.BannerImage","Styled.ChapterProgressSVG","Styled.ChapterProgressSVGCircle","Styled.StyledImportantIcon","Styled.StyledCheckIcon","Tag","Check2Icon","Styled.BannerTitleWrapper","Text"],"mappings":";;;;;;;;;;AAcA,MAAMA,IAAyB,IACzBC,IAA2B,IAC3BC,IAA2B,IAK3BC,KAAyCC,EAAK,CAASC,MAAA;AAC3D,QAAM,EAAE,eAAAC,GAAe,UAAAC,GAAU,OAAAC,GAAO,UAAAC,GAAU,WAAAC,EAAc,IAAAL,GAE1DM,IAAuBC,EAAQ,MAC5BC,EAA+BP,CAAa,GAClD,CAACA,CAAa,CAAC,GAEZ,EAAE,YAAAQ,GAAY,aAAAC,EAAY,IAAIH,EAAQ,MAAM;AAKhD,UAAMI,KAAkB,EAFFL,MAAyB,MAAM,KAAKA,KAEjB,MAAM,OAAO,KAAK,KAAM,KAC3DM,I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,YAAA,GAC7C;AAAA,UAAA,GAEJ;AAAA,QAAA,GACF;AAAA,MAAA,GACF;AAAA,IAAA;AAAA,EAAA;AAGN,CAAC;"}
@@ -1,51 +0,0 @@
1
- import o from "styled-components";
2
- import r from "../../ui/layout/flex-view.js";
3
- const a = o.div(({ theme: t }) => `
4
- height: 100%;
5
- position: absolute;
6
- left: 0;
7
- right: 0;
8
- top: 0;
9
- bottom: 0;
10
- background: rgba(204, 204, 204, 0.25);
11
- z-index: 2;
12
-
13
- & * {
14
- pointer-events: none;
15
- }
16
-
17
- & img {
18
- top: 50%;
19
- position: absolute;
20
- left: 50%;
21
- transform: translate(-50%, -50%);
22
- width: ${t.layout.gutter * 5}px;
23
- height: ${t.layout.gutter * 5}px;
24
- filter: brightness(0);
25
- }
26
- `), p = o(r)(
27
- ({ $disablePointerEvents: t, theme: e }) => `
28
- position: relative;
29
- margin: 0 auto;
30
- pointer-events: ${t ? "none" : "auto"};
31
- border: 1px solid ${e.colors.WHITE_5};
32
- border-top: none;
33
- `
34
- ), s = o(r)`
35
- position: absolute;
36
- top: 0;
37
- left: 0;
38
- z-index: 6;
39
- `, l = o(r)(({ theme: t }) => `
40
- position: sticky;
41
- top: ${t.layout.gutter}px;
42
- transform: translateX(${t.layout.gutter}px);
43
- z-index: 6;
44
- `);
45
- export {
46
- s as BackButtonContainer,
47
- l as BackButtonWrapper,
48
- p as ContentWrapper,
49
- a as LoaderWrapper
50
- };
51
- //# sourceMappingURL=chapter-details-styled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chapter-details-styled.js","sources":["../../../../src/features/chapters-v2/chapter-details/chapter-details-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../ui/layout/flex-view';\n\nconst LoaderWrapper = styled.div(({ theme }) => {\n return `\n height: 100%;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background: rgba(204, 204, 204, 0.25);\n z-index: 2;\n\n & * {\n pointer-events: none;\n }\n\n & img {\n top: 50%;\n position: absolute;\n left: 50%;\n transform: translate(-50%, -50%);\n width: ${theme.layout.gutter * 5}px;\n height: ${theme.layout.gutter * 5}px;\n filter: brightness(0);\n }\n `;\n});\n\nconst ContentWrapper = styled(FlexView)<{ $disablePointerEvents: boolean }>(\n ({ $disablePointerEvents, theme }) => `\n position: relative;\n margin: 0 auto;\n pointer-events: ${$disablePointerEvents ? 'none' : 'auto'};\n border: 1px solid ${theme.colors.WHITE_5};\n border-top: none;\n `,\n);\n\nconst BackButtonContainer = styled(FlexView)`\n position: absolute;\n top: 0;\n left: 0;\n z-index: 6;\n`;\n\nconst BackButtonWrapper = styled(FlexView)(({ theme }) => {\n return `\n position: sticky;\n top: ${theme.layout.gutter}px;\n transform: translateX(${theme.layout.gutter}px);\n z-index: 6;\n `;\n});\n\nexport { ContentWrapper, LoaderWrapper, BackButtonContainer, BackButtonWrapper };\n"],"names":["LoaderWrapper","styled","theme","ContentWrapper","FlexView","$disablePointerEvents","BackButtonContainer","BackButtonWrapper"],"mappings":";;AAIA,MAAMA,IAAgBC,EAAO,IAAI,CAAC,EAAE,OAAAC,QAC3B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAmBMA,EAAM,OAAO,SAAS,CAAC;AAAA,gBACtBA,EAAM,OAAO,SAAS,CAAC;AAAA;AAAA;AAAA,GAItC,GAEKC,IAAiBF,EAAOG,CAAQ;AAAA,EACpC,CAAC,EAAE,uBAAAC,GAAuB,OAAAH,EAAA,MAAY;AAAA;AAAA;AAAA,wBAGhBG,IAAwB,SAAS,MAAM;AAAA,0BACrCH,EAAM,OAAO,OAAO;AAAA;AAAA;AAG9C,GAEMI,IAAsBL,EAAOG,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA,GAOrCG,IAAoBN,EAAOG,CAAQ,EAAE,CAAC,EAAE,OAAAF,QACrC;AAAA;AAAA,WAEEA,EAAM,OAAO,MAAM;AAAA,4BACFA,EAAM,OAAO,MAAM;AAAA;AAAA,GAG9C;"}
@@ -1,129 +0,0 @@
1
- import { jsxs as m, jsx as t, Fragment as b } from "react/jsx-runtime";
2
- import { memo as w, useCallback as L, useEffect as p } from "react";
3
- import { ILLUSTRATIONS as N } from "../../../assets/illustrations/illustrations.js";
4
- import _ from "../../../assets/line-icons/icons/back2.js";
5
- import { useJourney as v } from "../../journey/use-journey/use-journey.js";
6
- import D from "../../ui/buttons/button/button.js";
7
- import E from "../../ui/buttons/icon-button/icon-button.js";
8
- import P from "../../ui/layout/flex-view.js";
9
- import T from "../../ui/loader/app-loader/app-loader.js";
10
- import j from "../../ui/text/text.js";
11
- import { useGetChapterDetails as J } from "../api/chapter.js";
12
- import F from "./block-sections/block-sections.js";
13
- import H from "./chapter-banner/chapter-banner.js";
14
- import { ContentWrapper as O, BackButtonContainer as U, BackButtonWrapper as W, LoaderWrapper as X } from "./chapter-details-styled.js";
15
- const z = w((f) => {
16
- const {
17
- userChapterId: n,
18
- studentId: i,
19
- userType: a,
20
- onBlockSkipUnskip: g,
21
- onNodeAttempt: u,
22
- onNodeAttemptLocationChange: C,
23
- onNodeMarkAsDone: k,
24
- onNodeReattempt: y,
25
- onNodeReview: A,
26
- onNodeView: B,
27
- onExit: $,
28
- startChapterPageJourney: s,
29
- chapterPageRef: x,
30
- bannerRef: I,
31
- coreBlocksRef: R,
32
- canStartJourney: c
33
- } = f, { isJourneyActive: l } = v(), {
34
- get: h,
35
- data: e,
36
- isProcessing: r,
37
- isProcessingFailed: S,
38
- isStale: d
39
- } = J(), o = L(() => {
40
- h(n, void 0, { studentId: i });
41
- }, [h, n, i]);
42
- return p(() => {
43
- o();
44
- }, [o]), p(() => {
45
- e && c && !l && s && s({
46
- chapterDetails: e,
47
- userChapterId: n,
48
- studentId: i,
49
- userType: a
50
- });
51
- }, [
52
- c,
53
- e,
54
- l,
55
- s,
56
- i,
57
- n,
58
- a
59
- ]), p(() => {
60
- !r && d && o();
61
- }, [o, r, d]), S ? /* @__PURE__ */ m(P, { $flexGapX: 1.5, $height: "100vh", $justifyContent: "center", $alignItems: "center", children: [
62
- /* @__PURE__ */ t(j, { $renderAs: "h6", children: "Oops! Something went wrong. Please try again later." }),
63
- /* @__PURE__ */ t(
64
- D,
65
- {
66
- widthX: 14,
67
- size: "small",
68
- shape: "square",
69
- renderAs: "primary",
70
- label: "Try again",
71
- onClick: o
72
- }
73
- )
74
- ] }) : !e && r ? /* @__PURE__ */ t(T, { height: "80vh" }) : /* @__PURE__ */ m(
75
- O,
76
- {
77
- ref: x,
78
- $widthX: 50,
79
- $disablePointerEvents: r,
80
- $justifyContent: "center",
81
- $alignItems: "center",
82
- children: [
83
- a === "TEACHER" && /* @__PURE__ */ t(U, { $height: "100%", children: /* @__PURE__ */ t(W, { children: /* @__PURE__ */ t(
84
- E,
85
- {
86
- Icon: _,
87
- renderAs: "secondary-gray",
88
- analyticsLabel: "chapter_page_exit",
89
- size: "xsmall",
90
- onClick: $
91
- }
92
- ) }) }),
93
- r && /* @__PURE__ */ t(X, { children: /* @__PURE__ */ t("img", { src: N.LOADER_1, alt: "loader" }) }),
94
- e && /* @__PURE__ */ m(b, { children: [
95
- /* @__PURE__ */ t(
96
- H,
97
- {
98
- title: e.name,
99
- imageHue: e.image_hue,
100
- imageUrl: e.image_url,
101
- progressStats: e == null ? void 0 : e.progress_stat,
102
- bannerRef: I
103
- }
104
- ),
105
- /* @__PURE__ */ t(
106
- F,
107
- {
108
- imageHue: e.image_hue,
109
- userType: a,
110
- blocks: e.blocks,
111
- onBlockSkipUnskip: g,
112
- onNodeAttempt: u,
113
- onNodeAttemptLocationChange: C,
114
- onNodeMarkAsDone: k,
115
- onNodeReattempt: y,
116
- onNodeReview: A,
117
- onNodeView: B,
118
- coreBlocksRef: R
119
- }
120
- )
121
- ] })
122
- ]
123
- }
124
- );
125
- }), ae = z;
126
- export {
127
- ae as default
128
- };
129
- //# sourceMappingURL=chapter-details.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chapter-details.js","sources":["../../../../src/features/chapters-v2/chapter-details/chapter-details.tsx"],"sourcesContent":["import type { IChapterDetails } from './chapter-details-types';\nimport type { FC } from 'react';\n\nimport { memo, useCallback, useEffect } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../assets/illustrations/illustrations';\nimport Back2Icon from '../../../assets/line-icons/icons/back2';\nimport { useJourney } from '../../journey/use-journey/use-journey';\nimport Button from '../../ui/buttons/button/button';\nimport IconButton from '../../ui/buttons/icon-button/icon-button';\nimport FlexView from '../../ui/layout/flex-view';\nimport AppLoader from '../../ui/loader/app-loader/app-loader';\nimport Text from '../../ui/text/text';\nimport { useGetChapterDetails } from '../api/chapter';\nimport BlockSections from './block-sections/block-sections';\nimport ChapterBanner from './chapter-banner/chapter-banner';\nimport * as Styled from './chapter-details-styled';\n\nconst ChapterDetails: FC<IChapterDetails> = memo(props => {\n const {\n userChapterId,\n studentId,\n userType,\n onBlockSkipUnskip,\n onNodeAttempt,\n onNodeAttemptLocationChange,\n onNodeMarkAsDone,\n onNodeReattempt,\n onNodeReview,\n onNodeView,\n onExit,\n startChapterPageJourney,\n chapterPageRef,\n bannerRef,\n coreBlocksRef,\n canStartJourney,\n } = props;\n const { isJourneyActive } = useJourney();\n const {\n get: getChapterDetails,\n data: chapterDetails,\n isProcessing,\n isProcessingFailed,\n isStale,\n } = useGetChapterDetails();\n\n const fetchChapterDetails = useCallback(() => {\n getChapterDetails(userChapterId, undefined, { studentId });\n }, [getChapterDetails, userChapterId, studentId]);\n\n useEffect(() => {\n fetchChapterDetails();\n }, [fetchChapterDetails]);\n\n useEffect(() => {\n if (chapterDetails && canStartJourney && !isJourneyActive && startChapterPageJourney) {\n startChapterPageJourney({\n chapterDetails: chapterDetails,\n userChapterId,\n studentId,\n userType,\n });\n }\n }, [\n canStartJourney,\n chapterDetails,\n isJourneyActive,\n startChapterPageJourney,\n studentId,\n userChapterId,\n userType,\n ]);\n\n useEffect(() => {\n if (!isProcessing && isStale) {\n fetchChapterDetails();\n }\n }, [fetchChapterDetails, isProcessing, isStale]);\n\n if (isProcessingFailed) {\n return (\n <FlexView $flexGapX={1.5} $height=\"100vh\" $justifyContent=\"center\" $alignItems=\"center\">\n <Text $renderAs=\"h6\">Oops! Something went wrong. Please try again later.</Text>\n <Button\n widthX={14}\n size=\"small\"\n shape=\"square\"\n renderAs=\"primary\"\n label=\"Try again\"\n onClick={fetchChapterDetails}\n />\n </FlexView>\n );\n }\n\n if (!chapterDetails && isProcessing) {\n return <AppLoader height=\"80vh\" />;\n }\n\n return (\n <Styled.ContentWrapper\n ref={chapterPageRef}\n $widthX={50}\n $disablePointerEvents={isProcessing}\n $justifyContent=\"center\"\n $alignItems=\"center\"\n >\n {userType === 'TEACHER' && (\n <Styled.BackButtonContainer $height=\"100%\">\n <Styled.BackButtonWrapper>\n <IconButton\n Icon={Back2Icon}\n renderAs=\"secondary-gray\"\n analyticsLabel=\"chapter_page_exit\"\n size=\"xsmall\"\n onClick={onExit}\n />\n </Styled.BackButtonWrapper>\n </Styled.BackButtonContainer>\n )}\n\n {isProcessing && (\n <Styled.LoaderWrapper>\n <img src={ILLUSTRATIONS.LOADER_1} alt=\"loader\" />\n </Styled.LoaderWrapper>\n )}\n\n {chapterDetails && (\n <>\n <ChapterBanner\n title={chapterDetails.name}\n imageHue={chapterDetails.image_hue}\n imageUrl={chapterDetails.image_url}\n progressStats={chapterDetails?.progress_stat}\n bannerRef={bannerRef}\n />\n <BlockSections\n imageHue={chapterDetails.image_hue}\n userType={userType}\n blocks={chapterDetails.blocks}\n onBlockSkipUnskip={onBlockSkipUnskip}\n onNodeAttempt={onNodeAttempt}\n onNodeAttemptLocationChange={onNodeAttemptLocationChange}\n onNodeMarkAsDone={onNodeMarkAsDone}\n onNodeReattempt={onNodeReattempt}\n onNodeReview={onNodeReview}\n onNodeView={onNodeView}\n coreBlocksRef={coreBlocksRef}\n />\n </>\n )}\n </Styled.ContentWrapper>\n );\n});\n\nexport default ChapterDetails;\n"],"names":["ChapterDetails","memo","props","userChapterId","studentId","userType","onBlockSkipUnskip","onNodeAttempt","onNodeAttemptLocationChange","onNodeMarkAsDone","onNodeReattempt","onNodeReview","onNodeView","onExit","startChapterPageJourney","chapterPageRef","bannerRef","coreBlocksRef","canStartJourney","isJourneyActive","useJourney","getChapterDetails","chapterDetails","isProcessing","isProcessingFailed","isStale","useGetChapterDetails","fetchChapterDetails","useCallback","useEffect","jsxs","FlexView","jsx","Text","Button","AppLoader","Styled.ContentWrapper","Styled.BackButtonContainer","Styled.BackButtonWrapper","IconButton","Back2Icon","Styled.LoaderWrapper","ILLUSTRATIONS","Fragment","ChapterBanner","BlockSections","ChapterDetails$1"],"mappings":";;;;;;;;;;;;;;AAkBA,MAAMA,IAAsCC,EAAK,CAASC,MAAA;AAClD,QAAA;AAAA,IACJ,eAAAC;AAAA,IACA,WAAAC;AAAA,IACA,UAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,6BAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,YAAAC;AAAA,IACA,QAAAC;AAAA,IACA,yBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,WAAAC;AAAA,IACA,eAAAC;AAAA,IACA,iBAAAC;AAAA,EACE,IAAAhB,GACE,EAAE,iBAAAiB,MAAoBC,KACtB;AAAA,IACJ,KAAKC;AAAA,IACL,MAAMC;AAAA,IACN,cAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,SAAAC;AAAA,MACEC,EAAqB,GAEnBC,IAAsBC,EAAY,MAAM;AAC5C,IAAAP,EAAkBlB,GAAe,QAAW,EAAE,WAAAC,EAAW,CAAA;AAAA,EACxD,GAAA,CAACiB,GAAmBlB,GAAeC,CAAS,CAAC;AA+BhD,SA7BAyB,EAAU,MAAM;AACM,IAAAF;EAAA,GACnB,CAACA,CAAmB,CAAC,GAExBE,EAAU,MAAM;A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AACS,GAAA,EACC,UAAA,gBAAAT,EAAC,OAAI,EAAA,KAAKU,EAAc,UAAU,KAAI,SAAA,CAAS,EACjD,CAAA;AAAA,QAGDpB,KAEG,gBAAAQ,EAAAa,GAAA,EAAA,UAAA;AAAA,UAAA,gBAAAX;AAAA,YAACY;AAAA,YAAA;AAAA,cACC,OAAOtB,EAAe;AAAA,cACtB,UAAUA,EAAe;AAAA,cACzB,UAAUA,EAAe;AAAA,cACzB,eAAeA,KAAA,gBAAAA,EAAgB;AAAA,cAC/B,WAAAN;AAAA,YAAA;AAAA,UACF;AAAA,UACA,gBAAAgB;AAAA,YAACa;AAAA,YAAA;AAAA,cACC,UAAUvB,EAAe;AAAA,cACzB,UAAAjB;AAAA,cACA,QAAQiB,EAAe;AAAA,cACvB,mBAAAhB;AAAA,cACA,eAAAC;AAAA,cACA,6BAAAC;AAAA,cACA,kBAAAC;AAAA,cACA,iBAAAC;AAAA,cACA,cAAAC;AAAA,cACA,YAAAC;AAAA,cACA,eAAAK;AAAA,YAAA;AAAA,UACF;AAAA,QAAA,GACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR,CAAC,GAED6B,KAAe9C;"}
@@ -1,13 +0,0 @@
1
- import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- const o = () => /* @__PURE__ */ r("svg", { className: "node-card-border", viewBox: "0 0 170 56", preserveAspectRatio: "none", children: [
3
- /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ r("linearGradient", { id: "gradient", x1: "0%", y1: "0%", x2: "100%", y2: "0%", children: [
4
- /* @__PURE__ */ e("stop", { offset: "0%", stopColor: "black" }),
5
- /* @__PURE__ */ e("stop", { offset: "100%", stopColor: "gray" })
6
- ] }) }),
7
- /* @__PURE__ */ e("rect", { className: "border-path", x: "0", y: "0", width: "100%", height: "100%" }),
8
- /* @__PURE__ */ e("rect", { className: "border-path-animation", x: "0", y: "0", width: "100%", height: "100%" })
9
- ] });
10
- export {
11
- o as default
12
- };
13
- //# sourceMappingURL=border-path-animation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"border-path-animation.js","sources":["../../../../../src/features/chapters-v2/comps/node-card/border-path-animation.tsx"],"sourcesContent":["import type { FC } from 'react';\n\nconst BorderPathAnimation: FC = () => {\n return (\n <svg className=\"node-card-border\" viewBox=\"0 0 170 56\" preserveAspectRatio=\"none\">\n <defs>\n <linearGradient id=\"gradient\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">\n <stop offset=\"0%\" stopColor=\"black\" />\n <stop offset=\"100%\" stopColor=\"gray\" />\n </linearGradient>\n </defs>\n <rect className=\"border-path\" x=\"0\" y=\"0\" width=\"100%\" height=\"100%\" />\n <rect className=\"border-path-animation\" x=\"0\" y=\"0\" width=\"100%\" height=\"100%\" />\n </svg>\n );\n};\n\nexport default BorderPathAnimation;\n"],"names":["BorderPathAnimation","jsx","jsxs"],"mappings":";AAEA,MAAMA,IAA0B,wBAE3B,OAAI,EAAA,WAAU,oBAAmB,SAAQ,cAAa,qBAAoB,QACzE,UAAA;AAAA,EAAA,gBAAAC,EAAC,QACC,EAAA,UAAA,gBAAAC,EAAC,kBAAe,EAAA,IAAG,YAAW,IAAG,MAAK,IAAG,MAAK,IAAG,QAAO,IAAG,MACzD,UAAA;AAAA,IAAA,gBAAAD,EAAC,QAAK,EAAA,QAAO,MAAK,WAAU,SAAQ;AAAA,IACnC,gBAAAA,EAAA,QAAA,EAAK,QAAO,QAAO,WAAU,QAAO;AAAA,EAAA,EAAA,CACvC,EACF,CAAA;AAAA,EACA,gBAAAA,EAAC,QAAK,EAAA,WAAU,eAAc,GAAE,KAAI,GAAE,KAAI,OAAM,QAAO,QAAO,OAAO,CAAA;AAAA,EACrE,gBAAAA,EAAC,QAAK,EAAA,WAAU,yBAAwB,GAAE,KAAI,GAAE,KAAI,OAAM,QAAO,QAAO,OAAO,CAAA;AACjF,EAAA,CAAA;"}