@cuemath/leap 2.9.9-as4 → 2.9.9

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 (315) 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/games/tutorial/constants.js +2 -2
  23. package/dist/features/circle-games/games/tutorial/constants.js.map +1 -1
  24. package/dist/features/circle-games/games/tutorial/tutorial-styled.js +6 -6
  25. package/dist/features/circle-games/games/tutorial/tutorial-styled.js.map +1 -1
  26. package/dist/features/circle-games/games/web-view/web-view.js +52 -45
  27. package/dist/features/circle-games/games/web-view/web-view.js.map +1 -1
  28. package/dist/features/circle-games/hooks/use-circle-sounds/use-circle-sounds.js +104 -74
  29. package/dist/features/circle-games/hooks/use-circle-sounds/use-circle-sounds.js.map +1 -1
  30. package/dist/features/circle-games/leaderboard/comps/banner/banner.js +6 -6
  31. package/dist/features/circle-games/leaderboard/comps/banner/banner.js.map +1 -1
  32. package/dist/features/circle-games/leaderboard/comps/navigation-button/navigation-button-styled.js +1 -1
  33. package/dist/features/circle-games/leaderboard/comps/navigation-button/navigation-button-styled.js.map +1 -1
  34. package/dist/features/circle-games/leaderboard/leaderboard-styled.js +1 -1
  35. package/dist/features/circle-games/leaderboard/leaderboard-styled.js.map +1 -1
  36. package/dist/features/circle-games/leaderboard/leaderboard.js +9 -9
  37. package/dist/features/circle-games/leaderboard/leaderboard.js.map +1 -1
  38. package/dist/features/circle-games/sign-up/comp/circular-steps/circular-steps-styled.js +8 -8
  39. package/dist/features/circle-games/sign-up/comp/circular-steps/circular-steps-styled.js.map +1 -1
  40. package/dist/features/circle-games/sign-up/constants.js +9 -9
  41. package/dist/features/circle-games/sign-up/constants.js.map +1 -1
  42. package/dist/features/communication/pub-sub/constants.js +6 -12
  43. package/dist/features/communication/pub-sub/constants.js.map +1 -1
  44. package/dist/features/journey/comps/coachmark/coachmark-styled.js +5 -12
  45. package/dist/features/journey/comps/coachmark/coachmark-styled.js.map +1 -1
  46. package/dist/features/journey/comps/coachmark/coachmark.js +24 -24
  47. package/dist/features/journey/comps/coachmark/coachmark.js.map +1 -1
  48. package/dist/features/journey/journey-id/journey-id-student.js +1 -1
  49. package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
  50. package/dist/features/journey/use-journey/journey-context-provider.js +28 -36
  51. package/dist/features/journey/use-journey/journey-context-provider.js.map +1 -1
  52. package/dist/features/journey/use-journey/journey-styled.js +5 -10
  53. package/dist/features/journey/use-journey/journey-styled.js.map +1 -1
  54. package/dist/features/milestone/create/api/goal-submit.js +1 -1
  55. package/dist/features/milestone/create/api/goal-submit.js.map +1 -1
  56. package/dist/features/milestone/create/comps/chapter-item/chapter-item.js +49 -42
  57. package/dist/features/milestone/create/comps/chapter-item/chapter-item.js.map +1 -1
  58. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step-styled.js +4 -12
  59. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step-styled.js.map +1 -1
  60. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js +105 -128
  61. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js.map +1 -1
  62. package/dist/features/milestone/create/comps/milestone-progress-v2/milestone-progress-v2.js +92 -0
  63. package/dist/features/milestone/create/comps/milestone-progress-v2/milestone-progress-v2.js.map +1 -0
  64. package/dist/features/milestone/create/comps/milestone-progress-v2/styled.js +25 -0
  65. package/dist/features/milestone/create/comps/milestone-progress-v2/styled.js.map +1 -0
  66. package/dist/features/milestone/create/comps/sheets-list/sheets-list-styled.js +20 -14
  67. package/dist/features/milestone/create/comps/sheets-list/sheets-list-styled.js.map +1 -1
  68. package/dist/features/milestone/create/comps/sheets-list/sheets-list.js +50 -26
  69. package/dist/features/milestone/create/comps/sheets-list/sheets-list.js.map +1 -1
  70. package/dist/features/milestone/create/milestone-create.js +43 -49
  71. package/dist/features/milestone/create/milestone-create.js.map +1 -1
  72. package/dist/features/milestone/create/utils/index.js +38 -33
  73. package/dist/features/milestone/create/utils/index.js.map +1 -1
  74. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/get-milestone.js +1 -1
  75. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/get-milestone.js.map +1 -1
  76. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/patch-goal-plan.js +1 -1
  77. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/patch-goal-plan.js.map +1 -1
  78. package/dist/features/milestone/edit/comps/edit-milestone-modal/index.js +53 -51
  79. package/dist/features/milestone/edit/comps/edit-milestone-modal/index.js.map +1 -1
  80. package/dist/features/milestone/edit/goal-drafts/goal-draft-edit-container.js +40 -42
  81. package/dist/features/milestone/edit/goal-drafts/goal-draft-edit-container.js.map +1 -1
  82. package/dist/features/milestone/edit/goal-edit-container.js +62 -64
  83. package/dist/features/milestone/edit/goal-edit-container.js.map +1 -1
  84. package/dist/features/milestone/edit/goal-edit-helpers.js +53 -50
  85. package/dist/features/milestone/edit/goal-edit-helpers.js.map +1 -1
  86. package/dist/features/milestone/edit/milestone-edit-container.js +52 -54
  87. package/dist/features/milestone/edit/milestone-edit-container.js.map +1 -1
  88. package/dist/features/milestone/milestone-list-container/api/get-milestone-resources.js +1 -1
  89. package/dist/features/milestone/milestone-list-container/api/get-milestone-resources.js.map +1 -1
  90. package/dist/features/milestone/milestone-list-container/api/get-milestones.js +17 -9
  91. package/dist/features/milestone/milestone-list-container/api/get-milestones.js.map +1 -1
  92. package/dist/features/milestone/milestone-list-container/api/get-tests-list.js +1 -1
  93. package/dist/features/milestone/milestone-list-container/api/get-tests-list.js.map +1 -1
  94. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js +105 -138
  95. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js.map +1 -1
  96. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element-styled.js +13 -0
  97. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element-styled.js.map +1 -0
  98. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element.js +38 -0
  99. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element.js.map +1 -0
  100. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/goals/goal-action-ctas.js +123 -107
  101. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/goals/goal-action-ctas.js.map +1 -1
  102. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js +176 -157
  103. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js.map +1 -1
  104. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs-styled.js +10 -24
  105. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs-styled.js.map +1 -1
  106. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js +86 -80
  107. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js.map +1 -1
  108. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-utils.js +22 -10
  109. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-utils.js.map +1 -1
  110. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-status.js +53 -0
  111. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-status.js.map +1 -0
  112. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-styled.js +37 -70
  113. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-styled.js.map +1 -1
  114. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js +176 -114
  115. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js.map +1 -1
  116. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-info.js +25 -0
  117. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-info.js.map +1 -0
  118. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-rank.js +16 -29
  119. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-rank.js.map +1 -1
  120. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-styled.js +25 -17
  121. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-styled.js.map +1 -1
  122. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome.js +35 -23
  123. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome.js.map +1 -1
  124. package/dist/features/milestone/milestone-list-container/milestone-list-container.js +113 -110
  125. package/dist/features/milestone/milestone-list-container/milestone-list-container.js.map +1 -1
  126. package/dist/features/milestone/milestone-resources/resources-assign/api/goal-resource-assign.js +1 -1
  127. package/dist/features/milestone/milestone-resources/resources-assign/api/goal-resource-assign.js.map +1 -1
  128. package/dist/features/milestone/milestone-resources/resources-assign/resources-assign.js +8 -8
  129. package/dist/features/milestone/milestone-resources/resources-assign/resources-assign.js.map +1 -1
  130. package/dist/features/milestone/milestone-resources/resources-list/resources-list-styled.js +1 -1
  131. package/dist/features/milestone/milestone-resources/resources-list/resources-list-styled.js.map +1 -1
  132. package/dist/features/milestone/milestone-resources/resources-list/resources-list.js +113 -116
  133. package/dist/features/milestone/milestone-resources/resources-list/resources-list.js.map +1 -1
  134. package/dist/features/milestone/milestone-tests/tests-creation/api/test-sheet-assign.js +5 -5
  135. package/dist/features/milestone/milestone-tests/tests-creation/api/test-sheet-assign.js.map +1 -1
  136. package/dist/features/milestone/milestone-tests/tests-creation/tests-creation.js +50 -46
  137. package/dist/features/milestone/milestone-tests/tests-creation/tests-creation.js.map +1 -1
  138. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-cta.js +71 -0
  139. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-cta.js.map +1 -0
  140. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-styled.js +31 -0
  141. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-styled.js.map +1 -0
  142. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js +38 -0
  143. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js.map +1 -0
  144. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item.js +79 -0
  145. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item.js.map +1 -0
  146. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list-styled.js +18 -0
  147. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list-styled.js.map +1 -0
  148. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js +51 -0
  149. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js.map +1 -0
  150. package/dist/features/milestone/milestone-tests/tests-list/tests-list-styled.js +11 -0
  151. package/dist/features/milestone/milestone-tests/tests-list/tests-list-styled.js.map +1 -0
  152. package/dist/features/milestone/milestone-tests/tests-list/tests-list.js +135 -0
  153. package/dist/features/milestone/milestone-tests/tests-list/tests-list.js.map +1 -0
  154. package/dist/features/sheets/resources-list/resource-item/styled.js +1 -1
  155. package/dist/features/sheets/resources-list/resource-item/styled.js.map +1 -1
  156. package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/teacher-actions/teacher-actions-constant.js +3 -4
  157. package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/teacher-actions/teacher-actions-constant.js.map +1 -1
  158. package/dist/features/ui/arc-button/constants.js +4 -4
  159. package/dist/features/ui/arc-button/constants.js.map +1 -1
  160. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +29 -30
  161. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
  162. package/dist/features/ui/constants/z-index.js +1 -1
  163. package/dist/features/ui/constants/z-index.js.map +1 -1
  164. package/dist/features/ui/context-menu/context-menu-styled.js +14 -28
  165. package/dist/features/ui/context-menu/context-menu-styled.js.map +1 -1
  166. package/dist/features/ui/context-menu/context-menu.js +15 -30
  167. package/dist/features/ui/context-menu/context-menu.js.map +1 -1
  168. package/dist/features/ui/lottie-animation/lottie-animation.js +13 -19
  169. package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
  170. package/dist/features/ui/theme/button.js +107 -22
  171. package/dist/features/ui/theme/button.js.map +1 -1
  172. package/dist/features/worksheet/worksheet/hooks/use-create-imperative-handle.js +96 -78
  173. package/dist/features/worksheet/worksheet/hooks/use-create-imperative-handle.js.map +1 -1
  174. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js +79 -47
  175. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js.map +1 -1
  176. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +150 -147
  177. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
  178. package/dist/features/worksheet/worksheet/worksheet-types.js.map +1 -1
  179. package/dist/features/worksheet/worksheet/worksheet.js +325 -300
  180. package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
  181. package/dist/index.d.ts +46 -355
  182. package/dist/index.js +471 -503
  183. package/dist/index.js.map +1 -1
  184. package/package.json +1 -1
  185. package/dist/assets/line-icons/icons/alarm.js +0 -41
  186. package/dist/assets/line-icons/icons/alarm.js.map +0 -1
  187. package/dist/assets/line-icons/icons/dart.js +0 -23
  188. package/dist/assets/line-icons/icons/dart.js.map +0 -1
  189. package/dist/assets/line-icons/icons/exclamation.js +0 -26
  190. package/dist/assets/line-icons/icons/exclamation.js.map +0 -1
  191. package/dist/assets/line-icons/icons/home2.js +0 -25
  192. package/dist/assets/line-icons/icons/home2.js.map +0 -1
  193. package/dist/assets/line-icons/icons/important.js +0 -23
  194. package/dist/assets/line-icons/icons/important.js.map +0 -1
  195. package/dist/assets/line-icons/icons/puzzle.js +0 -25
  196. package/dist/assets/line-icons/icons/puzzle.js.map +0 -1
  197. package/dist/assets/line-icons/icons/recap.js +0 -32
  198. package/dist/assets/line-icons/icons/recap.js.map +0 -1
  199. package/dist/assets/line-icons/icons/skip-colored.js +0 -43
  200. package/dist/assets/line-icons/icons/skip-colored.js.map +0 -1
  201. package/dist/assets/line-icons/icons/status.js +0 -41
  202. package/dist/assets/line-icons/icons/status.js.map +0 -1
  203. package/dist/assets/line-icons/icons/testtube.js +0 -33
  204. package/dist/assets/line-icons/icons/testtube.js.map +0 -1
  205. package/dist/features/chapters-v2/api/chapter.js +0 -10
  206. package/dist/features/chapters-v2/api/chapter.js.map +0 -1
  207. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js +0 -112
  208. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js.map +0 -1
  209. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections-styled.js +0 -35
  210. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections-styled.js.map +0 -1
  211. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js +0 -83
  212. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js.map +0 -1
  213. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner-styled.js +0 -90
  214. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner-styled.js.map +0 -1
  215. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner.js +0 -98
  216. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner.js.map +0 -1
  217. package/dist/features/chapters-v2/chapter-details/chapter-details-styled.js +0 -51
  218. package/dist/features/chapters-v2/chapter-details/chapter-details-styled.js.map +0 -1
  219. package/dist/features/chapters-v2/chapter-details/chapter-details.js +0 -127
  220. package/dist/features/chapters-v2/chapter-details/chapter-details.js.map +0 -1
  221. package/dist/features/chapters-v2/comps/node-card/border-path-animation.js +0 -13
  222. package/dist/features/chapters-v2/comps/node-card/border-path-animation.js.map +0 -1
  223. package/dist/features/chapters-v2/comps/node-card/node-card-styled.js +0 -159
  224. package/dist/features/chapters-v2/comps/node-card/node-card-styled.js.map +0 -1
  225. package/dist/features/chapters-v2/comps/node-card/node-card-tags.js +0 -16
  226. package/dist/features/chapters-v2/comps/node-card/node-card-tags.js.map +0 -1
  227. package/dist/features/chapters-v2/comps/node-card/node-card.js +0 -12
  228. package/dist/features/chapters-v2/comps/node-card/node-card.js.map +0 -1
  229. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-option.js +0 -31
  230. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-option.js.map +0 -1
  231. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options-styled.js +0 -32
  232. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options-styled.js.map +0 -1
  233. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options.js +0 -9
  234. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options.js.map +0 -1
  235. package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js +0 -189
  236. package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js.map +0 -1
  237. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js +0 -194
  238. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js.map +0 -1
  239. package/dist/features/chapters-v2/comps/tag/tag-styled.js +0 -13
  240. package/dist/features/chapters-v2/comps/tag/tag-styled.js.map +0 -1
  241. package/dist/features/chapters-v2/comps/tag/tag.js +0 -28
  242. package/dist/features/chapters-v2/comps/tag/tag.js.map +0 -1
  243. package/dist/features/chapters-v2/constants/block-constants.js +0 -20
  244. package/dist/features/chapters-v2/constants/block-constants.js.map +0 -1
  245. package/dist/features/chapters-v2/constants/node-constants.js +0 -14
  246. package/dist/features/chapters-v2/constants/node-constants.js.map +0 -1
  247. package/dist/features/chapters-v2/utils/index.js +0 -38
  248. package/dist/features/chapters-v2/utils/index.js.map +0 -1
  249. package/dist/features/chapters-v2/utils/node-card-utils.js +0 -177
  250. package/dist/features/chapters-v2/utils/node-card-utils.js.map +0 -1
  251. package/dist/features/homework/card-menu-option.js +0 -28
  252. package/dist/features/homework/card-menu-option.js.map +0 -1
  253. package/dist/features/homework/card-menu-options.js +0 -22
  254. package/dist/features/homework/card-menu-options.js.map +0 -1
  255. package/dist/features/homework/card-title.js +0 -16
  256. package/dist/features/homework/card-title.js.map +0 -1
  257. package/dist/features/homework/homework-analytics-events.js +0 -10
  258. package/dist/features/homework/homework-analytics-events.js.map +0 -1
  259. package/dist/features/homework/homework-card-view.js +0 -143
  260. package/dist/features/homework/homework-card-view.js.map +0 -1
  261. package/dist/features/homework/homework-card.js +0 -245
  262. package/dist/features/homework/homework-card.js.map +0 -1
  263. package/dist/features/homework/hw-card-list/api/get-homeworks.js +0 -10
  264. package/dist/features/homework/hw-card-list/api/get-homeworks.js.map +0 -1
  265. package/dist/features/homework/hw-card-list/hw-card-list-styled.js +0 -63
  266. package/dist/features/homework/hw-card-list/hw-card-list-styled.js.map +0 -1
  267. package/dist/features/homework/hw-card-list/hw-card-list.js +0 -191
  268. package/dist/features/homework/hw-card-list/hw-card-list.js.map +0 -1
  269. package/dist/features/homework/node-progress.js +0 -29
  270. package/dist/features/homework/node-progress.js.map +0 -1
  271. package/dist/features/homework/styles.js +0 -130
  272. package/dist/features/homework/styles.js.map +0 -1
  273. package/dist/features/homework/utils.js +0 -48
  274. package/dist/features/homework/utils.js.map +0 -1
  275. package/dist/features/journey/hooks/use-chapter-journey.js +0 -194
  276. package/dist/features/journey/hooks/use-chapter-journey.js.map +0 -1
  277. package/dist/features/journey/hooks/use-home-page-journey.js +0 -189
  278. package/dist/features/journey/hooks/use-home-page-journey.js.map +0 -1
  279. package/dist/features/journey/journey-id/journey-id-teacher.js +0 -5
  280. package/dist/features/journey/journey-id/journey-id-teacher.js.map +0 -1
  281. package/dist/features/journey/mocks/chapter-page-journey-mock-data.js +0 -587
  282. package/dist/features/journey/mocks/chapter-page-journey-mock-data.js.map +0 -1
  283. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js +0 -165
  284. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js.map +0 -1
  285. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view-styled.js +0 -25
  286. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view-styled.js.map +0 -1
  287. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js +0 -87
  288. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js.map +0 -1
  289. package/dist/features/recent-chapters/api/get-recent-chapters.js +0 -9
  290. package/dist/features/recent-chapters/api/get-recent-chapters.js.map +0 -1
  291. package/dist/features/recent-chapters/recent-chapters-styled.js +0 -16
  292. package/dist/features/recent-chapters/recent-chapters-styled.js.map +0 -1
  293. package/dist/features/recent-chapters/recent-chapters.js +0 -39
  294. package/dist/features/recent-chapters/recent-chapters.js.map +0 -1
  295. package/dist/features/sheet-v2/resource-list/resource-list.js +0 -45
  296. package/dist/features/sheet-v2/resource-list/resource-list.js.map +0 -1
  297. package/dist/node_modules/date-fns/differenceInDays.js +0 -17
  298. package/dist/node_modules/date-fns/differenceInDays.js.map +0 -1
  299. package/dist/static/chapter-header-bg-2.c8d96894.svg +0 -1
  300. package/dist/static/competitive-arena.b9c40801.json +0 -1
  301. package/dist/static/learn.71b13323.json +0 -1
  302. package/dist/static/node-custom-test-bg.d3b757be.svg +0 -1
  303. package/dist/static/node-learn-bg.b61f815c.svg +0 -1
  304. package/dist/static/node-practice-bg.16cbaf2a.svg +0 -1
  305. package/dist/static/node-project-bg.e6a33e28.svg +0 -1
  306. package/dist/static/node-puzzle-bg.3422135c.svg +0 -1
  307. package/dist/static/node-recap-bg.546154e4.svg +0 -1
  308. package/dist/static/node-test-prep-bg.42c0b9c4.svg +0 -1
  309. package/dist/static/node-video-bg.3df3f73a.svg +0 -1
  310. package/dist/static/practice.158dd488.json +0 -1
  311. package/dist/static/project.eb665827.json +0 -1
  312. package/dist/static/puzzle.b298c7e4.json +0 -1
  313. package/dist/static/recap.0dd2c1e2.json +0 -1
  314. package/dist/static/test.803d6036.json +0 -1
  315. package/dist/static/video.b41451e2.json +0 -1
@@ -1,101 +1,58 @@
1
- import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
- import { memo as T, useState as b, useRef as S, useCallback as W, useLayoutEffect as _ } from "react";
3
- import k from "../../../../assets/line-icons/icons/check2.js";
4
- import h from "../../../ui/arrow-tooltip/arrow-tooltip.js";
5
- import A from "../../../ui/layout/flex-view.js";
6
- import { ChapterItemWrapper as H, ChapterImageWrapper as P, ChapterProgressWrapper as j, ChapterProgressSVG as G, ChapterProgressSVGCircle as m, ChapterImage as V, StyledCheckIconWrapper as X, ChapterName as z } from "./chapter-item-styled.js";
7
- const B = T(
8
- ({ milestoneId: o, chapter: i, onChapterClick: a, itemIndex: d }) => {
9
- const {
10
- name: l,
11
- image_url: g,
12
- progress_stat: u,
13
- image_hue: C
14
- } = i, { mandatory: $, optional: f } = u || {}, { completed: s = 0, total: c = 0 } = $ || {}, { total: I = 0 } = f || {}, [x, y] = b(!1), t = S(null), p = s > 0 ? Math.floor((s / c || 1) * 100) : 0, r = c + I, w = W(() => {
15
- if (r === 0)
16
- return null;
17
- a(i, o);
18
- }, [i, o, a, r]);
1
+ import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
+ import { memo as C, useState as x, useRef as w, useCallback as T, useLayoutEffect as _ } from "react";
3
+ import { useTheme as y } from "styled-components";
4
+ import j from "../../../milestone/create/comps/milestone-progress-v2/milestone-progress-v2.js";
5
+ import A from "../../../ui/arrow-tooltip/arrow-tooltip.js";
6
+ import I from "../../../ui/layout/flex-view.js";
7
+ import { ChapterItemWrapper as L, ChapterImage as b, ChapterName as H } from "./chapter-item-styled.js";
8
+ const V = C(
9
+ ({ milestoneId: t, userType: m, chapter: s, onChapterClick: a, itemIndex: i }) => {
10
+ const p = y(), { gutter: r } = p.layout, f = !!((i + 1) % 2), { name: l, image_url: h, user_chapter_progress: n } = s, { total_core_sheets: u } = n, [d, g] = x(!1), e = w(null), $ = T(() => {
11
+ a(s, t);
12
+ }, [s, t, a]);
19
13
  return _(() => {
20
- t.current && t.current.scrollHeight > t.current.clientHeight && y(!0);
21
- }, [t]), /* @__PURE__ */ e(
22
- h,
14
+ e.current && e.current.scrollHeight > e.current.clientHeight && g(!0);
15
+ }, [e]), /* @__PURE__ */ c(
16
+ L,
23
17
  {
24
- renderAs: "primary",
25
- position: "bottom",
26
- tooltipItem: "Coming soon! We’re building this chapter",
27
- hidden: r > 0,
28
- parentWidth: "100%",
29
- zIndex: 5,
30
- children: /* @__PURE__ */ n(
31
- H,
32
- {
33
- id: `milestone-chapter-${o || ""}-${d}`,
34
- $alignItems: "center",
35
- $gapX: 1,
36
- $gutterX: 1,
37
- $flexGap: 8,
38
- $background: "WHITE_1",
39
- onClick: w,
40
- className: "goal-widget-chapter-item",
41
- $bgColor: `${C}_1`,
42
- shouldHideClick: r === 0,
43
- children: [
44
- /* @__PURE__ */ n(
45
- P,
46
- {
47
- $width: "fit-content",
48
- $position: "relative",
49
- $justifyContent: "center",
50
- $alignItems: "center",
51
- children: [
52
- /* @__PURE__ */ e(j, { children: /* @__PURE__ */ n(G, { width: "96px", height: "96px", children: [
53
- /* @__PURE__ */ e(m, { $progress: 0, r: "47", cx: "48", cy: "48" }),
54
- /* @__PURE__ */ e(
55
- m,
56
- {
57
- $progressCircle: !0,
58
- $progress: p * 2.98,
59
- r: "47",
60
- cx: "48",
61
- cy: "48"
62
- }
63
- )
64
- ] }) }),
65
- /* @__PURE__ */ e(V, { src: g, alt: "Chapter Image" }),
66
- p === 100 && /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(k, { width: 20, height: 20 }) })
67
- ]
68
- }
69
- ),
70
- /* @__PURE__ */ e(A, { $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ e(
71
- h,
72
- {
73
- renderAs: "primary",
74
- position: "bottom",
75
- tooltipItem: l,
76
- hidden: !x,
77
- widthX: 21.75,
78
- zIndex: 5,
79
- children: /* @__PURE__ */ e(
80
- z,
81
- {
82
- ref: t,
83
- $renderAs: "ab2",
84
- $color: "BLACK_T_87",
85
- $align: "center",
86
- children: l
87
- }
88
- )
89
- }
90
- ) })
91
- ]
92
- }
93
- )
18
+ $justifyContent: "flex-start",
19
+ $gap: r * 1.25,
20
+ $gutter: r * 1.25,
21
+ $flexDirection: "row",
22
+ $flexColumnGap: r,
23
+ $shouldHaveLeftBorder: f,
24
+ onClick: $,
25
+ id: `milestone-chapter-${t}-${i}`,
26
+ className: "goal-widget-chapter-item",
27
+ children: [
28
+ /* @__PURE__ */ o(b, { src: h, alt: "Chapter Image" }),
29
+ /* @__PURE__ */ c(I, { $justifyContent: "center", $flexRowGap: r * 0.75, children: [
30
+ /* @__PURE__ */ o(
31
+ A,
32
+ {
33
+ renderAs: "primary",
34
+ position: "bottom",
35
+ tooltipItem: l,
36
+ hidden: !d,
37
+ widthX: 21.75,
38
+ children: /* @__PURE__ */ o(H, { ref: e, $renderAs: "ab2", $color: "BLACK_T_87", children: l })
39
+ }
40
+ ),
41
+ !!u && /* @__PURE__ */ o(
42
+ j,
43
+ {
44
+ userType: m,
45
+ milestoneId: t,
46
+ progressInfo: n
47
+ }
48
+ )
49
+ ] })
50
+ ]
94
51
  }
95
52
  );
96
53
  }
97
54
  );
98
55
  export {
99
- B as default
56
+ V as default
100
57
  };
101
58
  //# sourceMappingURL=chapter-item.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chapter-item.js","sources":["../../../../../src/features/chapters/chapters-list/chapter-item/chapter-item.tsx"],"sourcesContent":["import type { IChapterItemProps } from './chapter-item-types';\nimport type { FC } from 'react';\n\nimport { useCallback, useLayoutEffect, useRef, useState, memo } from 'react';\n\nimport Check2Icon from '../../../../assets/line-icons/icons/check2';\nimport ArrowTooltip from '../../../ui/arrow-tooltip/arrow-tooltip';\nimport FlexView from '../../../ui/layout/flex-view';\nimport * as Styled from './chapter-item-styled';\n\nconst ChapterItem: FC<IChapterItemProps> = memo(\n ({ milestoneId, chapter, onChapterClick, itemIndex }) => {\n const {\n name,\n image_url: imageUrl,\n progress_stat: chapterProgressStat,\n image_hue: imageHue,\n } = chapter;\n const { mandatory, optional } = chapterProgressStat || {};\n const { completed = 0, total: totalMandatory = 0 } = mandatory || {};\n const { total: optionalTotal = 0 } = optional || {};\n const [showTitleTooltip, setShowTitleTooltip] = useState(false);\n const titleTextRef = useRef<HTMLDivElement>(null);\n const completionPercentage =\n completed > 0 ? Math.floor((completed / totalMandatory || 1) * 100) : 0;\n const totalSheets = totalMandatory + optionalTotal;\n const handleOnChapterClick = useCallback(() => {\n if (totalSheets === 0) {\n return null;\n }\n\n onChapterClick(chapter, milestoneId);\n }, [chapter, milestoneId, onChapterClick, totalSheets]);\n\n useLayoutEffect(() => {\n if (\n titleTextRef.current &&\n titleTextRef.current.scrollHeight > titleTextRef.current.clientHeight\n ) {\n setShowTitleTooltip(true);\n }\n }, [titleTextRef]);\n\n return (\n <ArrowTooltip\n renderAs=\"primary\"\n position=\"bottom\"\n tooltipItem=\"Coming soon! We’re building this chapter\"\n hidden={totalSheets > 0}\n parentWidth=\"100%\"\n zIndex={5}\n >\n <Styled.ChapterItemWrapper\n id={`milestone-chapter-${milestoneId || ''}-${itemIndex}`}\n $alignItems=\"center\"\n $gapX={1}\n $gutterX={1}\n $flexGap={8}\n $background=\"WHITE_1\"\n onClick={handleOnChapterClick}\n className=\"goal-widget-chapter-item\"\n $bgColor={`${imageHue}_1`}\n shouldHideClick={totalSheets === 0}\n >\n <Styled.ChapterImageWrapper\n $width=\"fit-content\"\n $position=\"relative\"\n $justifyContent=\"center\"\n $alignItems=\"center\"\n >\n <Styled.ChapterProgressWrapper>\n <Styled.ChapterProgressSVG width=\"96px\" height=\"96px\">\n <Styled.ChapterProgressSVGCircle $progress={0} r=\"47\" cx=\"48\" cy=\"48\" />\n <Styled.ChapterProgressSVGCircle\n $progressCircle\n $progress={completionPercentage * 2.98}\n r=\"47\"\n cx=\"48\"\n cy=\"48\"\n />\n </Styled.ChapterProgressSVG>\n </Styled.ChapterProgressWrapper>\n\n <Styled.ChapterImage src={imageUrl} alt=\"Chapter Image\" />\n\n {completionPercentage === 100 && (\n <Styled.StyledCheckIconWrapper>\n <Check2Icon width={20} height={20} />\n </Styled.StyledCheckIconWrapper>\n )}\n </Styled.ChapterImageWrapper>\n\n <FlexView $justifyContent=\"center\" $alignItems=\"center\">\n <ArrowTooltip\n renderAs=\"primary\"\n position=\"bottom\"\n tooltipItem={name}\n hidden={!showTitleTooltip}\n widthX={21.75}\n zIndex={5}\n >\n <Styled.ChapterName\n ref={titleTextRef}\n $renderAs=\"ab2\"\n $color=\"BLACK_T_87\"\n $align=\"center\"\n >\n {name}\n </Styled.ChapterName>\n </ArrowTooltip>\n </FlexView>\n </Styled.ChapterItemWrapper>\n </ArrowTooltip>\n );\n },\n);\n\nexport default ChapterItem;\n"],"names":["ChapterItem","memo","milestoneId","chapter","onChapterClick","itemIndex","name","imageUrl","chapterProgressStat","imageHue","mandatory","optional","completed","totalMandatory","optionalTotal","showTitleTooltip","setShowTitleTooltip","useState","titleTextRef","useRef","completionPercentage","totalSheets","handleOnChapterClick","useCallback","useLayoutEffect","jsx","ArrowTooltip","jsxs","Styled.ChapterItemWrapper","Styled.ChapterImageWrapper","Styled.ChapterProgressWrapper","Styled.ChapterProgressSVG","Styled.ChapterProgressSVGCircle","Styled.ChapterImage","Styled.StyledCheckIconWrapper","Check2Icon","FlexView","Styled.ChapterName"],"mappings":";;;;;;AAUA,MAAMA,IAAqCC;AAAA,EACzC,CAAC,EAAE,aAAAC,GAAa,SAAAC,GAAS,gBAAAC,GAAgB,WAAAC,QAAgB;AACjD,UAAA;AAAA,MACJ,MAAAC;AAAA,MACA,WAAWC;AAAA,MACX,eAAeC;AAAA,MACf,WAAWC;AAAA,IACT,IAAAN,GACE,EAAE,WAAAO,GAAW,UAAAC,MAAaH,KAAuB,CAAA,GACjD,EAAE,WAAAI,IAAY,GAAG,OAAOC,IAAiB,EAAE,IAAIH,KAAa,IAC5D,EAAE,OAAOI,IAAgB,EAAE,IAAIH,KAAY,CAAA,GAC3C,CAACI,GAAkBC,CAAmB,IAAIC,EAAS,EAAK,GACxDC,IAAeC,EAAuB,IAAI,GAC1CC,IACJR,IAAY,IAAI,KAAK,OAAOA,IAAYC,KAAkB,KAAK,GAAG,IAAI,GAClEQ,IAAcR,IAAiBC,GAC/BQ,IAAuBC,EAAY,MAAM;AAC7C,UAAIF,MAAgB;AACX,eAAA;AAGT,MAAAjB,EAAeD,GAASD,CAAW;AAAA,OAClC,CAACC,GAASD,GAAaE,GAAgBiB,CAAW,CAAC;AAEtD,WAAAG,EAAgB,MAAM;AACpB,MACEN,EAAa,WACbA,EAAa,QAAQ,eAAeA,EAAa,QAAQ,gBAEzDF,EAAoB,EAAI;AAAA,IAC1B,GACC,CAACE,CAAY,CAAC,GAGf,gBAAAO;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,UAAS;AAAA,QACT,UAAS;AAAA,QACT,aAAY;AAAA,QACZ,QAAQL,IAAc;AAAA,QACtB,aAAY;AAAA,QACZ,QAAQ;AAAA,QAER,UAAA,gBAAAM;AAAA,UAACC;AAAAA,UAAA;AAAA,YACC,IAAI,qBAAqB1B,KAAe,EAAE,IAAIG,CAAS;AAAA,YACvD,aAAY;AAAA,YACZ,OAAO;AAAA,YACP,UAAU;AAAA,YACV,UAAU;AAAA,YACV,aAAY;AAAA,YACZ,SAASiB;AAAA,YACT,WAAU;AAAA,YACV,UAAU,GAAGb,CAAQ;AAAA,YACrB,iBAAiBY,MAAgB;AAAA,YAEjC,UAAA;AAAA,cAAA,gBAAAM;AAAA,gBAACE;AAAAA,gBAAA;AAAA,kBACC,QAAO;AAAA,kBACP,WAAU;AAAA,kBACV,iBAAgB;AAAA,kBAChB,aAAY;AAAA,kBAEZ,UAAA;AAAA,oBAAC,gBAAAJ,EAAAK,GAAA,EACC,UAAC,gBAAAH,EAAAI,GAAA,EAA0B,OAAM,QAAO,QAAO,QAC7C,UAAA;AAAA,sBAAC,gBAAAN,EAAAO,GAAA,EAAgC,WAAW,GAAG,GAAE,MAAK,IAAG,MAAK,IAAG,KAAK,CAAA;AAAA,sBACtE,gBAAAP;AAAA,wBAACO;AAAAA,wBAAA;AAAA,0BACC,iBAAe;AAAA,0BACf,WAAWZ,IAAuB;AAAA,0BAClC,GAAE;AAAA,0BACF,IAAG;AAAA,0BACH,IAAG;AAAA,wBAAA;AAAA,sBACL;AAAA,oBAAA,EAAA,CACF,EACF,CAAA;AAAA,sCAECa,GAAA,EAAoB,KAAK1B,GAAU,KAAI,iBAAgB;AAAA,oBAEvDa,MAAyB,OACvB,gBAAAK,EAAAS,GAAA,EACC,UAAC,gBAAAT,EAAAU,GAAA,EAAW,OAAO,IAAI,QAAQ,GAAA,CAAI,EACrC,CAAA;AAAA,kBAAA;AAAA,gBAAA;AAAA,cAEJ;AAAA,cAEC,gBAAAV,EAAAW,GAAA,EAAS,iBAAgB,UAAS,aAAY,UAC7C,UAAA,gBAAAX;AAAA,gBAACC;AAAA,gBAAA;AAAA,kBACC,UAAS;AAAA,kBACT,UAAS;AAAA,kBACT,aAAapB;AAAA,kBACb,QAAQ,CAACS;AAAA,kBACT,QAAQ;AAAA,kBACR,QAAQ;AAAA,kBAER,UAAA,gBAAAU;AAAA,oBAACY;AAAAA,oBAAA;AAAA,sBACC,KAAKnB;AAAA,sBACL,WAAU;AAAA,sBACV,QAAO;AAAA,sBACP,QAAO;AAAA,sBAEN,UAAAZ;AAAA,oBAAA;AAAA,kBACH;AAAA,gBAAA;AAAA,cAAA,GAEJ;AAAA,YAAA;AAAA,UAAA;AAAA,QACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN;AACF;"}
1
+ {"version":3,"file":"chapter-item.js","sources":["../../../../../src/features/chapters/chapters-list/chapter-item/chapter-item.tsx"],"sourcesContent":["import type { IChapterItemProps } from './chapter-item-types';\nimport type { FC } from 'react';\n\nimport { useCallback, useLayoutEffect, useRef, useState, memo } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport MilestoneProgressInfoV2 from '../../../milestone/create/comps/milestone-progress-v2/milestone-progress-v2';\nimport ArrowTooltip from '../../../ui/arrow-tooltip/arrow-tooltip';\nimport FlexView from '../../../ui/layout/flex-view';\nimport * as Styled from './chapter-item-styled';\n\nconst ChapterItem: FC<IChapterItemProps> = memo(\n ({ milestoneId, userType, chapter, onChapterClick, itemIndex }) => {\n const theme = useTheme();\n const { gutter } = theme.layout;\n const isOddIndex = !!((itemIndex + 1) % 2);\n const { name, image_url: imageUrl, user_chapter_progress: chapterStats } = chapter;\n const { total_core_sheets: totalLessons } = chapterStats;\n const [showTitleTooltip, setShowTitleTooltip] = useState(false);\n const titleTextRef = useRef<HTMLDivElement>(null);\n\n const handleOnChapterClick = useCallback(() => {\n onChapterClick(chapter, milestoneId);\n }, [chapter, milestoneId, onChapterClick]);\n\n useLayoutEffect(() => {\n if (\n titleTextRef.current &&\n titleTextRef.current.scrollHeight > titleTextRef.current.clientHeight\n ) {\n setShowTitleTooltip(true);\n }\n }, [titleTextRef]);\n\n return (\n <Styled.ChapterItemWrapper\n $justifyContent={'flex-start'}\n $gap={gutter * 1.25}\n $gutter={gutter * 1.25}\n $flexDirection=\"row\"\n $flexColumnGap={gutter}\n $shouldHaveLeftBorder={isOddIndex}\n onClick={handleOnChapterClick}\n id={`milestone-chapter-${milestoneId}-${itemIndex}`}\n className=\"goal-widget-chapter-item\"\n >\n <Styled.ChapterImage src={imageUrl} alt=\"Chapter Image\" />\n <FlexView $justifyContent=\"center\" $flexRowGap={gutter * 0.75}>\n <ArrowTooltip\n renderAs=\"primary\"\n position=\"bottom\"\n tooltipItem={name}\n hidden={!showTitleTooltip}\n widthX={21.75}\n >\n <Styled.ChapterName ref={titleTextRef} $renderAs=\"ab2\" $color=\"BLACK_T_87\">\n {name}\n </Styled.ChapterName>\n </ArrowTooltip>\n {!!totalLessons && (\n <MilestoneProgressInfoV2\n userType={userType}\n milestoneId={milestoneId}\n progressInfo={chapterStats}\n />\n )}\n </FlexView>\n </Styled.ChapterItemWrapper>\n );\n },\n);\n\nexport default ChapterItem;\n"],"names":["ChapterItem","memo","milestoneId","userType","chapter","onChapterClick","itemIndex","theme","useTheme","gutter","isOddIndex","name","imageUrl","chapterStats","totalLessons","showTitleTooltip","setShowTitleTooltip","useState","titleTextRef","useRef","handleOnChapterClick","useCallback","useLayoutEffect","jsxs","Styled.ChapterItemWrapper","jsx","Styled.ChapterImage","FlexView","ArrowTooltip","Styled.ChapterName","MilestoneProgressInfoV2"],"mappings":";;;;;;;AAWA,MAAMA,IAAqCC;AAAA,EACzC,CAAC,EAAE,aAAAC,GAAa,UAAAC,GAAU,SAAAC,GAAS,gBAAAC,GAAgB,WAAAC,QAAgB;AACjE,UAAMC,IAAQC,KACR,EAAE,QAAAC,EAAO,IAAIF,EAAM,QACnBG,IAAa,CAAC,GAAGJ,IAAY,KAAK,IAClC,EAAE,MAAAK,GAAM,WAAWC,GAAU,uBAAuBC,EAAiB,IAAAT,GACrE,EAAE,mBAAmBU,EAAiB,IAAAD,GACtC,CAACE,GAAkBC,CAAmB,IAAIC,EAAS,EAAK,GACxDC,IAAeC,EAAuB,IAAI,GAE1CC,IAAuBC,EAAY,MAAM;AAC7C,MAAAhB,EAAeD,GAASF,CAAW;AAAA,IAClC,GAAA,CAACE,GAASF,GAAaG,CAAc,CAAC;AAEzC,WAAAiB,EAAgB,MAAM;AACpB,MACEJ,EAAa,WACbA,EAAa,QAAQ,eAAeA,EAAa,QAAQ,gBAEzDF,EAAoB,EAAI;AAAA,IAC1B,GACC,CAACE,CAAY,CAAC,GAGf,gBAAAK;AAAA,MAACC;AAAAA,MAAA;AAAA,QACC,iBAAiB;AAAA,QACjB,MAAMf,IAAS;AAAA,QACf,SAASA,IAAS;AAAA,QAClB,gBAAe;AAAA,QACf,gBAAgBA;AAAA,QAChB,uBAAuBC;AAAA,QACvB,SAASU;AAAA,QACT,IAAI,qBAAqBlB,CAAW,IAAII,CAAS;AAAA,QACjD,WAAU;AAAA,QAEV,UAAA;AAAA,UAAA,gBAAAmB,EAACC,GAAA,EAAoB,KAAKd,GAAU,KAAI,iBAAgB;AAAA,4BACvDe,GAAS,EAAA,iBAAgB,UAAS,aAAalB,IAAS,MACvD,UAAA;AAAA,YAAA,gBAAAgB;AAAA,cAACG;AAAA,cAAA;AAAA,gBACC,UAAS;AAAA,gBACT,UAAS;AAAA,gBACT,aAAajB;AAAA,gBACb,QAAQ,CAACI;AAAA,gBACT,QAAQ;AAAA,gBAER,UAAA,gBAAAU,EAACI,GAAA,EAAmB,KAAKX,GAAc,WAAU,OAAM,QAAO,cAC3D,UACHP,EAAA,CAAA;AAAA,cAAA;AAAA,YACF;AAAA,YACC,CAAC,CAACG,KACD,gBAAAW;AAAA,cAACK;AAAA,cAAA;AAAA,gBACC,UAAA3B;AAAA,gBACA,aAAAD;AAAA,gBACA,cAAcW;AAAA,cAAA;AAAA,YAChB;AAAA,UAAA,GAEJ;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN;AACF;"}
@@ -1,15 +1,14 @@
1
1
  import r from "styled-components";
2
2
  import { MILESTONE_WIDGET_MIN_HEIGHT as o } from "../../milestone/constants.js";
3
- import i from "../../ui/layout/flex-view.js";
4
- const s = r(i)`
3
+ import p from "../../ui/layout/flex-view.js";
4
+ const s = r(p)`
5
5
  position: relative;
6
6
  min-height: ${o}px;
7
7
  `, n = r.div`
8
8
  display: grid;
9
- grid-template-columns: repeat(4, 1fr);
9
+ grid-template-columns: repeat(2, 1fr);
10
10
  align-content: start;
11
- `;
12
- r.div(({ theme: t }) => `
11
+ `, d = r.div(({ theme: t }) => `
13
12
  position: absolute;
14
13
  bottom: ${t.layout.gutter}px;
15
14
  right: ${t.layout.gutter}px;
@@ -17,6 +16,7 @@ r.div(({ theme: t }) => `
17
16
  border-radius: 50%;
18
17
  `);
19
18
  export {
19
+ d as AddChapterIconWrapper,
20
20
  s as ChaptersListContainer,
21
21
  n as ChaptersWrapper
22
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"chapters-list-styled.js","sources":["../../../../src/features/chapters/chapters-list/chapters-list-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport { MILESTONE_WIDGET_MIN_HEIGHT } from '../../milestone/constants';\nimport FlexView from '../../ui/layout/flex-view';\n\nconst ChaptersListContainer = styled(FlexView)`\n position: relative;\n min-height: ${MILESTONE_WIDGET_MIN_HEIGHT}px;\n`;\n\nconst ChaptersWrapper = styled.div`\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n align-content: start;\n`;\n\nconst AddChapterIconWrapper = styled.div(({ theme }) => {\n return `\n position: absolute;\n bottom: ${theme.layout.gutter}px;\n right: ${theme.layout.gutter}px;\n box-shadow: 0px 10px 20px 0px ${theme.colors.BLACK_T_20};\n border-radius: 50%;\n `;\n});\n\nexport { ChaptersListContainer, ChaptersWrapper, AddChapterIconWrapper };\n"],"names":["ChaptersListContainer","styled","FlexView","MILESTONE_WIDGET_MIN_HEIGHT","ChaptersWrapper","theme"],"mappings":";;;AAKM,MAAAA,IAAwBC,EAAOC,CAAQ;AAAA;AAAA,gBAE7BC,CAA2B;AAAA,GAGrCC,IAAkBH,EAAO;AAAA;AAAA;AAAA;AAAA;AAMDA,EAAO,IAAI,CAAC,EAAE,OAAAI,QACnC;AAAA;AAAA,cAEKA,EAAM,OAAO,MAAM;AAAA,aACpBA,EAAM,OAAO,MAAM;AAAA,oCACIA,EAAM,OAAO,UAAU;AAAA;AAAA,GAG1D;"}
1
+ {"version":3,"file":"chapters-list-styled.js","sources":["../../../../src/features/chapters/chapters-list/chapters-list-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport { MILESTONE_WIDGET_MIN_HEIGHT } from '../../milestone/constants';\nimport FlexView from '../../ui/layout/flex-view';\n\nconst ChaptersListContainer = styled(FlexView)`\n position: relative;\n min-height: ${MILESTONE_WIDGET_MIN_HEIGHT}px;\n`;\n\nconst ChaptersWrapper = styled.div`\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n align-content: start;\n`;\n\nconst AddChapterIconWrapper = styled.div(({ theme }) => {\n return `\n position: absolute;\n bottom: ${theme.layout.gutter}px;\n right: ${theme.layout.gutter}px;\n box-shadow: 0px 10px 20px 0px ${theme.colors.BLACK_T_20};\n border-radius: 50%;\n `;\n});\n\nexport { ChaptersListContainer, ChaptersWrapper, AddChapterIconWrapper };\n"],"names":["ChaptersListContainer","styled","FlexView","MILESTONE_WIDGET_MIN_HEIGHT","ChaptersWrapper","AddChapterIconWrapper","theme"],"mappings":";;;AAKM,MAAAA,IAAwBC,EAAOC,CAAQ;AAAA;AAAA,gBAE7BC,CAA2B;AAAA,GAGrCC,IAAkBH,EAAO;AAAA;AAAA;AAAA;AAAA,GAMzBI,IAAwBJ,EAAO,IAAI,CAAC,EAAE,OAAAK,QACnC;AAAA;AAAA,cAEKA,EAAM,OAAO,MAAM;AAAA,aACpBA,EAAM,OAAO,MAAM;AAAA,oCACIA,EAAM,OAAO,UAAU;AAAA;AAAA,GAG1D;"}
@@ -1,78 +1,84 @@
1
- import { jsxs as p, jsx as r, Fragment as A } from "react/jsx-runtime";
2
- import { memo as T, useCallback as b } from "react";
1
+ import { jsxs as i, jsx as r, Fragment as T } from "react/jsx-runtime";
2
+ import { memo as b, useCallback as y } from "react";
3
3
  import { IMAGES as g } from "../../../assets/images/images.js";
4
- import k from "../../ui/arrow-tooltip/arrow-tooltip.js";
5
- import x from "../../ui/buttons/button/button.js";
4
+ import k from "../../../assets/line-icons/icons/plus2.js";
5
+ import x from "../../ui/arrow-tooltip/arrow-tooltip.js";
6
+ import E from "../../ui/buttons/button/button.js";
7
+ import I from "../../ui/buttons/icon-button/icon-button.js";
6
8
  import { useUIContext as $ } from "../../ui/context/context.js";
7
- import m from "../../ui/separator/separator.js";
8
- import y from "../../ui/text/text.js";
9
- import E from "./chapter-item/chapter-item.js";
10
- import { ChaptersListContainer as l, ChaptersWrapper as X } from "./chapters-list-styled.js";
11
- const I = T(
12
- ({ milestoneId: t, canUpdatePlan: c, chapters: o, ...d }) => {
13
- const { isGoalCreation: i, userType: h, onChapterClick: C, onAddChapter: e, isMilestoneActive: a } = d, { onClick: n } = $(), f = b(() => {
14
- n({
9
+ import d from "../../ui/separator/separator.js";
10
+ import L from "../../ui/text/text.js";
11
+ import X from "./chapter-item/chapter-item.js";
12
+ import { ChaptersListContainer as h, ChaptersWrapper as M, AddChapterIconWrapper as S } from "./chapters-list-styled.js";
13
+ const j = b(
14
+ ({ milestoneId: t, canUpdatePlan: n, chapters: a, ...C }) => {
15
+ const { isGoalCreation: s, userType: o, onChapterClick: f, onAddChapter: e, isMilestoneActive: p } = C, A = o === "TEACHER" && e && n, { onClick: c } = $(), m = y(() => {
16
+ c({
15
17
  label: "add_chapter_icon",
16
18
  props: {
17
19
  milestone_id: t
18
20
  }
19
- }), e == null || e({ milestoneId: t, isGoalCreation: i });
20
- }, [t, i, e, n]);
21
- return o.length ? /* @__PURE__ */ r(l, { children: /* @__PURE__ */ r(X, { children: o.map((s, u) => {
22
- const { id: _ } = s;
23
- return /* @__PURE__ */ r(
24
- E,
21
+ }), e == null || e({ milestoneId: t, isGoalCreation: s });
22
+ }, [t, s, e, c]);
23
+ return a.length ? /* @__PURE__ */ i(h, { children: [
24
+ /* @__PURE__ */ r(M, { children: a.map((l, u) => {
25
+ const { id: _ } = l;
26
+ return /* @__PURE__ */ r(
27
+ X,
28
+ {
29
+ milestoneId: t,
30
+ userType: o,
31
+ chapter: l,
32
+ onChapterClick: f,
33
+ itemIndex: u
34
+ },
35
+ _
36
+ );
37
+ }) }),
38
+ A && /* @__PURE__ */ r(S, { children: /* @__PURE__ */ r(
39
+ I,
25
40
  {
26
- milestoneId: t,
27
- chapter: s,
28
- onChapterClick: C,
29
- itemIndex: u
30
- },
31
- _
32
- );
33
- }) }) }) : /* @__PURE__ */ p(
34
- l,
35
- {
36
- $gapX: 6.75,
37
- $alignItems: "center",
38
- $justifyContent: "center",
39
- $background: "WHITE",
40
- children: [
41
- /* @__PURE__ */ r("img", { src: g.EMPTY_MIX_TESTS, alt: "empty_mix_tests" }),
42
- /* @__PURE__ */ r(m, { heightX: 2 }),
43
- h === "TEACHER" ? /* @__PURE__ */ p(A, { children: [
44
- /* @__PURE__ */ r(
45
- k,
41
+ Icon: k,
42
+ renderAs: "secondary",
43
+ size: "small",
44
+ analyticsLabel: "add_chapter_icon",
45
+ onClick: m
46
+ }
47
+ ) })
48
+ ] }) : /* @__PURE__ */ i(h, { $gapX: 6.75, $alignItems: "center", $justifyContent: "center", children: [
49
+ /* @__PURE__ */ r("img", { src: g.EMPTY_MIX_TESTS, alt: "empty_mix_tests" }),
50
+ /* @__PURE__ */ r(d, { heightX: 2 }),
51
+ o === "TEACHER" ? /* @__PURE__ */ i(T, { children: [
52
+ /* @__PURE__ */ r(
53
+ x,
54
+ {
55
+ renderAs: "primary",
56
+ position: "bottom",
57
+ hidden: p,
58
+ tooltipItem: "Plan is completed",
59
+ children: /* @__PURE__ */ r(
60
+ E,
46
61
  {
62
+ widthX: 10,
47
63
  renderAs: "primary",
48
- position: "bottom",
49
- hidden: a,
50
- tooltipItem: "Plan is completed",
51
- children: /* @__PURE__ */ r(
52
- x,
53
- {
54
- widthX: 10,
55
- renderAs: "primary",
56
- shape: "square",
57
- size: "small",
58
- label: "Add chapter",
59
- onClick: f,
60
- disabled: !a || !c,
61
- analyticsProps: {
62
- milestone_id: t
63
- }
64
- }
65
- )
64
+ shape: "square",
65
+ size: "small",
66
+ label: "Add chapter",
67
+ onClick: m,
68
+ disabled: !p || !n,
69
+ analyticsProps: {
70
+ milestone_id: t
71
+ }
66
72
  }
67
- ),
68
- /* @__PURE__ */ r(m, { heightX: 2 })
69
- ] }) : /* @__PURE__ */ r(y, { $renderAs: "ab2-bold", $color: "BLACK_T_87", children: "Wait for the teacher to add a chapter" })
70
- ]
71
- }
72
- );
73
+ )
74
+ }
75
+ ),
76
+ /* @__PURE__ */ r(d, { heightX: 2 })
77
+ ] }) : /* @__PURE__ */ r(L, { $renderAs: "ab2-bold", $color: "BLACK_T_87", children: "Wait for the teacher to add a chapter" })
78
+ ] });
73
79
  }
74
- ), O = I;
80
+ ), K = j;
75
81
  export {
76
- O as default
82
+ K as default
77
83
  };
78
84
  //# sourceMappingURL=chapters-list.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chapters-list.js","sources":["../../../../src/features/chapters/chapters-list/chapters-list.tsx"],"sourcesContent":["import type { IChaptersListProps } from './chapters-list-types';\nimport type { FC } from 'react';\n\nimport { memo, useCallback } from 'react';\n\nimport { IMAGES } from '../../../assets/images/images';\nimport ArrowTooltip from '../../ui/arrow-tooltip/arrow-tooltip';\nimport Button from '../../ui/buttons/button/button';\nimport { useUIContext } from '../../ui/context/context';\nimport Separator from '../../ui/separator/separator';\nimport Text from '../../ui/text/text';\nimport ChapterItem from './chapter-item/chapter-item';\nimport * as Styled from './chapters-list-styled';\n\nconst ChaptersList: FC<IChaptersListProps> = memo(\n ({ milestoneId, canUpdatePlan, chapters, ...restChaptersList }) => {\n const { isGoalCreation, userType, onChapterClick, onAddChapter, isMilestoneActive } =\n restChaptersList;\n\n const { onClick: trackOnClick } = useUIContext();\n\n const handleOnAddChapter = useCallback(() => {\n trackOnClick({\n label: 'add_chapter_icon',\n props: {\n milestone_id: milestoneId,\n },\n });\n onAddChapter?.({ milestoneId, isGoalCreation });\n }, [milestoneId, isGoalCreation, onAddChapter, trackOnClick]);\n\n if (!chapters.length) {\n return (\n <Styled.ChaptersListContainer\n $gapX={6.75}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $background=\"WHITE\"\n >\n <img src={IMAGES.EMPTY_MIX_TESTS} alt=\"empty_mix_tests\" />\n <Separator heightX={2} />\n {userType === 'TEACHER' ? (\n <>\n <ArrowTooltip\n renderAs=\"primary\"\n position=\"bottom\"\n hidden={isMilestoneActive}\n tooltipItem=\"Plan is completed\"\n >\n <Button\n widthX={10}\n renderAs=\"primary\"\n shape=\"square\"\n size=\"small\"\n label=\"Add chapter\"\n onClick={handleOnAddChapter}\n disabled={!isMilestoneActive || !canUpdatePlan}\n analyticsProps={{\n milestone_id: milestoneId,\n }}\n />\n </ArrowTooltip>\n <Separator heightX={2} />\n </>\n ) : (\n <Text $renderAs=\"ab2-bold\" $color=\"BLACK_T_87\">\n Wait for the teacher to add a chapter\n </Text>\n )}\n </Styled.ChaptersListContainer>\n );\n }\n\n return (\n <Styled.ChaptersListContainer>\n <Styled.ChaptersWrapper>\n {chapters.map((chapter, idx) => {\n const { id } = chapter;\n\n return (\n <ChapterItem\n key={id}\n milestoneId={milestoneId}\n chapter={chapter}\n onChapterClick={onChapterClick}\n itemIndex={idx}\n />\n );\n })}\n </Styled.ChaptersWrapper>\n </Styled.ChaptersListContainer>\n );\n },\n);\n\nexport default ChaptersList;\n"],"names":["ChaptersList","memo","milestoneId","canUpdatePlan","chapters","restChaptersList","isGoalCreation","userType","onChapterClick","onAddChapter","isMilestoneActive","trackOnClick","useUIContext","handleOnAddChapter","useCallback","jsx","Styled.ChaptersListContainer","Styled.ChaptersWrapper","chapter","idx","id","ChapterItem","jsxs","IMAGES","Separator","Fragment","ArrowTooltip","Button","Text","ChaptersList$1"],"mappings":";;;;;;;;;;AAcA,MAAMA,IAAuCC;AAAA,EAC3C,CAAC,EAAE,aAAAC,GAAa,eAAAC,GAAe,UAAAC,GAAU,GAAGC,QAAuB;AACjE,UAAM,EAAE,gBAAAC,GAAgB,UAAAC,GAAU,gBAAAC,GAAgB,cAAAC,GAAc,mBAAAC,EAC9D,IAAAL,GAEI,EAAE,SAASM,EAAa,IAAIC,EAAa,GAEzCC,IAAqBC,EAAY,MAAM;AAC9B,MAAAH,EAAA;AAAA,QACX,OAAO;AAAA,QACP,OAAO;AAAA,UACL,cAAcT;AAAA,QAChB;AAAA,MAAA,CACD,GACcO,KAAA,QAAAA,EAAA,EAAE,aAAAP,GAAa,gBAAAI,EAAA;AAAA,OAC7B,CAACJ,GAAaI,GAAgBG,GAAcE,CAAY,CAAC;AAExD,WAACP,EAAS,SA2CX,gBAAAW,EAAAC,GAAA,EACC,UAAC,gBAAAD,EAAAE,GAAA,EACE,UAASb,EAAA,IAAI,CAACc,GAASC,MAAQ;AACxB,YAAA,EAAE,IAAAC,EAAO,IAAAF;AAGb,aAAA,gBAAAH;AAAA,QAACM;AAAA,QAAA;AAAA,UAEC,aAAAnB;AAAA,UACA,SAAAgB;AAAA,UACA,gBAAAV;AAAA,UACA,WAAWW;AAAA,QAAA;AAAA,QAJNC;AAAA,MAAA;AAAA,IAKP,CAEH,GACH,EACF,CAAA,IAzDE,gBAAAE;AAAA,MAACN;AAAAA,MAAA;AAAA,QACC,OAAO;AAAA,QACP,aAAY;AAAA,QACZ,iBAAgB;AAAA,QAChB,aAAY;AAAA,QAEZ,UAAA;AAAA,UAAA,gBAAAD,EAAC,OAAI,EAAA,KAAKQ,EAAO,iBAAiB,KAAI,mBAAkB;AAAA,UACxD,gBAAAR,EAACS,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,UACtBjB,MAAa,YAEV,gBAAAe,EAAAG,GAAA,EAAA,UAAA;AAAA,YAAA,gBAAAV;AAAA,cAACW;AAAA,cAAA;AAAA,gBACC,UAAS;AAAA,gBACT,UAAS;AAAA,gBACT,QAAQhB;AAAA,gBACR,aAAY;AAAA,gBAEZ,UAAA,gBAAAK;AAAA,kBAACY;AAAA,kBAAA;AAAA,oBACC,QAAQ;AAAA,oBACR,UAAS;AAAA,oBACT,OAAM;AAAA,oBACN,MAAK;AAAA,oBACL,OAAM;AAAA,oBACN,SAASd;AAAA,oBACT,UAAU,CAACH,KAAqB,CAACP;AAAA,oBACjC,gBAAgB;AAAA,sBACd,cAAcD;AAAA,oBAChB;AAAA,kBAAA;AAAA,gBACF;AAAA,cAAA;AAAA,YACF;AAAA,YACA,gBAAAa,EAACS,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,UAAA,EAAA,CACzB,IAEC,gBAAAT,EAAAa,GAAA,EAAK,WAAU,YAAW,QAAO,cAAa,UAE/C,yCAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAyBV;AACF,GAEAC,IAAe7B;"}
1
+ {"version":3,"file":"chapters-list.js","sources":["../../../../src/features/chapters/chapters-list/chapters-list.tsx"],"sourcesContent":["import type { IChaptersListProps } from './chapters-list-types';\nimport type { FC } from 'react';\n\nimport { memo, useCallback } from 'react';\n\nimport { IMAGES } from '../../../assets/images/images';\nimport Plus2Icon from '../../../assets/line-icons/icons/plus2';\nimport ArrowTooltip from '../../ui/arrow-tooltip/arrow-tooltip';\nimport Button from '../../ui/buttons/button/button';\nimport IconButton from '../../ui/buttons/icon-button/icon-button';\nimport { useUIContext } from '../../ui/context/context';\nimport Separator from '../../ui/separator/separator';\nimport Text from '../../ui/text/text';\nimport ChapterItem from './chapter-item/chapter-item';\nimport * as Styled from './chapters-list-styled';\n\nconst ChaptersList: FC<IChaptersListProps> = memo(\n ({ milestoneId, canUpdatePlan, chapters, ...restChaptersList }) => {\n const { isGoalCreation, userType, onChapterClick, onAddChapter, isMilestoneActive } =\n restChaptersList;\n\n const canAddChapter = userType === 'TEACHER' && onAddChapter && canUpdatePlan;\n const { onClick: trackOnClick } = useUIContext();\n\n const handleOnAddChapter = useCallback(() => {\n trackOnClick({\n label: 'add_chapter_icon',\n props: {\n milestone_id: milestoneId,\n },\n });\n onAddChapter?.({ milestoneId, isGoalCreation });\n }, [milestoneId, isGoalCreation, onAddChapter, trackOnClick]);\n\n if (!chapters.length) {\n return (\n <Styled.ChaptersListContainer $gapX={6.75} $alignItems=\"center\" $justifyContent=\"center\">\n <img src={IMAGES.EMPTY_MIX_TESTS} alt=\"empty_mix_tests\" />\n <Separator heightX={2} />\n {userType === 'TEACHER' ? (\n <>\n <ArrowTooltip\n renderAs=\"primary\"\n position=\"bottom\"\n hidden={isMilestoneActive}\n tooltipItem=\"Plan is completed\"\n >\n <Button\n widthX={10}\n renderAs=\"primary\"\n shape=\"square\"\n size=\"small\"\n label=\"Add chapter\"\n onClick={handleOnAddChapter}\n disabled={!isMilestoneActive || !canUpdatePlan}\n analyticsProps={{\n milestone_id: milestoneId,\n }}\n />\n </ArrowTooltip>\n <Separator heightX={2} />\n </>\n ) : (\n <Text $renderAs=\"ab2-bold\" $color=\"BLACK_T_87\">\n Wait for the teacher to add a chapter\n </Text>\n )}\n </Styled.ChaptersListContainer>\n );\n }\n\n return (\n <Styled.ChaptersListContainer>\n <Styled.ChaptersWrapper>\n {chapters.map((chapter, idx) => {\n const { id } = chapter;\n\n return (\n <ChapterItem\n key={id}\n milestoneId={milestoneId}\n userType={userType}\n chapter={chapter}\n onChapterClick={onChapterClick}\n itemIndex={idx}\n />\n );\n })}\n </Styled.ChaptersWrapper>\n {canAddChapter && (\n <Styled.AddChapterIconWrapper>\n <IconButton\n Icon={Plus2Icon}\n renderAs=\"secondary\"\n size=\"small\"\n analyticsLabel=\"add_chapter_icon\"\n onClick={handleOnAddChapter}\n />\n </Styled.AddChapterIconWrapper>\n )}\n </Styled.ChaptersListContainer>\n );\n },\n);\n\nexport default ChaptersList;\n"],"names":["ChaptersList","memo","milestoneId","canUpdatePlan","chapters","restChaptersList","isGoalCreation","userType","onChapterClick","onAddChapter","isMilestoneActive","canAddChapter","trackOnClick","useUIContext","handleOnAddChapter","useCallback","jsxs","Styled.ChaptersListContainer","jsx","Styled.ChaptersWrapper","chapter","idx","id","ChapterItem","Styled.AddChapterIconWrapper","IconButton","Plus2Icon","IMAGES","Separator","Fragment","ArrowTooltip","Button","Text","ChaptersList$1"],"mappings":";;;;;;;;;;;;AAgBA,MAAMA,IAAuCC;AAAA,EAC3C,CAAC,EAAE,aAAAC,GAAa,eAAAC,GAAe,UAAAC,GAAU,GAAGC,QAAuB;AACjE,UAAM,EAAE,gBAAAC,GAAgB,UAAAC,GAAU,gBAAAC,GAAgB,cAAAC,GAAc,mBAAAC,EAC9D,IAAAL,GAEIM,IAAgBJ,MAAa,aAAaE,KAAgBN,GAC1D,EAAE,SAASS,EAAa,IAAIC,EAAa,GAEzCC,IAAqBC,EAAY,MAAM;AAC9B,MAAAH,EAAA;AAAA,QACX,OAAO;AAAA,QACP,OAAO;AAAA,UACL,cAAcV;AAAA,QAChB;AAAA,MAAA,CACD,GACcO,KAAA,QAAAA,EAAA,EAAE,aAAAP,GAAa,gBAAAI,EAAA;AAAA,OAC7B,CAACJ,GAAaI,GAAgBG,GAAcG,CAAY,CAAC;AAExD,WAACR,EAAS,SAsCZ,gBAAAY,EAACC,GAAA,EACC,UAAA;AAAA,MAAA,gBAAAC,EAACC,GAAA,EACE,YAAS,IAAI,CAACC,GAASC,MAAQ;AACxB,cAAA,EAAE,IAAAC,EAAO,IAAAF;AAGb,eAAA,gBAAAF;AAAA,UAACK;AAAA,UAAA;AAAA,YAEC,aAAArB;AAAA,YACA,UAAAK;AAAA,YACA,SAAAa;AAAA,YACA,gBAAAZ;AAAA,YACA,WAAWa;AAAA,UAAA;AAAA,UALNC;AAAA,QAAA;AAAA,MAQV,CAAA,GACH;AAAA,MACCX,KACC,gBAAAO,EAACM,GAAA,EACC,UAAA,gBAAAN;AAAA,QAACO;AAAA,QAAA;AAAA,UACC,MAAMC;AAAA,UACN,UAAS;AAAA,UACT,MAAK;AAAA,UACL,gBAAe;AAAA,UACf,SAASZ;AAAA,QAAA;AAAA,MAAA,GAEb;AAAA,IAEJ,EAAA,CAAA,IAhEE,gBAAAE,EAACC,GAAA,EAA6B,OAAO,MAAM,aAAY,UAAS,iBAAgB,UAC9E,UAAA;AAAA,MAAA,gBAAAC,EAAC,OAAI,EAAA,KAAKS,EAAO,iBAAiB,KAAI,mBAAkB;AAAA,MACxD,gBAAAT,EAACU,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,MACtBrB,MAAa,YAEV,gBAAAS,EAAAa,GAAA,EAAA,UAAA;AAAA,QAAA,gBAAAX;AAAA,UAACY;AAAA,UAAA;AAAA,YACC,UAAS;AAAA,YACT,UAAS;AAAA,YACT,QAAQpB;AAAA,YACR,aAAY;AAAA,YAEZ,UAAA,gBAAAQ;AAAA,cAACa;AAAA,cAAA;AAAA,gBACC,QAAQ;AAAA,gBACR,UAAS;AAAA,gBACT,OAAM;AAAA,gBACN,MAAK;AAAA,gBACL,OAAM;AAAA,gBACN,SAASjB;AAAA,gBACT,UAAU,CAACJ,KAAqB,CAACP;AAAA,gBACjC,gBAAgB;AAAA,kBACd,cAAcD;AAAA,gBAChB;AAAA,cAAA;AAAA,YACF;AAAA,UAAA;AAAA,QACF;AAAA,QACA,gBAAAgB,EAACU,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,MAAA,EAAA,CACzB,IAEC,gBAAAV,EAAAc,GAAA,EAAK,WAAU,YAAW,QAAO,cAAa,UAE/C,yCAAA;AAAA,IAEJ,EAAA,CAAA;AAAA,EAmCN;AACF,GAEAC,IAAejC;"}
@@ -1,5 +1,5 @@
1
- const E = 64;
1
+ const t = 64 + (window.ReactNativeTopInset || 0);
2
2
  export {
3
- E as HEADER_HEIGHT
3
+ t as HEADER_HEIGHT
4
4
  };
5
5
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sources":["../../../../../src/features/circle-games/games/tutorial/constants.ts"],"sourcesContent":["export const HEADER_HEIGHT = 64;\n"],"names":["HEADER_HEIGHT"],"mappings":"AAAO,MAAMA,IAAgB;"}
1
+ {"version":3,"file":"constants.js","sources":["../../../../../src/features/circle-games/games/tutorial/constants.ts"],"sourcesContent":["export const HEADER_HEIGHT = 64 + (window.ReactNativeTopInset || 0);\n"],"names":["HEADER_HEIGHT"],"mappings":"AAAa,MAAAA,IAAgB,MAAM,OAAO,uBAAuB;"}
@@ -10,7 +10,7 @@ const n = o.div`
10
10
  width: inherit;
11
11
  `, d = o.div`
12
12
  height: ${t}px;
13
- padding-top: 24px;
13
+ padding-top: ${(window.ReactNativeTopInset || 0) + 24}px;
14
14
  width: 100%;
15
15
  background: ${({ theme: i }) => i.colors.WHITE_T_03};
16
16
  backdrop-filter: blur(40px);
@@ -19,7 +19,7 @@ const n = o.div`
19
19
  `, s = o.div`
20
20
  position: absolute;
21
21
  right: 16px;
22
- top: 22px;
22
+ top: ${(window.ReactNativeTopInset || 0) + 22}px;
23
23
  z-index: 1;
24
24
  &:hover {
25
25
  background: ${({ theme: i }) => i.colors.BLACK_4};
@@ -31,7 +31,7 @@ const n = o.div`
31
31
  /* overflow: hidden; */
32
32
  flex-grow: 1;
33
33
  position: relative;
34
- `, l = o.div`
34
+ `, p = o.div`
35
35
  width: 100%;
36
36
  position: absolute;
37
37
  top: 0;
@@ -42,7 +42,7 @@ const n = o.div`
42
42
  width: 100%;
43
43
  height: 100%;
44
44
  }
45
- `, p = o.div`
45
+ `, l = o.div`
46
46
  height: 40px;
47
47
  width: 100%;
48
48
  position: relative;
@@ -65,9 +65,9 @@ export {
65
65
  d as GameTutorialHeader,
66
66
  n as GameTutorialWrapper,
67
67
  s as HeaderIconContainer,
68
- l as VideoContainer,
68
+ p as VideoContainer,
69
69
  c as VideoProgress,
70
70
  h as VideoProgressContainer,
71
- p as VideoProgressWrapper
71
+ l as VideoProgressWrapper
72
72
  };
73
73
  //# sourceMappingURL=tutorial-styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tutorial-styled.js","sources":["../../../../../src/features/circle-games/games/tutorial/tutorial-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport { HEADER_HEIGHT } from './constants';\n\nexport const GameTutorialWrapper = styled.div`\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 250px;\n background: ${({ theme }) => theme.colors.BLACK_1};\n position: relative;\n width: inherit;\n`;\n\nexport const GameTutorialHeader = styled.div`\n height: ${HEADER_HEIGHT}px;\n padding-top: 24px;\n width: 100%;\n background: ${({ theme }) => theme.colors.WHITE_T_03};\n backdrop-filter: blur(40px);\n position: relative;\n flex-shrink: 0;\n`;\n\nexport const HeaderIconContainer = styled.div`\n position: absolute;\n right: 16px;\n top: 22px;\n z-index: 1;\n &:hover {\n background: ${({ theme }) => theme.colors.BLACK_4};\n cursor: pointer;\n }\n`;\n\nexport const GameTutorialContainer = styled.div`\n display: flex;\n flex-direction: column;\n /* overflow: hidden; */\n flex-grow: 1;\n position: relative;\n`;\n\nexport const VideoContainer = styled.div`\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n & video {\n width: 100%;\n height: 100%;\n }\n`;\n\nexport const VideoProgressWrapper = styled.div`\n height: 40px;\n width: 100%;\n position: relative;\n display: flex;\n`;\n\nexport const VideoProgressContainer = styled.div`\n height: 2px;\n position: relative;\n width: 100%;\n z-index: 1;\n`;\n\nexport const VideoProgress = styled.div<{ $width: number }>`\n height: inherit;\n background: ${({ theme }) => theme.colors.WHITE};\n position: absolute;\n z-index: 2;\n width: ${({ $width }) => $width || 0}%;\n transition: width 0.4s linear;\n`;\n"],"names":["GameTutorialWrapper","styled","theme","GameTutorialHeader","HEADER_HEIGHT","HeaderIconContainer","GameTutorialContainer","VideoContainer","VideoProgressWrapper","VideoProgressContainer","VideoProgress","$width"],"mappings":";;AAIO,MAAMA,IAAsBC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,gBAK1B,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA,GAKtCC,IAAqBF,EAAO;AAAA,YAC7BG,CAAa;AAAA;AAAA;AAAA,gBAGT,CAAC,EAAE,OAAAF,EAAA,MAAYA,EAAM,OAAO,UAAU;AAAA;AAAA;AAAA;AAAA,GAMzCG,IAAsBJ,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAMxB,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA,GAKxCI,IAAwBL,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQ/BM,IAAiBN,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAaxBO,IAAuBP,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,GAO9BQ,IAAyBR,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,GAOhCS,IAAgBT,EAAO;AAAA;AAAA,gBAEpB,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA,WAGtC,CAAC,EAAE,QAAAS,QAAaA,KAAU,CAAC;AAAA;AAAA;"}
1
+ {"version":3,"file":"tutorial-styled.js","sources":["../../../../../src/features/circle-games/games/tutorial/tutorial-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport { HEADER_HEIGHT } from './constants';\n\nexport const GameTutorialWrapper = styled.div`\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 250px;\n background: ${({ theme }) => theme.colors.BLACK_1};\n position: relative;\n width: inherit;\n`;\n\nexport const GameTutorialHeader = styled.div`\n height: ${HEADER_HEIGHT}px;\n padding-top: ${(window.ReactNativeTopInset || 0) + 24}px;\n width: 100%;\n background: ${({ theme }) => theme.colors.WHITE_T_03};\n backdrop-filter: blur(40px);\n position: relative;\n flex-shrink: 0;\n`;\n\nexport const HeaderIconContainer = styled.div`\n position: absolute;\n right: 16px;\n top: ${(window.ReactNativeTopInset || 0) + 22}px;\n z-index: 1;\n &:hover {\n background: ${({ theme }) => theme.colors.BLACK_4};\n cursor: pointer;\n }\n`;\n\nexport const GameTutorialContainer = styled.div`\n display: flex;\n flex-direction: column;\n /* overflow: hidden; */\n flex-grow: 1;\n position: relative;\n`;\n\nexport const VideoContainer = styled.div`\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n & video {\n width: 100%;\n height: 100%;\n }\n`;\n\nexport const VideoProgressWrapper = styled.div`\n height: 40px;\n width: 100%;\n position: relative;\n display: flex;\n`;\n\nexport const VideoProgressContainer = styled.div`\n height: 2px;\n position: relative;\n width: 100%;\n z-index: 1;\n`;\n\nexport const VideoProgress = styled.div<{ $width: number }>`\n height: inherit;\n background: ${({ theme }) => theme.colors.WHITE};\n position: absolute;\n z-index: 2;\n width: ${({ $width }) => $width || 0}%;\n transition: width 0.4s linear;\n`;\n"],"names":["GameTutorialWrapper","styled","theme","GameTutorialHeader","HEADER_HEIGHT","HeaderIconContainer","GameTutorialContainer","VideoContainer","VideoProgressWrapper","VideoProgressContainer","VideoProgress","$width"],"mappings":";;AAIO,MAAMA,IAAsBC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,gBAK1B,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA,GAKtCC,IAAqBF,EAAO;AAAA,YAC7BG,CAAa;AAAA,kBACP,OAAO,uBAAuB,KAAK,EAAE;AAAA;AAAA,gBAEvC,CAAC,EAAE,OAAAF,EAAA,MAAYA,EAAM,OAAO,UAAU;AAAA;AAAA;AAAA;AAAA,GAMzCG,IAAsBJ,EAAO;AAAA;AAAA;AAAA,UAGhC,OAAO,uBAAuB,KAAK,EAAE;AAAA;AAAA;AAAA,kBAG7B,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA,GAKxCI,IAAwBL,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQ/BM,IAAiBN,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAaxBO,IAAuBP,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,GAO9BQ,IAAyBR,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,GAOhCS,IAAgBT,EAAO;AAAA;AAAA,gBAEpB,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA,WAGtC,CAAC,EAAE,QAAAS,QAAaA,KAAU,CAAC;AAAA;AAAA;"}