@cuemath/leap 3.0.11-j1 → 3.0.12-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 (431) 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-v2/chapter-details/block-sections/block-section-view.js +2 -2
  6. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js.map +1 -1
  7. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js +30 -30
  8. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js.map +1 -1
  9. package/dist/features/chapters-v2/chapter-details/chapter-details.js +35 -35
  10. package/dist/features/chapters-v2/chapter-details/chapter-details.js.map +1 -1
  11. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js +44 -44
  12. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js.map +1 -1
  13. package/dist/features/homework/homework-card.js +145 -131
  14. package/dist/features/homework/homework-card.js.map +1 -1
  15. package/dist/features/journey/hooks/use-chapter-journey.js +28 -28
  16. package/dist/features/journey/hooks/use-chapter-journey.js.map +1 -1
  17. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js +40 -38
  18. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js.map +1 -1
  19. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js +53 -50
  20. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js.map +1 -1
  21. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js +64 -62
  22. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js.map +1 -1
  23. package/dist/features/milestone/milestone-list-container/milestone-list-container.js +44 -42
  24. package/dist/features/milestone/milestone-list-container/milestone-list-container.js.map +1 -1
  25. package/dist/features/milestone/milestone-resources/resources-list/resources-list.js +39 -37
  26. package/dist/features/milestone/milestone-resources/resources-list/resources-list.js.map +1 -1
  27. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js +38 -31
  28. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js.map +1 -1
  29. package/dist/index.d.ts +2 -280
  30. package/dist/index.js +505 -551
  31. package/dist/index.js.map +1 -1
  32. package/package.json +2 -3
  33. package/dist/assets/illustrations/loader-1.svg.js +0 -6
  34. package/dist/assets/illustrations/loader-1.svg.js.map +0 -1
  35. package/dist/assets/line-icons/icons/apple-icon.js +0 -48
  36. package/dist/assets/line-icons/icons/apple-icon.js.map +0 -1
  37. package/dist/assets/line-icons/icons/google-icon.js +0 -42
  38. package/dist/assets/line-icons/icons/google-icon.js.map +0 -1
  39. package/dist/features/auth/account-selector/account-selector-styled.js +0 -37
  40. package/dist/features/auth/account-selector/account-selector-styled.js.map +0 -1
  41. package/dist/features/auth/account-selector/account-selector.js +0 -90
  42. package/dist/features/auth/account-selector/account-selector.js.map +0 -1
  43. package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js +0 -12
  44. package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js.map +0 -1
  45. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +0 -11
  46. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +0 -1
  47. package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js +0 -17
  48. package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js.map +0 -1
  49. package/dist/features/auth/comps/input-status-icon/input-status-icon.js +0 -20
  50. package/dist/features/auth/comps/input-status-icon/input-status-icon.js.map +0 -1
  51. package/dist/features/auth/comps/overlay-loader/overlay-loader-styled.js +0 -29
  52. package/dist/features/auth/comps/overlay-loader/overlay-loader-styled.js.map +0 -1
  53. package/dist/features/auth/comps/overlay-loader/overlay-loader.js +0 -8
  54. package/dist/features/auth/comps/overlay-loader/overlay-loader.js.map +0 -1
  55. package/dist/features/auth/comps/resend-otp/otp-timer/otp-timer.js +0 -25
  56. package/dist/features/auth/comps/resend-otp/otp-timer/otp-timer.js.map +0 -1
  57. package/dist/features/auth/comps/resend-otp/resend-otp.js +0 -47
  58. package/dist/features/auth/comps/resend-otp/resend-otp.js.map +0 -1
  59. package/dist/features/auth/comps/tabs/tabs-styled.js +0 -23
  60. package/dist/features/auth/comps/tabs/tabs-styled.js.map +0 -1
  61. package/dist/features/auth/comps/tabs/tabs.js +0 -23
  62. package/dist/features/auth/comps/tabs/tabs.js.map +0 -1
  63. package/dist/features/auth/forgot-password/forgot-password-styled.js +0 -12
  64. package/dist/features/auth/forgot-password/forgot-password-styled.js.map +0 -1
  65. package/dist/features/auth/forgot-password/otp-form/otp-form.js +0 -67
  66. package/dist/features/auth/forgot-password/otp-form/otp-form.js.map +0 -1
  67. package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js +0 -89
  68. package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js.map +0 -1
  69. package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js +0 -60
  70. package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js.map +0 -1
  71. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js +0 -12
  72. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js.map +0 -1
  73. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form.js +0 -88
  74. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form.js.map +0 -1
  75. package/dist/features/auth/login/login-constants.js +0 -12
  76. package/dist/features/auth/login/login-constants.js.map +0 -1
  77. package/dist/features/auth/login/social-account-not-found/social-account-not-found.js +0 -31
  78. package/dist/features/auth/login/social-account-not-found/social-account-not-found.js.map +0 -1
  79. package/dist/features/auth/login/social-login-methods/social-login-methods.js +0 -46
  80. package/dist/features/auth/login/social-login-methods/social-login-methods.js.map +0 -1
  81. package/dist/features/auth/login/username-password-form/username-password-form.js +0 -87
  82. package/dist/features/auth/login/username-password-form/username-password-form.js.map +0 -1
  83. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js +0 -56
  84. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js.map +0 -1
  85. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js +0 -131
  86. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +0 -1
  87. package/dist/features/auth/signup/claim-user-account/claim-user-account-styled.js +0 -27
  88. package/dist/features/auth/signup/claim-user-account/claim-user-account-styled.js.map +0 -1
  89. package/dist/features/auth/signup/claim-user-account/claim-user-account.js +0 -79
  90. package/dist/features/auth/signup/claim-user-account/claim-user-account.js.map +0 -1
  91. package/dist/features/auth/signup/custom-input-field/country-selector/country-code-button.js +0 -33
  92. package/dist/features/auth/signup/custom-input-field/country-selector/country-code-button.js.map +0 -1
  93. package/dist/features/auth/signup/custom-input-field/country-selector/country-list-menu.js +0 -98
  94. package/dist/features/auth/signup/custom-input-field/country-selector/country-list-menu.js.map +0 -1
  95. package/dist/features/auth/signup/custom-input-field/country-selector/country-selector-styled.js +0 -57
  96. package/dist/features/auth/signup/custom-input-field/country-selector/country-selector-styled.js.map +0 -1
  97. package/dist/features/auth/signup/custom-input-field/country-selector/country-selector.js +0 -26
  98. package/dist/features/auth/signup/custom-input-field/country-selector/country-selector.js.map +0 -1
  99. package/dist/features/auth/signup/custom-input-field/custom-input-field-styled.js +0 -30
  100. package/dist/features/auth/signup/custom-input-field/custom-input-field-styled.js.map +0 -1
  101. package/dist/features/auth/signup/custom-input-field/custom-input-field.js +0 -93
  102. package/dist/features/auth/signup/custom-input-field/custom-input-field.js.map +0 -1
  103. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input-styled.js +0 -88
  104. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input-styled.js.map +0 -1
  105. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input.js +0 -58
  106. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input.js.map +0 -1
  107. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input-styled.js +0 -31
  108. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input-styled.js.map +0 -1
  109. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input.js +0 -30
  110. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input.js.map +0 -1
  111. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper-styled.js +0 -11
  112. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper-styled.js.map +0 -1
  113. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js +0 -33
  114. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js.map +0 -1
  115. package/dist/features/auth/signup/custom-input-field/password-toggle/password-toggle.js +0 -9
  116. package/dist/features/auth/signup/custom-input-field/password-toggle/password-toggle.js.map +0 -1
  117. package/dist/features/auth/signup/signup-constants.js +0 -1031
  118. package/dist/features/auth/signup/signup-constants.js.map +0 -1
  119. package/dist/features/auth/signup/signup-methods/signup-methods.js +0 -68
  120. package/dist/features/auth/signup/signup-methods/signup-methods.js.map +0 -1
  121. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card-styled.js +0 -19
  122. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card-styled.js.map +0 -1
  123. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js +0 -62
  124. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js.map +0 -1
  125. package/dist/features/auth/signup/user-type-selector/user-type-selector-styled.js +0 -24
  126. package/dist/features/auth/signup/user-type-selector/user-type-selector-styled.js.map +0 -1
  127. package/dist/features/auth/signup/user-type-selector/user-type-selector.js +0 -87
  128. package/dist/features/auth/signup/user-type-selector/user-type-selector.js.map +0 -1
  129. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -332
  130. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
  131. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -370
  132. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
  133. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +0 -252
  134. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js.map +0 -1
  135. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +0 -24
  136. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js.map +0 -1
  137. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -192
  138. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +0 -1
  139. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -19
  140. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
  141. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -129
  142. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
  143. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -129
  144. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
  145. package/dist/node_modules/clsx/dist/clsx.js +0 -18
  146. package/dist/node_modules/clsx/dist/clsx.js.map +0 -1
  147. package/dist/node_modules/date-fns/subYears.js +0 -9
  148. package/dist/node_modules/date-fns/subYears.js.map +0 -1
  149. package/dist/node_modules/react-datepicker/dist/index.es.js +0 -2700
  150. package/dist/node_modules/react-datepicker/dist/index.es.js.map +0 -1
  151. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/addLeadingZeros.js +0 -8
  152. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/addLeadingZeros.js.map +0 -1
  153. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/defaultOptions.js +0 -8
  154. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/defaultOptions.js.map +0 -1
  155. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/formatters.js +0 -518
  156. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/formatters.js.map +0 -1
  157. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/lightFormatters.js +0 -60
  158. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/lightFormatters.js.map +0 -1
  159. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/longFormatters.js +0 -53
  160. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/longFormatters.js.map +0 -1
  161. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -19
  162. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +0 -1
  163. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/normalizeDates.js +0 -12
  164. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/normalizeDates.js.map +0 -1
  165. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/protectedTokens.js +0 -21
  166. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/protectedTokens.js.map +0 -1
  167. package/dist/node_modules/react-datepicker/node_modules/date-fns/addDays.js +0 -11
  168. package/dist/node_modules/react-datepicker/node_modules/date-fns/addDays.js.map +0 -1
  169. package/dist/node_modules/react-datepicker/node_modules/date-fns/addHours.js +0 -10
  170. package/dist/node_modules/react-datepicker/node_modules/date-fns/addHours.js.map +0 -1
  171. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMilliseconds.js +0 -10
  172. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMilliseconds.js.map +0 -1
  173. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMinutes.js +0 -11
  174. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMinutes.js.map +0 -1
  175. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMonths.js +0 -21
  176. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMonths.js.map +0 -1
  177. package/dist/node_modules/react-datepicker/node_modules/date-fns/addQuarters.js +0 -9
  178. package/dist/node_modules/react-datepicker/node_modules/date-fns/addQuarters.js.map +0 -1
  179. package/dist/node_modules/react-datepicker/node_modules/date-fns/addSeconds.js +0 -9
  180. package/dist/node_modules/react-datepicker/node_modules/date-fns/addSeconds.js.map +0 -1
  181. package/dist/node_modules/react-datepicker/node_modules/date-fns/addWeeks.js +0 -9
  182. package/dist/node_modules/react-datepicker/node_modules/date-fns/addWeeks.js.map +0 -1
  183. package/dist/node_modules/react-datepicker/node_modules/date-fns/addYears.js +0 -9
  184. package/dist/node_modules/react-datepicker/node_modules/date-fns/addYears.js.map +0 -1
  185. package/dist/node_modules/react-datepicker/node_modules/date-fns/constants.js +0 -10
  186. package/dist/node_modules/react-datepicker/node_modules/date-fns/constants.js.map +0 -1
  187. package/dist/node_modules/react-datepicker/node_modules/date-fns/constructFrom.js +0 -9
  188. package/dist/node_modules/react-datepicker/node_modules/date-fns/constructFrom.js.map +0 -1
  189. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarDays.js +0 -17
  190. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarDays.js.map +0 -1
  191. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarMonths.js +0 -14
  192. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarMonths.js.map +0 -1
  193. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarQuarters.js +0 -15
  194. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarQuarters.js.map +0 -1
  195. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarYears.js +0 -14
  196. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarYears.js.map +0 -1
  197. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInDays.js +0 -23
  198. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInDays.js.map +0 -1
  199. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfDay.js +0 -10
  200. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfDay.js.map +0 -1
  201. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfMonth.js +0 -10
  202. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfMonth.js.map +0 -1
  203. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfWeek.js +0 -12
  204. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfWeek.js.map +0 -1
  205. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfYear.js +0 -10
  206. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfYear.js.map +0 -1
  207. package/dist/node_modules/react-datepicker/node_modules/date-fns/format.js +0 -60
  208. package/dist/node_modules/react-datepicker/node_modules/date-fns/format.js.map +0 -1
  209. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDate.js +0 -9
  210. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDate.js.map +0 -1
  211. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDay.js +0 -9
  212. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDay.js.map +0 -1
  213. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDayOfYear.js +0 -12
  214. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDayOfYear.js.map +0 -1
  215. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDaysInMonth.js +0 -11
  216. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDaysInMonth.js.map +0 -1
  217. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDefaultOptions.js +0 -9
  218. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDefaultOptions.js.map +0 -1
  219. package/dist/node_modules/react-datepicker/node_modules/date-fns/getHours.js +0 -9
  220. package/dist/node_modules/react-datepicker/node_modules/date-fns/getHours.js.map +0 -1
  221. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISODay.js +0 -10
  222. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISODay.js.map +0 -1
  223. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeek.js +0 -13
  224. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeek.js.map +0 -1
  225. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeekYear.js +0 -16
  226. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeekYear.js.map +0 -1
  227. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMinutes.js +0 -9
  228. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMinutes.js.map +0 -1
  229. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMonth.js +0 -9
  230. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMonth.js.map +0 -1
  231. package/dist/node_modules/react-datepicker/node_modules/date-fns/getQuarter.js +0 -10
  232. package/dist/node_modules/react-datepicker/node_modules/date-fns/getQuarter.js.map +0 -1
  233. package/dist/node_modules/react-datepicker/node_modules/date-fns/getSeconds.js +0 -9
  234. package/dist/node_modules/react-datepicker/node_modules/date-fns/getSeconds.js.map +0 -1
  235. package/dist/node_modules/react-datepicker/node_modules/date-fns/getTime.js +0 -9
  236. package/dist/node_modules/react-datepicker/node_modules/date-fns/getTime.js.map +0 -1
  237. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeek.js +0 -13
  238. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeek.js.map +0 -1
  239. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeekYear.js +0 -18
  240. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeekYear.js.map +0 -1
  241. package/dist/node_modules/react-datepicker/node_modules/date-fns/getYear.js +0 -9
  242. package/dist/node_modules/react-datepicker/node_modules/date-fns/getYear.js.map +0 -1
  243. package/dist/node_modules/react-datepicker/node_modules/date-fns/isAfter.js +0 -9
  244. package/dist/node_modules/react-datepicker/node_modules/date-fns/isAfter.js.map +0 -1
  245. package/dist/node_modules/react-datepicker/node_modules/date-fns/isBefore.js +0 -9
  246. package/dist/node_modules/react-datepicker/node_modules/date-fns/isBefore.js.map +0 -1
  247. package/dist/node_modules/react-datepicker/node_modules/date-fns/isDate.js +0 -8
  248. package/dist/node_modules/react-datepicker/node_modules/date-fns/isDate.js.map +0 -1
  249. package/dist/node_modules/react-datepicker/node_modules/date-fns/isEqual.js +0 -9
  250. package/dist/node_modules/react-datepicker/node_modules/date-fns/isEqual.js.map +0 -1
  251. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameDay.js +0 -15
  252. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameDay.js.map +0 -1
  253. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameMonth.js +0 -14
  254. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameMonth.js.map +0 -1
  255. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameQuarter.js +0 -15
  256. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameQuarter.js.map +0 -1
  257. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameYear.js +0 -14
  258. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameYear.js.map +0 -1
  259. package/dist/node_modules/react-datepicker/node_modules/date-fns/isValid.js +0 -10
  260. package/dist/node_modules/react-datepicker/node_modules/date-fns/isValid.js.map +0 -1
  261. package/dist/node_modules/react-datepicker/node_modules/date-fns/isWithinInterval.js +0 -13
  262. package/dist/node_modules/react-datepicker/node_modules/date-fns/isWithinInterval.js.map +0 -1
  263. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -10
  264. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +0 -1
  265. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -19
  266. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +0 -1
  267. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -32
  268. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +0 -1
  269. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -16
  270. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +0 -1
  271. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -71
  272. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +0 -1
  273. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -34
  274. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +0 -1
  275. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -12
  276. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +0 -1
  277. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -156
  278. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/localize.js.map +0 -1
  279. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/match.js +0 -111
  280. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/match.js.map +0 -1
  281. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US.js +0 -22
  282. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US.js.map +0 -1
  283. package/dist/node_modules/react-datepicker/node_modules/date-fns/max.js +0 -15
  284. package/dist/node_modules/react-datepicker/node_modules/date-fns/max.js.map +0 -1
  285. package/dist/node_modules/react-datepicker/node_modules/date-fns/min.js +0 -15
  286. package/dist/node_modules/react-datepicker/node_modules/date-fns/min.js.map +0 -1
  287. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Parser.js +0 -23
  288. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Parser.js.map +0 -1
  289. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Setter.js +0 -42
  290. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Setter.js.map +0 -1
  291. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/constants.js +0 -50
  292. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/constants.js.map +0 -1
  293. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +0 -50
  294. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js.map +0 -1
  295. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +0 -50
  296. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js.map +0 -1
  297. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DateParser.js +0 -62
  298. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DateParser.js.map +0 -1
  299. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +0 -52
  300. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js.map +0 -1
  301. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayParser.js +0 -46
  302. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayParser.js.map +0 -1
  303. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +0 -50
  304. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js.map +0 -1
  305. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/EraParser.js +0 -31
  306. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/EraParser.js.map +0 -1
  307. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +0 -22
  308. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js.map +0 -1
  309. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +0 -23
  310. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js.map +0 -1
  311. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +0 -33
  312. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js.map +0 -1
  313. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +0 -33
  314. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js.map +0 -1
  315. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +0 -34
  316. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js.map +0 -1
  317. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +0 -34
  318. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js.map +0 -1
  319. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +0 -100
  320. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js.map +0 -1
  321. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +0 -49
  322. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js.map +0 -1
  323. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +0 -49
  324. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js.map +0 -1
  325. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +0 -50
  326. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js.map +0 -1
  327. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +0 -41
  328. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js.map +0 -1
  329. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +0 -75
  330. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js.map +0 -1
  331. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +0 -49
  332. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js.map +0 -1
  333. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +0 -70
  334. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js.map +0 -1
  335. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +0 -33
  336. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js.map +0 -1
  337. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +0 -72
  338. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MonthParser.js.map +0 -1
  339. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +0 -71
  340. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js.map +0 -1
  341. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +0 -33
  342. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/SecondParser.js.map +0 -1
  343. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +0 -75
  344. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js.map +0 -1
  345. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +0 -72
  346. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js.map +0 -1
  347. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +0 -71
  348. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js.map +0 -1
  349. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +0 -23
  350. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js.map +0 -1
  351. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +0 -23
  352. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js.map +0 -1
  353. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/YearParser.js +0 -50
  354. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/YearParser.js.map +0 -1
  355. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers.js +0 -68
  356. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers.js.map +0 -1
  357. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/utils.js +0 -104
  358. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/utils.js.map +0 -1
  359. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse.js +0 -88
  360. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse.js.map +0 -1
  361. package/dist/node_modules/react-datepicker/node_modules/date-fns/parseISO.js +0 -123
  362. package/dist/node_modules/react-datepicker/node_modules/date-fns/parseISO.js.map +0 -1
  363. package/dist/node_modules/react-datepicker/node_modules/date-fns/setDay.js +0 -13
  364. package/dist/node_modules/react-datepicker/node_modules/date-fns/setDay.js.map +0 -1
  365. package/dist/node_modules/react-datepicker/node_modules/date-fns/setHours.js +0 -10
  366. package/dist/node_modules/react-datepicker/node_modules/date-fns/setHours.js.map +0 -1
  367. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISODay.js +0 -12
  368. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISODay.js.map +0 -1
  369. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISOWeek.js +0 -11
  370. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISOWeek.js.map +0 -1
  371. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMinutes.js +0 -10
  372. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMinutes.js.map +0 -1
  373. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMonth.js +0 -14
  374. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMonth.js.map +0 -1
  375. package/dist/node_modules/react-datepicker/node_modules/date-fns/setQuarter.js +0 -11
  376. package/dist/node_modules/react-datepicker/node_modules/date-fns/setQuarter.js.map +0 -1
  377. package/dist/node_modules/react-datepicker/node_modules/date-fns/setSeconds.js +0 -10
  378. package/dist/node_modules/react-datepicker/node_modules/date-fns/setSeconds.js.map +0 -1
  379. package/dist/node_modules/react-datepicker/node_modules/date-fns/setWeek.js +0 -11
  380. package/dist/node_modules/react-datepicker/node_modules/date-fns/setWeek.js.map +0 -1
  381. package/dist/node_modules/react-datepicker/node_modules/date-fns/setYear.js +0 -11
  382. package/dist/node_modules/react-datepicker/node_modules/date-fns/setYear.js.map +0 -1
  383. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfDay.js +0 -10
  384. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfDay.js.map +0 -1
  385. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeek.js +0 -9
  386. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeek.js.map +0 -1
  387. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeekYear.js +0 -12
  388. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeekYear.js.map +0 -1
  389. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfMonth.js +0 -10
  390. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfMonth.js.map +0 -1
  391. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfQuarter.js +0 -10
  392. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfQuarter.js.map +0 -1
  393. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeek.js +0 -12
  394. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeek.js.map +0 -1
  395. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeekYear.js +0 -14
  396. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeekYear.js.map +0 -1
  397. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfYear.js +0 -10
  398. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfYear.js.map +0 -1
  399. package/dist/node_modules/react-datepicker/node_modules/date-fns/subDays.js +0 -9
  400. package/dist/node_modules/react-datepicker/node_modules/date-fns/subDays.js.map +0 -1
  401. package/dist/node_modules/react-datepicker/node_modules/date-fns/subMonths.js +0 -9
  402. package/dist/node_modules/react-datepicker/node_modules/date-fns/subMonths.js.map +0 -1
  403. package/dist/node_modules/react-datepicker/node_modules/date-fns/subQuarters.js +0 -9
  404. package/dist/node_modules/react-datepicker/node_modules/date-fns/subQuarters.js.map +0 -1
  405. package/dist/node_modules/react-datepicker/node_modules/date-fns/subWeeks.js +0 -9
  406. package/dist/node_modules/react-datepicker/node_modules/date-fns/subWeeks.js.map +0 -1
  407. package/dist/node_modules/react-datepicker/node_modules/date-fns/subYears.js +0 -9
  408. package/dist/node_modules/react-datepicker/node_modules/date-fns/subYears.js.map +0 -1
  409. package/dist/node_modules/react-datepicker/node_modules/date-fns/toDate.js +0 -9
  410. package/dist/node_modules/react-datepicker/node_modules/date-fns/toDate.js.map +0 -1
  411. package/dist/node_modules/react-datepicker/node_modules/date-fns/transpose.js +0 -19
  412. package/dist/node_modules/react-datepicker/node_modules/date-fns/transpose.js.map +0 -1
  413. package/dist/static/avatar-selected.860ee923.json +0 -1
  414. package/dist/static/circle-cuemath-logo-white.e9fafb91.svg +0 -1
  415. package/dist/static/cuemath-app-qr-code.ba6cc09b.svg +0 -1
  416. package/dist/static/cuemath-app-qr-code.d0912fc7.png +0 -0
  417. package/dist/static/dob.9ce3c15b.json +0 -1
  418. package/dist/static/error.cbe1ddde.json +0 -1
  419. package/dist/static/grade.b3730524.json +0 -1
  420. package/dist/static/key.d6846476.json +0 -1
  421. package/dist/static/mail.c30e8708.json +0 -1
  422. package/dist/static/otp.2d08f874.json +0 -1
  423. package/dist/static/otp.a3029760.json +0 -1
  424. package/dist/static/parent-avatar.772d53e0.json +0 -1
  425. package/dist/static/phone-number.0be312ea.json +0 -1
  426. package/dist/static/phone-number.84f55562.json +0 -1
  427. package/dist/static/student-avatar.524226bd.json +0 -1
  428. package/dist/static/user-type-selector-grid-bg.3c9c8ad6.svg +0 -1
  429. package/dist/static/user-type-selector-grid-bg.3ce8142d.svg +0 -1
  430. package/dist/static/user-type-selector-grid-bg.aad0b059.svg +0 -1
  431. package/dist/static/username.9e034d51.json +0 -1
@@ -1,5 +1,5 @@
1
1
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import { memo as q, useRef as T, useCallback as C } from "react";
2
+ import { memo as q, useRef as L, useCallback as $ } from "react";
3
3
  import J from "../../../../../assets/line-icons/icons/check2.js";
4
4
  import Q from "../../../../../assets/line-icons/icons/eye2.js";
5
5
  import V from "../../../../../assets/line-icons/icons/home2.js";
@@ -14,43 +14,43 @@ import ne from "../../../../ui/text/text.js";
14
14
  import { BLOCK_TYPE as ie } from "../../../constants/block-constants.js";
15
15
  import { NODE_CARD_STATES as _, TEACHER_MENU_LABELS as oe } from "../../../constants/node-constants.js";
16
16
  import { getNodeTypeBasedBgImage as ce } from "../../../utils/index.js";
17
- import { getNodeCardBasedIcon as se } from "../../../utils/node-card-utils.js";
18
- import { NodeCardContainer as ae, NodeCardInfoWrapper as le, IconWrapper as de, StyledImportantIcon as me, NodeKebabMenuWrapper as A, NodeCardContentWrapper as pe, NodeCardTitle as he, NodeMenuOptionsWrapper as fe } from "../node-card-styled.js";
17
+ import { getNodeCardBasedIcon as ae } from "../../../utils/node-card-utils.js";
18
+ import { NodeCardContainer as se, NodeCardInfoWrapper as le, IconWrapper as de, StyledImportantIcon as me, NodeKebabMenuWrapper as y, NodeCardContentWrapper as pe, NodeCardTitle as he, NodeMenuOptionsWrapper as fe } from "../node-card-styled.js";
19
19
  import ue from "../node-card-tags.js";
20
- import $e from "../node-menu-options/node-menu-options.js";
21
- const Ce = { renderer: "canvas", autoplay: !1 }, { ASSIGN_AS_HW: _e, REVIEW: Ie, VIEW: be, MARK_AS_DONE: ge, RESET: Ee } = oe, Fe = q(
20
+ import Ce from "../node-menu-options/node-menu-options.js";
21
+ const $e = { renderer: "canvas", autoplay: !1 }, { ASSIGN_AS_HW: _e, REVIEW: Ie, VIEW: be, MARK_AS_DONE: ge, RESET: Ee } = oe, Fe = q(
22
22
  ({
23
23
  nodeData: t,
24
- imageHue: y,
25
- blockType: w,
24
+ imageHue: k,
25
+ blockType: W,
26
26
  isSkipped: I,
27
- onNodeAttemptLocationChange: o,
27
+ onNodeAssignAsHomework: o,
28
28
  onNodeMarkAsDone: c,
29
- onNodeView: s,
30
- onNodeReview: a,
29
+ onNodeView: a,
30
+ onNodeReview: s,
31
31
  onNodeReattempt: l
32
32
  }) => {
33
- const p = T(null), { menuVisible: W, onMenuClick: b } = ee(p), {
34
- accuracy: x,
35
- attempt_location: B,
33
+ const p = L(null), { menuVisible: x, onMenuClick: b } = ee(p), {
34
+ accuracy: B,
35
+ attempt_location: A,
36
36
  node_type: h,
37
- card_header: L,
38
- title: M,
37
+ card_header: M,
38
+ title: w,
39
39
  state: d,
40
40
  is_optional: g,
41
41
  sheet_statement: E,
42
- permissions: H,
42
+ permissions: K,
43
43
  user_attempt_id: f
44
- } = t, { lottie: K } = se(h), u = T(null), {
45
- can_mark_familiar: G,
46
- can_review: $,
47
- can_assign_as_homework: j,
48
- can_reset: v
49
- } = H, k = w === ie.GOAL, n = d === _.LOCKED, P = d === _.NOT_STARTED, R = d === _.IN_PROGRESS, X = B === "INCLASS", S = !g && (R || P), F = ce(h), m = C(
44
+ } = t, { lottie: G } = ae(h), u = L(null), {
45
+ can_mark_familiar: j,
46
+ can_review: C,
47
+ can_assign_as_homework: v,
48
+ can_reset: P
49
+ } = K, S = W === ie.GOAL, n = d === _.LOCKED, R = d === _.NOT_STARTED, X = d === _.IN_PROGRESS, H = A === "INCLASS", T = !g && (X || R), F = ce(h), m = $(
50
50
  (r) => {
51
51
  switch (r) {
52
52
  case "node-card-view":
53
- $ && f ? a == null || a(t) : s == null || s(t);
53
+ C && f ? s == null || s(t) : a == null || a(t);
54
54
  return;
55
55
  case "node-card-assign-as-hw":
56
56
  o == null || o(t);
@@ -66,25 +66,25 @@ const Ce = { renderer: "canvas", autoplay: !1 }, { ASSIGN_AS_HW: _e, REVIEW: Ie,
66
66
  }
67
67
  },
68
68
  [
69
- $,
69
+ C,
70
70
  t,
71
71
  o,
72
72
  c,
73
73
  l,
74
- a,
75
74
  s,
75
+ a,
76
76
  f
77
77
  ]
78
- ), z = C(() => {
78
+ ), z = $(() => {
79
79
  var r;
80
80
  n || (r = u.current) == null || r.play();
81
- }, [n]), U = C(() => {
81
+ }, [n]), U = $(() => {
82
82
  var r;
83
83
  (r = u.current) == null || r.stop();
84
84
  }, []), Y = [
85
85
  {
86
86
  id: "node-card-view",
87
- label: $ && f ? Ie : be,
87
+ label: C && f ? Ie : be,
88
88
  icon: Q,
89
89
  disabled: !1,
90
90
  onClick: m
@@ -93,30 +93,30 @@ const Ce = { renderer: "canvas", autoplay: !1 }, { ASSIGN_AS_HW: _e, REVIEW: Ie,
93
93
  id: "node-card-assign-as-hw",
94
94
  label: _e,
95
95
  icon: V,
96
- disabled: !j,
96
+ disabled: !v,
97
97
  onClick: m
98
98
  },
99
99
  {
100
100
  id: "node-card-reset",
101
101
  label: Ee,
102
102
  icon: Z,
103
- disabled: !v,
103
+ disabled: !P,
104
104
  onClick: m
105
105
  },
106
106
  {
107
107
  id: "node-card-mark-as-done",
108
108
  label: ge,
109
109
  icon: J,
110
- disabled: !G,
110
+ disabled: !j,
111
111
  onClick: m
112
112
  }
113
113
  ];
114
114
  return /* @__PURE__ */ i(
115
- ae,
115
+ se,
116
116
  {
117
- $showOutline: !S,
117
+ $showOutline: !T,
118
118
  $isSheetLocked: n,
119
- $background: `${y}_2`,
119
+ $background: `${k}_2`,
120
120
  $disabled: !!I,
121
121
  children: [
122
122
  /* @__PURE__ */ i(
@@ -154,23 +154,23 @@ const Ce = { renderer: "canvas", autoplay: !1 }, { ASSIGN_AS_HW: _e, REVIEW: Ie,
154
154
  $justifyContent: "center",
155
155
  $opacity: n ? 0.5 : 1,
156
156
  children: [
157
- /* @__PURE__ */ e(te, { src: K, ref: u, settings: Ce }),
157
+ /* @__PURE__ */ e(te, { src: G, ref: u, settings: $e }),
158
158
  !g && /* @__PURE__ */ e(me, {})
159
159
  ]
160
160
  }
161
161
  ),
162
162
  /* @__PURE__ */ i(ne, { $renderAs: "ac4-black", $color: "BLACK", $opacity: n ? 0.5 : 1, children: [
163
- L,
163
+ M,
164
164
  " ",
165
- X && "• CW"
165
+ H && "• CW"
166
166
  ] }),
167
- /* @__PURE__ */ e(re, { className: "context-menu", children: k && /* @__PURE__ */ e(A, { ref: p, onClick: b, children: /* @__PURE__ */ e(O, { width: 16, height: 16 }) }) }),
168
- S && !I && /* @__PURE__ */ e(N, { borderColor: "BLACK_1", borderWidth: 1 })
167
+ /* @__PURE__ */ e(re, { className: "context-menu", children: S && /* @__PURE__ */ e(y, { ref: p, onClick: b, children: /* @__PURE__ */ e(O, { width: 16, height: 16 }) }) }),
168
+ T && !I && /* @__PURE__ */ e(N, { borderColor: "BLACK_1", borderWidth: 1 })
169
169
  ]
170
170
  }
171
171
  ),
172
- /* @__PURE__ */ e(ue, { nodeType: h, state: d, accuracy: x }),
173
- !k && /* @__PURE__ */ i(
172
+ /* @__PURE__ */ e(ue, { nodeType: h, state: d, accuracy: B }),
173
+ !S && /* @__PURE__ */ i(
174
174
  pe,
175
175
  {
176
176
  $flexDirection: "row",
@@ -186,17 +186,17 @@ const Ce = { renderer: "canvas", autoplay: !1 }, { ASSIGN_AS_HW: _e, REVIEW: Ie,
186
186
  $renderAs: "ab3",
187
187
  $color: "BLACK_1",
188
188
  $opacity: n ? 0.5 : 1,
189
- children: M
189
+ children: w
190
190
  }
191
191
  ),
192
- /* @__PURE__ */ e(A, { ref: p, onClick: b, children: /* @__PURE__ */ e(O, { width: 16, height: 16 }) })
192
+ /* @__PURE__ */ e(y, { ref: p, onClick: b, children: /* @__PURE__ */ e(O, { width: 16, height: 16 }) })
193
193
  ]
194
194
  }
195
195
  )
196
196
  ]
197
197
  }
198
198
  ),
199
- /* @__PURE__ */ e(fe, { $visible: W, children: /* @__PURE__ */ e($e, { options: Y }) })
199
+ /* @__PURE__ */ e(fe, { $visible: x, children: /* @__PURE__ */ e(Ce, { options: Y }) })
200
200
  ]
201
201
  }
202
202
  );
@@ -1 +1 @@
1
- {"version":3,"file":"teacher-actions.js","sources":["../../../../../../src/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.tsx"],"sourcesContent":["import type { ILottieAnimationRef } from '../../../../ui/lottie-animation/types';\nimport type { INodeCardProps } from '../node-card-types';\nimport type { INodeMenuOption } from '../node-menu-options/node-menu-options-types';\nimport type { FC } from 'react';\n\nimport { memo, useCallback, useRef } from 'react';\n\nimport Check2Icon from '../../../../../assets/line-icons/icons/check2';\nimport Eye2Icon from '../../../../../assets/line-icons/icons/eye2';\nimport Home2Icon from '../../../../../assets/line-icons/icons/home2';\nimport MoreVerticalIcon from '../../../../../assets/line-icons/icons/more-vertical';\nimport RedoIcon from '../../../../../assets/line-icons/icons/redo';\nimport ArrowTooltip from '../../../../ui/arrow-tooltip/arrow-tooltip';\nimport BorderPathAnimation from '../../../../ui/border-path-animation/border-path-animation';\nimport useContextMenuClickHandler from '../../../../ui/hooks/use-context-menu-click-handler';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport LottieAnimation from '../../../../ui/lottie-animation/lottie-animation';\nimport Text from '../../../../ui/text/text';\nimport { BLOCK_TYPE } from '../../../constants/block-constants';\nimport { NODE_CARD_STATES, TEACHER_MENU_LABELS } from '../../../constants/node-constants';\nimport { getNodeTypeBasedBgImage } from '../../../utils';\nimport { getNodeCardBasedIcon } from '../../../utils/node-card-utils';\nimport * as Styled from '../node-card-styled';\nimport NodeCardTags from '../node-card-tags';\nimport NodeMenuOptions from '../node-menu-options/node-menu-options';\n\nconst renderSettings = { renderer: 'canvas', autoplay: false };\nconst { ASSIGN_AS_HW, REVIEW, VIEW, MARK_AS_DONE, RESET } = TEACHER_MENU_LABELS;\n\nconst TeacherActions: FC<Omit<INodeCardProps, 'userType'>> = memo(\n ({\n nodeData,\n imageHue,\n blockType,\n isSkipped,\n onNodeAttemptLocationChange,\n onNodeMarkAsDone,\n onNodeView,\n onNodeReview,\n onNodeReattempt,\n }) => {\n const containerRef = useRef<HTMLDivElement>(null);\n const { menuVisible, onMenuClick } = useContextMenuClickHandler(containerRef);\n\n const {\n accuracy,\n attempt_location: attemptLocation,\n node_type: nodeType,\n card_header: cardHeader,\n title,\n state,\n is_optional: isOptional,\n sheet_statement: sheetStatement,\n permissions,\n user_attempt_id: userAttemptId,\n } = nodeData;\n\n const { lottie: nodeCardLottie } = getNodeCardBasedIcon(nodeType);\n const animationRef = useRef<ILottieAnimationRef | null>(null);\n\n const {\n can_mark_familiar: canMarkFamiliar,\n can_review: canReview,\n can_assign_as_homework: canAssignAsHw,\n can_reset: canReset,\n } = permissions;\n\n const isGoalBlock = blockType === BLOCK_TYPE.GOAL;\n const sheetLocked = state === NODE_CARD_STATES.LOCKED;\n const sheetNotStarted = state === NODE_CARD_STATES.NOT_STARTED;\n const sheetInProgress = state === NODE_CARD_STATES.IN_PROGRESS;\n const inClassSheet = attemptLocation === 'INCLASS';\n\n const showCardAnimation = !isOptional && (sheetInProgress || sheetNotStarted);\n\n const nodeBgImage = getNodeTypeBasedBgImage(nodeType);\n\n const handleOnMenuOptionClick = useCallback(\n (optionId: string) => {\n switch (optionId) {\n case 'node-card-view':\n if (canReview && userAttemptId) {\n onNodeReview?.(nodeData);\n } else {\n onNodeView?.(nodeData);\n }\n\n return;\n\n case 'node-card-assign-as-hw':\n onNodeAttemptLocationChange?.(nodeData);\n\n return;\n\n case 'node-card-mark-as-done':\n onNodeMarkAsDone?.(nodeData);\n\n return;\n\n case 'node-card-reset':\n onNodeReattempt?.(nodeData);\n\n return;\n\n default:\n throw new Error(`No callback function for ${optionId}`);\n }\n },\n [\n canReview,\n nodeData,\n onNodeAttemptLocationChange,\n onNodeMarkAsDone,\n onNodeReattempt,\n onNodeReview,\n onNodeView,\n userAttemptId,\n ],\n );\n\n const handleOnMouseEnter = useCallback(() => {\n if (sheetLocked) return;\n animationRef.current?.play();\n }, [sheetLocked]);\n\n const handleOnMouseLeave = useCallback(() => {\n animationRef.current?.stop();\n }, []);\n\n const menuOptions: INodeMenuOption[] = [\n {\n id: 'node-card-view',\n label: canReview && userAttemptId ? REVIEW : VIEW,\n icon: Eye2Icon,\n disabled: false,\n onClick: handleOnMenuOptionClick,\n },\n {\n id: 'node-card-assign-as-hw',\n label: ASSIGN_AS_HW,\n icon: Home2Icon,\n disabled: !canAssignAsHw,\n onClick: handleOnMenuOptionClick,\n },\n {\n id: 'node-card-reset',\n label: RESET,\n icon: RedoIcon,\n disabled: !canReset,\n onClick: handleOnMenuOptionClick,\n },\n {\n id: 'node-card-mark-as-done',\n label: MARK_AS_DONE,\n icon: Check2Icon,\n disabled: !canMarkFamiliar,\n onClick: handleOnMenuOptionClick,\n },\n ];\n\n return (\n <Styled.NodeCardContainer\n $showOutline={!showCardAnimation}\n $isSheetLocked={sheetLocked}\n $background={`${imageHue}_2`}\n $disabled={Boolean(isSkipped)}\n >\n <ArrowTooltip\n renderAs=\"primary\"\n tooltipItem={sheetStatement}\n position=\"bottom\"\n zIndex={5}\n hidden={!sheetStatement}\n parentWidth=\"100%\"\n widthX={11.25}\n >\n <Styled.NodeCardInfoWrapper\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $width=\"100%\"\n $heightX={3.5}\n $bgImage={nodeBgImage}\n $gutterX={0.78125}\n $flexGap={8.5}\n onMouseEnter={handleOnMouseEnter}\n onMouseLeave={handleOnMouseLeave}\n >\n <Styled.IconWrapper\n $width={31}\n $height={31}\n $background=\"WHITE_1\"\n $position=\"relative\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $opacity={sheetLocked ? 0.5 : 1}\n >\n <LottieAnimation src={nodeCardLottie} ref={animationRef} settings={renderSettings} />\n {!isOptional && <Styled.StyledImportantIcon />}\n </Styled.IconWrapper>\n\n <Text $renderAs=\"ac4-black\" $color=\"BLACK\" $opacity={sheetLocked ? 0.5 : 1}>\n {cardHeader} {inClassSheet && `• CW`}\n </Text>\n\n <FlexView className=\"context-menu\">\n {isGoalBlock && (\n <Styled.NodeKebabMenuWrapper ref={containerRef} onClick={onMenuClick}>\n <MoreVerticalIcon width={16} height={16} />\n </Styled.NodeKebabMenuWrapper>\n )}\n </FlexView>\n\n {showCardAnimation && !isSkipped && (\n <BorderPathAnimation borderColor=\"BLACK_1\" borderWidth={1} />\n )}\n </Styled.NodeCardInfoWrapper>\n\n <NodeCardTags nodeType={nodeType} state={state} accuracy={accuracy} />\n\n {!isGoalBlock && (\n <Styled.NodeCardContentWrapper\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $background=\"WHITE_1\"\n $flexGap={8}\n $heightX={4}\n $justifyContent=\"space-between\"\n >\n <Styled.NodeCardTitle\n $renderAs=\"ab3\"\n $color=\"BLACK_1\"\n $opacity={sheetLocked ? 0.5 : 1}\n >\n {title}\n </Styled.NodeCardTitle>\n\n <Styled.NodeKebabMenuWrapper ref={containerRef} onClick={onMenuClick}>\n <MoreVerticalIcon width={16} height={16} />\n </Styled.NodeKebabMenuWrapper>\n </Styled.NodeCardContentWrapper>\n )}\n </ArrowTooltip>\n\n <Styled.NodeMenuOptionsWrapper $visible={menuVisible}>\n <NodeMenuOptions options={menuOptions} />\n </Styled.NodeMenuOptionsWrapper>\n </Styled.NodeCardContainer>\n );\n },\n);\n\nexport default TeacherActions;\n"],"names":["renderSettings","ASSIGN_AS_HW","REVIEW","VIEW","MARK_AS_DONE","RESET","TEACHER_MENU_LABELS","TeacherActions","memo","nodeData","imageHue","blockType","isSkipped","onNodeAttemptLocationChange","onNodeMarkAsDone","onNodeView","onNodeReview","onNodeReattempt","containerRef","useRef","menuVisible","onMenuClick","useContextMenuClickHandler","accuracy","attemptLocation","nodeType","cardHeader","title","state","isOptional","sheetStatement","permissions","userAttemptId","nodeCardLottie","getNodeCardBasedIcon","animationRef","canMarkFamiliar","canReview","canAssignAsHw","canReset","isGoalBlock","BLOCK_TYPE","sheetLocked","NODE_CARD_STATES","sheetNotStarted","sheetInProgress","inClassSheet","showCardAnimation","nodeBgImage","getNodeTypeBasedBgImage","handleOnMenuOptionClick","useCallback","optionId","handleOnMouseEnter","_a","handleOnMouseLeave","menuOptions","Eye2Icon","Home2Icon","RedoIcon","Check2Icon","jsxs","Styled.NodeCardContainer","ArrowTooltip","Styled.NodeCardInfoWrapper","Styled.IconWrapper","jsx","LottieAnimation","Styled.StyledImportantIcon","Text","FlexView","Styled.NodeKebabMenuWrapper","MoreVerticalIcon","BorderPathAnimation","NodeCardTags","Styled.NodeCardContentWrapper","Styled.NodeCardTitle","Styled.NodeMenuOptionsWrapper","NodeMenuOptions"],"mappings":";;;;;;;;;;;;;;;;;;;;AA0BA,MAAMA,KAAiB,EAAE,UAAU,UAAU,UAAU,GAAM,GACvD,EAAE,cAAAC,IAAc,QAAAC,IAAQ,MAAAC,IAAM,cAAAC,IAAc,OAAAC,GAAU,IAAAC,IAEtDC,KAAuDC;AAAA,EAC3D,CAAC;AAAA,IACC,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,6BAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,YAAAC;AAAA,IACA,cAAAC;AAAA,IACA,iBAAAC;AAAA,EAAA,MACI;AACE,UAAAC,IAAeC,EAAuB,IAAI,GAC1C,EAAE,aAAAC,GAAa,aAAAC,EAAY,IAAIC,GAA2BJ,CAAY,GAEtE;AAAA,MACJ,UAAAK;AAAA,MACA,kBAAkBC;AAAA,MAClB,WAAWC;AAAA,MACX,aAAaC;AAAA,MACb,OAAAC;AAAA,MACA,OAAAC;AAAA,MACA,aAAaC;AAAA,MACb,iBAAiBC;AAAA,MACjB,aAAAC;AAAA,MACA,iBAAiBC;AAAA,IACf,IAAAvB,GAEE,EAAE,QAAQwB,EAAe,IAAIC,GAAqBT,CAAQ,GAC1DU,IAAehB,EAAmC,IAAI,GAEtD;AAAA,MACJ,mBAAmBiB;AAAA,MACnB,YAAYC;AAAA,MACZ,wBAAwBC;AAAA,MACxB,WAAWC;AAAA,IACT,IAAAR,GAEES,IAAc7B,MAAc8B,GAAW,MACvCC,IAAcd,MAAUe,EAAiB,QACzCC,IAAkBhB,MAAUe,EAAiB,aAC7CE,IAAkBjB,MAAUe,EAAiB,aAC7CG,IAAetB,MAAoB,WAEnCuB,IAAoB,CAAClB,MAAegB,KAAmBD,IAEvDI,IAAc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2/comps/node-card/teacher-actions/teacher-actions.tsx"],"sourcesContent":["import type { ILottieAnimationRef } from '../../../../ui/lottie-animation/types';\nimport type { INodeCardProps } from '../node-card-types';\nimport type { INodeMenuOption } from '../node-menu-options/node-menu-options-types';\nimport type { FC } from 'react';\n\nimport { memo, useCallback, useRef } from 'react';\n\nimport Check2Icon from '../../../../../assets/line-icons/icons/check2';\nimport Eye2Icon from '../../../../../assets/line-icons/icons/eye2';\nimport Home2Icon from '../../../../../assets/line-icons/icons/home2';\nimport MoreVerticalIcon from '../../../../../assets/line-icons/icons/more-vertical';\nimport RedoIcon from '../../../../../assets/line-icons/icons/redo';\nimport ArrowTooltip from '../../../../ui/arrow-tooltip/arrow-tooltip';\nimport BorderPathAnimation from '../../../../ui/border-path-animation/border-path-animation';\nimport useContextMenuClickHandler from '../../../../ui/hooks/use-context-menu-click-handler';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport LottieAnimation from '../../../../ui/lottie-animation/lottie-animation';\nimport Text from '../../../../ui/text/text';\nimport { BLOCK_TYPE } from '../../../constants/block-constants';\nimport { NODE_CARD_STATES, TEACHER_MENU_LABELS } from '../../../constants/node-constants';\nimport { getNodeTypeBasedBgImage } from '../../../utils';\nimport { getNodeCardBasedIcon } from '../../../utils/node-card-utils';\nimport * as Styled from '../node-card-styled';\nimport NodeCardTags from '../node-card-tags';\nimport NodeMenuOptions from '../node-menu-options/node-menu-options';\n\nconst renderSettings = { renderer: 'canvas', autoplay: false };\nconst { ASSIGN_AS_HW, REVIEW, VIEW, MARK_AS_DONE, RESET } = TEACHER_MENU_LABELS;\n\nconst TeacherActions: FC<Omit<INodeCardProps, 'userType'>> = memo(\n ({\n nodeData,\n imageHue,\n blockType,\n isSkipped,\n onNodeAssignAsHomework,\n onNodeMarkAsDone,\n onNodeView,\n onNodeReview,\n onNodeReattempt,\n }) => {\n const containerRef = useRef<HTMLDivElement>(null);\n const { menuVisible, onMenuClick } = useContextMenuClickHandler(containerRef);\n\n const {\n accuracy,\n attempt_location: attemptLocation,\n node_type: nodeType,\n card_header: cardHeader,\n title,\n state,\n is_optional: isOptional,\n sheet_statement: sheetStatement,\n permissions,\n user_attempt_id: userAttemptId,\n } = nodeData;\n\n const { lottie: nodeCardLottie } = getNodeCardBasedIcon(nodeType);\n const animationRef = useRef<ILottieAnimationRef | null>(null);\n\n const {\n can_mark_familiar: canMarkFamiliar,\n can_review: canReview,\n can_assign_as_homework: canAssignAsHw,\n can_reset: canReset,\n } = permissions;\n\n const isGoalBlock = blockType === BLOCK_TYPE.GOAL;\n const sheetLocked = state === NODE_CARD_STATES.LOCKED;\n const sheetNotStarted = state === NODE_CARD_STATES.NOT_STARTED;\n const sheetInProgress = state === NODE_CARD_STATES.IN_PROGRESS;\n const inClassSheet = attemptLocation === 'INCLASS';\n\n const showCardAnimation = !isOptional && (sheetInProgress || sheetNotStarted);\n\n const nodeBgImage = getNodeTypeBasedBgImage(nodeType);\n\n const handleOnMenuOptionClick = useCallback(\n (optionId: string) => {\n switch (optionId) {\n case 'node-card-view':\n if (canReview && userAttemptId) {\n onNodeReview?.(nodeData);\n } else {\n onNodeView?.(nodeData);\n }\n\n return;\n\n case 'node-card-assign-as-hw':\n onNodeAssignAsHomework?.(nodeData);\n\n return;\n\n case 'node-card-mark-as-done':\n onNodeMarkAsDone?.(nodeData);\n\n return;\n\n case 'node-card-reset':\n onNodeReattempt?.(nodeData);\n\n return;\n\n default:\n throw new Error(`No callback function for ${optionId}`);\n }\n },\n [\n canReview,\n nodeData,\n onNodeAssignAsHomework,\n onNodeMarkAsDone,\n onNodeReattempt,\n onNodeReview,\n onNodeView,\n userAttemptId,\n ],\n );\n\n const handleOnMouseEnter = useCallback(() => {\n if (sheetLocked) return;\n animationRef.current?.play();\n }, [sheetLocked]);\n\n const handleOnMouseLeave = useCallback(() => {\n animationRef.current?.stop();\n }, []);\n\n const menuOptions: INodeMenuOption[] = [\n {\n id: 'node-card-view',\n label: canReview && userAttemptId ? REVIEW : VIEW,\n icon: Eye2Icon,\n disabled: false,\n onClick: handleOnMenuOptionClick,\n },\n {\n id: 'node-card-assign-as-hw',\n label: ASSIGN_AS_HW,\n icon: Home2Icon,\n disabled: !canAssignAsHw,\n onClick: handleOnMenuOptionClick,\n },\n {\n id: 'node-card-reset',\n label: RESET,\n icon: RedoIcon,\n disabled: !canReset,\n onClick: handleOnMenuOptionClick,\n },\n {\n id: 'node-card-mark-as-done',\n label: MARK_AS_DONE,\n icon: Check2Icon,\n disabled: !canMarkFamiliar,\n onClick: handleOnMenuOptionClick,\n },\n ];\n\n return (\n <Styled.NodeCardContainer\n $showOutline={!showCardAnimation}\n $isSheetLocked={sheetLocked}\n $background={`${imageHue}_2`}\n $disabled={Boolean(isSkipped)}\n >\n <ArrowTooltip\n renderAs=\"primary\"\n tooltipItem={sheetStatement}\n position=\"bottom\"\n zIndex={5}\n hidden={!sheetStatement}\n parentWidth=\"100%\"\n widthX={11.25}\n >\n <Styled.NodeCardInfoWrapper\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $width=\"100%\"\n $heightX={3.5}\n $bgImage={nodeBgImage}\n $gutterX={0.78125}\n $flexGap={8.5}\n onMouseEnter={handleOnMouseEnter}\n onMouseLeave={handleOnMouseLeave}\n >\n <Styled.IconWrapper\n $width={31}\n $height={31}\n $background=\"WHITE_1\"\n $position=\"relative\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $opacity={sheetLocked ? 0.5 : 1}\n >\n <LottieAnimation src={nodeCardLottie} ref={animationRef} settings={renderSettings} />\n {!isOptional && <Styled.StyledImportantIcon />}\n </Styled.IconWrapper>\n\n <Text $renderAs=\"ac4-black\" $color=\"BLACK\" $opacity={sheetLocked ? 0.5 : 1}>\n {cardHeader} {inClassSheet && `• CW`}\n </Text>\n\n <FlexView className=\"context-menu\">\n {isGoalBlock && (\n <Styled.NodeKebabMenuWrapper ref={containerRef} onClick={onMenuClick}>\n <MoreVerticalIcon width={16} height={16} />\n </Styled.NodeKebabMenuWrapper>\n )}\n </FlexView>\n\n {showCardAnimation && !isSkipped && (\n <BorderPathAnimation borderColor=\"BLACK_1\" borderWidth={1} />\n )}\n </Styled.NodeCardInfoWrapper>\n\n <NodeCardTags nodeType={nodeType} state={state} accuracy={accuracy} />\n\n {!isGoalBlock && (\n <Styled.NodeCardContentWrapper\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $background=\"WHITE_1\"\n $flexGap={8}\n $heightX={4}\n $justifyContent=\"space-between\"\n >\n <Styled.NodeCardTitle\n $renderAs=\"ab3\"\n $color=\"BLACK_1\"\n $opacity={sheetLocked ? 0.5 : 1}\n >\n {title}\n </Styled.NodeCardTitle>\n\n <Styled.NodeKebabMenuWrapper ref={containerRef} onClick={onMenuClick}>\n <MoreVerticalIcon width={16} height={16} />\n </Styled.NodeKebabMenuWrapper>\n </Styled.NodeCardContentWrapper>\n )}\n </ArrowTooltip>\n\n <Styled.NodeMenuOptionsWrapper $visible={menuVisible}>\n <NodeMenuOptions options={menuOptions} />\n </Styled.NodeMenuOptionsWrapper>\n </Styled.NodeCardContainer>\n );\n },\n);\n\nexport default TeacherActions;\n"],"names":["renderSettings","ASSIGN_AS_HW","REVIEW","VIEW","MARK_AS_DONE","RESET","TEACHER_MENU_LABELS","TeacherActions","memo","nodeData","imageHue","blockType","isSkipped","onNodeAssignAsHomework","onNodeMarkAsDone","onNodeView","onNodeReview","onNodeReattempt","containerRef","useRef","menuVisible","onMenuClick","useContextMenuClickHandler","accuracy","attemptLocation","nodeType","cardHeader","title","state","isOptional","sheetStatement","permissions","userAttemptId","nodeCardLottie","getNodeCardBasedIcon","animationRef","canMarkFamiliar","canReview","canAssignAsHw","canReset","isGoalBlock","BLOCK_TYPE","sheetLocked","NODE_CARD_STATES","sheetNotStarted","sheetInProgress","inClassSheet","showCardAnimation","nodeBgImage","getNodeTypeBasedBgImage","handleOnMenuOptionClick","useCallback","optionId","handleOnMouseEnter","_a","handleOnMouseLeave","menuOptions","Eye2Icon","Home2Icon","RedoIcon","Check2Icon","jsxs","Styled.NodeCardContainer","ArrowTooltip","Styled.NodeCardInfoWrapper","Styled.IconWrapper","jsx","LottieAnimation","Styled.StyledImportantIcon","Text","FlexView","Styled.NodeKebabMenuWrapper","MoreVerticalIcon","BorderPathAnimation","NodeCardTags","Styled.NodeCardContentWrapper","Styled.NodeCardTitle","Styled.NodeMenuOptionsWrapper","NodeMenuOptions"],"mappings":";;;;;;;;;;;;;;;;;;;;AA0BA,MAAMA,KAAiB,EAAE,UAAU,UAAU,UAAU,GAAM,GACvD,EAAE,cAAAC,IAAc,QAAAC,IAAQ,MAAAC,IAAM,cAAAC,IAAc,OAAAC,GAAU,IAAAC,IAEtDC,KAAuDC;AAAA,EAC3D,CAAC;AAAA,IACC,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,wBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,YAAAC;AAAA,IACA,cAAAC;AAAA,IACA,iBAAAC;AAAA,EAAA,MACI;AACE,UAAAC,IAAeC,EAAuB,IAAI,GAC1C,EAAE,aAAAC,GAAa,aAAAC,EAAY,IAAIC,GAA2BJ,CAAY,GAEtE;AAAA,MACJ,UAAAK;AAAA,MACA,kBAAkBC;AAAA,MAClB,WAAWC;AAAA,MACX,aAAaC;AAAA,MACb,OAAAC;AAAA,MACA,OAAAC;AAAA,MACA,aAAaC;AAAA,MACb,iBAAiBC;AAAA,MACjB,aAAAC;AAAA,MACA,iBAAiBC;AAAA,IACf,IAAAvB,GAEE,EAAE,QAAQwB,EAAe,IAAIC,GAAqBT,CAAQ,GAC1DU,IAAehB,EAAmC,IAAI,GAEtD;AAAA,MACJ,mBAAmBiB;AAAA,MACnB,YAAYC;AAAA,MACZ,wBAAwBC;AAAA,MACxB,WAAWC;AAAA,IACT,IAAAR,GAEES,IAAc7B,MAAc8B,GAAW,MACvCC,IAAcd,MAAUe,EAAiB,QACzCC,IAAkBhB,MAAUe,EAAiB,aAC7CE,IAAkBjB,MAAUe,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