@cuemath/leap 2.9.12-j2 → 3.0.1-as1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (679) hide show
  1. package/dist/assets/illustrations/illustrations.js +9 -3
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/line-icons/icons/bin2.js +7 -8
  4. package/dist/assets/line-icons/icons/bin2.js.map +1 -1
  5. package/dist/assets/line-icons/icons/chevron-left.js.map +1 -1
  6. package/dist/assets/line-icons/icons/exclamation.js +26 -0
  7. package/dist/assets/line-icons/icons/exclamation.js.map +1 -0
  8. package/dist/assets/line-icons/icons/home2.js +25 -0
  9. package/dist/assets/line-icons/icons/home2.js.map +1 -0
  10. package/dist/assets/line-icons/icons/important.js +23 -0
  11. package/dist/assets/line-icons/icons/important.js.map +1 -0
  12. package/dist/assets/line-icons/icons/skip-colored.js +43 -0
  13. package/dist/assets/line-icons/icons/skip-colored.js.map +1 -0
  14. package/dist/assets/line-icons/icons/status.js +41 -0
  15. package/dist/assets/line-icons/icons/status.js.map +1 -0
  16. package/dist/assets/lottie/lottie.js +8 -11
  17. package/dist/assets/lottie/lottie.js.map +1 -1
  18. package/dist/constants/api.js +3 -2
  19. package/dist/constants/api.js.map +1 -1
  20. package/dist/features/analytics-events/platform-events-student.js +3 -3
  21. package/dist/features/analytics-events/platform-events-student.js.map +1 -1
  22. package/dist/features/analytics-events/whitelist-events.js +13 -11
  23. package/dist/features/analytics-events/whitelist-events.js.map +1 -1
  24. package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js +99 -33
  25. package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js.map +1 -1
  26. package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js +92 -49
  27. package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js.map +1 -1
  28. package/dist/features/chapters/chapters-list/chapters-list-styled.js +5 -5
  29. package/dist/features/chapters/chapters-list/chapters-list-styled.js.map +1 -1
  30. package/dist/features/chapters/chapters-list/chapters-list.js +64 -70
  31. package/dist/features/chapters/chapters-list/chapters-list.js.map +1 -1
  32. package/dist/features/chapters-v2/api/chapter.js +10 -0
  33. package/dist/features/chapters-v2/api/chapter.js.map +1 -0
  34. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js +112 -0
  35. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js.map +1 -0
  36. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections-styled.js +35 -0
  37. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections-styled.js.map +1 -0
  38. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js +83 -0
  39. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js.map +1 -0
  40. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner-styled.js +90 -0
  41. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner-styled.js.map +1 -0
  42. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner.js +98 -0
  43. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner.js.map +1 -0
  44. package/dist/features/chapters-v2/chapter-details/chapter-details-styled.js +51 -0
  45. package/dist/features/chapters-v2/chapter-details/chapter-details-styled.js.map +1 -0
  46. package/dist/features/chapters-v2/chapter-details/chapter-details.js +129 -0
  47. package/dist/features/chapters-v2/chapter-details/chapter-details.js.map +1 -0
  48. package/dist/features/chapters-v2/comps/node-card/node-card-styled.js +159 -0
  49. package/dist/features/chapters-v2/comps/node-card/node-card-styled.js.map +1 -0
  50. package/dist/features/chapters-v2/comps/node-card/node-card-tags.js +16 -0
  51. package/dist/features/chapters-v2/comps/node-card/node-card-tags.js.map +1 -0
  52. package/dist/features/chapters-v2/comps/node-card/node-card.js +12 -0
  53. package/dist/features/chapters-v2/comps/node-card/node-card.js.map +1 -0
  54. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-option.js +30 -0
  55. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-option.js.map +1 -0
  56. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options-styled.js +32 -0
  57. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options-styled.js.map +1 -0
  58. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options.js +9 -0
  59. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options.js.map +1 -0
  60. package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js +189 -0
  61. package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js.map +1 -0
  62. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js +194 -0
  63. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js.map +1 -0
  64. package/dist/features/chapters-v2/comps/tag/tag-styled.js +13 -0
  65. package/dist/features/chapters-v2/comps/tag/tag-styled.js.map +1 -0
  66. package/dist/features/chapters-v2/comps/tag/tag.js +28 -0
  67. package/dist/features/chapters-v2/comps/tag/tag.js.map +1 -0
  68. package/dist/features/chapters-v2/constants/block-constants.js +20 -0
  69. package/dist/features/chapters-v2/constants/block-constants.js.map +1 -0
  70. package/dist/features/chapters-v2/constants/node-constants.js +14 -0
  71. package/dist/features/chapters-v2/constants/node-constants.js.map +1 -0
  72. package/dist/features/chapters-v2/utils/index.js +45 -0
  73. package/dist/features/chapters-v2/utils/index.js.map +1 -0
  74. package/dist/features/chapters-v2/utils/node-card-utils.js +169 -0
  75. package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -0
  76. package/dist/features/communication/pub-sub/constants.js +12 -6
  77. package/dist/features/communication/pub-sub/constants.js.map +1 -1
  78. package/dist/features/homework/card-menu-option.js +28 -0
  79. package/dist/features/homework/card-menu-option.js.map +1 -0
  80. package/dist/features/homework/card-menu-options.js +22 -0
  81. package/dist/features/homework/card-menu-options.js.map +1 -0
  82. package/dist/features/homework/card-title.js +16 -0
  83. package/dist/features/homework/card-title.js.map +1 -0
  84. package/dist/features/homework/homework-analytics-events.js +10 -0
  85. package/dist/features/homework/homework-analytics-events.js.map +1 -0
  86. package/dist/features/homework/homework-card-view.js +143 -0
  87. package/dist/features/homework/homework-card-view.js.map +1 -0
  88. package/dist/features/homework/homework-card.js +245 -0
  89. package/dist/features/homework/homework-card.js.map +1 -0
  90. package/dist/features/homework/hw-card-list/api/get-homeworks.js +10 -0
  91. package/dist/features/homework/hw-card-list/api/get-homeworks.js.map +1 -0
  92. package/dist/features/homework/hw-card-list/hw-card-list-styled.js +63 -0
  93. package/dist/features/homework/hw-card-list/hw-card-list-styled.js.map +1 -0
  94. package/dist/features/homework/hw-card-list/hw-card-list-view.js +157 -0
  95. package/dist/features/homework/hw-card-list/hw-card-list-view.js.map +1 -0
  96. package/dist/features/homework/hw-card-list/hw-card-list.js +67 -0
  97. package/dist/features/homework/hw-card-list/hw-card-list.js.map +1 -0
  98. package/dist/features/homework/node-progress.js +29 -0
  99. package/dist/features/homework/node-progress.js.map +1 -0
  100. package/dist/features/homework/styles.js +130 -0
  101. package/dist/features/homework/styles.js.map +1 -0
  102. package/dist/features/homework/utils.js +48 -0
  103. package/dist/features/homework/utils.js.map +1 -0
  104. package/dist/features/journey/comps/coachmark/coachmark.js +24 -24
  105. package/dist/features/journey/comps/coachmark/coachmark.js.map +1 -1
  106. package/dist/features/journey/hooks/use-chapter-journey.js +173 -0
  107. package/dist/features/journey/hooks/use-chapter-journey.js.map +1 -0
  108. package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js +268 -0
  109. package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js.map +1 -0
  110. package/dist/features/journey/hooks/use-home-page-journey/recent-chapters-mock.js +513 -0
  111. package/dist/features/journey/hooks/use-home-page-journey/recent-chapters-mock.js.map +1 -0
  112. package/dist/features/journey/hooks/use-home-page-journey/styles.js +23 -0
  113. package/dist/features/journey/hooks/use-home-page-journey/styles.js.map +1 -0
  114. package/dist/features/journey/hooks/use-home-page-journey/tooltip-item.js +22 -0
  115. package/dist/features/journey/hooks/use-home-page-journey/tooltip-item.js.map +1 -0
  116. package/dist/features/journey/hooks/use-home-page-journey/use-home-page-journey.js +270 -0
  117. package/dist/features/journey/hooks/use-home-page-journey/use-home-page-journey.js.map +1 -0
  118. package/dist/features/journey/journey-id/journey-id-student.js +1 -1
  119. package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
  120. package/dist/features/journey/journey-id/journey-id-teacher.js +5 -0
  121. package/dist/features/journey/journey-id/journey-id-teacher.js.map +1 -0
  122. package/dist/features/journey/mocks/chapter-page-journey-mock-data.js +584 -0
  123. package/dist/features/journey/mocks/chapter-page-journey-mock-data.js.map +1 -0
  124. package/dist/features/journey/use-journey/journey-context-provider.js +36 -28
  125. package/dist/features/journey/use-journey/journey-context-provider.js.map +1 -1
  126. package/dist/features/journey/use-journey/journey-styled.js +10 -5
  127. package/dist/features/journey/use-journey/journey-styled.js.map +1 -1
  128. package/dist/features/milestone/create/api/goal-submit.js +1 -1
  129. package/dist/features/milestone/create/api/goal-submit.js.map +1 -1
  130. package/dist/features/milestone/create/comps/chapter-item/chapter-item.js +42 -49
  131. package/dist/features/milestone/create/comps/chapter-item/chapter-item.js.map +1 -1
  132. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step-styled.js +12 -4
  133. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step-styled.js.map +1 -1
  134. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js +128 -105
  135. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js.map +1 -1
  136. package/dist/features/milestone/create/comps/sheets-list/sheets-list-styled.js +14 -20
  137. package/dist/features/milestone/create/comps/sheets-list/sheets-list-styled.js.map +1 -1
  138. package/dist/features/milestone/create/comps/sheets-list/sheets-list.js +26 -50
  139. package/dist/features/milestone/create/comps/sheets-list/sheets-list.js.map +1 -1
  140. package/dist/features/milestone/create/milestone-create.js +49 -43
  141. package/dist/features/milestone/create/milestone-create.js.map +1 -1
  142. package/dist/features/milestone/create/utils/index.js +33 -38
  143. package/dist/features/milestone/create/utils/index.js.map +1 -1
  144. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/get-milestone.js +1 -1
  145. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/get-milestone.js.map +1 -1
  146. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/patch-goal-plan.js +1 -1
  147. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/patch-goal-plan.js.map +1 -1
  148. package/dist/features/milestone/edit/comps/edit-milestone-modal/index.js +51 -53
  149. package/dist/features/milestone/edit/comps/edit-milestone-modal/index.js.map +1 -1
  150. package/dist/features/milestone/edit/goal-drafts/goal-draft-edit-container.js +42 -40
  151. package/dist/features/milestone/edit/goal-drafts/goal-draft-edit-container.js.map +1 -1
  152. package/dist/features/milestone/edit/goal-edit-container.js +64 -62
  153. package/dist/features/milestone/edit/goal-edit-container.js.map +1 -1
  154. package/dist/features/milestone/edit/goal-edit-helpers.js +50 -53
  155. package/dist/features/milestone/edit/goal-edit-helpers.js.map +1 -1
  156. package/dist/features/milestone/edit/milestone-edit-container.js +54 -52
  157. package/dist/features/milestone/edit/milestone-edit-container.js.map +1 -1
  158. package/dist/features/milestone/milestone-list-container/api/get-milestone-resources.js +1 -1
  159. package/dist/features/milestone/milestone-list-container/api/get-milestone-resources.js.map +1 -1
  160. package/dist/features/milestone/milestone-list-container/api/get-milestones.js +9 -17
  161. package/dist/features/milestone/milestone-list-container/api/get-milestones.js.map +1 -1
  162. package/dist/features/milestone/milestone-list-container/api/get-tests-list.js +1 -1
  163. package/dist/features/milestone/milestone-list-container/api/get-tests-list.js.map +1 -1
  164. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js +138 -105
  165. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js.map +1 -1
  166. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/goals/goal-action-ctas.js +107 -123
  167. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/goals/goal-action-ctas.js.map +1 -1
  168. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js +157 -176
  169. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js.map +1 -1
  170. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs-styled.js +24 -10
  171. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs-styled.js.map +1 -1
  172. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js +80 -86
  173. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js.map +1 -1
  174. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-utils.js +10 -22
  175. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-utils.js.map +1 -1
  176. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-styled.js +70 -37
  177. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-styled.js.map +1 -1
  178. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js +114 -176
  179. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js.map +1 -1
  180. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-rank.js +29 -16
  181. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-rank.js.map +1 -1
  182. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-styled.js +17 -25
  183. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-styled.js.map +1 -1
  184. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome.js +23 -35
  185. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome.js.map +1 -1
  186. package/dist/features/milestone/milestone-list-container/milestone-list-container.js +110 -113
  187. package/dist/features/milestone/milestone-list-container/milestone-list-container.js.map +1 -1
  188. package/dist/features/milestone/milestone-resources/resources-assign/api/goal-resource-assign.js +1 -1
  189. package/dist/features/milestone/milestone-resources/resources-assign/api/goal-resource-assign.js.map +1 -1
  190. package/dist/features/milestone/milestone-resources/resources-assign/resources-assign.js +8 -8
  191. package/dist/features/milestone/milestone-resources/resources-assign/resources-assign.js.map +1 -1
  192. package/dist/features/milestone/milestone-resources/resources-list/resources-list-styled.js +1 -1
  193. package/dist/features/milestone/milestone-resources/resources-list/resources-list-styled.js.map +1 -1
  194. package/dist/features/milestone/milestone-resources/resources-list/resources-list.js +116 -113
  195. package/dist/features/milestone/milestone-resources/resources-list/resources-list.js.map +1 -1
  196. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js +165 -0
  197. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js.map +1 -0
  198. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view-styled.js +25 -0
  199. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view-styled.js.map +1 -0
  200. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js +87 -0
  201. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js.map +1 -0
  202. package/dist/features/milestone/milestone-tests/tests-creation/api/test-sheet-assign.js +5 -5
  203. package/dist/features/milestone/milestone-tests/tests-creation/api/test-sheet-assign.js.map +1 -1
  204. package/dist/features/milestone/milestone-tests/tests-creation/test-stages/chapter-selection/chapter-item/chapter-item.js.map +1 -1
  205. package/dist/features/milestone/milestone-tests/tests-creation/tests-creation.js +46 -50
  206. package/dist/features/milestone/milestone-tests/tests-creation/tests-creation.js.map +1 -1
  207. package/dist/features/recent-chapters/api/get-recent-chapters.js +9 -0
  208. package/dist/features/recent-chapters/api/get-recent-chapters.js.map +1 -0
  209. package/dist/features/recent-chapters/recent-chapters-styled.js +16 -0
  210. package/dist/features/recent-chapters/recent-chapters-styled.js.map +1 -0
  211. package/dist/features/recent-chapters/recent-chapters.js +39 -0
  212. package/dist/features/recent-chapters/recent-chapters.js.map +1 -0
  213. package/dist/features/sheet-v2/resource-list/resource-list.js +45 -0
  214. package/dist/features/sheet-v2/resource-list/resource-list.js.map +1 -0
  215. package/dist/features/sheets/resources-list/resource-item/styled.js +1 -1
  216. package/dist/features/sheets/resources-list/resource-item/styled.js.map +1 -1
  217. package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/teacher-actions/teacher-actions-constant.js +4 -3
  218. package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/teacher-actions/teacher-actions-constant.js.map +1 -1
  219. package/dist/features/trial-session/comps/learning-plan/index.js.map +1 -1
  220. package/dist/features/ui/animated-arc/animated-arc.js +7 -7
  221. package/dist/features/ui/animated-arc/animated-arc.js.map +1 -1
  222. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +30 -29
  223. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
  224. package/dist/features/ui/border-path-animation/border-path-animation-styled.js +51 -0
  225. package/dist/features/ui/border-path-animation/border-path-animation-styled.js.map +1 -0
  226. package/dist/features/ui/border-path-animation/border-path-animation.js +108 -0
  227. package/dist/features/ui/border-path-animation/border-path-animation.js.map +1 -0
  228. package/dist/features/ui/constants/z-index.js +1 -1
  229. package/dist/features/ui/constants/z-index.js.map +1 -1
  230. package/dist/features/ui/context-menu/context-menu-styled.js +28 -14
  231. package/dist/features/ui/context-menu/context-menu-styled.js.map +1 -1
  232. package/dist/features/ui/context-menu/context-menu.js +25 -17
  233. package/dist/features/ui/context-menu/context-menu.js.map +1 -1
  234. package/dist/features/ui/lottie-animation/lottie-animation.js +32 -24
  235. package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
  236. package/dist/features/ui/theme/button.js +24 -7
  237. package/dist/features/ui/theme/button.js.map +1 -1
  238. package/dist/index.d.ts +340 -269
  239. package/dist/index.js +451 -471
  240. package/dist/index.js.map +1 -1
  241. package/dist/node_modules/date-fns/differenceInDays.js +17 -0
  242. package/dist/node_modules/date-fns/differenceInDays.js.map +1 -0
  243. package/dist/static/chapter-header-bg-2.c8d96894.svg +1 -0
  244. package/dist/static/competitive-arena.b9c40801.json +1 -0
  245. package/dist/static/learn.71b13323.json +1 -0
  246. package/dist/static/node-custom-test-bg.d3b757be.svg +1 -0
  247. package/dist/static/node-learn-bg.b61f815c.svg +1 -0
  248. package/dist/static/node-practice-bg.16cbaf2a.svg +1 -0
  249. package/dist/static/node-project-bg.e6a33e28.svg +1 -0
  250. package/dist/static/node-puzzle-bg.3422135c.svg +1 -0
  251. package/dist/static/node-recap-bg.546154e4.svg +1 -0
  252. package/dist/static/node-test-prep-bg.42c0b9c4.svg +1 -0
  253. package/dist/static/node-video-bg.3df3f73a.svg +1 -0
  254. package/dist/static/practice.158dd488.json +1 -0
  255. package/dist/static/project.eb665827.json +1 -0
  256. package/dist/static/puzzle.b298c7e4.json +1 -0
  257. package/dist/static/recap.0dd2c1e2.json +1 -0
  258. package/dist/static/test.803d6036.json +1 -0
  259. package/dist/static/video.b41451e2.json +1 -0
  260. package/package.json +2 -3
  261. package/dist/assets/illustrations/loader-1.svg.js +0 -6
  262. package/dist/assets/illustrations/loader-1.svg.js.map +0 -1
  263. package/dist/assets/line-icons/icons/apple-icon.js +0 -48
  264. package/dist/assets/line-icons/icons/apple-icon.js.map +0 -1
  265. package/dist/assets/line-icons/icons/google-icon.js +0 -42
  266. package/dist/assets/line-icons/icons/google-icon.js.map +0 -1
  267. package/dist/features/auth/account-selector/account-selector-styled.js +0 -37
  268. package/dist/features/auth/account-selector/account-selector-styled.js.map +0 -1
  269. package/dist/features/auth/account-selector/account-selector.js +0 -90
  270. package/dist/features/auth/account-selector/account-selector.js.map +0 -1
  271. package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js +0 -12
  272. package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js.map +0 -1
  273. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +0 -11
  274. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +0 -1
  275. package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js +0 -17
  276. package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js.map +0 -1
  277. package/dist/features/auth/comps/input-status-icon/input-status-icon.js +0 -20
  278. package/dist/features/auth/comps/input-status-icon/input-status-icon.js.map +0 -1
  279. package/dist/features/auth/comps/overlay-loader/overlay-loader-styled.js +0 -29
  280. package/dist/features/auth/comps/overlay-loader/overlay-loader-styled.js.map +0 -1
  281. package/dist/features/auth/comps/overlay-loader/overlay-loader.js +0 -8
  282. package/dist/features/auth/comps/overlay-loader/overlay-loader.js.map +0 -1
  283. package/dist/features/auth/comps/resend-otp/otp-timer/otp-timer.js +0 -25
  284. package/dist/features/auth/comps/resend-otp/otp-timer/otp-timer.js.map +0 -1
  285. package/dist/features/auth/comps/resend-otp/resend-otp.js +0 -38
  286. package/dist/features/auth/comps/resend-otp/resend-otp.js.map +0 -1
  287. package/dist/features/auth/comps/tabs/tabs-styled.js +0 -23
  288. package/dist/features/auth/comps/tabs/tabs-styled.js.map +0 -1
  289. package/dist/features/auth/comps/tabs/tabs.js +0 -23
  290. package/dist/features/auth/comps/tabs/tabs.js.map +0 -1
  291. package/dist/features/auth/forgot-password/forgot-password-styled.js +0 -12
  292. package/dist/features/auth/forgot-password/forgot-password-styled.js.map +0 -1
  293. package/dist/features/auth/forgot-password/otp-form/otp-form.js +0 -67
  294. package/dist/features/auth/forgot-password/otp-form/otp-form.js.map +0 -1
  295. package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js +0 -89
  296. package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js.map +0 -1
  297. package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js +0 -60
  298. package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js.map +0 -1
  299. package/dist/features/auth/login/login-constants.js +0 -12
  300. package/dist/features/auth/login/login-constants.js.map +0 -1
  301. package/dist/features/auth/login/social-account-not-found/social-account-not-found.js +0 -31
  302. package/dist/features/auth/login/social-account-not-found/social-account-not-found.js.map +0 -1
  303. package/dist/features/auth/login/social-login-methods/social-login-methods.js +0 -46
  304. package/dist/features/auth/login/social-login-methods/social-login-methods.js.map +0 -1
  305. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js +0 -50
  306. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js.map +0 -1
  307. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js +0 -129
  308. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +0 -1
  309. package/dist/features/auth/signup/claim-user-account/claim-user-account-styled.js +0 -27
  310. package/dist/features/auth/signup/claim-user-account/claim-user-account-styled.js.map +0 -1
  311. package/dist/features/auth/signup/claim-user-account/claim-user-account.js +0 -76
  312. package/dist/features/auth/signup/claim-user-account/claim-user-account.js.map +0 -1
  313. package/dist/features/auth/signup/custom-input-field/custom-input-field-styled.js +0 -38
  314. package/dist/features/auth/signup/custom-input-field/custom-input-field-styled.js.map +0 -1
  315. package/dist/features/auth/signup/custom-input-field/custom-input-field.js +0 -85
  316. package/dist/features/auth/signup/custom-input-field/custom-input-field.js.map +0 -1
  317. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input-styled.js +0 -86
  318. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input-styled.js.map +0 -1
  319. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input.js +0 -58
  320. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input.js.map +0 -1
  321. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input-styled.js +0 -31
  322. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input-styled.js.map +0 -1
  323. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input.js +0 -30
  324. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input.js.map +0 -1
  325. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper-styled.js +0 -11
  326. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper-styled.js.map +0 -1
  327. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js +0 -33
  328. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js.map +0 -1
  329. package/dist/features/auth/signup/custom-input-field/phone-input/country-selector/country-code-button.js +0 -33
  330. package/dist/features/auth/signup/custom-input-field/phone-input/country-selector/country-code-button.js.map +0 -1
  331. package/dist/features/auth/signup/custom-input-field/phone-input/country-selector/country-list-menu.js +0 -28
  332. package/dist/features/auth/signup/custom-input-field/phone-input/country-selector/country-list-menu.js.map +0 -1
  333. package/dist/features/auth/signup/custom-input-field/phone-input/phone-input-styled.js +0 -29
  334. package/dist/features/auth/signup/custom-input-field/phone-input/phone-input-styled.js.map +0 -1
  335. package/dist/features/auth/signup/custom-input-field/phone-input/phone-input.js +0 -67
  336. package/dist/features/auth/signup/custom-input-field/phone-input/phone-input.js.map +0 -1
  337. package/dist/features/auth/signup/signup-constants.js +0 -1022
  338. package/dist/features/auth/signup/signup-constants.js.map +0 -1
  339. package/dist/features/auth/signup/signup-methods/signup-methods.js +0 -68
  340. package/dist/features/auth/signup/signup-methods/signup-methods.js.map +0 -1
  341. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card-styled.js +0 -19
  342. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card-styled.js.map +0 -1
  343. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js +0 -62
  344. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js.map +0 -1
  345. package/dist/features/auth/signup/user-type-selector/user-type-selector-styled.js +0 -24
  346. package/dist/features/auth/signup/user-type-selector/user-type-selector-styled.js.map +0 -1
  347. package/dist/features/auth/signup/user-type-selector/user-type-selector.js +0 -87
  348. package/dist/features/auth/signup/user-type-selector/user-type-selector.js.map +0 -1
  349. package/dist/features/milestone/create/comps/milestone-progress-v2/milestone-progress-v2.js +0 -92
  350. package/dist/features/milestone/create/comps/milestone-progress-v2/milestone-progress-v2.js.map +0 -1
  351. package/dist/features/milestone/create/comps/milestone-progress-v2/styled.js +0 -25
  352. package/dist/features/milestone/create/comps/milestone-progress-v2/styled.js.map +0 -1
  353. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element-styled.js +0 -13
  354. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element-styled.js.map +0 -1
  355. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element.js +0 -38
  356. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element.js.map +0 -1
  357. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-status.js +0 -53
  358. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-status.js.map +0 -1
  359. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-info.js +0 -25
  360. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-info.js.map +0 -1
  361. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-cta.js +0 -71
  362. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-cta.js.map +0 -1
  363. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-styled.js +0 -31
  364. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-styled.js.map +0 -1
  365. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js +0 -38
  366. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js.map +0 -1
  367. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item.js +0 -79
  368. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item.js.map +0 -1
  369. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list-styled.js +0 -18
  370. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list-styled.js.map +0 -1
  371. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js +0 -51
  372. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js.map +0 -1
  373. package/dist/features/milestone/milestone-tests/tests-list/tests-list-styled.js +0 -11
  374. package/dist/features/milestone/milestone-tests/tests-list/tests-list-styled.js.map +0 -1
  375. package/dist/features/milestone/milestone-tests/tests-list/tests-list.js +0 -135
  376. package/dist/features/milestone/milestone-tests/tests-list/tests-list.js.map +0 -1
  377. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -332
  378. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
  379. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -370
  380. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
  381. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +0 -252
  382. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js.map +0 -1
  383. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +0 -24
  384. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js.map +0 -1
  385. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -192
  386. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +0 -1
  387. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -19
  388. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
  389. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -129
  390. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
  391. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -129
  392. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
  393. package/dist/node_modules/clsx/dist/clsx.js +0 -18
  394. package/dist/node_modules/clsx/dist/clsx.js.map +0 -1
  395. package/dist/node_modules/date-fns/subYears.js +0 -9
  396. package/dist/node_modules/date-fns/subYears.js.map +0 -1
  397. package/dist/node_modules/react-datepicker/dist/index.es.js +0 -2700
  398. package/dist/node_modules/react-datepicker/dist/index.es.js.map +0 -1
  399. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/addLeadingZeros.js +0 -8
  400. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/addLeadingZeros.js.map +0 -1
  401. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/defaultOptions.js +0 -8
  402. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/defaultOptions.js.map +0 -1
  403. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/formatters.js +0 -518
  404. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/formatters.js.map +0 -1
  405. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/lightFormatters.js +0 -60
  406. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/lightFormatters.js.map +0 -1
  407. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/longFormatters.js +0 -53
  408. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/longFormatters.js.map +0 -1
  409. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -19
  410. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +0 -1
  411. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/normalizeDates.js +0 -12
  412. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/normalizeDates.js.map +0 -1
  413. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/protectedTokens.js +0 -21
  414. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/protectedTokens.js.map +0 -1
  415. package/dist/node_modules/react-datepicker/node_modules/date-fns/addDays.js +0 -11
  416. package/dist/node_modules/react-datepicker/node_modules/date-fns/addDays.js.map +0 -1
  417. package/dist/node_modules/react-datepicker/node_modules/date-fns/addHours.js +0 -10
  418. package/dist/node_modules/react-datepicker/node_modules/date-fns/addHours.js.map +0 -1
  419. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMilliseconds.js +0 -10
  420. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMilliseconds.js.map +0 -1
  421. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMinutes.js +0 -11
  422. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMinutes.js.map +0 -1
  423. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMonths.js +0 -21
  424. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMonths.js.map +0 -1
  425. package/dist/node_modules/react-datepicker/node_modules/date-fns/addQuarters.js +0 -9
  426. package/dist/node_modules/react-datepicker/node_modules/date-fns/addQuarters.js.map +0 -1
  427. package/dist/node_modules/react-datepicker/node_modules/date-fns/addSeconds.js +0 -9
  428. package/dist/node_modules/react-datepicker/node_modules/date-fns/addSeconds.js.map +0 -1
  429. package/dist/node_modules/react-datepicker/node_modules/date-fns/addWeeks.js +0 -9
  430. package/dist/node_modules/react-datepicker/node_modules/date-fns/addWeeks.js.map +0 -1
  431. package/dist/node_modules/react-datepicker/node_modules/date-fns/addYears.js +0 -9
  432. package/dist/node_modules/react-datepicker/node_modules/date-fns/addYears.js.map +0 -1
  433. package/dist/node_modules/react-datepicker/node_modules/date-fns/constants.js +0 -10
  434. package/dist/node_modules/react-datepicker/node_modules/date-fns/constants.js.map +0 -1
  435. package/dist/node_modules/react-datepicker/node_modules/date-fns/constructFrom.js +0 -9
  436. package/dist/node_modules/react-datepicker/node_modules/date-fns/constructFrom.js.map +0 -1
  437. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarDays.js +0 -17
  438. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarDays.js.map +0 -1
  439. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarMonths.js +0 -14
  440. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarMonths.js.map +0 -1
  441. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarQuarters.js +0 -15
  442. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarQuarters.js.map +0 -1
  443. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarYears.js +0 -14
  444. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarYears.js.map +0 -1
  445. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInDays.js +0 -23
  446. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInDays.js.map +0 -1
  447. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfDay.js +0 -10
  448. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfDay.js.map +0 -1
  449. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfMonth.js +0 -10
  450. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfMonth.js.map +0 -1
  451. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfWeek.js +0 -12
  452. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfWeek.js.map +0 -1
  453. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfYear.js +0 -10
  454. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfYear.js.map +0 -1
  455. package/dist/node_modules/react-datepicker/node_modules/date-fns/format.js +0 -60
  456. package/dist/node_modules/react-datepicker/node_modules/date-fns/format.js.map +0 -1
  457. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDate.js +0 -9
  458. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDate.js.map +0 -1
  459. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDay.js +0 -9
  460. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDay.js.map +0 -1
  461. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDayOfYear.js +0 -12
  462. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDayOfYear.js.map +0 -1
  463. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDaysInMonth.js +0 -11
  464. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDaysInMonth.js.map +0 -1
  465. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDefaultOptions.js +0 -9
  466. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDefaultOptions.js.map +0 -1
  467. package/dist/node_modules/react-datepicker/node_modules/date-fns/getHours.js +0 -9
  468. package/dist/node_modules/react-datepicker/node_modules/date-fns/getHours.js.map +0 -1
  469. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISODay.js +0 -10
  470. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISODay.js.map +0 -1
  471. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeek.js +0 -13
  472. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeek.js.map +0 -1
  473. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeekYear.js +0 -16
  474. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeekYear.js.map +0 -1
  475. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMinutes.js +0 -9
  476. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMinutes.js.map +0 -1
  477. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMonth.js +0 -9
  478. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMonth.js.map +0 -1
  479. package/dist/node_modules/react-datepicker/node_modules/date-fns/getQuarter.js +0 -10
  480. package/dist/node_modules/react-datepicker/node_modules/date-fns/getQuarter.js.map +0 -1
  481. package/dist/node_modules/react-datepicker/node_modules/date-fns/getSeconds.js +0 -9
  482. package/dist/node_modules/react-datepicker/node_modules/date-fns/getSeconds.js.map +0 -1
  483. package/dist/node_modules/react-datepicker/node_modules/date-fns/getTime.js +0 -9
  484. package/dist/node_modules/react-datepicker/node_modules/date-fns/getTime.js.map +0 -1
  485. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeek.js +0 -13
  486. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeek.js.map +0 -1
  487. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeekYear.js +0 -18
  488. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeekYear.js.map +0 -1
  489. package/dist/node_modules/react-datepicker/node_modules/date-fns/getYear.js +0 -9
  490. package/dist/node_modules/react-datepicker/node_modules/date-fns/getYear.js.map +0 -1
  491. package/dist/node_modules/react-datepicker/node_modules/date-fns/isAfter.js +0 -9
  492. package/dist/node_modules/react-datepicker/node_modules/date-fns/isAfter.js.map +0 -1
  493. package/dist/node_modules/react-datepicker/node_modules/date-fns/isBefore.js +0 -9
  494. package/dist/node_modules/react-datepicker/node_modules/date-fns/isBefore.js.map +0 -1
  495. package/dist/node_modules/react-datepicker/node_modules/date-fns/isDate.js +0 -8
  496. package/dist/node_modules/react-datepicker/node_modules/date-fns/isDate.js.map +0 -1
  497. package/dist/node_modules/react-datepicker/node_modules/date-fns/isEqual.js +0 -9
  498. package/dist/node_modules/react-datepicker/node_modules/date-fns/isEqual.js.map +0 -1
  499. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameDay.js +0 -15
  500. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameDay.js.map +0 -1
  501. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameMonth.js +0 -14
  502. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameMonth.js.map +0 -1
  503. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameQuarter.js +0 -15
  504. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameQuarter.js.map +0 -1
  505. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameYear.js +0 -14
  506. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameYear.js.map +0 -1
  507. package/dist/node_modules/react-datepicker/node_modules/date-fns/isValid.js +0 -10
  508. package/dist/node_modules/react-datepicker/node_modules/date-fns/isValid.js.map +0 -1
  509. package/dist/node_modules/react-datepicker/node_modules/date-fns/isWithinInterval.js +0 -13
  510. package/dist/node_modules/react-datepicker/node_modules/date-fns/isWithinInterval.js.map +0 -1
  511. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -10
  512. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +0 -1
  513. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -19
  514. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +0 -1
  515. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -32
  516. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +0 -1
  517. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -16
  518. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +0 -1
  519. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -71
  520. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +0 -1
  521. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -34
  522. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +0 -1
  523. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -12
  524. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +0 -1
  525. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -156
  526. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/localize.js.map +0 -1
  527. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/match.js +0 -111
  528. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/match.js.map +0 -1
  529. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US.js +0 -22
  530. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US.js.map +0 -1
  531. package/dist/node_modules/react-datepicker/node_modules/date-fns/max.js +0 -15
  532. package/dist/node_modules/react-datepicker/node_modules/date-fns/max.js.map +0 -1
  533. package/dist/node_modules/react-datepicker/node_modules/date-fns/min.js +0 -15
  534. package/dist/node_modules/react-datepicker/node_modules/date-fns/min.js.map +0 -1
  535. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Parser.js +0 -23
  536. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Parser.js.map +0 -1
  537. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Setter.js +0 -42
  538. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Setter.js.map +0 -1
  539. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/constants.js +0 -50
  540. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/constants.js.map +0 -1
  541. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +0 -50
  542. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js.map +0 -1
  543. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +0 -50
  544. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js.map +0 -1
  545. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DateParser.js +0 -62
  546. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DateParser.js.map +0 -1
  547. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +0 -52
  548. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js.map +0 -1
  549. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayParser.js +0 -46
  550. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayParser.js.map +0 -1
  551. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +0 -50
  552. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js.map +0 -1
  553. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/EraParser.js +0 -31
  554. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/EraParser.js.map +0 -1
  555. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +0 -22
  556. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js.map +0 -1
  557. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +0 -23
  558. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js.map +0 -1
  559. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +0 -33
  560. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js.map +0 -1
  561. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +0 -33
  562. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js.map +0 -1
  563. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +0 -34
  564. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js.map +0 -1
  565. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +0 -34
  566. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js.map +0 -1
  567. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +0 -100
  568. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js.map +0 -1
  569. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +0 -49
  570. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js.map +0 -1
  571. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +0 -49
  572. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js.map +0 -1
  573. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +0 -50
  574. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js.map +0 -1
  575. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +0 -41
  576. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js.map +0 -1
  577. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +0 -75
  578. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js.map +0 -1
  579. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +0 -49
  580. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js.map +0 -1
  581. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +0 -70
  582. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js.map +0 -1
  583. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +0 -33
  584. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js.map +0 -1
  585. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +0 -72
  586. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MonthParser.js.map +0 -1
  587. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +0 -71
  588. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js.map +0 -1
  589. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +0 -33
  590. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/SecondParser.js.map +0 -1
  591. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +0 -75
  592. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js.map +0 -1
  593. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +0 -72
  594. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js.map +0 -1
  595. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +0 -71
  596. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js.map +0 -1
  597. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +0 -23
  598. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js.map +0 -1
  599. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +0 -23
  600. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js.map +0 -1
  601. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/YearParser.js +0 -50
  602. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/YearParser.js.map +0 -1
  603. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers.js +0 -68
  604. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers.js.map +0 -1
  605. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/utils.js +0 -104
  606. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/utils.js.map +0 -1
  607. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse.js +0 -88
  608. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse.js.map +0 -1
  609. package/dist/node_modules/react-datepicker/node_modules/date-fns/parseISO.js +0 -123
  610. package/dist/node_modules/react-datepicker/node_modules/date-fns/parseISO.js.map +0 -1
  611. package/dist/node_modules/react-datepicker/node_modules/date-fns/setDay.js +0 -13
  612. package/dist/node_modules/react-datepicker/node_modules/date-fns/setDay.js.map +0 -1
  613. package/dist/node_modules/react-datepicker/node_modules/date-fns/setHours.js +0 -10
  614. package/dist/node_modules/react-datepicker/node_modules/date-fns/setHours.js.map +0 -1
  615. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISODay.js +0 -12
  616. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISODay.js.map +0 -1
  617. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISOWeek.js +0 -11
  618. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISOWeek.js.map +0 -1
  619. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMinutes.js +0 -10
  620. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMinutes.js.map +0 -1
  621. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMonth.js +0 -14
  622. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMonth.js.map +0 -1
  623. package/dist/node_modules/react-datepicker/node_modules/date-fns/setQuarter.js +0 -11
  624. package/dist/node_modules/react-datepicker/node_modules/date-fns/setQuarter.js.map +0 -1
  625. package/dist/node_modules/react-datepicker/node_modules/date-fns/setSeconds.js +0 -10
  626. package/dist/node_modules/react-datepicker/node_modules/date-fns/setSeconds.js.map +0 -1
  627. package/dist/node_modules/react-datepicker/node_modules/date-fns/setWeek.js +0 -11
  628. package/dist/node_modules/react-datepicker/node_modules/date-fns/setWeek.js.map +0 -1
  629. package/dist/node_modules/react-datepicker/node_modules/date-fns/setYear.js +0 -11
  630. package/dist/node_modules/react-datepicker/node_modules/date-fns/setYear.js.map +0 -1
  631. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfDay.js +0 -10
  632. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfDay.js.map +0 -1
  633. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeek.js +0 -9
  634. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeek.js.map +0 -1
  635. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeekYear.js +0 -12
  636. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeekYear.js.map +0 -1
  637. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfMonth.js +0 -10
  638. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfMonth.js.map +0 -1
  639. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfQuarter.js +0 -10
  640. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfQuarter.js.map +0 -1
  641. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeek.js +0 -12
  642. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeek.js.map +0 -1
  643. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeekYear.js +0 -14
  644. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeekYear.js.map +0 -1
  645. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfYear.js +0 -10
  646. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfYear.js.map +0 -1
  647. package/dist/node_modules/react-datepicker/node_modules/date-fns/subDays.js +0 -9
  648. package/dist/node_modules/react-datepicker/node_modules/date-fns/subDays.js.map +0 -1
  649. package/dist/node_modules/react-datepicker/node_modules/date-fns/subMonths.js +0 -9
  650. package/dist/node_modules/react-datepicker/node_modules/date-fns/subMonths.js.map +0 -1
  651. package/dist/node_modules/react-datepicker/node_modules/date-fns/subQuarters.js +0 -9
  652. package/dist/node_modules/react-datepicker/node_modules/date-fns/subQuarters.js.map +0 -1
  653. package/dist/node_modules/react-datepicker/node_modules/date-fns/subWeeks.js +0 -9
  654. package/dist/node_modules/react-datepicker/node_modules/date-fns/subWeeks.js.map +0 -1
  655. package/dist/node_modules/react-datepicker/node_modules/date-fns/subYears.js +0 -9
  656. package/dist/node_modules/react-datepicker/node_modules/date-fns/subYears.js.map +0 -1
  657. package/dist/node_modules/react-datepicker/node_modules/date-fns/toDate.js +0 -9
  658. package/dist/node_modules/react-datepicker/node_modules/date-fns/toDate.js.map +0 -1
  659. package/dist/node_modules/react-datepicker/node_modules/date-fns/transpose.js +0 -19
  660. package/dist/node_modules/react-datepicker/node_modules/date-fns/transpose.js.map +0 -1
  661. package/dist/static/avatar-selected.860ee923.json +0 -1
  662. package/dist/static/circle-cuemath-logo-white.e9fafb91.svg +0 -1
  663. package/dist/static/cuemath-app-qr-code.ba6cc09b.svg +0 -1
  664. package/dist/static/cuemath-app-qr-code.d0912fc7.png +0 -0
  665. package/dist/static/dob.9ce3c15b.json +0 -1
  666. package/dist/static/error.cbe1ddde.json +0 -1
  667. package/dist/static/grade.b3730524.json +0 -1
  668. package/dist/static/key.d6846476.json +0 -1
  669. package/dist/static/mail.c30e8708.json +0 -1
  670. package/dist/static/otp.2d08f874.json +0 -1
  671. package/dist/static/otp.a3029760.json +0 -1
  672. package/dist/static/parent-avatar.772d53e0.json +0 -1
  673. package/dist/static/phone-number.0be312ea.json +0 -1
  674. package/dist/static/phone-number.84f55562.json +0 -1
  675. package/dist/static/student-avatar.524226bd.json +0 -1
  676. package/dist/static/user-type-selector-grid-bg.3c9c8ad6.svg +0 -1
  677. package/dist/static/user-type-selector-grid-bg.3ce8142d.svg +0 -1
  678. package/dist/static/user-type-selector-grid-bg.aad0b059.svg +0 -1
  679. package/dist/static/username.9e034d51.json +0 -1
@@ -1,53 +1,119 @@
1
- import e from "styled-components";
2
- import d from "../../../ui/layout/flex-view.js";
3
- import p from "../../../ui/text/text.js";
4
- e.svg(({ theme: t }) => `
1
+ import r, { keyframes as l, css as d } from "styled-components";
2
+ import o from "../../../ui/layout/flex-view.js";
3
+ import h from "../../../ui/text/text.js";
4
+ const g = l`
5
+ 0% {
6
+ transform: translate(100%, -100%) skewX(45deg);
7
+ opacity: 0;
8
+ }
9
+
10
+ 100% {
11
+ transform: translate(-150%, 100%) skewX(45deg);
12
+ opacity: 1;
13
+ }
14
+ `, u = r(o)`
15
+ transition: scale 0.3s ease-in-out;
16
+ `, x = r(o)`
17
+ position: absolute;
18
+ width: 100%;
19
+ height: 100%;
20
+ border-radius: 50%;
21
+ overflow: hidden;
22
+
23
+ &::after {
24
+ content: '';
25
+ position: absolute;
26
+ top: 0;
27
+ right: 0;
28
+ z-index: 1;
29
+ width: 40%;
30
+ height: 150%;
31
+ background: linear-gradient(
32
+ to right,
33
+ rgba(255, 255, 255, 0.7) 0%,
34
+ rgba(255, 255, 255, 0.1) 35%,
35
+ rgba(255, 255, 255, 0.7) 40%,
36
+ rgba(255, 255, 255, 0.7) 80%,
37
+ rgba(255, 255, 255, 0) 100%
38
+ );
39
+ opacity: 0;
40
+ transform: translate(100%, -100%) skew(45deg);
41
+ pointer-events: none;
42
+ }
43
+ `, w = r.svg(({ theme: t }) => `
5
44
  position: absolute;
6
45
  z-index: ${t.zIndex.CHAPTER_PROGRESS_SVG};
7
46
  inset: 50%;
8
- transform: translate(-50%, -50%);
9
- `);
10
- e.circle(
11
- ({ theme: t, $progressCircle: o, $progress: r }) => {
12
- const { GREY_2: n, BLACK: a } = t.colors, { gutter: s } = t.layout, i = s * 22.5, l = o ? i - r : r;
47
+ transform: translate(-50%, -50%) rotate(-90deg);
48
+ `), m = r.circle(
49
+ ({ theme: t, $progressCircle: e, $progress: s }) => {
50
+ const { GREY_2: n, BLACK: p } = t.colors, { gutter: a } = t.layout, i = a * 18.625, c = e ? i - s : s;
13
51
  return `
14
52
  stroke-dasharray: ${i};
15
- stroke-dashoffset: ${l};
16
- stroke: ${o ? a : n};
53
+ stroke-dashoffset: ${c};
54
+ stroke: ${e ? p : n};
17
55
 
18
- stroke-width: ${s * 0.175}px;
56
+ stroke-width: ${a * 0.125}px;
19
57
  fill: none;
20
58
  `;
21
59
  }
22
- );
23
- const f = e.img(({ theme: t }) => {
24
- const { gutter: o } = t.layout;
60
+ ), $ = r.img(({ theme: t }) => {
61
+ const { gutter: e } = t.layout;
62
+ return `
63
+ display: block;
64
+ width: ${e * 6}px;
65
+ height: ${e * 6}px;
66
+ border-radius: 50%;
67
+ `;
68
+ }), y = r.div(({ theme: t }) => {
69
+ const { layout: e } = t;
25
70
  return `
26
- width: ${o * 5}px;
27
- height: ${o * 5}px;
28
- border: 1px solid ${t.colors.BLACK_T_38};
71
+ position: absolute;
72
+ top: 5px;
73
+ right: 5px;
74
+ z-index: 2;
75
+
76
+ width: ${e.gutter * 1.25}px;
77
+ height: ${e.gutter * 1.25}px;
29
78
  border-radius: 50%;
79
+ background: ${t.colors.WHITE_1};
80
+ outline: 1px solid ${t.colors.BLACK_1};
30
81
  `;
31
- }), h = e(p)`
82
+ }), C = r(h)`
32
83
  display: -webkit-box;
33
84
  -webkit-box-orient: vertical;
34
85
  -webkit-line-clamp: 2;
35
86
  text-overflow: ellipsis;
36
87
  overflow: hidden;
37
- `, m = e(d)(({
38
- theme: t,
39
- $shouldHaveLeftBorder: o
40
- }) => {
41
- const { WHITE_5: r } = t.colors;
42
- return `
43
- cursor: pointer;
44
- border-right: ${o ? `1px solid ${r}` : "none"};
45
- border-bottom: 1px solid ${r};
46
- `;
47
- });
88
+ height: 44px;
89
+ `, v = r(o)`
90
+ cursor: ${({ shouldHideClick: t }) => t ? "not-allowed" : "pointer"};
91
+ position: relative;
92
+ box-shadow: inset 0px 0px 0px 0.5px ${({ theme: t }) => t.colors.BLACK_T_15};
93
+ aspect-ratio: 1;
94
+
95
+ &:hover {
96
+ background: ${({ theme: t, $bgColor: e }) => e ? t.colors[e] : "none"};
97
+
98
+ ${u} {
99
+ scale: 1.05;
100
+ }
101
+
102
+ ${x}::after {
103
+ ${d`
104
+ animation: ${g} 1.2s ease-out forwards;
105
+ `}
106
+ }
107
+ }
108
+ `;
48
109
  export {
49
- f as ChapterImage,
50
- m as ChapterItemWrapper,
51
- h as ChapterName
110
+ $ as ChapterImage,
111
+ u as ChapterImageWrapper,
112
+ v as ChapterItemWrapper,
113
+ C as ChapterName,
114
+ w as ChapterProgressSVG,
115
+ m as ChapterProgressSVGCircle,
116
+ x as ChapterProgressWrapper,
117
+ y as StyledCheckIconWrapper
52
118
  };
53
119
  //# sourceMappingURL=chapter-item-styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chapter-item-styled.js","sources":["../../../../../src/features/chapters/chapters-list/chapter-item/chapter-item-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\n\nconst ChapterProgressSVG = styled.svg(({ theme }) => {\n return `\n position: absolute;\n z-index: ${theme.zIndex.CHAPTER_PROGRESS_SVG};\n inset: 50%;\n transform: translate(-50%, -50%);\n `;\n});\n\ninterface IChapterProgressSVGCircleProps {\n $progressCircle?: boolean;\n $progress: number;\n}\n\nconst ChapterProgressSVGCircle = styled.circle<IChapterProgressSVGCircleProps>(\n ({ theme, $progressCircle, $progress }) => {\n const { GREY_2, BLACK } = theme.colors;\n const { gutter } = theme.layout;\n\n const strokeDashArray = gutter * 22.5;\n const strokeDashOffset = $progressCircle ? strokeDashArray - $progress : $progress;\n\n return `\n stroke-dasharray: ${strokeDashArray};\n stroke-dashoffset: ${strokeDashOffset};\n stroke: ${$progressCircle ? BLACK : GREY_2};\n\n stroke-width: ${gutter * 0.175}px;\n fill: none;\n `;\n },\n);\n\nconst ChapterImage = styled.img(({ theme }) => {\n const { gutter } = theme.layout;\n\n return `\n width: ${gutter * 5}px;\n height: ${gutter * 5}px;\n border: 1px solid ${theme.colors.BLACK_T_38};\n border-radius: 50%;\n `;\n});\n\nconst ChapterName = styled(Text)`\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n text-overflow: ellipsis;\n overflow: hidden;\n`;\n\ninterface IChapterItemWrapperProps {\n $shouldHaveLeftBorder: boolean;\n}\n\nconst ChapterItemWrapper = styled(FlexView)<IChapterItemWrapperProps>(({\n theme,\n $shouldHaveLeftBorder,\n}) => {\n const { WHITE_5 } = theme.colors;\n\n return `\n cursor: pointer;\n border-right: ${$shouldHaveLeftBorder ? `1px solid ${WHITE_5}` : 'none'};\n border-bottom: 1px solid ${WHITE_5};\n `;\n});\n\nexport {\n ChapterImage,\n ChapterItemWrapper,\n ChapterName,\n ChapterProgressSVG,\n ChapterProgressSVGCircle,\n};\n"],"names":["styled","theme","$progressCircle","$progress","GREY_2","BLACK","gutter","strokeDashArray","strokeDashOffset","ChapterImage","ChapterName","Text","ChapterItemWrapper","FlexView","$shouldHaveLeftBorder","WHITE_5"],"mappings":";;;AAK2BA,EAAO,IAAI,CAAC,EAAE,OAAAC,QAChC;AAAA;AAAA,eAEMA,EAAM,OAAO,oBAAoB;AAAA;AAAA;AAAA,GAI/C;AAOgCD,EAAO;AAAA,EACtC,CAAC,EAAE,OAAAC,GAAO,iBAAAC,GAAiB,WAAAC,QAAgB;AACzC,UAAM,EAAE,QAAAC,GAAQ,OAAAC,MAAUJ,EAAM,QAC1B,EAAE,QAAAK,EAAO,IAAIL,EAAM,QAEnBM,IAAkBD,IAAS,MAC3BE,IAAmBN,IAAkBK,IAAkBJ,IAAYA;AAElE,WAAA;AAAA,0BACeI,CAAe;AAAA,2BACdC,CAAgB;AAAA,gBAC3BN,IAAkBG,IAAQD,CAAM;AAAA;AAAA,sBAE1BE,IAAS,KAAK;AAAA;AAAA;AAAA,EAGlC;AACF;AAEA,MAAMG,IAAeT,EAAO,IAAI,CAAC,EAAE,OAAAC,QAAY;AACvC,QAAA,EAAE,QAAAK,EAAO,IAAIL,EAAM;AAElB,SAAA;AAAA,aACIK,IAAS,CAAC;AAAA,cACTA,IAAS,CAAC;AAAA,wBACAL,EAAM,OAAO,UAAU;AAAA;AAAA;AAG/C,CAAC,GAEKS,IAAcV,EAAOW,CAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAYzBC,IAAqBZ,EAAOa,CAAQ,EAA4B,CAAC;AAAA,EACrE,OAAAZ;AAAA,EACA,uBAAAa;AACF,MAAM;AACE,QAAA,EAAE,SAAAC,EAAQ,IAAId,EAAM;AAEnB,SAAA;AAAA;AAAA,oBAEWa,IAAwB,aAAaC,CAAO,KAAK,MAAM;AAAA,+BAC5CA,CAAO;AAAA;AAEtC,CAAC;"}
1
+ {"version":3,"file":"chapter-item-styled.js","sources":["../../../../../src/features/chapters/chapters-list/chapter-item/chapter-item-styled.tsx"],"sourcesContent":["import type { TColorNames } from '../../../ui/types';\n\nimport styled, { css, keyframes } from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\n\nconst shimmerEffect = keyframes`\n 0% {\n transform: translate(100%, -100%) skewX(45deg);\n opacity: 0;\n }\n\n 100% {\n transform: translate(-150%, 100%) skewX(45deg);\n opacity: 1;\n }\n`;\n\nconst ChapterImageWrapper = styled(FlexView)`\n transition: scale 0.3s ease-in-out;\n`;\n\nconst ChapterProgressWrapper = styled(FlexView)`\n position: absolute;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n overflow: hidden;\n\n &::after {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n width: 40%;\n height: 150%;\n background: linear-gradient(\n to right,\n rgba(255, 255, 255, 0.7) 0%,\n rgba(255, 255, 255, 0.1) 35%,\n rgba(255, 255, 255, 0.7) 40%,\n rgba(255, 255, 255, 0.7) 80%,\n rgba(255, 255, 255, 0) 100%\n );\n opacity: 0;\n transform: translate(100%, -100%) skew(45deg);\n pointer-events: none;\n }\n`;\n\nconst ChapterProgressSVG = styled.svg(({ theme }) => {\n return `\n position: absolute;\n z-index: ${theme.zIndex.CHAPTER_PROGRESS_SVG};\n inset: 50%;\n transform: translate(-50%, -50%) rotate(-90deg);\n `;\n});\n\ninterface IChapterProgressSVGCircleProps {\n $progressCircle?: boolean;\n $progress: number;\n}\n\nconst ChapterProgressSVGCircle = styled.circle<IChapterProgressSVGCircleProps>(\n ({ theme, $progressCircle, $progress }) => {\n const { GREY_2, BLACK } = theme.colors;\n const { gutter } = theme.layout;\n\n const strokeDashArray = gutter * 18.625;\n const strokeDashOffset = $progressCircle ? strokeDashArray - $progress : $progress;\n\n return `\n stroke-dasharray: ${strokeDashArray};\n stroke-dashoffset: ${strokeDashOffset};\n stroke: ${$progressCircle ? BLACK : GREY_2};\n\n stroke-width: ${gutter * 0.125}px;\n fill: none;\n `;\n },\n);\n\nconst ChapterImage = styled.img(({ theme }) => {\n const { gutter } = theme.layout;\n\n return `\n display: block;\n width: ${gutter * 6}px;\n height: ${gutter * 6}px;\n border-radius: 50%;\n `;\n});\n\nconst StyledCheckIconWrapper = styled.div(({ theme }) => {\n const { layout } = theme;\n\n return `\n position: absolute;\n top: 5px;\n right: 5px;\n z-index: 2;\n\n width: ${layout.gutter * 1.25}px;\n height: ${layout.gutter * 1.25}px;\n border-radius: 50%;\n background: ${theme.colors.WHITE_1};\n outline: 1px solid ${theme.colors.BLACK_1};\n `;\n});\n\nconst ChapterName = styled(Text)`\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n text-overflow: ellipsis;\n overflow: hidden;\n height: 44px;\n`;\n\ninterface IChapterItemWrapperProps {\n $bgColor?: TColorNames;\n shouldHideClick?: boolean;\n}\n\nconst ChapterItemWrapper = styled(FlexView)<IChapterItemWrapperProps>`\n cursor: ${({ shouldHideClick }) => (shouldHideClick ? 'not-allowed' : 'pointer')};\n position: relative;\n box-shadow: inset 0px 0px 0px 0.5px ${({ theme }) => theme.colors.BLACK_T_15};\n aspect-ratio: 1;\n\n &:hover {\n background: ${({ theme, $bgColor }) => ($bgColor ? theme.colors[$bgColor] : 'none')};\n\n ${ChapterImageWrapper} {\n scale: 1.05;\n }\n\n ${ChapterProgressWrapper}::after {\n ${css`\n animation: ${shimmerEffect} 1.2s ease-out forwards;\n `}\n }\n }\n`;\n\nexport {\n ChapterImageWrapper,\n ChapterProgressWrapper,\n ChapterImage,\n ChapterItemWrapper,\n ChapterName,\n ChapterProgressSVG,\n ChapterProgressSVGCircle,\n StyledCheckIconWrapper,\n};\n"],"names":["shimmerEffect","keyframes","ChapterImageWrapper","styled","FlexView","ChapterProgressWrapper","ChapterProgressSVG","theme","ChapterProgressSVGCircle","$progressCircle","$progress","GREY_2","BLACK","gutter","strokeDashArray","strokeDashOffset","ChapterImage","StyledCheckIconWrapper","layout","ChapterName","Text","ChapterItemWrapper","shouldHideClick","$bgColor","css"],"mappings":";;;AAOA,MAAMA,IAAgBC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAYhBC,IAAsBC,EAAOC,CAAQ;AAAA;AAAA,GAIrCC,IAAyBF,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GA6BxCE,IAAqBH,EAAO,IAAI,CAAC,EAAE,OAAAI,QAChC;AAAA;AAAA,eAEMA,EAAM,OAAO,oBAAoB;AAAA;AAAA;AAAA,GAI/C,GAOKC,IAA2BL,EAAO;AAAA,EACtC,CAAC,EAAE,OAAAI,GAAO,iBAAAE,GAAiB,WAAAC,QAAgB;AACzC,UAAM,EAAE,QAAAC,GAAQ,OAAAC,MAAUL,EAAM,QAC1B,EAAE,QAAAM,EAAO,IAAIN,EAAM,QAEnBO,IAAkBD,IAAS,QAC3BE,IAAmBN,IAAkBK,IAAkBJ,IAAYA;AAElE,WAAA;AAAA,0BACeI,CAAe;AAAA,2BACdC,CAAgB;AAAA,gBAC3BN,IAAkBG,IAAQD,CAAM;AAAA;AAAA,sBAE1BE,IAAS,KAAK;AAAA;AAAA;AAAA,EAGlC;AACF,GAEMG,IAAeb,EAAO,IAAI,CAAC,EAAE,OAAAI,QAAY;AACvC,QAAA,EAAE,QAAAM,EAAO,IAAIN,EAAM;AAElB,SAAA;AAAA;AAAA,aAEIM,IAAS,CAAC;AAAA,cACTA,IAAS,CAAC;AAAA;AAAA;AAGxB,CAAC,GAEKI,IAAyBd,EAAO,IAAI,CAAC,EAAE,OAAAI,QAAY;AACjD,QAAA,EAAE,QAAAW,EAAW,IAAAX;AAEZ,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAMIW,EAAO,SAAS,IAAI;AAAA,cACnBA,EAAO,SAAS,IAAI;AAAA;AAAA,kBAEhBX,EAAM,OAAO,OAAO;AAAA,yBACbA,EAAM,OAAO,OAAO;AAAA;AAE7C,CAAC,GAEKY,IAAchB,EAAOiB,CAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAczBC,IAAqBlB,EAAOC,CAAQ;AAAA,YAC9B,CAAC,EAAE,iBAAAkB,EAAA,MAAuBA,IAAkB,gBAAgB,SAAU;AAAA;AAAA,wCAE1C,CAAC,EAAE,OAAAf,EAAA,MAAYA,EAAM,OAAO,UAAU;AAAA;AAAA;AAAA;AAAA,kBAI5D,CAAC,EAAE,OAAAA,GAAO,UAAAgB,QAAgBA,IAAWhB,EAAM,OAAOgB,CAAQ,IAAI,MAAO;AAAA;AAAA,MAEjFrB,CAAmB;AAAA;AAAA;AAAA;AAAA,MAInBG,CAAsB;AAAA,QACpBmB;AAAA,qBACaxB,CAAa;AAAA,OAC3B;AAAA;AAAA;AAAA;"}
@@ -1,58 +1,101 @@
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]);
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]);
13
19
  return _(() => {
14
- e.current && e.current.scrollHeight > e.current.clientHeight && g(!0);
15
- }, [e]), /* @__PURE__ */ c(
16
- L,
20
+ t.current && t.current.scrollHeight > t.current.clientHeight && y(!0);
21
+ }, [t]), /* @__PURE__ */ e(
22
+ h,
17
23
  {
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
- ]
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
+ )
51
94
  }
52
95
  );
53
96
  }
54
97
  );
55
98
  export {
56
- V as default
99
+ B as default
57
100
  };
58
101
  //# 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';\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
+ {"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,14 +1,15 @@
1
1
  import r from "styled-components";
2
2
  import { MILESTONE_WIDGET_MIN_HEIGHT as o } from "../../milestone/constants.js";
3
- import p from "../../ui/layout/flex-view.js";
4
- const s = r(p)`
3
+ import i from "../../ui/layout/flex-view.js";
4
+ const s = r(i)`
5
5
  position: relative;
6
6
  min-height: ${o}px;
7
7
  `, n = r.div`
8
8
  display: grid;
9
- grid-template-columns: repeat(2, 1fr);
9
+ grid-template-columns: repeat(4, 1fr);
10
10
  align-content: start;
11
- `, d = r.div(({ theme: t }) => `
11
+ `;
12
+ r.div(({ theme: t }) => `
12
13
  position: absolute;
13
14
  bottom: ${t.layout.gutter}px;
14
15
  right: ${t.layout.gutter}px;
@@ -16,7 +17,6 @@ const s = r(p)`
16
17
  border-radius: 50%;
17
18
  `);
18
19
  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(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
+ {"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,84 +1,78 @@
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";
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";
3
3
  import { IMAGES as g } from "../../../assets/images/images.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";
4
+ import k from "../../ui/arrow-tooltip/arrow-tooltip.js";
5
+ import x from "../../ui/buttons/button/button.js";
8
6
  import { useUIContext as $ } from "../../ui/context/context.js";
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({
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({
17
15
  label: "add_chapter_icon",
18
16
  props: {
19
17
  milestone_id: t
20
18
  }
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,
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,
40
25
  {
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,
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,
61
46
  {
62
- widthX: 10,
63
47
  renderAs: "primary",
64
- shape: "square",
65
- size: "small",
66
- label: "Add chapter",
67
- onClick: m,
68
- disabled: !p || !n,
69
- analyticsProps: {
70
- milestone_id: t
71
- }
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
+ )
72
66
  }
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
- ] });
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
+ );
79
73
  }
80
- ), K = j;
74
+ ), O = I;
81
75
  export {
82
- K as default
76
+ O as default
83
77
  };
84
78
  //# 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 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
+ {"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;"}
@@ -0,0 +1,10 @@
1
+ import { createGetAPI as r } from "@cuemath/rest-api";
2
+ import { BASE_URL_V3_1 as a } from "../../../constants/api.js";
3
+ const { useGet: p, invalidate: l } = r({
4
+ getURL: (e, s, { studentId: t }) => `${a}/users/${t}/user-chapters/${e} `
5
+ });
6
+ export {
7
+ l as invalidateGetChapterDetails,
8
+ p as useGetChapterDetails
9
+ };
10
+ //# sourceMappingURL=chapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chapter.js","sources":["../../../../src/features/chapters-v2/api/chapter.ts"],"sourcesContent":["import type { IUserChapterData } from '../chapter-details/chapter-details-types';\n\nimport { createGetAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V3_1 } from '../../../constants/api';\n\nconst { useGet: useGetChapterDetails, invalidate: invalidateGetChapterDetails } = createGetAPI<\n IUserChapterData,\n void,\n { studentId: string }\n>({\n getURL: (userChapterId: string, _, { studentId }) =>\n `${BASE_URL_V3_1}/users/${studentId}/user-chapters/${userChapterId} `,\n});\n\nexport { useGetChapterDetails, invalidateGetChapterDetails };\n"],"names":["useGetChapterDetails","invalidateGetChapterDetails","createGetAPI","userChapterId","_","studentId","BASE_URL_V3_1"],"mappings":";;AAMA,MAAM,EAAE,QAAQA,GAAsB,YAAYC,EAAA,IAAgCC,EAIhF;AAAA,EACA,QAAQ,CAACC,GAAuBC,GAAG,EAAE,WAAAC,EAAA,MACnC,GAAGC,CAAa,UAAUD,CAAS,kBAAkBF,CAAa;AACtE,CAAC;"}