@cuemath/leap 3.0.11-j4 → 3.0.11

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 (444) hide show
  1. package/dist/assets/illustrations/illustrations.js +0 -3
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/lottie/lottie.js +0 -11
  4. package/dist/assets/lottie/lottie.js.map +1 -1
  5. package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js +36 -27
  6. package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js.map +1 -1
  7. package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js +43 -31
  8. package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js.map +1 -1
  9. package/dist/features/chapters/chapters-list/chapters-list.js +16 -15
  10. package/dist/features/chapters/chapters-list/chapters-list.js.map +1 -1
  11. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js +2 -2
  12. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js.map +1 -1
  13. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js +30 -30
  14. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js.map +1 -1
  15. package/dist/features/chapters-v2/chapter-details/chapter-details.js +35 -35
  16. package/dist/features/chapters-v2/chapter-details/chapter-details.js.map +1 -1
  17. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js +44 -44
  18. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js.map +1 -1
  19. package/dist/features/homework/homework-card.js +146 -131
  20. package/dist/features/homework/homework-card.js.map +1 -1
  21. package/dist/features/journey/hooks/use-chapter-journey.js +28 -28
  22. package/dist/features/journey/hooks/use-chapter-journey.js.map +1 -1
  23. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js +40 -38
  24. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js.map +1 -1
  25. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js +53 -50
  26. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js.map +1 -1
  27. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js +64 -62
  28. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js.map +1 -1
  29. package/dist/features/milestone/milestone-list-container/milestone-list-container.js +44 -42
  30. package/dist/features/milestone/milestone-list-container/milestone-list-container.js.map +1 -1
  31. package/dist/features/milestone/milestone-resources/resources-list/resources-list.js +39 -37
  32. package/dist/features/milestone/milestone-resources/resources-list/resources-list.js.map +1 -1
  33. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js +38 -31
  34. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js.map +1 -1
  35. package/dist/index.d.ts +3 -284
  36. package/dist/index.js +321 -367
  37. package/dist/index.js.map +1 -1
  38. package/package.json +2 -3
  39. package/dist/assets/illustrations/loader-1.svg.js +0 -6
  40. package/dist/assets/illustrations/loader-1.svg.js.map +0 -1
  41. package/dist/assets/line-icons/icons/apple-icon.js +0 -48
  42. package/dist/assets/line-icons/icons/apple-icon.js.map +0 -1
  43. package/dist/assets/line-icons/icons/google-icon.js +0 -42
  44. package/dist/assets/line-icons/icons/google-icon.js.map +0 -1
  45. package/dist/features/auth/account-selector/account-selector.js +0 -43
  46. package/dist/features/auth/account-selector/account-selector.js.map +0 -1
  47. package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js +0 -12
  48. package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js.map +0 -1
  49. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +0 -12
  50. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +0 -1
  51. package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js +0 -18
  52. package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js.map +0 -1
  53. package/dist/features/auth/comps/input-status-icon/input-status-icon.js +0 -21
  54. package/dist/features/auth/comps/input-status-icon/input-status-icon.js.map +0 -1
  55. package/dist/features/auth/comps/overlay-loader/overlay-loader-styled.js +0 -29
  56. package/dist/features/auth/comps/overlay-loader/overlay-loader-styled.js.map +0 -1
  57. package/dist/features/auth/comps/overlay-loader/overlay-loader.js +0 -9
  58. package/dist/features/auth/comps/overlay-loader/overlay-loader.js.map +0 -1
  59. package/dist/features/auth/comps/resend-otp/hooks/use-resend-timer.js +0 -24
  60. package/dist/features/auth/comps/resend-otp/hooks/use-resend-timer.js.map +0 -1
  61. package/dist/features/auth/comps/resend-otp/resend-otp.js +0 -65
  62. package/dist/features/auth/comps/resend-otp/resend-otp.js.map +0 -1
  63. package/dist/features/auth/comps/tabs/tab-tem/tab-item.js +0 -23
  64. package/dist/features/auth/comps/tabs/tab-tem/tab-item.js.map +0 -1
  65. package/dist/features/auth/comps/tabs/tabs-styled.js +0 -23
  66. package/dist/features/auth/comps/tabs/tabs-styled.js.map +0 -1
  67. package/dist/features/auth/comps/tabs/tabs.js +0 -9
  68. package/dist/features/auth/comps/tabs/tabs.js.map +0 -1
  69. package/dist/features/auth/forgot-password/forgot-password-styled.js +0 -12
  70. package/dist/features/auth/forgot-password/forgot-password-styled.js.map +0 -1
  71. package/dist/features/auth/forgot-password/otp-form/otp-form.js +0 -63
  72. package/dist/features/auth/forgot-password/otp-form/otp-form.js.map +0 -1
  73. package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js +0 -100
  74. package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js.map +0 -1
  75. package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js +0 -68
  76. package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js.map +0 -1
  77. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js +0 -12
  78. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js.map +0 -1
  79. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form.js +0 -89
  80. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form.js.map +0 -1
  81. package/dist/features/auth/login/login-constants.js +0 -14
  82. package/dist/features/auth/login/login-constants.js.map +0 -1
  83. package/dist/features/auth/login/social-account-not-found/social-account-not-found.js +0 -32
  84. package/dist/features/auth/login/social-account-not-found/social-account-not-found.js.map +0 -1
  85. package/dist/features/auth/login/social-login-methods/social-login-methods.js +0 -47
  86. package/dist/features/auth/login/social-login-methods/social-login-methods.js.map +0 -1
  87. package/dist/features/auth/login/username-password-form/username-password-form.js +0 -88
  88. package/dist/features/auth/login/username-password-form/username-password-form.js.map +0 -1
  89. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js +0 -56
  90. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js.map +0 -1
  91. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js +0 -131
  92. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +0 -1
  93. package/dist/features/auth/signup/claim-user-account/claim-user-account.js +0 -53
  94. package/dist/features/auth/signup/claim-user-account/claim-user-account.js.map +0 -1
  95. package/dist/features/auth/signup/custom-input-field/country-selector/country-code-button.js +0 -33
  96. package/dist/features/auth/signup/custom-input-field/country-selector/country-code-button.js.map +0 -1
  97. package/dist/features/auth/signup/custom-input-field/country-selector/country-list-menu.js +0 -98
  98. package/dist/features/auth/signup/custom-input-field/country-selector/country-list-menu.js.map +0 -1
  99. package/dist/features/auth/signup/custom-input-field/country-selector/country-selector-styled.js +0 -57
  100. package/dist/features/auth/signup/custom-input-field/country-selector/country-selector-styled.js.map +0 -1
  101. package/dist/features/auth/signup/custom-input-field/country-selector/country-selector.js +0 -26
  102. package/dist/features/auth/signup/custom-input-field/country-selector/country-selector.js.map +0 -1
  103. package/dist/features/auth/signup/custom-input-field/custom-input-field-styled.js +0 -30
  104. package/dist/features/auth/signup/custom-input-field/custom-input-field-styled.js.map +0 -1
  105. package/dist/features/auth/signup/custom-input-field/custom-input-field.js +0 -95
  106. package/dist/features/auth/signup/custom-input-field/custom-input-field.js.map +0 -1
  107. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input-styled.js +0 -88
  108. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input-styled.js.map +0 -1
  109. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input.js +0 -59
  110. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input.js.map +0 -1
  111. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input-styled.js +0 -31
  112. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input-styled.js.map +0 -1
  113. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input.js +0 -31
  114. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input.js.map +0 -1
  115. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper-styled.js +0 -11
  116. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper-styled.js.map +0 -1
  117. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js +0 -29
  118. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js.map +0 -1
  119. package/dist/features/auth/signup/custom-input-field/password-toggle/password-toggle.js +0 -9
  120. package/dist/features/auth/signup/custom-input-field/password-toggle/password-toggle.js.map +0 -1
  121. package/dist/features/auth/signup/signup-constants.js +0 -1031
  122. package/dist/features/auth/signup/signup-constants.js.map +0 -1
  123. package/dist/features/auth/signup/signup-methods/signup-methods.js +0 -69
  124. package/dist/features/auth/signup/signup-methods/signup-methods.js.map +0 -1
  125. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card-styled.js +0 -19
  126. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card-styled.js.map +0 -1
  127. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js +0 -62
  128. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js.map +0 -1
  129. package/dist/features/auth/signup/user-type-selector/user-type-selector-styled.js +0 -24
  130. package/dist/features/auth/signup/user-type-selector/user-type-selector-styled.js.map +0 -1
  131. package/dist/features/auth/signup/user-type-selector/user-type-selector.js +0 -85
  132. package/dist/features/auth/signup/user-type-selector/user-type-selector.js.map +0 -1
  133. package/dist/features/auth/user-list/user-item/user-item-styled.js +0 -21
  134. package/dist/features/auth/user-list/user-item/user-item-styled.js.map +0 -1
  135. package/dist/features/auth/user-list/user-item/user-item.js +0 -48
  136. package/dist/features/auth/user-list/user-item/user-item.js.map +0 -1
  137. package/dist/features/auth/user-list/user-list-styled.js +0 -19
  138. package/dist/features/auth/user-list/user-list-styled.js.map +0 -1
  139. package/dist/features/auth/user-list/user-list.js +0 -56
  140. package/dist/features/auth/user-list/user-list.js.map +0 -1
  141. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -332
  142. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
  143. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -370
  144. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
  145. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +0 -252
  146. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js.map +0 -1
  147. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +0 -24
  148. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js.map +0 -1
  149. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -192
  150. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +0 -1
  151. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -19
  152. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
  153. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -129
  154. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
  155. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -129
  156. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
  157. package/dist/node_modules/clsx/dist/clsx.js +0 -18
  158. package/dist/node_modules/clsx/dist/clsx.js.map +0 -1
  159. package/dist/node_modules/date-fns/subYears.js +0 -9
  160. package/dist/node_modules/date-fns/subYears.js.map +0 -1
  161. package/dist/node_modules/react-datepicker/dist/index.es.js +0 -2700
  162. package/dist/node_modules/react-datepicker/dist/index.es.js.map +0 -1
  163. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/addLeadingZeros.js +0 -8
  164. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/addLeadingZeros.js.map +0 -1
  165. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/defaultOptions.js +0 -8
  166. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/defaultOptions.js.map +0 -1
  167. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/formatters.js +0 -518
  168. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/formatters.js.map +0 -1
  169. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/lightFormatters.js +0 -60
  170. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/lightFormatters.js.map +0 -1
  171. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/longFormatters.js +0 -53
  172. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/longFormatters.js.map +0 -1
  173. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -19
  174. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +0 -1
  175. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/normalizeDates.js +0 -12
  176. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/normalizeDates.js.map +0 -1
  177. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/protectedTokens.js +0 -21
  178. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/protectedTokens.js.map +0 -1
  179. package/dist/node_modules/react-datepicker/node_modules/date-fns/addDays.js +0 -11
  180. package/dist/node_modules/react-datepicker/node_modules/date-fns/addDays.js.map +0 -1
  181. package/dist/node_modules/react-datepicker/node_modules/date-fns/addHours.js +0 -10
  182. package/dist/node_modules/react-datepicker/node_modules/date-fns/addHours.js.map +0 -1
  183. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMilliseconds.js +0 -10
  184. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMilliseconds.js.map +0 -1
  185. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMinutes.js +0 -11
  186. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMinutes.js.map +0 -1
  187. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMonths.js +0 -21
  188. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMonths.js.map +0 -1
  189. package/dist/node_modules/react-datepicker/node_modules/date-fns/addQuarters.js +0 -9
  190. package/dist/node_modules/react-datepicker/node_modules/date-fns/addQuarters.js.map +0 -1
  191. package/dist/node_modules/react-datepicker/node_modules/date-fns/addSeconds.js +0 -9
  192. package/dist/node_modules/react-datepicker/node_modules/date-fns/addSeconds.js.map +0 -1
  193. package/dist/node_modules/react-datepicker/node_modules/date-fns/addWeeks.js +0 -9
  194. package/dist/node_modules/react-datepicker/node_modules/date-fns/addWeeks.js.map +0 -1
  195. package/dist/node_modules/react-datepicker/node_modules/date-fns/addYears.js +0 -9
  196. package/dist/node_modules/react-datepicker/node_modules/date-fns/addYears.js.map +0 -1
  197. package/dist/node_modules/react-datepicker/node_modules/date-fns/constants.js +0 -10
  198. package/dist/node_modules/react-datepicker/node_modules/date-fns/constants.js.map +0 -1
  199. package/dist/node_modules/react-datepicker/node_modules/date-fns/constructFrom.js +0 -9
  200. package/dist/node_modules/react-datepicker/node_modules/date-fns/constructFrom.js.map +0 -1
  201. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarDays.js +0 -17
  202. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarDays.js.map +0 -1
  203. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarMonths.js +0 -14
  204. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarMonths.js.map +0 -1
  205. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarQuarters.js +0 -15
  206. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarQuarters.js.map +0 -1
  207. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarYears.js +0 -14
  208. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarYears.js.map +0 -1
  209. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInDays.js +0 -23
  210. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInDays.js.map +0 -1
  211. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfDay.js +0 -10
  212. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfDay.js.map +0 -1
  213. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfMonth.js +0 -10
  214. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfMonth.js.map +0 -1
  215. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfWeek.js +0 -12
  216. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfWeek.js.map +0 -1
  217. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfYear.js +0 -10
  218. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfYear.js.map +0 -1
  219. package/dist/node_modules/react-datepicker/node_modules/date-fns/format.js +0 -60
  220. package/dist/node_modules/react-datepicker/node_modules/date-fns/format.js.map +0 -1
  221. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDate.js +0 -9
  222. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDate.js.map +0 -1
  223. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDay.js +0 -9
  224. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDay.js.map +0 -1
  225. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDayOfYear.js +0 -12
  226. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDayOfYear.js.map +0 -1
  227. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDaysInMonth.js +0 -11
  228. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDaysInMonth.js.map +0 -1
  229. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDefaultOptions.js +0 -9
  230. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDefaultOptions.js.map +0 -1
  231. package/dist/node_modules/react-datepicker/node_modules/date-fns/getHours.js +0 -9
  232. package/dist/node_modules/react-datepicker/node_modules/date-fns/getHours.js.map +0 -1
  233. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISODay.js +0 -10
  234. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISODay.js.map +0 -1
  235. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeek.js +0 -13
  236. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeek.js.map +0 -1
  237. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeekYear.js +0 -16
  238. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeekYear.js.map +0 -1
  239. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMinutes.js +0 -9
  240. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMinutes.js.map +0 -1
  241. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMonth.js +0 -9
  242. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMonth.js.map +0 -1
  243. package/dist/node_modules/react-datepicker/node_modules/date-fns/getQuarter.js +0 -10
  244. package/dist/node_modules/react-datepicker/node_modules/date-fns/getQuarter.js.map +0 -1
  245. package/dist/node_modules/react-datepicker/node_modules/date-fns/getSeconds.js +0 -9
  246. package/dist/node_modules/react-datepicker/node_modules/date-fns/getSeconds.js.map +0 -1
  247. package/dist/node_modules/react-datepicker/node_modules/date-fns/getTime.js +0 -9
  248. package/dist/node_modules/react-datepicker/node_modules/date-fns/getTime.js.map +0 -1
  249. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeek.js +0 -13
  250. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeek.js.map +0 -1
  251. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeekYear.js +0 -18
  252. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeekYear.js.map +0 -1
  253. package/dist/node_modules/react-datepicker/node_modules/date-fns/getYear.js +0 -9
  254. package/dist/node_modules/react-datepicker/node_modules/date-fns/getYear.js.map +0 -1
  255. package/dist/node_modules/react-datepicker/node_modules/date-fns/isAfter.js +0 -9
  256. package/dist/node_modules/react-datepicker/node_modules/date-fns/isAfter.js.map +0 -1
  257. package/dist/node_modules/react-datepicker/node_modules/date-fns/isBefore.js +0 -9
  258. package/dist/node_modules/react-datepicker/node_modules/date-fns/isBefore.js.map +0 -1
  259. package/dist/node_modules/react-datepicker/node_modules/date-fns/isDate.js +0 -8
  260. package/dist/node_modules/react-datepicker/node_modules/date-fns/isDate.js.map +0 -1
  261. package/dist/node_modules/react-datepicker/node_modules/date-fns/isEqual.js +0 -9
  262. package/dist/node_modules/react-datepicker/node_modules/date-fns/isEqual.js.map +0 -1
  263. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameDay.js +0 -15
  264. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameDay.js.map +0 -1
  265. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameMonth.js +0 -14
  266. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameMonth.js.map +0 -1
  267. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameQuarter.js +0 -15
  268. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameQuarter.js.map +0 -1
  269. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameYear.js +0 -14
  270. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameYear.js.map +0 -1
  271. package/dist/node_modules/react-datepicker/node_modules/date-fns/isValid.js +0 -10
  272. package/dist/node_modules/react-datepicker/node_modules/date-fns/isValid.js.map +0 -1
  273. package/dist/node_modules/react-datepicker/node_modules/date-fns/isWithinInterval.js +0 -13
  274. package/dist/node_modules/react-datepicker/node_modules/date-fns/isWithinInterval.js.map +0 -1
  275. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -10
  276. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +0 -1
  277. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -19
  278. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +0 -1
  279. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -32
  280. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +0 -1
  281. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -16
  282. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +0 -1
  283. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -71
  284. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +0 -1
  285. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -34
  286. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +0 -1
  287. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -12
  288. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +0 -1
  289. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -156
  290. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/localize.js.map +0 -1
  291. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/match.js +0 -111
  292. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/match.js.map +0 -1
  293. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US.js +0 -22
  294. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US.js.map +0 -1
  295. package/dist/node_modules/react-datepicker/node_modules/date-fns/max.js +0 -15
  296. package/dist/node_modules/react-datepicker/node_modules/date-fns/max.js.map +0 -1
  297. package/dist/node_modules/react-datepicker/node_modules/date-fns/min.js +0 -15
  298. package/dist/node_modules/react-datepicker/node_modules/date-fns/min.js.map +0 -1
  299. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Parser.js +0 -23
  300. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Parser.js.map +0 -1
  301. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Setter.js +0 -42
  302. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Setter.js.map +0 -1
  303. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/constants.js +0 -50
  304. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/constants.js.map +0 -1
  305. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +0 -50
  306. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js.map +0 -1
  307. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +0 -50
  308. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js.map +0 -1
  309. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DateParser.js +0 -62
  310. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DateParser.js.map +0 -1
  311. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +0 -52
  312. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js.map +0 -1
  313. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayParser.js +0 -46
  314. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayParser.js.map +0 -1
  315. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +0 -50
  316. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js.map +0 -1
  317. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/EraParser.js +0 -31
  318. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/EraParser.js.map +0 -1
  319. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +0 -22
  320. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js.map +0 -1
  321. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +0 -23
  322. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js.map +0 -1
  323. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +0 -33
  324. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js.map +0 -1
  325. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +0 -33
  326. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js.map +0 -1
  327. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +0 -34
  328. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js.map +0 -1
  329. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +0 -34
  330. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js.map +0 -1
  331. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +0 -100
  332. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js.map +0 -1
  333. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +0 -49
  334. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js.map +0 -1
  335. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +0 -49
  336. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js.map +0 -1
  337. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +0 -50
  338. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js.map +0 -1
  339. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +0 -41
  340. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js.map +0 -1
  341. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +0 -75
  342. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js.map +0 -1
  343. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +0 -49
  344. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js.map +0 -1
  345. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +0 -70
  346. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js.map +0 -1
  347. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +0 -33
  348. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js.map +0 -1
  349. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +0 -72
  350. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MonthParser.js.map +0 -1
  351. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +0 -71
  352. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js.map +0 -1
  353. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +0 -33
  354. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/SecondParser.js.map +0 -1
  355. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +0 -75
  356. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js.map +0 -1
  357. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +0 -72
  358. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js.map +0 -1
  359. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +0 -71
  360. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js.map +0 -1
  361. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +0 -23
  362. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js.map +0 -1
  363. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +0 -23
  364. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js.map +0 -1
  365. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/YearParser.js +0 -50
  366. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/YearParser.js.map +0 -1
  367. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers.js +0 -68
  368. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers.js.map +0 -1
  369. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/utils.js +0 -104
  370. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/utils.js.map +0 -1
  371. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse.js +0 -88
  372. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse.js.map +0 -1
  373. package/dist/node_modules/react-datepicker/node_modules/date-fns/parseISO.js +0 -123
  374. package/dist/node_modules/react-datepicker/node_modules/date-fns/parseISO.js.map +0 -1
  375. package/dist/node_modules/react-datepicker/node_modules/date-fns/setDay.js +0 -13
  376. package/dist/node_modules/react-datepicker/node_modules/date-fns/setDay.js.map +0 -1
  377. package/dist/node_modules/react-datepicker/node_modules/date-fns/setHours.js +0 -10
  378. package/dist/node_modules/react-datepicker/node_modules/date-fns/setHours.js.map +0 -1
  379. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISODay.js +0 -12
  380. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISODay.js.map +0 -1
  381. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISOWeek.js +0 -11
  382. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISOWeek.js.map +0 -1
  383. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMinutes.js +0 -10
  384. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMinutes.js.map +0 -1
  385. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMonth.js +0 -14
  386. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMonth.js.map +0 -1
  387. package/dist/node_modules/react-datepicker/node_modules/date-fns/setQuarter.js +0 -11
  388. package/dist/node_modules/react-datepicker/node_modules/date-fns/setQuarter.js.map +0 -1
  389. package/dist/node_modules/react-datepicker/node_modules/date-fns/setSeconds.js +0 -10
  390. package/dist/node_modules/react-datepicker/node_modules/date-fns/setSeconds.js.map +0 -1
  391. package/dist/node_modules/react-datepicker/node_modules/date-fns/setWeek.js +0 -11
  392. package/dist/node_modules/react-datepicker/node_modules/date-fns/setWeek.js.map +0 -1
  393. package/dist/node_modules/react-datepicker/node_modules/date-fns/setYear.js +0 -11
  394. package/dist/node_modules/react-datepicker/node_modules/date-fns/setYear.js.map +0 -1
  395. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfDay.js +0 -10
  396. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfDay.js.map +0 -1
  397. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeek.js +0 -9
  398. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeek.js.map +0 -1
  399. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeekYear.js +0 -12
  400. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeekYear.js.map +0 -1
  401. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfMonth.js +0 -10
  402. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfMonth.js.map +0 -1
  403. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfQuarter.js +0 -10
  404. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfQuarter.js.map +0 -1
  405. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeek.js +0 -12
  406. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeek.js.map +0 -1
  407. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeekYear.js +0 -14
  408. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeekYear.js.map +0 -1
  409. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfYear.js +0 -10
  410. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfYear.js.map +0 -1
  411. package/dist/node_modules/react-datepicker/node_modules/date-fns/subDays.js +0 -9
  412. package/dist/node_modules/react-datepicker/node_modules/date-fns/subDays.js.map +0 -1
  413. package/dist/node_modules/react-datepicker/node_modules/date-fns/subMonths.js +0 -9
  414. package/dist/node_modules/react-datepicker/node_modules/date-fns/subMonths.js.map +0 -1
  415. package/dist/node_modules/react-datepicker/node_modules/date-fns/subQuarters.js +0 -9
  416. package/dist/node_modules/react-datepicker/node_modules/date-fns/subQuarters.js.map +0 -1
  417. package/dist/node_modules/react-datepicker/node_modules/date-fns/subWeeks.js +0 -9
  418. package/dist/node_modules/react-datepicker/node_modules/date-fns/subWeeks.js.map +0 -1
  419. package/dist/node_modules/react-datepicker/node_modules/date-fns/subYears.js +0 -9
  420. package/dist/node_modules/react-datepicker/node_modules/date-fns/subYears.js.map +0 -1
  421. package/dist/node_modules/react-datepicker/node_modules/date-fns/toDate.js +0 -9
  422. package/dist/node_modules/react-datepicker/node_modules/date-fns/toDate.js.map +0 -1
  423. package/dist/node_modules/react-datepicker/node_modules/date-fns/transpose.js +0 -19
  424. package/dist/node_modules/react-datepicker/node_modules/date-fns/transpose.js.map +0 -1
  425. package/dist/static/avatar-selected.860ee923.json +0 -1
  426. package/dist/static/circle-cuemath-logo-white.e9fafb91.svg +0 -1
  427. package/dist/static/cuemath-app-qr-code.4beefe48.svg +0 -1
  428. package/dist/static/cuemath-app-qr-code.ba6cc09b.svg +0 -1
  429. package/dist/static/cuemath-app-qr-code.d0912fc7.png +0 -0
  430. package/dist/static/dob.9ce3c15b.json +0 -1
  431. package/dist/static/error.cbe1ddde.json +0 -1
  432. package/dist/static/grade.b3730524.json +0 -1
  433. package/dist/static/key.d6846476.json +0 -1
  434. package/dist/static/mail.c30e8708.json +0 -1
  435. package/dist/static/otp.2d08f874.json +0 -1
  436. package/dist/static/otp.a3029760.json +0 -1
  437. package/dist/static/parent-avatar.772d53e0.json +0 -1
  438. package/dist/static/phone-number.0be312ea.json +0 -1
  439. package/dist/static/phone-number.84f55562.json +0 -1
  440. package/dist/static/student-avatar.524226bd.json +0 -1
  441. package/dist/static/user-type-selector-grid-bg.3c9c8ad6.svg +0 -1
  442. package/dist/static/user-type-selector-grid-bg.3ce8142d.svg +0 -1
  443. package/dist/static/user-type-selector-grid-bg.aad0b059.svg +0 -1
  444. package/dist/static/username.9e034d51.json +0 -1
@@ -1,31 +1,31 @@
1
1
  import { jsxs as x, jsx as o } from "react/jsx-runtime";
2
2
  import { useRef as n, useCallback as p, useMemo as R, useEffect as N } from "react";
3
3
  import _ from "../../chapters-v2/chapter-details/block-sections/block-sections.js";
4
- import L from "../../chapters-v2/chapter-details/chapter-banner/chapter-banner.js";
4
+ import k from "../../chapters-v2/chapter-details/chapter-banner/chapter-banner.js";
5
5
  import I from "../../chapters-v2/chapter-details/chapter-details.js";
6
- import k from "../../ui/layout/flex-view.js";
6
+ import A from "../../ui/layout/flex-view.js";
7
7
  import P from "../../ui/separator/separator.js";
8
- import { JOURNEY_ID_STUDENT as K } from "../journey-id/journey-id-student.js";
9
- import { PROGRESS_STAT_MOCK as y, BLOCK_MOCKS as H } from "../mocks/chapter-page-journey-mock-data.js";
8
+ import { JOURNEY_ID_STUDENT as H } from "../journey-id/journey-id-student.js";
9
+ import { PROGRESS_STAT_MOCK as y, BLOCK_MOCKS as K } from "../mocks/chapter-page-journey-mock-data.js";
10
10
  import { IndicatorType as l } from "../use-journey/constants.js";
11
11
  import { useJourney as v } from "../use-journey/use-journey.js";
12
- import a from "./use-home-page-journey/tooltip-item.js";
12
+ import s from "./use-home-page-journey/tooltip-item.js";
13
13
  const $ = () => {
14
- const t = K.CHAPTER_PAGE_JOURNEY, r = n(null), e = n(null), s = n(null), c = n([]), { nextCoachmark: d, setJourney: h, endJourney: C } = v(), i = p(() => {
14
+ const t = H.CHAPTER_PAGE_JOURNEY, r = n(null), e = n(null), a = n(null), c = n([]), { nextCoachmark: d, setJourney: h, endJourney: C } = v(), i = p(() => {
15
15
  d(t, !1, 0, !0);
16
16
  }, [t, d]), g = p(() => {
17
17
  document.body.style.overflow = "unset", C(t);
18
18
  }, [C, t]), f = p(
19
19
  ({ chapterDetails: m, userChapterId: B, studentId: E, userType: T }) => {
20
- const { name: O, image_hue: u, image_url: b } = m;
21
- if (!(r != null && r.current) || !(e != null && e.current) || !s.current)
20
+ const { name: w, image_hue: u, image_url: O } = m;
21
+ if (!(r != null && r.current) || !(e != null && e.current) || !a.current)
22
22
  return;
23
23
  const S = [
24
24
  {
25
25
  originalElementToHighlightRef: r,
26
26
  isActive: !1,
27
27
  type: l.TOOLTIP,
28
- elementToHighlight: /* @__PURE__ */ x(k, { children: [
28
+ elementToHighlight: /* @__PURE__ */ x(A, { children: [
29
29
  /* @__PURE__ */ o(P, { heightX: 10 }),
30
30
  /* @__PURE__ */ o(
31
31
  I,
@@ -35,7 +35,7 @@ const $ = () => {
35
35
  userType: T,
36
36
  onBlockSkipUnskip: () => null,
37
37
  onNodeAttempt: () => null,
38
- onNodeAttemptLocationChange: () => null,
38
+ onNodeAssignAsHomework: () => null,
39
39
  onNodeMarkAsDone: () => null,
40
40
  onNodeReattempt: () => null,
41
41
  onNodeReview: () => null,
@@ -53,7 +53,7 @@ const $ = () => {
53
53
  arrowSize: 12,
54
54
  width: 264,
55
55
  tooltipItem: /* @__PURE__ */ o(
56
- a,
56
+ s,
57
57
  {
58
58
  text: "Welcome to the all new chapter experience.",
59
59
  buttonLabel: "Next",
@@ -65,11 +65,11 @@ const $ = () => {
65
65
  {
66
66
  originalElementToHighlightRef: e,
67
67
  elementToHighlight: /* @__PURE__ */ o(
68
- L,
68
+ k,
69
69
  {
70
- title: O,
70
+ title: w,
71
71
  progressStats: y,
72
- imageUrl: b,
72
+ imageUrl: O,
73
73
  imageHue: u
74
74
  }
75
75
  ),
@@ -84,7 +84,7 @@ const $ = () => {
84
84
  width: 264,
85
85
  arrowSize: 12,
86
86
  tooltipItem: /* @__PURE__ */ o(
87
- a,
87
+ s,
88
88
  {
89
89
  text: "A chapter is divided into *core sheets (compulsory), and supplementary sheets.",
90
90
  buttonLabel: "Next",
@@ -97,11 +97,11 @@ const $ = () => {
97
97
  {
98
98
  originalElementToHighlightRef: e,
99
99
  elementToHighlight: /* @__PURE__ */ o(
100
- L,
100
+ k,
101
101
  {
102
- title: O,
102
+ title: w,
103
103
  progressStats: y,
104
- imageUrl: b,
104
+ imageUrl: O,
105
105
  imageHue: u
106
106
  }
107
107
  ),
@@ -116,7 +116,7 @@ const $ = () => {
116
116
  arrowSize: 12,
117
117
  width: 264,
118
118
  tooltipItem: /* @__PURE__ */ o(
119
- a,
119
+ s,
120
120
  {
121
121
  text: "Easily track the progress of the core sheets.",
122
122
  buttonLabel: "Next",
@@ -127,8 +127,8 @@ const $ = () => {
127
127
  isActive: !1
128
128
  },
129
129
  {
130
- originalElementToHighlightRef: s,
131
- elementToHighlight: /* @__PURE__ */ o(k, { $widthX: 50, children: /* @__PURE__ */ o(_, { userType: T, blocks: H, imageHue: u }) }),
130
+ originalElementToHighlightRef: a,
131
+ elementToHighlight: /* @__PURE__ */ o(A, { $widthX: 50, children: /* @__PURE__ */ o(_, { userType: T, blocks: K, imageHue: u }) }),
132
132
  type: l.TOOLTIP,
133
133
  indicator: {
134
134
  position: "top",
@@ -140,7 +140,7 @@ const $ = () => {
140
140
  arrowSize: 12,
141
141
  width: 264,
142
142
  tooltipItem: /* @__PURE__ */ o(
143
- a,
143
+ s,
144
144
  {
145
145
  text: "Core sheets are marked to help you find them faster.",
146
146
  buttonLabel: "Got it",
@@ -152,24 +152,24 @@ const $ = () => {
152
152
  }
153
153
  ];
154
154
  h(t, S);
155
- const w = setTimeout(() => {
156
- clearTimeout(w), window.scrollTo(0, 0), document.body.style.overflow = "hidden", i();
155
+ const b = setTimeout(() => {
156
+ clearTimeout(b), window.scrollTo(0, 0), document.body.style.overflow = "hidden", i();
157
157
  }, 500);
158
- c.current.push(w);
158
+ c.current.push(b);
159
159
  },
160
160
  [i, g, h, t]
161
- ), A = R(
161
+ ), L = R(
162
162
  () => ({
163
163
  chapterPageRef: r,
164
164
  bannerRef: e,
165
- coreBlocksRef: s,
165
+ coreBlocksRef: a,
166
166
  startJourney: f
167
167
  }),
168
168
  [f]
169
169
  );
170
170
  return N(() => () => {
171
171
  c.current.forEach((m) => clearTimeout(m)), c.current = [];
172
- }, []), A;
172
+ }, []), L;
173
173
  };
174
174
  export {
175
175
  $ as useChapterPageJourney
@@ -1 +1 @@
1
- {"version":3,"file":"use-chapter-journey.js","sources":["../../../../src/features/journey/hooks/use-chapter-journey.tsx"],"sourcesContent":["import type { IUserChapterData } from '../../chapters-v2/chapter-details/chapter-details-types';\nimport type { IArrowTooltipProps } from '../../ui/arrow-tooltip/arrow-tooltip-types';\nimport type { TUserTypes } from '../../ui/types';\nimport type { ICoachmarkProps } from '../use-journey/journey-context-types';\n\nimport { useCallback, useEffect, useMemo, useRef } from 'react';\n\nimport BlockSections from '../../chapters-v2/chapter-details/block-sections/block-sections';\nimport ChapterBanner from '../../chapters-v2/chapter-details/chapter-banner/chapter-banner';\nimport ChapterDetails from '../../chapters-v2/chapter-details/chapter-details';\nimport FlexView from '../../ui/layout/flex-view';\nimport Separator from '../../ui/separator/separator';\nimport { JOURNEY_ID_STUDENT } from '../journey-id/journey-id-student';\nimport { BLOCK_MOCKS, PROGRESS_STAT_MOCK } from '../mocks/chapter-page-journey-mock-data';\nimport { IndicatorType } from '../use-journey/constants';\nimport { useJourney } from '../use-journey/use-journey';\nimport TooltipItem from './use-home-page-journey/tooltip-item';\n\ninterface IChapterStartJourneyProps {\n chapterDetails: IUserChapterData;\n userChapterId: string;\n studentId: string;\n userType: TUserTypes;\n}\n\nexport const useChapterPageJourney = () => {\n const journeyId = JOURNEY_ID_STUDENT.CHAPTER_PAGE_JOURNEY;\n\n const chapterPageRef = useRef<HTMLDivElement>(null);\n const bannerRef = useRef<HTMLDivElement>(null);\n const coreBlocksRef = useRef<HTMLDivElement>(null);\n const timerRefs = useRef<ReturnType<typeof setTimeout>[]>([]);\n const { nextCoachmark, setJourney, endJourney } = useJourney();\n\n const handleNextCoachmark = useCallback(() => {\n nextCoachmark(journeyId, false, 0, true);\n }, [journeyId, nextCoachmark]);\n\n const handleEndJourney = useCallback(() => {\n document.body.style.overflow = 'unset';\n endJourney(journeyId);\n }, [endJourney, journeyId]);\n\n const startJourney = useCallback(\n ({ chapterDetails, userChapterId, studentId, userType }: IChapterStartJourneyProps) => {\n const { name, image_hue: imageHue, image_url: imageUrl } = chapterDetails;\n\n if (!chapterPageRef?.current || !bannerRef?.current || !coreBlocksRef.current) {\n return;\n }\n\n const chapterPageSteps: ICoachmarkProps[] = [\n {\n originalElementToHighlightRef: chapterPageRef,\n isActive: false,\n type: IndicatorType.TOOLTIP,\n elementToHighlight: (\n <FlexView>\n <Separator heightX={10} />\n <ChapterDetails\n userChapterId={userChapterId}\n studentId={studentId}\n userType={userType}\n onBlockSkipUnskip={() => null}\n onNodeAttempt={() => null}\n onNodeAttemptLocationChange={() => null}\n onNodeMarkAsDone={() => null}\n onNodeReattempt={() => null}\n onNodeReview={() => null}\n onNodeView={() => null}\n onExit={() => null}\n />\n </FlexView>\n ),\n indicator: {\n position: 'top',\n tooltipYCoOrdinates: -140,\n backgroundColor: 'BLUE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n arrowSize: 12,\n width: 264,\n tooltipItem: (\n <TooltipItem\n text=\"Welcome to the all new chapter experience.\"\n buttonLabel=\"Next\"\n onButtonClick={handleNextCoachmark}\n />\n ),\n } as IArrowTooltipProps,\n },\n {\n originalElementToHighlightRef: bannerRef,\n elementToHighlight: (\n <ChapterBanner\n title={name}\n progressStats={PROGRESS_STAT_MOCK}\n imageUrl={imageUrl}\n imageHue={imageHue}\n />\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n position: 'bottom',\n tooltipXCoOrdinates: -45,\n tooltipYCoOrdinates: -40,\n backgroundColor: 'ORANGE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n width: 264,\n arrowSize: 12,\n tooltipItem: (\n <TooltipItem\n text=\"A chapter is divided into *core sheets (compulsory), and supplementary sheets.\"\n buttonLabel=\"Next\"\n onButtonClick={handleNextCoachmark}\n />\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n {\n originalElementToHighlightRef: bannerRef,\n elementToHighlight: (\n <ChapterBanner\n title={name}\n progressStats={PROGRESS_STAT_MOCK}\n imageUrl={imageUrl}\n imageHue={imageHue}\n />\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n position: 'bottom',\n tooltipXCoOrdinates: -275,\n tooltipYCoOrdinates: -15,\n backgroundColor: 'PURPLE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n arrowSize: 12,\n width: 264,\n tooltipItem: (\n <TooltipItem\n text=\"Easily track the progress of the core sheets.\"\n buttonLabel=\"Next\"\n onButtonClick={handleNextCoachmark}\n />\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n {\n originalElementToHighlightRef: coreBlocksRef,\n elementToHighlight: (\n <FlexView $widthX={50}>\n <BlockSections userType={userType} blocks={BLOCK_MOCKS} imageHue={imageHue} />\n </FlexView>\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n position: 'top',\n tooltipXCoOrdinates: -150,\n tooltipYCoOrdinates: -260,\n backgroundColor: 'PURPLE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n arrowSize: 12,\n width: 264,\n tooltipItem: (\n <TooltipItem\n text=\"Core sheets are marked to help you find them faster.\"\n buttonLabel=\"Got it\"\n onButtonClick={handleEndJourney}\n />\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n ];\n\n setJourney(journeyId, chapterPageSteps);\n\n const delayBeforeStart = setTimeout(() => {\n clearTimeout(delayBeforeStart);\n window.scrollTo(0, 0);\n document.body.style.overflow = 'hidden';\n handleNextCoachmark();\n }, 500);\n\n timerRefs.current.push(delayBeforeStart);\n },\n [handleNextCoachmark, handleEndJourney, setJourney, journeyId],\n );\n\n const data = useMemo(\n () => ({\n chapterPageRef,\n bannerRef,\n coreBlocksRef,\n startJourney,\n }),\n [startJourney],\n );\n\n useEffect(() => {\n return () => {\n timerRefs.current.forEach(timer => clearTimeout(timer));\n timerRefs.current = [];\n };\n }, []);\n\n return data;\n};\n"],"names":["useChapterPageJourney","journeyId","JOURNEY_ID_STUDENT","chapterPageRef","useRef","bannerRef","coreBlocksRef","timerRefs","nextCoachmark","setJourney","endJourney","useJourney","handleNextCoachmark","useCallback","handleEndJourney","startJourney","chapterDetails","userChapterId","studentId","userType","name","imageHue","imageUrl","chapterPageSteps","IndicatorType","FlexView","jsx","Separator","ChapterDetails","TooltipItem","ChapterBanner","PROGRESS_STAT_MOCK","BlockSections","BLOCK_MOCKS","delayBeforeStart","data","useMemo","useEffect","timer"],"mappings":";;;;;;;;;;;;AAyBO,MAAMA,IAAwB,MAAM;AACzC,QAAMC,IAAYC,EAAmB,sBAE/BC,IAAiBC,EAAuB,IAAI,GAC5CC,IAAYD,EAAuB,IAAI,GACvCE,IAAgBF,EAAuB,IAAI,GAC3CG,IAAYH,EAAwC,CAAA,CAAE,GACtD,EAAE,eAAAI,GAAe,YAAAC,GAAY,YAAAC,MAAeC,EAAW,GAEvDC,IAAsBC,EAAY,MAAM;AAC9B,IAAAL,EAAAP,GAAW,IAAO,GAAG,EAAI;AAAA,EAAA,GACtC,CAACA,GAAWO,CAAa,CAAC,GAEvBM,IAAmBD,EAAY,MAAM;AAChC,aAAA,KAAK,MAAM,WAAW,SAC/BH,EAAWT,CAAS;AAAA,EAAA,GACnB,CAACS,GAAYT,CAAS,CAAC,GAEpBc,IAAeF;AAAA,IACnB,CAAC,EAAE,gBAAAG,GAAgB,eAAAC,GAAe,WAAA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,WAAW;AAAA,YACX,OAAO;AAAA,YACP,aACE,gBAAAE;AAAA,cAACG;AAAA,cAAA;AAAA,gBACC,MAAK;AAAA,gBACL,aAAY;AAAA,gBACZ,eAAef;AAAA,cAAA;AAAA,YACjB;AAAA,UAEJ;AAAA,UACA,UAAU;AAAA,QACZ;AAAA,MAAA;AAGF,MAAAL,EAAWR,GAAWsB,CAAgB;AAEhC,YAAAW,IAAmB,WAAW,MAAM;AACxC,qBAAaA,CAAgB,GACtB,OAAA,SAAS,GAAG,CAAC,GACX,SAAA,KAAK,MAAM,WAAW,UACXtB;SACnB,GAAG;AAEI,MAAAL,EAAA,QAAQ,KAAK2B,CAAgB;AAAA,IACzC;AAAA,IACA,CAACtB,GAAqBE,GAAkBL,GAAYR,CAAS;AAAA,EAAA,GAGzDkC,IAAOC;AAAA,IACX,OAAO;AAAA,MACL,gBAAAjC;AAAA,MACA,WAAAE;AAAA,MACA,eAAAC;AAAA,MACA,cAAAS;AAAA,IAAA;AAAA,IAEF,CAACA,CAAY;AAAA,EAAA;AAGf,SAAAsB,EAAU,MACD,MAAM;AACX,IAAA9B,EAAU,QAAQ,QAAQ,CAAS+B,MAAA,aAAaA,CAAK,CAAC,GACtD/B,EAAU,UAAU;EAAC,GAEtB,CAAE,CAAA,GAEE4B;AACT;"}
1
+ {"version":3,"file":"use-chapter-journey.js","sources":["../../../../src/features/journey/hooks/use-chapter-journey.tsx"],"sourcesContent":["import type { IUserChapterData } from '../../chapters-v2/chapter-details/chapter-details-types';\nimport type { IArrowTooltipProps } from '../../ui/arrow-tooltip/arrow-tooltip-types';\nimport type { TUserTypes } from '../../ui/types';\nimport type { ICoachmarkProps } from '../use-journey/journey-context-types';\n\nimport { useCallback, useEffect, useMemo, useRef } from 'react';\n\nimport BlockSections from '../../chapters-v2/chapter-details/block-sections/block-sections';\nimport ChapterBanner from '../../chapters-v2/chapter-details/chapter-banner/chapter-banner';\nimport ChapterDetails from '../../chapters-v2/chapter-details/chapter-details';\nimport FlexView from '../../ui/layout/flex-view';\nimport Separator from '../../ui/separator/separator';\nimport { JOURNEY_ID_STUDENT } from '../journey-id/journey-id-student';\nimport { BLOCK_MOCKS, PROGRESS_STAT_MOCK } from '../mocks/chapter-page-journey-mock-data';\nimport { IndicatorType } from '../use-journey/constants';\nimport { useJourney } from '../use-journey/use-journey';\nimport TooltipItem from './use-home-page-journey/tooltip-item';\n\ninterface IChapterStartJourneyProps {\n chapterDetails: IUserChapterData;\n userChapterId: string;\n studentId: string;\n userType: TUserTypes;\n}\n\nexport const useChapterPageJourney = () => {\n const journeyId = JOURNEY_ID_STUDENT.CHAPTER_PAGE_JOURNEY;\n\n const chapterPageRef = useRef<HTMLDivElement>(null);\n const bannerRef = useRef<HTMLDivElement>(null);\n const coreBlocksRef = useRef<HTMLDivElement>(null);\n const timerRefs = useRef<ReturnType<typeof setTimeout>[]>([]);\n const { nextCoachmark, setJourney, endJourney } = useJourney();\n\n const handleNextCoachmark = useCallback(() => {\n nextCoachmark(journeyId, false, 0, true);\n }, [journeyId, nextCoachmark]);\n\n const handleEndJourney = useCallback(() => {\n document.body.style.overflow = 'unset';\n endJourney(journeyId);\n }, [endJourney, journeyId]);\n\n const startJourney = useCallback(\n ({ chapterDetails, userChapterId, studentId, userType }: IChapterStartJourneyProps) => {\n const { name, image_hue: imageHue, image_url: imageUrl } = chapterDetails;\n\n if (!chapterPageRef?.current || !bannerRef?.current || !coreBlocksRef.current) {\n return;\n }\n\n const chapterPageSteps: ICoachmarkProps[] = [\n {\n originalElementToHighlightRef: chapterPageRef,\n isActive: false,\n type: IndicatorType.TOOLTIP,\n elementToHighlight: (\n <FlexView>\n <Separator heightX={10} />\n <ChapterDetails\n userChapterId={userChapterId}\n studentId={studentId}\n userType={userType}\n onBlockSkipUnskip={() => null}\n onNodeAttempt={() => null}\n onNodeAssignAsHomework={() => null}\n onNodeMarkAsDone={() => null}\n onNodeReattempt={() => null}\n onNodeReview={() => null}\n onNodeView={() => null}\n onExit={() => null}\n />\n </FlexView>\n ),\n indicator: {\n position: 'top',\n tooltipYCoOrdinates: -140,\n backgroundColor: 'BLUE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n arrowSize: 12,\n width: 264,\n tooltipItem: (\n <TooltipItem\n text=\"Welcome to the all new chapter experience.\"\n buttonLabel=\"Next\"\n onButtonClick={handleNextCoachmark}\n />\n ),\n } as IArrowTooltipProps,\n },\n {\n originalElementToHighlightRef: bannerRef,\n elementToHighlight: (\n <ChapterBanner\n title={name}\n progressStats={PROGRESS_STAT_MOCK}\n imageUrl={imageUrl}\n imageHue={imageHue}\n />\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n position: 'bottom',\n tooltipXCoOrdinates: -45,\n tooltipYCoOrdinates: -40,\n backgroundColor: 'ORANGE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n width: 264,\n arrowSize: 12,\n tooltipItem: (\n <TooltipItem\n text=\"A chapter is divided into *core sheets (compulsory), and supplementary sheets.\"\n buttonLabel=\"Next\"\n onButtonClick={handleNextCoachmark}\n />\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n {\n originalElementToHighlightRef: bannerRef,\n elementToHighlight: (\n <ChapterBanner\n title={name}\n progressStats={PROGRESS_STAT_MOCK}\n imageUrl={imageUrl}\n imageHue={imageHue}\n />\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n position: 'bottom',\n tooltipXCoOrdinates: -275,\n tooltipYCoOrdinates: -15,\n backgroundColor: 'PURPLE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n arrowSize: 12,\n width: 264,\n tooltipItem: (\n <TooltipItem\n text=\"Easily track the progress of the core sheets.\"\n buttonLabel=\"Next\"\n onButtonClick={handleNextCoachmark}\n />\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n {\n originalElementToHighlightRef: coreBlocksRef,\n elementToHighlight: (\n <FlexView $widthX={50}>\n <BlockSections userType={userType} blocks={BLOCK_MOCKS} imageHue={imageHue} />\n </FlexView>\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n position: 'top',\n tooltipXCoOrdinates: -150,\n tooltipYCoOrdinates: -260,\n backgroundColor: 'PURPLE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n arrowSize: 12,\n width: 264,\n tooltipItem: (\n <TooltipItem\n text=\"Core sheets are marked to help you find them faster.\"\n buttonLabel=\"Got it\"\n onButtonClick={handleEndJourney}\n />\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n ];\n\n setJourney(journeyId, chapterPageSteps);\n\n const delayBeforeStart = setTimeout(() => {\n clearTimeout(delayBeforeStart);\n window.scrollTo(0, 0);\n document.body.style.overflow = 'hidden';\n handleNextCoachmark();\n }, 500);\n\n timerRefs.current.push(delayBeforeStart);\n },\n [handleNextCoachmark, handleEndJourney, setJourney, journeyId],\n );\n\n const data = useMemo(\n () => ({\n chapterPageRef,\n bannerRef,\n coreBlocksRef,\n startJourney,\n }),\n [startJourney],\n );\n\n useEffect(() => {\n return () => {\n timerRefs.current.forEach(timer => clearTimeout(timer));\n timerRefs.current = [];\n };\n }, []);\n\n return data;\n};\n"],"names":["useChapterPageJourney","journeyId","JOURNEY_ID_STUDENT","chapterPageRef","useRef","bannerRef","coreBlocksRef","timerRefs","nextCoachmark","setJourney","endJourney","useJourney","handleNextCoachmark","useCallback","handleEndJourney","startJourney","chapterDetails","userChapterId","studentId","userType","name","imageHue","imageUrl","chapterPageSteps","IndicatorType","FlexView","jsx","Separator","ChapterDetails","TooltipItem","ChapterBanner","PROGRESS_STAT_MOCK","BlockSections","BLOCK_MOCKS","delayBeforeStart","data","useMemo","useEffect","timer"],"mappings":";;;;;;;;;;;;AAyBO,MAAMA,IAAwB,MAAM;AACzC,QAAMC,IAAYC,EAAmB,sBAE/BC,IAAiBC,EAAuB,IAAI,GAC5CC,IAAYD,EAAuB,IAAI,GACvCE,IAAgBF,EAAuB,IAAI,GAC3CG,IAAYH,EAAwC,CAAA,CAAE,GACtD,EAAE,eAAAI,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- import te, { memo as ne, useState as oe, useCallback as A } from "react";
3
- import ie from "../../../hooks/use-lazy-ref.js";
1
+ import { jsxs as t, Fragment as te, jsx as n } from "react/jsx-runtime";
2
+ import ne, { memo as oe, useState as ie, useCallback as h } from "react";
3
+ import re from "../../../hooks/use-lazy-ref.js";
4
4
  import u from "../../../ui/buttons/text-button/text-button.js";
5
5
  import c from "../../../ui/layout/flex-view.js";
6
- import re from "../../../ui/separator/separator.js";
6
+ import se from "../../../ui/separator/separator.js";
7
7
  import C from "../../../ui/text/text.js";
8
- import se from "./milestone-widget/milestone-widget.js";
9
- import { StyledDownIcon as ae } from "./milestone-widget/milestone-widget-styled.js";
10
- import le from "./no-active-milestone/no-active-milestone.js";
11
- import ce from "../../../../node_modules/uuid/dist/esm-browser/v4.js";
12
- const Ne = ne(
8
+ import ae from "./milestone-widget/milestone-widget.js";
9
+ import { StyledDownIcon as le } from "./milestone-widget/milestone-widget-styled.js";
10
+ import ce from "./no-active-milestone/no-active-milestone.js";
11
+ import de from "../../../../node_modules/uuid/dist/esm-browser/v4.js";
12
+ const Te = oe(
13
13
  ({ milestones: e, studentId: M, milestoneType: s, ...x }) => {
14
- const [a, N] = oe(!1), {
14
+ const [a, N] = ie(!1), {
15
15
  canCreatePlan: m,
16
16
  isClassOngoing: T,
17
17
  isFiltersAdded: $,
@@ -27,8 +27,8 @@ const Ne = ne(
27
27
  onCreateMilestoneTest: P,
28
28
  onNodeAttempt: S,
29
29
  onNodeView: b,
30
- onNodeReview: F,
31
- onNodeReattempt: k,
30
+ onNodeReview: k,
31
+ onNodeReattempt: F,
32
32
  onNodeReset: B,
33
33
  onNodeUnassign: V,
34
34
  onAssignResources: j,
@@ -40,28 +40,29 @@ const Ne = ne(
40
40
  onWidgetTabSelection: z,
41
41
  studentName: p,
42
42
  teacherName: X,
43
- parentName: U,
43
+ parentName: H,
44
44
  userType: d,
45
- courseStream: W
46
- } = x, l = s === "ACTIVE", h = s === "DRAFT", g = ie(ce), H = A(() => {
45
+ courseStream: U,
46
+ onNodeAssignAsHomework: W
47
+ } = x, l = s === "ACTIVE", A = s === "DRAFT", g = re(de), q = h(() => {
47
48
  r == null || r(g);
48
- }, [r, g]), q = () => {
49
+ }, [r, g]), J = () => {
49
50
  !a && f && f(), N(!a);
50
- }, J = A(() => {
51
+ }, K = h(() => {
51
52
  i == null || i();
52
53
  }, [i]);
53
54
  if (!e) return null;
54
- const K = e.some(
55
+ const Q = e.some(
55
56
  (o) => o.milestone_state === "ACTIVE"
56
- ), Q = e.some(
57
+ ), Y = e.some(
57
58
  (o) => o.milestone_state === "DRAFT"
58
59
  );
59
- return /* @__PURE__ */ t(ee, { children: [
60
- l && !K && /* @__PURE__ */ n(c, { $marginBottom: 40, children: /* @__PURE__ */ n(
61
- le,
60
+ return /* @__PURE__ */ t(te, { children: [
61
+ l && !Q && /* @__PURE__ */ n(c, { $marginBottom: 40, children: /* @__PURE__ */ n(
62
+ ce,
62
63
  {
63
64
  canCreatePlan: m,
64
- isDraftMilestonePresent: Q,
65
+ isDraftMilestonePresent: Y,
65
66
  isFiltersAdded: $,
66
67
  onCreatePlan: r,
67
68
  studentName: p,
@@ -80,11 +81,11 @@ const Ne = ne(
80
81
  {
81
82
  label: "Create Goal",
82
83
  size: "small",
83
- onClick: H,
84
+ onClick: q,
84
85
  disabled: !m
85
86
  }
86
87
  ),
87
- /* @__PURE__ */ n(u, { label: "Add Milestone", size: "small", onClick: J })
88
+ /* @__PURE__ */ n(u, { label: "Add Milestone", size: "small", onClick: K })
88
89
  ] })
89
90
  ] }),
90
91
  s === "INACTIVE" && !!e.length && /* @__PURE__ */ t(
@@ -100,25 +101,25 @@ const Ne = ne(
100
101
  e.length,
101
102
  ")"
102
103
  ] }),
103
- /* @__PURE__ */ n(ae, { onClick: q, $expanded: a })
104
+ /* @__PURE__ */ n(le, { onClick: J, $expanded: a })
104
105
  ]
105
106
  }
106
107
  ),
107
- (h || l || a) && e.map((o, Y) => {
108
- const { id: Z } = o;
109
- return /* @__PURE__ */ t(te.Fragment, { children: [
108
+ (A || l || a) && e.map((o, Z) => {
109
+ const { id: ee } = o;
110
+ return /* @__PURE__ */ t(ne.Fragment, { children: [
110
111
  /* @__PURE__ */ n(
111
- se,
112
+ ae,
112
113
  {
113
114
  milestone: o,
114
115
  studentId: M,
115
116
  studentName: p,
116
- parentName: U,
117
+ parentName: H,
117
118
  teacherName: X,
118
119
  userType: d,
119
120
  onAddOutcome: i,
120
121
  onChapterClick: w,
121
- isMilestoneActive: l || h,
122
+ isMilestoneActive: l || A,
122
123
  milestoneType: s,
123
124
  onEdit: D,
124
125
  onCreateMilestoneTest: P,
@@ -130,26 +131,27 @@ const Ne = ne(
130
131
  onAssignResources: j,
131
132
  onNodeAttempt: S,
132
133
  onNodeView: b,
133
- onNodeReview: F,
134
- onNodeReattempt: k,
134
+ onNodeReview: k,
135
+ onNodeReattempt: F,
135
136
  onNodeReset: B,
136
137
  onNodeUnassign: V,
138
+ onNodeAssignAsHomework: W,
137
139
  onTestPreview: G,
138
140
  onTestReview: L,
139
141
  onTestStart: O,
140
- courseStream: W,
142
+ courseStream: U,
141
143
  activeMilestoneId: _,
142
144
  activeTabId: y,
143
145
  onWidgetTabSelection: z
144
146
  }
145
147
  ),
146
- Y !== e.length - 1 && /* @__PURE__ */ n(re, { heightX: 2 })
147
- ] }, `milestone=${Z}`);
148
+ Z !== e.length - 1 && /* @__PURE__ */ n(se, { heightX: 2 })
149
+ ] }, `milestone=${ee}`);
148
150
  })
149
151
  ] });
150
152
  }
151
153
  );
152
154
  export {
153
- Ne as default
155
+ Te as default
154
156
  };
155
157
  //# sourceMappingURL=milestone-list.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"milestone-list.js","sources":["../../../../../src/features/milestone/milestone-list-container/milestone-list/milestone-list.tsx"],"sourcesContent":["import type { IMilestoneListProps } from './milestone-list-types';\n\nimport React, { memo, useCallback, useState } from 'react';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport useLazyRef from '../../../hooks/use-lazy-ref';\nimport TextButton from '../../../ui/buttons/text-button/text-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport MilestoneWidget from './milestone-widget/milestone-widget';\nimport { StyledDownIcon } from './milestone-widget/milestone-widget-styled';\nimport NoActiveMilestone from './no-active-milestone/no-active-milestone';\n\nconst MilestoneList: React.FC<IMilestoneListProps> = memo(\n ({ milestones, studentId, milestoneType, ...restMilestoneListProps }) => {\n const [expandInactiveMilestones, setExpandInactiveMilestones] = useState(false);\n const {\n canCreatePlan,\n isClassOngoing,\n isFiltersAdded,\n isStudentPresent,\n onAddChapter,\n onAddOutcome,\n onChapterClick,\n onCreatePlan,\n onDelete,\n onDraftPublish,\n onEdit,\n onExpandPastMilestones,\n onCreateMilestoneTest,\n onNodeAttempt,\n onNodeView,\n onNodeReview,\n onNodeReattempt,\n onNodeReset,\n onNodeUnassign,\n onAssignResources,\n onTestPreview,\n onTestReview,\n onTestStart,\n activeMilestoneId,\n activeTabId,\n onWidgetTabSelection,\n studentName,\n teacherName,\n parentName,\n userType,\n courseStream,\n } = restMilestoneListProps;\n\n const isMilestoneActive = milestoneType === 'ACTIVE';\n const isDraftMilestone = milestoneType === 'DRAFT';\n const temporaryMilestoneId = useLazyRef(uuidv4);\n\n const handleCreatePlan = useCallback(() => {\n onCreatePlan?.(temporaryMilestoneId);\n }, [onCreatePlan, temporaryMilestoneId]);\n\n const toggleExpand = () => {\n if (!expandInactiveMilestones && onExpandPastMilestones) {\n onExpandPastMilestones();\n }\n setExpandInactiveMilestones(!expandInactiveMilestones);\n };\n\n const handleOnAddOutcome = useCallback(() => {\n onAddOutcome?.();\n }, [onAddOutcome]);\n\n if (!milestones) return null;\n\n const activeMilestonePresent = milestones.some(\n milestone => milestone.milestone_state === 'ACTIVE',\n );\n const draftMilestonePresent = milestones.some(\n milestone => milestone.milestone_state === 'DRAFT',\n );\n\n return (\n <>\n {isMilestoneActive && !activeMilestonePresent && (\n <FlexView $marginBottom={40}>\n <NoActiveMilestone\n canCreatePlan={canCreatePlan}\n isDraftMilestonePresent={draftMilestonePresent}\n isFiltersAdded={isFiltersAdded}\n onCreatePlan={onCreatePlan}\n studentName={studentName}\n userType={userType}\n />\n </FlexView>\n )}\n\n {isMilestoneActive && (\n <FlexView $flexDirection=\"row\" $justifyContent=\"space-between\" $marginBottom={16}>\n <Text $renderAs=\"ac4\">Goals ({milestones.length})</Text>\n\n {userType === 'TEACHER' && (\n <FlexView $flexDirection=\"row\" $flexGapX={1}>\n <TextButton\n label=\"Create Goal\"\n size=\"small\"\n onClick={handleCreatePlan}\n disabled={!canCreatePlan}\n />\n <TextButton label=\"Add Milestone\" size=\"small\" onClick={handleOnAddOutcome} />\n </FlexView>\n )}\n </FlexView>\n )}\n\n {milestoneType === 'INACTIVE' && Boolean(milestones.length) && (\n <FlexView\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $justifyContent=\"space-between\"\n $marginBottomX={1}\n >\n <Text $renderAs=\"ac4\">PAST LEARNING PLANS & OUTCOMES ({milestones.length})</Text>\n <StyledDownIcon onClick={toggleExpand} $expanded={expandInactiveMilestones} />\n </FlexView>\n )}\n\n {(isDraftMilestone || isMilestoneActive || expandInactiveMilestones) &&\n milestones.map((milestone, idx) => {\n const { id: milestoneId } = milestone;\n\n return (\n <React.Fragment key={`milestone=${milestoneId}`}>\n <MilestoneWidget\n milestone={milestone}\n studentId={studentId}\n studentName={studentName}\n parentName={parentName}\n teacherName={teacherName}\n userType={userType}\n onAddOutcome={onAddOutcome}\n onChapterClick={onChapterClick}\n isMilestoneActive={isMilestoneActive || isDraftMilestone}\n milestoneType={milestoneType}\n onEdit={onEdit}\n onCreateMilestoneTest={onCreateMilestoneTest}\n onAddChapter={onAddChapter}\n onDelete={onDelete}\n onDraftPublish={onDraftPublish}\n isClassOngoing={isClassOngoing}\n isStudentPresent={isStudentPresent}\n onAssignResources={onAssignResources}\n onNodeAttempt={onNodeAttempt}\n onNodeView={onNodeView}\n onNodeReview={onNodeReview}\n onNodeReattempt={onNodeReattempt}\n onNodeReset={onNodeReset}\n onNodeUnassign={onNodeUnassign}\n onTestPreview={onTestPreview}\n onTestReview={onTestReview}\n onTestStart={onTestStart}\n courseStream={courseStream}\n activeMilestoneId={activeMilestoneId}\n activeTabId={activeTabId}\n onWidgetTabSelection={onWidgetTabSelection}\n />\n {idx !== milestones.length - 1 && <Separator heightX={2} />}\n </React.Fragment>\n );\n })}\n </>\n );\n },\n);\n\nexport default MilestoneList;\n"],"names":["MilestoneList","memo","milestones","studentId","milestoneType","restMilestoneListProps","expandInactiveMilestones","setExpandInactiveMilestones","useState","canCreatePlan","isClassOngoing","isFiltersAdded","isStudentPresent","onAddChapter","onAddOutcome","onChapterClick","onCreatePlan","onDelete","onDraftPublish","onEdit","onExpandPastMilestones","onCreateMilestoneTest","onNodeAttempt","onNodeView","onNodeReview","onNodeReattempt","onNodeReset","onNodeUnassign","onAssignResources","onTestPreview","onTestReview","onTestStart","activeMilestoneId","activeTabId","onWidgetTabSelection","studentName","teacherName","parentName","userType","courseStream","isMilestoneActive","isDraftMilestone","temporaryMilestoneId","useLazyRef","uuidv4","handleCreatePlan","useCallback","toggleExpand","handleOnAddOutcome","activeMilestonePresent","milestone","draftMilestonePresent","jsxs","Fragment","jsx","FlexView","NoActiveMilestone","Text","TextButton","StyledDownIcon","idx","milestoneId","React","MilestoneWidget","Separator"],"mappings":";;;;;;;;;;;AAcA,MAAMA,KAA+CC;AAAA,EACnD,CAAC,EAAE,YAAAC,GAAY,WAAAC,GAAW,eAAAC,GAAe,GAAGC,QAA6B;AACvE,UAAM,CAACC,GAA0BC,CAA2B,IAAIC,GAAS,EAAK,GACxE;AAAA,MACJ,eAAAC;AAAA,MACA,gBAAAC;AAAA,MACA,gBAAAC;AAAA,MACA,kBAAAC;AAAA,MACA,cAAAC;AAAA,MACA,cAAAC;AAAA,MACA,gBAAAC;AAAA,MACA,cAAAC;AAAA,MACA,UAAAC;AAAA,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Ab;AAAA,cACA,WAAA/C;AAAA,cACA,aAAAgC;AAAA,cACA,YAAAE;AAAA,cACA,aAAAD;AAAA,cACA,UAAAE;AAAA,cACA,cAAAxB;AAAA,cACA,gBAAAC;AAAA,cACA,mBAAmByB,KAAqBC;AAAA,cACxC,eAAArC;AAAA,cACA,QAAAe;AAAA,cACA,uBAAAE;AAAA,cACA,cAAAR;AAAA,cACA,UAAAI;AAAA,cACA,gBAAAC;AAAA,cACA,gBAAAR;AAAA,cACA,kBAAAE;AAAA,cACA,mBAAAgB;AAAA,cACA,eAAAN;AAAA,cACA,YAAAC;AAAA,cACA,cAAAC;AAAA,cACA,iBAAAC;AAAA,cACA,aAAAC;AAAA,cACA,gBAAAC;AAAA,cACA,eAAAE;AAAA,cACA,cAAAC;AAAA,cACA,aAAAC;AAAA,cACA,cAAAQ;AAAA,cACA,mBAAAP;AAAA,cACA,aAAAC;AAAA,cACA,sBAAAC;AAAA,YAAA;AAAA,UACF;AAAA,UACC0B,MAAQ1D,EAAW,SAAS,KAAM,gBAAAoD,EAAAU,IAAA,EAAU,SAAS,GAAG;AAAA,QAlCtC,EAAA,GAAA,aAAaH,CAAW,EAmC7C;AAAA,MAAA,CAEH;AAAA,IACL,EAAA,CAAA;AAAA,EAEJ;AACF;"}
1
+ {"version":3,"file":"milestone-list.js","sources":["../../../../../src/features/milestone/milestone-list-container/milestone-list/milestone-list.tsx"],"sourcesContent":["import type { IMilestoneListProps } from './milestone-list-types';\n\nimport React, { memo, useCallback, useState } from 'react';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport useLazyRef from '../../../hooks/use-lazy-ref';\nimport TextButton from '../../../ui/buttons/text-button/text-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport MilestoneWidget from './milestone-widget/milestone-widget';\nimport { StyledDownIcon } from './milestone-widget/milestone-widget-styled';\nimport NoActiveMilestone from './no-active-milestone/no-active-milestone';\n\nconst MilestoneList: React.FC<IMilestoneListProps> = memo(\n ({ milestones, studentId, milestoneType, ...restMilestoneListProps }) => {\n const [expandInactiveMilestones, setExpandInactiveMilestones] = useState(false);\n const {\n canCreatePlan,\n isClassOngoing,\n isFiltersAdded,\n isStudentPresent,\n onAddChapter,\n onAddOutcome,\n onChapterClick,\n onCreatePlan,\n onDelete,\n onDraftPublish,\n onEdit,\n onExpandPastMilestones,\n onCreateMilestoneTest,\n onNodeAttempt,\n onNodeView,\n onNodeReview,\n onNodeReattempt,\n onNodeReset,\n onNodeUnassign,\n onAssignResources,\n onTestPreview,\n onTestReview,\n onTestStart,\n activeMilestoneId,\n activeTabId,\n onWidgetTabSelection,\n studentName,\n teacherName,\n parentName,\n userType,\n courseStream,\n onNodeAssignAsHomework,\n } = restMilestoneListProps;\n\n const isMilestoneActive = milestoneType === 'ACTIVE';\n const isDraftMilestone = milestoneType === 'DRAFT';\n const temporaryMilestoneId = useLazyRef(uuidv4);\n\n const handleCreatePlan = useCallback(() => {\n onCreatePlan?.(temporaryMilestoneId);\n }, [onCreatePlan, temporaryMilestoneId]);\n\n const toggleExpand = () => {\n if (!expandInactiveMilestones && onExpandPastMilestones) {\n onExpandPastMilestones();\n }\n setExpandInactiveMilestones(!expandInactiveMilestones);\n };\n\n const handleOnAddOutcome = useCallback(() => {\n onAddOutcome?.();\n }, [onAddOutcome]);\n\n if (!milestones) return null;\n\n const activeMilestonePresent = milestones.some(\n milestone => milestone.milestone_state === 'ACTIVE',\n );\n const draftMilestonePresent = milestones.some(\n milestone => milestone.milestone_state === 'DRAFT',\n );\n\n return (\n <>\n {isMilestoneActive && !activeMilestonePresent && (\n <FlexView $marginBottom={40}>\n <NoActiveMilestone\n canCreatePlan={canCreatePlan}\n isDraftMilestonePresent={draftMilestonePresent}\n isFiltersAdded={isFiltersAdded}\n onCreatePlan={onCreatePlan}\n studentName={studentName}\n userType={userType}\n />\n </FlexView>\n )}\n\n {isMilestoneActive && (\n <FlexView $flexDirection=\"row\" $justifyContent=\"space-between\" $marginBottom={16}>\n <Text $renderAs=\"ac4\">Goals ({milestones.length})</Text>\n\n {userType === 'TEACHER' && (\n <FlexView $flexDirection=\"row\" $flexGapX={1}>\n <TextButton\n label=\"Create Goal\"\n size=\"small\"\n onClick={handleCreatePlan}\n disabled={!canCreatePlan}\n />\n <TextButton label=\"Add Milestone\" size=\"small\" onClick={handleOnAddOutcome} />\n </FlexView>\n )}\n </FlexView>\n )}\n\n {milestoneType === 'INACTIVE' && Boolean(milestones.length) && (\n <FlexView\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $justifyContent=\"space-between\"\n $marginBottomX={1}\n >\n <Text $renderAs=\"ac4\">PAST LEARNING PLANS & OUTCOMES ({milestones.length})</Text>\n <StyledDownIcon onClick={toggleExpand} $expanded={expandInactiveMilestones} />\n </FlexView>\n )}\n\n {(isDraftMilestone || isMilestoneActive || expandInactiveMilestones) &&\n milestones.map((milestone, idx) => {\n const { id: milestoneId } = milestone;\n\n return (\n <React.Fragment key={`milestone=${milestoneId}`}>\n <MilestoneWidget\n milestone={milestone}\n studentId={studentId}\n studentName={studentName}\n parentName={parentName}\n teacherName={teacherName}\n userType={userType}\n onAddOutcome={onAddOutcome}\n onChapterClick={onChapterClick}\n isMilestoneActive={isMilestoneActive || isDraftMilestone}\n milestoneType={milestoneType}\n onEdit={onEdit}\n onCreateMilestoneTest={onCreateMilestoneTest}\n onAddChapter={onAddChapter}\n onDelete={onDelete}\n onDraftPublish={onDraftPublish}\n isClassOngoing={isClassOngoing}\n isStudentPresent={isStudentPresent}\n onAssignResources={onAssignResources}\n onNodeAttempt={onNodeAttempt}\n onNodeView={onNodeView}\n onNodeReview={onNodeReview}\n onNodeReattempt={onNodeReattempt}\n onNodeReset={onNodeReset}\n onNodeUnassign={onNodeUnassign}\n onNodeAssignAsHomework={onNodeAssignAsHomework}\n onTestPreview={onTestPreview}\n onTestReview={onTestReview}\n onTestStart={onTestStart}\n courseStream={courseStream}\n activeMilestoneId={activeMilestoneId}\n activeTabId={activeTabId}\n onWidgetTabSelection={onWidgetTabSelection}\n />\n {idx !== milestones.length - 1 && <Separator heightX={2} />}\n </React.Fragment>\n );\n })}\n </>\n );\n },\n);\n\nexport default MilestoneList;\n"],"names":["MilestoneList","memo","milestones","studentId","milestoneType","restMilestoneListProps","expandInactiveMilestones","setExpandInactiveMilestones","useState","canCreatePlan","isClassOngoing","isFiltersAdded","isStudentPresent","onAddChapter","onAddOutcome","onChapterClick","onCreatePlan","onDelete","onDraftPublish","onEdit","onExpandPastMilestones","onCreateMilestoneTest","onNodeAttempt","onNodeView","onNodeReview","onNodeReattempt","onNodeReset","onNodeUnassign","onAssignResources","onTestPreview","onTestReview","onTestStart","activeMilestoneId","activeTabId","onWidgetTabSelection","studentName","teacherName","parentName","userType","courseStream","onNodeAssignAsHomework","isMilestoneActive","isDraftMilestone","temporaryMilestoneId","useLazyRef","uuidv4","handleCreatePlan","useCallback","toggleExpand","handleOnAddOutcome","activeMilestonePresent","milestone","draftMilestonePresent","jsxs","Fragment","jsx","FlexView","NoActiveMilestone","Text","TextButton","StyledDownIcon","idx","milestoneId","React","MilestoneWidget","Separator"],"mappings":";;;;;;;;;;;AAcA,MAAMA,KAA+CC;AAAA,EACnD,CAAC,EAAE,YAAAC,GAAY,WAAAC,GAAW,eAAAC,GAAe,GAAGC,QAA6B;AACvE,UAAM,CAACC,GAA0BC,CAA2B,IAAIC,GAAS,EAAK,GACxE;AAAA,MACJ,eAAAC;AAAA,MACA,gBAAAC;AAAA,MACA,gBAAAC;AAAA,MACA,kBAAAC;AAAA,MACA,cAAAC;AAAA,MACA,cAAAC;AAAA,MACA,gBAAAC;AAAA,MACA,cAAAC;AAAA,MACA,UAAAC;AAAA,MACA,gBAAAC;AAAA,MACA,QAAAC;AAAA,MACA,wBAAAC;AAAA,MACA,uBAAAC;AAAA,MACA,eAAAC;AAAA,MACA,YAAAC;AAAA,MACA,cAAAC;AAAA,MACA,iBAAAC;AAAA,MACA,aAAAC;AAAA,MACA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mB0B,KAAqBC;AAAA,cACxC,eAAAtC;AAAA,cACA,QAAAe;AAAA,cACA,uBAAAE;AAAA,cACA,cAAAR;AAAA,cACA,UAAAI;AAAA,cACA,gBAAAC;AAAA,cACA,gBAAAR;AAAA,cACA,kBAAAE;AAAA,cACA,mBAAAgB;AAAA,cACA,eAAAN;AAAA,cACA,YAAAC;AAAA,cACA,cAAAC;AAAA,cACA,iBAAAC;AAAA,cACA,aAAAC;AAAA,cACA,gBAAAC;AAAA,cACA,wBAAAa;AAAA,cACA,eAAAX;AAAA,cACA,cAAAC;AAAA,cACA,aAAAC;AAAA,cACA,cAAAQ;AAAA,cACA,mBAAAP;AAAA,cACA,aAAAC;AAAA,cACA,sBAAAC;AAAA,YAAA;AAAA,UACF;AAAA,UACC2B,MAAQ3D,EAAW,SAAS,KAAM,gBAAAqD,EAAAU,IAAA,EAAU,SAAS,GAAG;AAAA,QAnCtC,EAAA,GAAA,aAAaH,EAAW,EAoC7C;AAAA,MAAA,CAEH;AAAA,IACL,EAAA,CAAA;AAAA,EAEJ;AACF;"}
@@ -1,16 +1,16 @@
1
- import { jsx as t, jsxs as L, Fragment as H } from "react/jsx-runtime";
2
- import { memo as V, useState as X, useCallback as q } from "react";
3
- import z from "../../../../../chapters/chapters-list/chapters-list.js";
4
- import { useUIContext as J } from "../../../../../ui/context/context.js";
5
- import K from "../../../../../ui/text/text.js";
6
- import Q from "../../../../milestone-resources/resources-list/resources-list.js";
7
- import Y from "../../../../milestone-tests/test-list-v2/test-list-container.js";
8
- import { getGoalCategoryBasedColorTheme as Z } from "../milestone-utils.js";
9
- import { NoPlanCardWrapper as ee, TabsWrapper as te, TabsText as oe, TabComponentWrapper as se } from "./milestone-tabs-styled.js";
10
- const be = V((h) => {
11
- var f;
1
+ import { jsx as t, jsxs as L, Fragment as V } from "react/jsx-runtime";
2
+ import { memo as X, useState as q, useCallback as z } from "react";
3
+ import J from "../../../../../chapters/chapters-list/chapters-list.js";
4
+ import { useUIContext as K } from "../../../../../ui/context/context.js";
5
+ import Q from "../../../../../ui/text/text.js";
6
+ import Y from "../../../../milestone-resources/resources-list/resources-list.js";
7
+ import Z from "../../../../milestone-tests/test-list-v2/test-list-container.js";
8
+ import { getGoalCategoryBasedColorTheme as ee } from "../milestone-utils.js";
9
+ import { NoPlanCardWrapper as te, TabsWrapper as oe, TabsText as se, TabComponentWrapper as ne } from "./milestone-tabs-styled.js";
10
+ const he = X((h) => {
11
+ var v;
12
12
  const {
13
- goalCategory: A,
13
+ goalCategory: k,
14
14
  isDraftMilestone: r,
15
15
  isGoalCreation: I,
16
16
  isMilestoneActive: l,
@@ -22,34 +22,35 @@ const be = V((h) => {
22
22
  milestoneState: R,
23
23
  milestonePermissions: $,
24
24
  activeMilestoneId: p,
25
- activeTabId: k
25
+ activeTabId: M
26
26
  } = h, {
27
- onAddChapter: M,
28
- onAssignResources: x,
27
+ onAddChapter: x,
28
+ onAssignResources: w,
29
29
  onChapterClick: P,
30
30
  onCreateMilestoneTest: U,
31
31
  onNodeAttempt: j,
32
- onNodeView: w,
33
- onNodeReview: E,
32
+ onNodeView: E,
33
+ onNodeReview: S,
34
34
  onNodeReattempt: C,
35
- onNodeReset: S,
36
- onNodeUnassign: W,
37
- onTestPreview: _,
38
- onTestReview: y,
39
- onTestStart: B,
35
+ onNodeReset: W,
36
+ onNodeUnassign: _,
37
+ onNodeAssignAsHomework: T,
38
+ onTestPreview: y,
39
+ onTestReview: B,
40
+ onTestStart: D,
40
41
  onWidgetTabSelection: a
41
- } = h, { visible_tabs: T } = $, { onEvent: g } = J(), { backgroundColor: D } = Z(A, r), b = {
42
+ } = h, { visible_tabs: g } = $, { onEvent: f } = K(), { backgroundColor: F } = ee(k, r), b = {
42
43
  chapters: {
43
44
  label: "Chapters",
44
45
  component: /* @__PURE__ */ t(
45
- z,
46
+ J,
46
47
  {
47
48
  milestoneId: e,
48
49
  chapters: c,
49
50
  userType: d,
50
51
  isGoalCreation: I,
51
52
  onChapterClick: P,
52
- onAddChapter: M,
53
+ onAddChapter: x,
53
54
  canUpdatePlan: !!(R !== "DRAFT" && m),
54
55
  isMilestoneActive: l
55
56
  }
@@ -58,7 +59,7 @@ const be = V((h) => {
58
59
  tests: {
59
60
  label: "Tests",
60
61
  component: /* @__PURE__ */ t(
61
- Y,
62
+ Z,
62
63
  {
63
64
  isDraftMilestone: r,
64
65
  isChaptersAvailable: c.length > 0,
@@ -69,16 +70,17 @@ const be = V((h) => {
69
70
  canUpdatePlan: m,
70
71
  onCreateMilestoneTest: U,
71
72
  onNodeReattempt: C,
72
- onTestPreview: _,
73
- onTestStart: B,
74
- onTestReview: y
73
+ onTestPreview: y,
74
+ onTestStart: D,
75
+ onTestReview: B,
76
+ onNodeAssignAsHomework: T
75
77
  }
76
78
  )
77
79
  },
78
80
  resources: {
79
81
  label: "Resources",
80
82
  component: /* @__PURE__ */ t(
81
- Q,
83
+ Y,
82
84
  {
83
85
  isDraftMilestone: r,
84
86
  isMilestoneActive: l,
@@ -86,49 +88,50 @@ const be = V((h) => {
86
88
  canUpdatePlan: m,
87
89
  studentId: u,
88
90
  userType: d,
89
- onAssignResources: x,
91
+ onAssignResources: w,
90
92
  onNodeAttempt: j,
91
- onNodeView: w,
92
- onNodeReview: E,
93
+ onNodeView: E,
94
+ onNodeReview: S,
93
95
  onNodeReattempt: C,
94
- onNodeReset: S,
95
- onNodeUnassign: W
96
+ onNodeReset: W,
97
+ onNodeUnassign: _,
98
+ onNodeAssignAsHomework: T
96
99
  }
97
100
  )
98
101
  }
99
- }, s = (T ?? []).length === 0 ? Object.entries(b) : Object.entries(b).filter(
100
- ([o]) => (T ?? []).includes(o.toUpperCase())
101
- ), [i, F] = X(
102
- e === p ? k : ((f = s == null ? void 0 : s[0]) == null ? void 0 : f[0]) || "chapters"
103
- ), G = q(
102
+ }, s = (g ?? []).length === 0 ? Object.entries(b) : Object.entries(b).filter(
103
+ ([o]) => (g ?? []).includes(o.toUpperCase())
104
+ ), [i, G] = q(
105
+ e === p ? M : ((v = s == null ? void 0 : s[0]) == null ? void 0 : v[0]) || "chapters"
106
+ ), O = z(
104
107
  (o, n) => {
105
108
  if (p === e && o === i) return null;
106
- F(o), a == null || a(e, o), g("clicked", {
109
+ G(o), a == null || a(e, o), f("clicked", {
107
110
  cta: n,
108
111
  milestone_id: e
109
112
  });
110
113
  },
111
- [p, e, i, a, g]
114
+ [p, e, i, a, f]
112
115
  );
113
- return r && c.length === 0 ? /* @__PURE__ */ t(ee, { $gutterX: 2, $background: "WHITE_3", children: /* @__PURE__ */ t(K, { $renderAs: "ab2", $color: "RED", children: "No chapter has been assigned" }) }) : /* @__PURE__ */ L(H, { children: [
114
- /* @__PURE__ */ t(te, { $backgroundColor: D, $frames: s.length, children: s.map((o) => {
115
- const [n, O] = o, { label: v } = O, N = n === i;
116
+ return r && c.length === 0 ? /* @__PURE__ */ t(te, { $gutterX: 2, $background: "WHITE_3", children: /* @__PURE__ */ t(Q, { $renderAs: "ab2", $color: "RED", children: "No chapter has been assigned" }) }) : /* @__PURE__ */ L(V, { children: [
117
+ /* @__PURE__ */ t(oe, { $backgroundColor: F, $frames: s.length, children: s.map((o) => {
118
+ const [n, H] = o, { label: A } = H, N = n === i;
116
119
  return /* @__PURE__ */ t(
117
- oe,
120
+ se,
118
121
  {
119
122
  $renderAs: N ? "ub3-bold" : "ub3",
120
123
  $align: "center",
121
124
  $selected: N,
122
- onClick: () => G(n, v),
123
- children: v
125
+ onClick: () => O(n, A),
126
+ children: A
124
127
  },
125
128
  n
126
129
  );
127
130
  }) }),
128
- /* @__PURE__ */ t(se, { children: b[i].component })
131
+ /* @__PURE__ */ t(ne, { children: b[i].component })
129
132
  ] });
130
133
  });
131
134
  export {
132
- be as default
135
+ he as default
133
136
  };
134
137
  //# sourceMappingURL=milestone-tabs.js.map