@cuemath/leap 3.0.15 → 3.0.17-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 (422) hide show
  1. package/dist/assets/illustrations/illustrations.js +3 -0
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/illustrations/loader-1.svg.js +6 -0
  4. package/dist/assets/illustrations/loader-1.svg.js.map +1 -0
  5. package/dist/assets/line-icons/icons/apple-icon.js +48 -0
  6. package/dist/assets/line-icons/icons/apple-icon.js.map +1 -0
  7. package/dist/assets/line-icons/icons/google-icon.js +42 -0
  8. package/dist/assets/line-icons/icons/google-icon.js.map +1 -0
  9. package/dist/assets/lottie/lottie.js +11 -0
  10. package/dist/assets/lottie/lottie.js.map +1 -1
  11. package/dist/features/auth/account-selector/account-selector.js +43 -0
  12. package/dist/features/auth/account-selector/account-selector.js.map +1 -0
  13. package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js +12 -0
  14. package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js.map +1 -0
  15. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +12 -0
  16. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +1 -0
  17. package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js +18 -0
  18. package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js.map +1 -0
  19. package/dist/features/auth/comps/input-status-icon/input-status-icon.js +21 -0
  20. package/dist/features/auth/comps/input-status-icon/input-status-icon.js.map +1 -0
  21. package/dist/features/auth/comps/overlay-loader/overlay-loader-styled.js +29 -0
  22. package/dist/features/auth/comps/overlay-loader/overlay-loader-styled.js.map +1 -0
  23. package/dist/features/auth/comps/overlay-loader/overlay-loader.js +9 -0
  24. package/dist/features/auth/comps/overlay-loader/overlay-loader.js.map +1 -0
  25. package/dist/features/auth/comps/resend-otp/hooks/use-resend-timer.js +24 -0
  26. package/dist/features/auth/comps/resend-otp/hooks/use-resend-timer.js.map +1 -0
  27. package/dist/features/auth/comps/resend-otp/resend-otp.js +65 -0
  28. package/dist/features/auth/comps/resend-otp/resend-otp.js.map +1 -0
  29. package/dist/features/auth/comps/tabs/tab-tem/tab-item.js +23 -0
  30. package/dist/features/auth/comps/tabs/tab-tem/tab-item.js.map +1 -0
  31. package/dist/features/auth/comps/tabs/tabs-styled.js +23 -0
  32. package/dist/features/auth/comps/tabs/tabs-styled.js.map +1 -0
  33. package/dist/features/auth/comps/tabs/tabs.js +9 -0
  34. package/dist/features/auth/comps/tabs/tabs.js.map +1 -0
  35. package/dist/features/auth/forgot-password/forgot-password-styled.js +12 -0
  36. package/dist/features/auth/forgot-password/forgot-password-styled.js.map +1 -0
  37. package/dist/features/auth/forgot-password/otp-form/otp-form.js +66 -0
  38. package/dist/features/auth/forgot-password/otp-form/otp-form.js.map +1 -0
  39. package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js +101 -0
  40. package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js.map +1 -0
  41. package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js +68 -0
  42. package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js.map +1 -0
  43. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js +12 -0
  44. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js.map +1 -0
  45. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form.js +100 -0
  46. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form.js.map +1 -0
  47. package/dist/features/auth/login/login-constants.js +14 -0
  48. package/dist/features/auth/login/login-constants.js.map +1 -0
  49. package/dist/features/auth/login/social-account-not-found/social-account-not-found.js +32 -0
  50. package/dist/features/auth/login/social-account-not-found/social-account-not-found.js.map +1 -0
  51. package/dist/features/auth/login/social-login-methods/social-login-methods.js +47 -0
  52. package/dist/features/auth/login/social-login-methods/social-login-methods.js.map +1 -0
  53. package/dist/features/auth/login/username-password-form/username-password-form.js +98 -0
  54. package/dist/features/auth/login/username-password-form/username-password-form.js.map +1 -0
  55. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js +56 -0
  56. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js.map +1 -0
  57. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js +131 -0
  58. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +1 -0
  59. package/dist/features/auth/signup/claim-user-account/claim-user-account.js +53 -0
  60. package/dist/features/auth/signup/claim-user-account/claim-user-account.js.map +1 -0
  61. package/dist/features/auth/signup/custom-input-field/country-selector/country-code-button.js +34 -0
  62. package/dist/features/auth/signup/custom-input-field/country-selector/country-code-button.js.map +1 -0
  63. package/dist/features/auth/signup/custom-input-field/country-selector/country-list-menu.js +98 -0
  64. package/dist/features/auth/signup/custom-input-field/country-selector/country-list-menu.js.map +1 -0
  65. package/dist/features/auth/signup/custom-input-field/country-selector/country-selector-styled.js +57 -0
  66. package/dist/features/auth/signup/custom-input-field/country-selector/country-selector-styled.js.map +1 -0
  67. package/dist/features/auth/signup/custom-input-field/country-selector/country-selector.js +26 -0
  68. package/dist/features/auth/signup/custom-input-field/country-selector/country-selector.js.map +1 -0
  69. package/dist/features/auth/signup/custom-input-field/custom-input-field-styled.js +30 -0
  70. package/dist/features/auth/signup/custom-input-field/custom-input-field-styled.js.map +1 -0
  71. package/dist/features/auth/signup/custom-input-field/custom-input-field.js +100 -0
  72. package/dist/features/auth/signup/custom-input-field/custom-input-field.js.map +1 -0
  73. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input-styled.js +88 -0
  74. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input-styled.js.map +1 -0
  75. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input.js +43 -0
  76. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input.js.map +1 -0
  77. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input-styled.js +31 -0
  78. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input-styled.js.map +1 -0
  79. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input.js +31 -0
  80. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input.js.map +1 -0
  81. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper-styled.js +11 -0
  82. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper-styled.js.map +1 -0
  83. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js +29 -0
  84. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js.map +1 -0
  85. package/dist/features/auth/signup/custom-input-field/password-toggle/password-toggle.js +9 -0
  86. package/dist/features/auth/signup/custom-input-field/password-toggle/password-toggle.js.map +1 -0
  87. package/dist/features/auth/signup/signup-constants.js +1031 -0
  88. package/dist/features/auth/signup/signup-constants.js.map +1 -0
  89. package/dist/features/auth/signup/signup-methods/signup-methods.js +69 -0
  90. package/dist/features/auth/signup/signup-methods/signup-methods.js.map +1 -0
  91. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card-styled.js +19 -0
  92. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card-styled.js.map +1 -0
  93. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js +62 -0
  94. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js.map +1 -0
  95. package/dist/features/auth/signup/user-type-selector/user-type-selector-styled.js +24 -0
  96. package/dist/features/auth/signup/user-type-selector/user-type-selector-styled.js.map +1 -0
  97. package/dist/features/auth/signup/user-type-selector/user-type-selector.js +85 -0
  98. package/dist/features/auth/signup/user-type-selector/user-type-selector.js.map +1 -0
  99. package/dist/features/auth/user-list/user-item/user-item-styled.js +21 -0
  100. package/dist/features/auth/user-list/user-item/user-item-styled.js.map +1 -0
  101. package/dist/features/auth/user-list/user-item/user-item.js +48 -0
  102. package/dist/features/auth/user-list/user-item/user-item.js.map +1 -0
  103. package/dist/features/auth/user-list/user-list-styled.js +19 -0
  104. package/dist/features/auth/user-list/user-list-styled.js.map +1 -0
  105. package/dist/features/auth/user-list/user-list.js +56 -0
  106. package/dist/features/auth/user-list/user-list.js.map +1 -0
  107. package/dist/features/communication/pub-sub/constants.js +1 -0
  108. package/dist/features/communication/pub-sub/constants.js.map +1 -1
  109. package/dist/features/homework/homework-card.js +135 -143
  110. package/dist/features/homework/homework-card.js.map +1 -1
  111. package/dist/features/milestone/milestone-list-container/milestone-list-container.js +65 -64
  112. package/dist/features/milestone/milestone-list-container/milestone-list-container.js.map +1 -1
  113. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js +20 -20
  114. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js.map +1 -1
  115. package/dist/index.d.ts +294 -2
  116. package/dist/index.js +367 -321
  117. package/dist/index.js.map +1 -1
  118. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +332 -0
  119. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
  120. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +370 -0
  121. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
  122. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +252 -0
  123. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js.map +1 -0
  124. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +24 -0
  125. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js.map +1 -0
  126. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +192 -0
  127. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -0
  128. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +19 -0
  129. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
  130. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +129 -0
  131. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
  132. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +129 -0
  133. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
  134. package/dist/node_modules/clsx/dist/clsx.js +18 -0
  135. package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
  136. package/dist/node_modules/date-fns/subYears.js +9 -0
  137. package/dist/node_modules/date-fns/subYears.js.map +1 -0
  138. package/dist/node_modules/react-datepicker/dist/index.es.js +2700 -0
  139. package/dist/node_modules/react-datepicker/dist/index.es.js.map +1 -0
  140. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/addLeadingZeros.js +8 -0
  141. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/addLeadingZeros.js.map +1 -0
  142. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/defaultOptions.js +8 -0
  143. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/defaultOptions.js.map +1 -0
  144. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/formatters.js +518 -0
  145. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/formatters.js.map +1 -0
  146. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/lightFormatters.js +60 -0
  147. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/lightFormatters.js.map +1 -0
  148. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/longFormatters.js +53 -0
  149. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/longFormatters.js.map +1 -0
  150. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +19 -0
  151. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +1 -0
  152. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/normalizeDates.js +12 -0
  153. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/normalizeDates.js.map +1 -0
  154. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/protectedTokens.js +21 -0
  155. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/protectedTokens.js.map +1 -0
  156. package/dist/node_modules/react-datepicker/node_modules/date-fns/addDays.js +11 -0
  157. package/dist/node_modules/react-datepicker/node_modules/date-fns/addDays.js.map +1 -0
  158. package/dist/node_modules/react-datepicker/node_modules/date-fns/addHours.js +10 -0
  159. package/dist/node_modules/react-datepicker/node_modules/date-fns/addHours.js.map +1 -0
  160. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMilliseconds.js +10 -0
  161. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMilliseconds.js.map +1 -0
  162. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMinutes.js +11 -0
  163. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMinutes.js.map +1 -0
  164. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMonths.js +21 -0
  165. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMonths.js.map +1 -0
  166. package/dist/node_modules/react-datepicker/node_modules/date-fns/addQuarters.js +9 -0
  167. package/dist/node_modules/react-datepicker/node_modules/date-fns/addQuarters.js.map +1 -0
  168. package/dist/node_modules/react-datepicker/node_modules/date-fns/addSeconds.js +9 -0
  169. package/dist/node_modules/react-datepicker/node_modules/date-fns/addSeconds.js.map +1 -0
  170. package/dist/node_modules/react-datepicker/node_modules/date-fns/addWeeks.js +9 -0
  171. package/dist/node_modules/react-datepicker/node_modules/date-fns/addWeeks.js.map +1 -0
  172. package/dist/node_modules/react-datepicker/node_modules/date-fns/addYears.js +9 -0
  173. package/dist/node_modules/react-datepicker/node_modules/date-fns/addYears.js.map +1 -0
  174. package/dist/node_modules/react-datepicker/node_modules/date-fns/constants.js +10 -0
  175. package/dist/node_modules/react-datepicker/node_modules/date-fns/constants.js.map +1 -0
  176. package/dist/node_modules/react-datepicker/node_modules/date-fns/constructFrom.js +9 -0
  177. package/dist/node_modules/react-datepicker/node_modules/date-fns/constructFrom.js.map +1 -0
  178. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarDays.js +17 -0
  179. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarDays.js.map +1 -0
  180. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarMonths.js +14 -0
  181. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarMonths.js.map +1 -0
  182. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarQuarters.js +15 -0
  183. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarQuarters.js.map +1 -0
  184. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarYears.js +14 -0
  185. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarYears.js.map +1 -0
  186. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInDays.js +23 -0
  187. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInDays.js.map +1 -0
  188. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfDay.js +10 -0
  189. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfDay.js.map +1 -0
  190. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfMonth.js +10 -0
  191. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfMonth.js.map +1 -0
  192. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfWeek.js +12 -0
  193. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfWeek.js.map +1 -0
  194. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfYear.js +10 -0
  195. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfYear.js.map +1 -0
  196. package/dist/node_modules/react-datepicker/node_modules/date-fns/format.js +60 -0
  197. package/dist/node_modules/react-datepicker/node_modules/date-fns/format.js.map +1 -0
  198. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDate.js +9 -0
  199. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDate.js.map +1 -0
  200. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDay.js +9 -0
  201. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDay.js.map +1 -0
  202. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDayOfYear.js +12 -0
  203. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDayOfYear.js.map +1 -0
  204. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDaysInMonth.js +11 -0
  205. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDaysInMonth.js.map +1 -0
  206. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDefaultOptions.js +9 -0
  207. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDefaultOptions.js.map +1 -0
  208. package/dist/node_modules/react-datepicker/node_modules/date-fns/getHours.js +9 -0
  209. package/dist/node_modules/react-datepicker/node_modules/date-fns/getHours.js.map +1 -0
  210. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISODay.js +10 -0
  211. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISODay.js.map +1 -0
  212. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeek.js +13 -0
  213. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeek.js.map +1 -0
  214. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeekYear.js +16 -0
  215. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeekYear.js.map +1 -0
  216. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMinutes.js +9 -0
  217. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMinutes.js.map +1 -0
  218. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMonth.js +9 -0
  219. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMonth.js.map +1 -0
  220. package/dist/node_modules/react-datepicker/node_modules/date-fns/getQuarter.js +10 -0
  221. package/dist/node_modules/react-datepicker/node_modules/date-fns/getQuarter.js.map +1 -0
  222. package/dist/node_modules/react-datepicker/node_modules/date-fns/getSeconds.js +9 -0
  223. package/dist/node_modules/react-datepicker/node_modules/date-fns/getSeconds.js.map +1 -0
  224. package/dist/node_modules/react-datepicker/node_modules/date-fns/getTime.js +9 -0
  225. package/dist/node_modules/react-datepicker/node_modules/date-fns/getTime.js.map +1 -0
  226. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeek.js +13 -0
  227. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeek.js.map +1 -0
  228. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeekYear.js +18 -0
  229. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeekYear.js.map +1 -0
  230. package/dist/node_modules/react-datepicker/node_modules/date-fns/getYear.js +9 -0
  231. package/dist/node_modules/react-datepicker/node_modules/date-fns/getYear.js.map +1 -0
  232. package/dist/node_modules/react-datepicker/node_modules/date-fns/isAfter.js +9 -0
  233. package/dist/node_modules/react-datepicker/node_modules/date-fns/isAfter.js.map +1 -0
  234. package/dist/node_modules/react-datepicker/node_modules/date-fns/isBefore.js +9 -0
  235. package/dist/node_modules/react-datepicker/node_modules/date-fns/isBefore.js.map +1 -0
  236. package/dist/node_modules/react-datepicker/node_modules/date-fns/isDate.js +8 -0
  237. package/dist/node_modules/react-datepicker/node_modules/date-fns/isDate.js.map +1 -0
  238. package/dist/node_modules/react-datepicker/node_modules/date-fns/isEqual.js +9 -0
  239. package/dist/node_modules/react-datepicker/node_modules/date-fns/isEqual.js.map +1 -0
  240. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameDay.js +15 -0
  241. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameDay.js.map +1 -0
  242. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameMonth.js +14 -0
  243. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameMonth.js.map +1 -0
  244. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameQuarter.js +15 -0
  245. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameQuarter.js.map +1 -0
  246. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameYear.js +14 -0
  247. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameYear.js.map +1 -0
  248. package/dist/node_modules/react-datepicker/node_modules/date-fns/isValid.js +10 -0
  249. package/dist/node_modules/react-datepicker/node_modules/date-fns/isValid.js.map +1 -0
  250. package/dist/node_modules/react-datepicker/node_modules/date-fns/isWithinInterval.js +13 -0
  251. package/dist/node_modules/react-datepicker/node_modules/date-fns/isWithinInterval.js.map +1 -0
  252. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +10 -0
  253. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +1 -0
  254. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +19 -0
  255. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +1 -0
  256. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchFn.js +32 -0
  257. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +1 -0
  258. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +16 -0
  259. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +1 -0
  260. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +71 -0
  261. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +1 -0
  262. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatLong.js +34 -0
  263. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +1 -0
  264. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +12 -0
  265. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +1 -0
  266. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/localize.js +156 -0
  267. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/localize.js.map +1 -0
  268. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/match.js +111 -0
  269. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/match.js.map +1 -0
  270. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US.js +22 -0
  271. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US.js.map +1 -0
  272. package/dist/node_modules/react-datepicker/node_modules/date-fns/max.js +15 -0
  273. package/dist/node_modules/react-datepicker/node_modules/date-fns/max.js.map +1 -0
  274. package/dist/node_modules/react-datepicker/node_modules/date-fns/min.js +15 -0
  275. package/dist/node_modules/react-datepicker/node_modules/date-fns/min.js.map +1 -0
  276. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Parser.js +23 -0
  277. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Parser.js.map +1 -0
  278. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Setter.js +42 -0
  279. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Setter.js.map +1 -0
  280. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/constants.js +50 -0
  281. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/constants.js.map +1 -0
  282. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +50 -0
  283. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js.map +1 -0
  284. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +50 -0
  285. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js.map +1 -0
  286. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DateParser.js +62 -0
  287. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DateParser.js.map +1 -0
  288. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +52 -0
  289. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js.map +1 -0
  290. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayParser.js +46 -0
  291. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayParser.js.map +1 -0
  292. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +50 -0
  293. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js.map +1 -0
  294. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/EraParser.js +31 -0
  295. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/EraParser.js.map +1 -0
  296. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +22 -0
  297. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js.map +1 -0
  298. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +23 -0
  299. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js.map +1 -0
  300. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +33 -0
  301. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js.map +1 -0
  302. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +33 -0
  303. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js.map +1 -0
  304. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +34 -0
  305. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js.map +1 -0
  306. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +34 -0
  307. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js.map +1 -0
  308. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +100 -0
  309. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js.map +1 -0
  310. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +49 -0
  311. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js.map +1 -0
  312. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +49 -0
  313. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js.map +1 -0
  314. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +50 -0
  315. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js.map +1 -0
  316. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +41 -0
  317. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js.map +1 -0
  318. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +75 -0
  319. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js.map +1 -0
  320. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +49 -0
  321. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js.map +1 -0
  322. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +70 -0
  323. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js.map +1 -0
  324. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +33 -0
  325. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js.map +1 -0
  326. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +72 -0
  327. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MonthParser.js.map +1 -0
  328. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +71 -0
  329. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js.map +1 -0
  330. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +33 -0
  331. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/SecondParser.js.map +1 -0
  332. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +75 -0
  333. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js.map +1 -0
  334. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +72 -0
  335. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js.map +1 -0
  336. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +71 -0
  337. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js.map +1 -0
  338. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +23 -0
  339. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js.map +1 -0
  340. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +23 -0
  341. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js.map +1 -0
  342. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/YearParser.js +50 -0
  343. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/YearParser.js.map +1 -0
  344. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers.js +68 -0
  345. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers.js.map +1 -0
  346. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/utils.js +104 -0
  347. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/utils.js.map +1 -0
  348. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse.js +88 -0
  349. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse.js.map +1 -0
  350. package/dist/node_modules/react-datepicker/node_modules/date-fns/parseISO.js +123 -0
  351. package/dist/node_modules/react-datepicker/node_modules/date-fns/parseISO.js.map +1 -0
  352. package/dist/node_modules/react-datepicker/node_modules/date-fns/setDay.js +13 -0
  353. package/dist/node_modules/react-datepicker/node_modules/date-fns/setDay.js.map +1 -0
  354. package/dist/node_modules/react-datepicker/node_modules/date-fns/setHours.js +10 -0
  355. package/dist/node_modules/react-datepicker/node_modules/date-fns/setHours.js.map +1 -0
  356. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISODay.js +12 -0
  357. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISODay.js.map +1 -0
  358. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISOWeek.js +11 -0
  359. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISOWeek.js.map +1 -0
  360. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMinutes.js +10 -0
  361. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMinutes.js.map +1 -0
  362. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMonth.js +14 -0
  363. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMonth.js.map +1 -0
  364. package/dist/node_modules/react-datepicker/node_modules/date-fns/setQuarter.js +11 -0
  365. package/dist/node_modules/react-datepicker/node_modules/date-fns/setQuarter.js.map +1 -0
  366. package/dist/node_modules/react-datepicker/node_modules/date-fns/setSeconds.js +10 -0
  367. package/dist/node_modules/react-datepicker/node_modules/date-fns/setSeconds.js.map +1 -0
  368. package/dist/node_modules/react-datepicker/node_modules/date-fns/setWeek.js +11 -0
  369. package/dist/node_modules/react-datepicker/node_modules/date-fns/setWeek.js.map +1 -0
  370. package/dist/node_modules/react-datepicker/node_modules/date-fns/setYear.js +11 -0
  371. package/dist/node_modules/react-datepicker/node_modules/date-fns/setYear.js.map +1 -0
  372. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfDay.js +10 -0
  373. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfDay.js.map +1 -0
  374. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeek.js +9 -0
  375. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeek.js.map +1 -0
  376. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeekYear.js +12 -0
  377. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeekYear.js.map +1 -0
  378. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfMonth.js +10 -0
  379. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfMonth.js.map +1 -0
  380. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfQuarter.js +10 -0
  381. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfQuarter.js.map +1 -0
  382. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeek.js +12 -0
  383. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeek.js.map +1 -0
  384. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeekYear.js +14 -0
  385. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeekYear.js.map +1 -0
  386. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfYear.js +10 -0
  387. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfYear.js.map +1 -0
  388. package/dist/node_modules/react-datepicker/node_modules/date-fns/subDays.js +9 -0
  389. package/dist/node_modules/react-datepicker/node_modules/date-fns/subDays.js.map +1 -0
  390. package/dist/node_modules/react-datepicker/node_modules/date-fns/subMonths.js +9 -0
  391. package/dist/node_modules/react-datepicker/node_modules/date-fns/subMonths.js.map +1 -0
  392. package/dist/node_modules/react-datepicker/node_modules/date-fns/subQuarters.js +9 -0
  393. package/dist/node_modules/react-datepicker/node_modules/date-fns/subQuarters.js.map +1 -0
  394. package/dist/node_modules/react-datepicker/node_modules/date-fns/subWeeks.js +9 -0
  395. package/dist/node_modules/react-datepicker/node_modules/date-fns/subWeeks.js.map +1 -0
  396. package/dist/node_modules/react-datepicker/node_modules/date-fns/subYears.js +9 -0
  397. package/dist/node_modules/react-datepicker/node_modules/date-fns/subYears.js.map +1 -0
  398. package/dist/node_modules/react-datepicker/node_modules/date-fns/toDate.js +9 -0
  399. package/dist/node_modules/react-datepicker/node_modules/date-fns/toDate.js.map +1 -0
  400. package/dist/node_modules/react-datepicker/node_modules/date-fns/transpose.js +19 -0
  401. package/dist/node_modules/react-datepicker/node_modules/date-fns/transpose.js.map +1 -0
  402. package/dist/static/avatar-selected.860ee923.json +1 -0
  403. package/dist/static/circle-cuemath-logo-white.e9fafb91.svg +1 -0
  404. package/dist/static/cuemath-app-qr-code.4beefe48.svg +1 -0
  405. package/dist/static/cuemath-app-qr-code.ba6cc09b.svg +1 -0
  406. package/dist/static/cuemath-app-qr-code.d0912fc7.png +0 -0
  407. package/dist/static/dob.9ce3c15b.json +1 -0
  408. package/dist/static/error.cbe1ddde.json +1 -0
  409. package/dist/static/grade.b3730524.json +1 -0
  410. package/dist/static/key.d6846476.json +1 -0
  411. package/dist/static/mail.c30e8708.json +1 -0
  412. package/dist/static/otp.2d08f874.json +1 -0
  413. package/dist/static/otp.a3029760.json +1 -0
  414. package/dist/static/parent-avatar.772d53e0.json +1 -0
  415. package/dist/static/phone-number.0be312ea.json +1 -0
  416. package/dist/static/phone-number.84f55562.json +1 -0
  417. package/dist/static/student-avatar.524226bd.json +1 -0
  418. package/dist/static/user-type-selector-grid-bg.3c9c8ad6.svg +1 -0
  419. package/dist/static/user-type-selector-grid-bg.3ce8142d.svg +1 -0
  420. package/dist/static/user-type-selector-grid-bg.aad0b059.svg +1 -0
  421. package/dist/static/username.9e034d51.json +1 -0
  422. package/package.json +3 -2
@@ -1,268 +1,260 @@
1
- import { jsxs as x, jsx as r } from "react/jsx-runtime";
2
- import { memo as D, useRef as M, useCallback as b, useMemo as N } from "react";
3
- import X from "../../assets/line-icons/icons/eye2.js";
4
- import ee from "../../assets/line-icons/icons/home2.js";
5
- import re from "../../assets/line-icons/icons/more-vertical.js";
6
- import H from "../../assets/line-icons/icons/redo.js";
7
- import I from "../ui/arrow-tooltip/arrow-tooltip.js";
8
- import te from "../ui/buttons/clickable/clickable.js";
9
- import j from "../ui/hooks/use-context-menu-click-handler.js";
10
- import ie from "../ui/layout/flex-view.js";
11
- import F from "./card-menu-options.js";
12
- import ne from "./homework-card-view.js";
13
- import { CardContainer as ce, MenuWrapper as oe, CardKebabMenuWrapper as ae, BlurContainer as se, BlurFlexView as le, StyledMinus2Icon as ue } from "./styles.js";
1
+ import { jsxs as O, jsx as t } from "react/jsx-runtime";
2
+ import { memo as N, useRef as T, useCallback as w, useMemo as ee } from "react";
3
+ import W from "../../assets/line-icons/icons/eye2.js";
4
+ import re from "../../assets/line-icons/icons/home2.js";
5
+ import te from "../../assets/line-icons/icons/more-vertical.js";
6
+ import x from "../../assets/line-icons/icons/redo.js";
7
+ import X from "../ui/arrow-tooltip/arrow-tooltip.js";
8
+ import ie from "../ui/buttons/clickable/clickable.js";
9
+ import H from "../ui/hooks/use-context-menu-click-handler.js";
10
+ import ne from "../ui/layout/flex-view.js";
11
+ import j from "./card-menu-options.js";
12
+ import ce from "./homework-card-view.js";
13
+ import { CardContainer as oe, MenuWrapper as se, CardKebabMenuWrapper as ae, BlurContainer as le, BlurFlexView as ue, StyledMinus2Icon as de } from "./styles.js";
14
14
  import { getCardAnalyticProps as he } from "./utils.js";
15
- const de = ({
15
+ const me = ({
16
16
  // callbacks
17
17
  nodeData: e,
18
- onNodeAttempt: C,
19
- onNodeReattempt: h,
18
+ onNodeAttempt: b,
19
+ onNodeReattempt: u,
20
20
  onNodeReview: n,
21
21
  onNodeUnassign: d,
22
- onNodeView: k,
23
- onNodeAssignAsHomework: m,
24
- header: L,
25
- isInQueue: v,
26
- renderAs: P,
27
- shouldOpenOnRight: B,
28
- studentId: g,
29
- subHeader: z,
30
- userMilestoneId: t,
31
- userType: R
22
+ onNodeView: C,
23
+ onNodeAssignAsHomework: h,
24
+ header: F,
25
+ isInQueue: $,
26
+ renderAs: L,
27
+ shouldOpenOnRight: P,
28
+ studentId: E,
29
+ subHeader: B,
30
+ userMilestoneId: z,
31
+ userType: I
32
32
  }) => {
33
- const i = P === "homework", {
34
- node_type: _,
33
+ const i = L === "homework", {
34
+ node_type: k,
35
35
  state: K,
36
36
  permissions: Y,
37
37
  user_node_id: c,
38
- user_milestone_id: l,
38
+ user_milestone_id: q,
39
39
  homework_id: o
40
- } = e, y = M(null), $ = M(null), { menuVisible: V, onMenuClick: q } = j(y), { menuVisible: G, onMenuClick: S } = j($), {
41
- can_start: f,
42
- can_resume: p,
43
- can_review: a,
44
- can_unassign: J,
45
- can_reset: O,
46
- can_assign_as_homework: Z
47
- } = Y, u = R === "STUDENT", w = b(() => {
48
- if (a) {
40
+ } = e, r = z || q || "", _ = T(null), y = T(null), { menuVisible: v, onMenuClick: G } = H(_), { menuVisible: J, onMenuClick: g } = H(y), {
41
+ can_start: m,
42
+ can_resume: f,
43
+ can_review: s,
44
+ can_unassign: Z,
45
+ can_reset: R,
46
+ can_assign_as_homework: Q
47
+ } = Y, l = I === "STUDENT", p = w(() => {
48
+ if (s) {
49
49
  if (typeof n != "function")
50
50
  throw new Error("onReview must be a function");
51
51
  if (!c)
52
52
  throw new Error("user node id must be present to review the sheet");
53
- n(e, t);
53
+ n(e, r);
54
54
  return;
55
55
  }
56
- }, [a, n, c, e, t]), Q = b(() => {
57
- if (f || p) {
58
- if (typeof C != "function")
56
+ }, [s, n, c, e, r]), A = w(() => {
57
+ if (m || f) {
58
+ if (typeof b != "function")
59
59
  throw new Error("onNodeAttempt must be a function");
60
- C(e, o);
60
+ b(e, r, o);
61
61
  return;
62
62
  }
63
63
  if (!i) {
64
- S();
64
+ g();
65
65
  return;
66
66
  }
67
- w();
67
+ p();
68
68
  }, [
69
+ m,
69
70
  f,
70
- p,
71
71
  i,
72
- w,
73
- C,
72
+ p,
73
+ b,
74
74
  e,
75
+ r,
75
76
  o,
76
- S
77
- ]), E = b(() => {
78
- if (a) {
77
+ g
78
+ ]), M = w(() => {
79
+ if (s) {
79
80
  if (typeof n != "function")
80
81
  throw new Error("onNodeReview must be a function");
81
82
  if (!c)
82
83
  throw new Error("user node id must be present to review the sheet");
83
- n(e, t || l, o);
84
+ n(e, r, o);
84
85
  return;
85
86
  }
86
- if (typeof k != "function")
87
+ if (typeof C != "function")
87
88
  throw new Error("onNodeView must be a function");
88
- k(e, t || l);
89
- }, [
90
- a,
91
- k,
92
- e,
93
- t,
94
- l,
95
- n,
96
- c,
97
- o
98
- ]), s = b(
99
- (W) => {
100
- switch (W) {
89
+ C(e, r);
90
+ }, [s, C, e, r, n, c, o]), a = w(
91
+ (S) => {
92
+ switch (S) {
101
93
  case "teacher-card-view":
102
- E();
94
+ M();
103
95
  return;
104
96
  case "student-card-view":
105
- w();
97
+ p();
106
98
  return;
107
99
  case "teacher-card-unassign":
108
- d == null || d(e, t);
100
+ d == null || d(e, r);
109
101
  return;
110
102
  case "student-card-reattempt":
111
103
  case "teacher-card-redo":
112
- h == null || h(e, t);
104
+ u == null || u(e, r);
113
105
  return;
114
106
  case "teacher-card-assign-as-hw":
115
- m == null || m(e, t);
107
+ h == null || h(e, r);
116
108
  return;
117
109
  default:
118
- throw new Error(`No callback function for ${W}`);
110
+ throw new Error(`No callback function for ${S}`);
119
111
  }
120
112
  },
121
113
  [
122
114
  e,
123
- m,
124
115
  h,
116
+ u,
125
117
  d,
126
- w,
127
- E,
128
- t
118
+ p,
119
+ M,
120
+ r
129
121
  ]
130
- ), A = [
122
+ ), U = [
131
123
  {
132
124
  id: "teacher-card-view",
133
- label: a ? "Review" : "View",
134
- icon: X,
125
+ label: s ? "Review" : "View",
126
+ icon: W,
135
127
  disabled: !1,
136
- onClick: s
128
+ onClick: a
137
129
  },
138
130
  {
139
131
  id: "teacher-card-unassign",
140
132
  label: "Unassign",
141
- icon: ue,
142
- disabled: i ? _ === "MASTERY" : !J,
143
- onClick: s
133
+ icon: de,
134
+ disabled: i ? k === "MASTERY" : !Z,
135
+ onClick: a
144
136
  },
145
137
  {
146
138
  id: "teacher-card-redo",
147
139
  label: "Redo",
148
- icon: H,
149
- disabled: !O,
150
- onClick: s
140
+ icon: x,
141
+ disabled: !R,
142
+ onClick: a
151
143
  },
152
144
  {
153
145
  id: "teacher-card-assign-as-hw",
154
146
  label: "Assign as HW",
155
- icon: ee,
156
- disabled: !Z,
157
- onClick: s
147
+ icon: re,
148
+ disabled: !Q,
149
+ onClick: a
158
150
  }
159
- ], U = [
151
+ ], D = [
160
152
  {
161
153
  id: "student-card-view",
162
154
  label: "Review",
163
- icon: X,
164
- disabled: !a,
165
- onClick: s
155
+ icon: W,
156
+ disabled: !s,
157
+ onClick: a
166
158
  },
167
159
  {
168
160
  id: "student-card-reattempt",
169
161
  label: "Reattempt",
170
- icon: H,
171
- disabled: !O,
172
- onClick: s
162
+ icon: x,
163
+ disabled: !R,
164
+ onClick: a
173
165
  }
174
- ], T = N(
166
+ ], V = ee(
175
167
  () => he({
176
- canResume: p,
177
- canStart: f,
168
+ canResume: f,
169
+ canStart: m,
178
170
  homeworkId: o,
179
171
  isHomeWork: i,
180
- isStudent: u,
181
- milestoneId: l,
182
- nodeType: _,
183
- studentId: g,
172
+ isStudent: l,
173
+ milestoneId: r,
174
+ nodeType: k,
175
+ studentId: E,
184
176
  userNodeId: c
185
177
  }),
186
178
  [
187
- u,
179
+ l,
188
180
  i,
189
- g,
190
- _,
181
+ E,
182
+ k,
183
+ m,
191
184
  f,
192
- p,
193
185
  o,
194
186
  c,
195
- l
187
+ r
196
188
  ]
197
189
  );
198
- return /* @__PURE__ */ x(ce, { $position: "relative", $width: "fit-content", children: [
199
- /* @__PURE__ */ r(
200
- te,
190
+ return /* @__PURE__ */ O(oe, { $position: "relative", $width: "fit-content", children: [
191
+ /* @__PURE__ */ t(
192
+ ie,
201
193
  {
202
- onClick: u ? Q : E,
194
+ onClick: l ? A : M,
203
195
  label: "homework-card",
204
- analyticsLabel: T.analyticsLabel,
205
- analyticsProps: T.analyticsProps,
206
- children: /* @__PURE__ */ r(
207
- ne,
196
+ analyticsLabel: V.analyticsLabel,
197
+ analyticsProps: V.analyticsProps,
198
+ children: /* @__PURE__ */ t(
199
+ ce,
208
200
  {
209
- header: L,
210
- isInQueue: v,
201
+ header: F,
202
+ isInQueue: $,
211
203
  nodeData: e,
212
- studentContainerRef: $,
213
- subHeader: z,
214
- userType: R
204
+ studentContainerRef: y,
205
+ subHeader: B,
206
+ userType: I
215
207
  }
216
208
  )
217
209
  }
218
210
  ),
219
- u && !i && /* @__PURE__ */ r(
220
- F,
211
+ l && !i && /* @__PURE__ */ t(
212
+ j,
221
213
  {
222
214
  $width: 200,
223
- options: U,
224
- triggerRef: $,
225
- visible: G,
215
+ options: D,
216
+ triggerRef: y,
217
+ visible: J,
226
218
  shouldOpenOnRight: !1
227
219
  }
228
220
  ),
229
- !u && /* @__PURE__ */ x(oe, { $position: "absolute", $width: "fit-content", $borderRadiusX: 2, children: [
230
- /* @__PURE__ */ r(
231
- I,
221
+ !l && /* @__PURE__ */ O(se, { $position: "absolute", $width: "fit-content", $borderRadiusX: 2, children: [
222
+ /* @__PURE__ */ t(
223
+ X,
232
224
  {
233
225
  renderAs: "primary",
234
226
  tooltipItem: "Review",
235
227
  position: "bottom",
236
228
  zIndex: 6,
237
229
  parentWidth: "100%",
238
- hidden: V || K !== "WAIT_FOR_REVIEW" && i,
239
- children: /* @__PURE__ */ r(
230
+ hidden: v || K !== "WAIT_FOR_REVIEW" && i,
231
+ children: /* @__PURE__ */ t(
240
232
  ae,
241
233
  {
242
234
  $alignItems: "center",
243
235
  $justifyContent: "center",
244
- ref: y,
245
- onClick: q,
246
- children: /* @__PURE__ */ r(re, { width: 16, height: 16 })
236
+ ref: _,
237
+ onClick: G,
238
+ children: /* @__PURE__ */ t(te, { width: 16, height: 16 })
247
239
  }
248
240
  )
249
241
  }
250
242
  ),
251
- /* @__PURE__ */ r(
252
- F,
243
+ /* @__PURE__ */ t(
244
+ j,
253
245
  {
254
- options: A,
255
- triggerRef: y,
256
- visible: V,
257
- shouldOpenOnRight: B,
246
+ options: U,
247
+ triggerRef: _,
248
+ visible: v,
249
+ shouldOpenOnRight: P,
258
250
  $width: 144
259
251
  }
260
252
  )
261
253
  ] }),
262
- v && /* @__PURE__ */ r(se, { $background: "WHITE_5", children: /* @__PURE__ */ r(le, { $heightX: 1, $widthX: 6, children: /* @__PURE__ */ r(I, { renderAs: "primary", tooltipItem: "Not visible to student", position: "bottom", children: /* @__PURE__ */ r(ie, { $heightX: 1, $widthX: 6 }) }) }) })
254
+ $ && /* @__PURE__ */ t(le, { $background: "WHITE_5", children: /* @__PURE__ */ t(ue, { $heightX: 1, $widthX: 6, children: /* @__PURE__ */ t(X, { renderAs: "primary", tooltipItem: "Not visible to student", position: "bottom", children: /* @__PURE__ */ t(ne, { $heightX: 1, $widthX: 6 }) }) }) })
263
255
  ] });
264
- }, Ve = D(de);
256
+ }, Re = N(me);
265
257
  export {
266
- Ve as default
258
+ Re as default
267
259
  };
268
260
  //# sourceMappingURL=homework-card.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"homework-card.js","sources":["../../../src/features/homework/homework-card.tsx"],"sourcesContent":["import type {\n INodeCardCallbacks,\n INodeDataProps,\n} from '../chapters-v2/comps/node-card/node-card-types';\nimport type { TUserTypes } from '../ui/types';\n\nimport { memo, useCallback, useMemo, useRef } from 'react';\n\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 Clickable from '../ui/buttons/clickable/clickable';\nimport useContextMenuClickHandler from '../ui/hooks/use-context-menu-click-handler';\nimport FlexView from '../ui/layout/flex-view';\nimport CardMenuOptions from './card-menu-options';\nimport HomeworkView from './homework-card-view';\nimport * as Styled from './styles';\nimport { getCardAnalyticProps } from './utils';\n\ninterface IHomeworkCardProps extends INodeCardCallbacks {\n header: string;\n nodeData: INodeDataProps;\n subHeader: string;\n userType: TUserTypes;\n studentId: string;\n userMilestoneId?: string;\n renderAs: 'homework' | 'milestone';\n shouldOpenOnRight: boolean;\n isInQueue?: boolean;\n}\n\nconst HomeworkCard = ({\n // callbacks\n nodeData,\n onNodeAttempt,\n onNodeReattempt,\n onNodeReview,\n onNodeUnassign,\n onNodeView,\n onNodeAssignAsHomework,\n\n header,\n isInQueue,\n renderAs,\n shouldOpenOnRight,\n studentId,\n subHeader,\n userMilestoneId,\n userType,\n}: IHomeworkCardProps) => {\n const isHomeWork = renderAs === 'homework';\n const {\n node_type: nodeType,\n state,\n permissions,\n user_node_id: userNodeId,\n user_milestone_id: milestoneId,\n homework_id: homeworkId,\n } = nodeData;\n\n const teacherContainerRef = useRef<HTMLDivElement>(null);\n const studentContainerRef = useRef<HTMLDivElement>(null);\n const { menuVisible: teacherMenuVisible, onMenuClick: onTeacherMenuClick } =\n useContextMenuClickHandler(teacherContainerRef);\n const { menuVisible: studentMenuVisible, onMenuClick: onStudentMenuClick } =\n useContextMenuClickHandler(studentContainerRef);\n\n const {\n can_start: canStart,\n can_resume: canResume,\n can_review: canReview,\n can_unassign: canUnassign,\n can_reset: canReset,\n can_assign_as_homework: canAssignAsHw,\n } = permissions;\n const isStudent = userType === 'STUDENT';\n\n const onStudentViewSheet = useCallback(() => {\n if (canReview) {\n if (typeof onNodeReview !== 'function') {\n throw new Error('onReview must be a function');\n }\n\n if (!userNodeId) {\n throw new Error('user node id must be present to review the sheet');\n }\n onNodeReview(nodeData, userMilestoneId);\n\n return;\n }\n }, [canReview, onNodeReview, userNodeId, nodeData, userMilestoneId]);\n\n const onStudentCardClick = useCallback(() => {\n if (canStart || canResume) {\n if (typeof onNodeAttempt !== 'function') {\n throw new Error('onNodeAttempt must be a function');\n }\n\n onNodeAttempt(nodeData, homeworkId);\n\n return;\n }\n\n if (!isHomeWork) {\n onStudentMenuClick();\n\n return;\n }\n onStudentViewSheet();\n }, [\n canStart,\n canResume,\n isHomeWork,\n onStudentViewSheet,\n onNodeAttempt,\n nodeData,\n homeworkId,\n onStudentMenuClick,\n ]);\n\n const onTeacherCardClick = useCallback(() => {\n if (canReview) {\n if (typeof onNodeReview !== 'function') {\n throw new Error('onNodeReview must be a function');\n }\n\n if (!userNodeId) {\n throw new Error('user node id must be present to review the sheet');\n }\n onNodeReview(nodeData, userMilestoneId || milestoneId, homeworkId);\n\n return;\n }\n\n if (typeof onNodeView !== 'function') {\n throw new Error('onNodeView must be a function');\n }\n\n onNodeView(nodeData, userMilestoneId || milestoneId);\n }, [\n canReview,\n onNodeView,\n nodeData,\n userMilestoneId,\n milestoneId,\n onNodeReview,\n userNodeId,\n homeworkId,\n ]);\n\n const handleOnMenuOptionClick = useCallback(\n (optionId: string) => {\n switch (optionId) {\n case 'teacher-card-view':\n onTeacherCardClick();\n\n return;\n case 'student-card-view':\n onStudentViewSheet();\n\n return;\n case 'teacher-card-unassign':\n onNodeUnassign?.(nodeData, userMilestoneId);\n\n return;\n case 'student-card-reattempt':\n case 'teacher-card-redo':\n onNodeReattempt?.(nodeData, userMilestoneId);\n\n return;\n\n case 'teacher-card-assign-as-hw':\n onNodeAssignAsHomework?.(nodeData, userMilestoneId);\n\n return;\n\n default:\n throw new Error(`No callback function for ${optionId}`);\n }\n },\n [\n nodeData,\n onNodeAssignAsHomework,\n onNodeReattempt,\n onNodeUnassign,\n onStudentViewSheet,\n onTeacherCardClick,\n userMilestoneId,\n ],\n );\n\n const teacherOptions = [\n {\n id: 'teacher-card-view',\n label: canReview ? 'Review' : 'View',\n icon: Eye2Icon,\n disabled: false,\n onClick: handleOnMenuOptionClick,\n },\n {\n id: 'teacher-card-unassign',\n label: 'Unassign',\n icon: Styled.StyledMinus2Icon,\n disabled: isHomeWork ? nodeType === 'MASTERY' : !canUnassign,\n onClick: handleOnMenuOptionClick,\n },\n {\n id: 'teacher-card-redo',\n label: 'Redo',\n icon: RedoIcon,\n disabled: !canReset,\n onClick: handleOnMenuOptionClick,\n },\n {\n id: 'teacher-card-assign-as-hw',\n label: 'Assign as HW',\n icon: Home2Icon,\n disabled: !canAssignAsHw,\n onClick: handleOnMenuOptionClick,\n },\n ];\n\n const studentOptions = [\n {\n id: 'student-card-view',\n label: 'Review',\n icon: Eye2Icon,\n disabled: !canReview,\n onClick: handleOnMenuOptionClick,\n },\n {\n id: 'student-card-reattempt',\n label: 'Reattempt',\n icon: RedoIcon,\n disabled: !canReset,\n onClick: handleOnMenuOptionClick,\n },\n ];\n\n const analyticsLabel = useMemo(\n () =>\n getCardAnalyticProps({\n canResume,\n canStart,\n homeworkId,\n isHomeWork,\n isStudent,\n milestoneId,\n nodeType,\n studentId,\n userNodeId,\n }),\n [\n isStudent,\n isHomeWork,\n studentId,\n nodeType,\n canStart,\n canResume,\n homeworkId,\n userNodeId,\n milestoneId,\n ],\n );\n\n return (\n <Styled.CardContainer $position=\"relative\" $width=\"fit-content\">\n <Clickable\n onClick={isStudent ? onStudentCardClick : onTeacherCardClick}\n label=\"homework-card\"\n analyticsLabel={analyticsLabel.analyticsLabel}\n analyticsProps={analyticsLabel.analyticsProps}\n >\n <HomeworkView\n header={header}\n isInQueue={isInQueue}\n nodeData={nodeData}\n studentContainerRef={studentContainerRef}\n subHeader={subHeader}\n userType={userType}\n />\n </Clickable>\n {isStudent && !isHomeWork && (\n <CardMenuOptions\n $width={200}\n options={studentOptions}\n triggerRef={studentContainerRef}\n visible={studentMenuVisible}\n shouldOpenOnRight={false}\n />\n )}\n {!isStudent && (\n <Styled.MenuWrapper $position=\"absolute\" $width=\"fit-content\" $borderRadiusX={2}>\n <ArrowTooltip\n renderAs=\"primary\"\n tooltipItem=\"Review\"\n position=\"bottom\"\n zIndex={6}\n parentWidth=\"100%\"\n hidden={teacherMenuVisible || (state !== 'WAIT_FOR_REVIEW' && isHomeWork)}\n >\n <Styled.CardKebabMenuWrapper\n $alignItems=\"center\"\n $justifyContent=\"center\"\n ref={teacherContainerRef}\n onClick={onTeacherMenuClick}\n >\n <MoreVerticalIcon width={16} height={16} />\n </Styled.CardKebabMenuWrapper>\n </ArrowTooltip>\n <CardMenuOptions\n options={teacherOptions}\n triggerRef={teacherContainerRef}\n visible={teacherMenuVisible}\n shouldOpenOnRight={shouldOpenOnRight}\n $width={144}\n />\n </Styled.MenuWrapper>\n )}\n {isInQueue && (\n <Styled.BlurContainer $background=\"WHITE_5\">\n <Styled.BlurFlexView $heightX={1} $widthX={6}>\n <ArrowTooltip renderAs=\"primary\" tooltipItem=\"Not visible to student\" position=\"bottom\">\n <FlexView $heightX={1} $widthX={6} />\n </ArrowTooltip>\n </Styled.BlurFlexView>\n </Styled.BlurContainer>\n )}\n </Styled.CardContainer>\n );\n};\n\nexport default memo(HomeworkCard);\n"],"names":["HomeworkCard","nodeData","onNodeAttempt","onNodeReattempt","onNodeReview","onNodeUnassign","onNodeView","onNodeAssignAsHomework","header","isInQueue","renderAs","shouldOpenOnRight","studentId","subHeader","userMilestoneId","userType","isHomeWork","nodeType","state","permissions","userNodeId","milestoneId","homeworkId","teacherContainerRef","useRef","studentContainerRef","teacherMenuVisible","onTeacherMenuClick","useContextMenuClickHandler","studentMenuVisible","onStudentMenuClick","canStart","canResume","canReview","canUnassign","canReset","canAssignAsHw","isStudent","onStudentViewSheet","useCallback","onStudentCardClick","onTeacherCardClick","handleOnMenuOptionClick","optionId","teacherOptions","Eye2Icon","Styled.StyledMinus2Icon","RedoIcon","Home2Icon","studentOptions","analyticsLabel","useMemo","getCardAnalyticProps","Styled.CardContainer","jsx","Clickable","HomeworkView","CardMenuOptions","jsxs","Styled.MenuWrapper","ArrowTooltip","Styled.CardKebabMenuWrapper","MoreVerticalIcon","Styled.BlurContainer","Styled.BlurFlexView","FlexView","HomeworkCard$1","memo"],"mappings":";;;;;;;;;;;;;;AAiCA,MAAMA,KAAe,CAAC;AAAA;AAAA,EAEpB,UAAAC;AAAA,EACA,eAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,wBAAAC;AAAA,EAEA,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,WAAAC;AAAA,EACA,WAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,UAAAC;AACF,MAA0B;AACxB,QAAMC,IAAaN,MAAa,YAC1B;AAAA,IACJ,WAAWO;AAAA,IACX,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,cAAcC;AAAA,IACd,mBAAmBC;AAAA,IACnB,aAAaC;AAAA,EACX,IAAArB,GAEEsB,IAAsBC,EAAuB,IAAI,GACjDC,IAAsBD,EAAuB,IAAI,GACjD,EAAE,aAAaE,GAAoB,aAAaC,MACpDC,EAA2BL,CAAmB,GAC1C,EAAE,aAAaM,GAAoB,aAAaC,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Ac,gBAAgB,GAC5E,UAAA;AAAA,MAAA,gBAAAL;AAAA,QAACM;AAAA,QAAA;AAAA,UACC,UAAS;AAAA,UACT,aAAY;AAAA,UACZ,UAAS;AAAA,UACT,QAAQ;AAAA,UACR,aAAY;AAAA,UACZ,QAAQlC,KAAuBR,MAAU,qBAAqBF;AAAA,UAE9D,UAAA,gBAAAsC;AAAA,YAACO;AAAAA,YAAA;AAAA,cACC,aAAY;AAAA,cACZ,iBAAgB;AAAA,cAChB,KAAKtC;AAAA,cACL,SAASI;AAAA,cAET,UAAC,gBAAA2B,EAAAQ,IAAA,EAAiB,OAAO,IAAI,QAAQ,IAAI;AAAA,YAAA;AAAA,UAC3C;AAAA,QAAA;AAAA,MACF;AAAA,MACA,gBAAAR;AAAA,QAACG;AAAA,QAAA;AAAA,UACC,SAASb;AAAA,UACT,YAAYrB;AAAA,UACZ,SAASG;AAAA,UACT,mBAAAf;AAAA,UACA,QAAQ;AAAA,QAAA;AAAA,MACV;AAAA,IAAA,GACF;AAAA,IAEDF,KACC,gBAAA6C,EAACS,IAAA,EAAqB,aAAY,WAChC,UAAA,gBAAAT,EAACU,IAAA,EAAoB,UAAU,GAAG,SAAS,GACzC,UAAC,gBAAAV,EAAAM,GAAA,EAAa,UAAS,WAAU,aAAY,0BAAyB,UAAS,UAC7E,UAAA,gBAAAN,EAACW,IAAS,EAAA,UAAU,GAAG,SAAS,EAAG,CAAA,EACrC,CAAA,EACF,CAAA,GACF;AAAA,EAEJ,EAAA,CAAA;AAEJ,GAEeC,KAAAC,EAAKnE,EAAY;"}
1
+ {"version":3,"file":"homework-card.js","sources":["../../../src/features/homework/homework-card.tsx"],"sourcesContent":["import type {\n INodeCardCallbacks,\n INodeDataProps,\n} from '../chapters-v2/comps/node-card/node-card-types';\nimport type { TUserTypes } from '../ui/types';\n\nimport { memo, useCallback, useMemo, useRef } from 'react';\n\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 Clickable from '../ui/buttons/clickable/clickable';\nimport useContextMenuClickHandler from '../ui/hooks/use-context-menu-click-handler';\nimport FlexView from '../ui/layout/flex-view';\nimport CardMenuOptions from './card-menu-options';\nimport HomeworkView from './homework-card-view';\nimport * as Styled from './styles';\nimport { getCardAnalyticProps } from './utils';\n\ninterface IHomeworkCardProps extends INodeCardCallbacks {\n header: string;\n nodeData: INodeDataProps;\n subHeader: string;\n userType: TUserTypes;\n studentId: string;\n userMilestoneId?: string;\n renderAs: 'homework' | 'milestone';\n shouldOpenOnRight: boolean;\n isInQueue?: boolean;\n}\n\nconst HomeworkCard = ({\n // callbacks\n nodeData,\n onNodeAttempt,\n onNodeReattempt,\n onNodeReview,\n onNodeUnassign,\n onNodeView,\n onNodeAssignAsHomework,\n\n header,\n isInQueue,\n renderAs,\n shouldOpenOnRight,\n studentId,\n subHeader,\n userMilestoneId,\n userType,\n}: IHomeworkCardProps) => {\n const isHomeWork = renderAs === 'homework';\n const {\n node_type: nodeType,\n state,\n permissions,\n user_node_id: userNodeId,\n user_milestone_id: nodeDataMilestoneId,\n homework_id: homeworkId,\n } = nodeData;\n\n const milestoneId = userMilestoneId || nodeDataMilestoneId || '';\n\n const teacherContainerRef = useRef<HTMLDivElement>(null);\n const studentContainerRef = useRef<HTMLDivElement>(null);\n const { menuVisible: teacherMenuVisible, onMenuClick: onTeacherMenuClick } =\n useContextMenuClickHandler(teacherContainerRef);\n const { menuVisible: studentMenuVisible, onMenuClick: onStudentMenuClick } =\n useContextMenuClickHandler(studentContainerRef);\n\n const {\n can_start: canStart,\n can_resume: canResume,\n can_review: canReview,\n can_unassign: canUnassign,\n can_reset: canReset,\n can_assign_as_homework: canAssignAsHw,\n } = permissions;\n const isStudent = userType === 'STUDENT';\n\n const onStudentViewSheet = useCallback(() => {\n if (canReview) {\n if (typeof onNodeReview !== 'function') {\n throw new Error('onReview must be a function');\n }\n\n if (!userNodeId) {\n throw new Error('user node id must be present to review the sheet');\n }\n onNodeReview(nodeData, milestoneId);\n\n return;\n }\n }, [canReview, onNodeReview, userNodeId, nodeData, milestoneId]);\n\n const onStudentCardClick = useCallback(() => {\n if (canStart || canResume) {\n if (typeof onNodeAttempt !== 'function') {\n throw new Error('onNodeAttempt must be a function');\n }\n\n onNodeAttempt(nodeData, milestoneId, homeworkId);\n\n return;\n }\n\n if (!isHomeWork) {\n onStudentMenuClick();\n\n return;\n }\n onStudentViewSheet();\n }, [\n canStart,\n canResume,\n isHomeWork,\n onStudentViewSheet,\n onNodeAttempt,\n nodeData,\n milestoneId,\n homeworkId,\n onStudentMenuClick,\n ]);\n\n const onTeacherCardClick = useCallback(() => {\n if (canReview) {\n if (typeof onNodeReview !== 'function') {\n throw new Error('onNodeReview must be a function');\n }\n\n if (!userNodeId) {\n throw new Error('user node id must be present to review the sheet');\n }\n onNodeReview(nodeData, milestoneId, homeworkId);\n\n return;\n }\n\n if (typeof onNodeView !== 'function') {\n throw new Error('onNodeView must be a function');\n }\n\n onNodeView(nodeData, milestoneId);\n }, [canReview, onNodeView, nodeData, milestoneId, onNodeReview, userNodeId, homeworkId]);\n\n const handleOnMenuOptionClick = useCallback(\n (optionId: string) => {\n switch (optionId) {\n case 'teacher-card-view':\n onTeacherCardClick();\n\n return;\n case 'student-card-view':\n onStudentViewSheet();\n\n return;\n case 'teacher-card-unassign':\n onNodeUnassign?.(nodeData, milestoneId);\n\n return;\n case 'student-card-reattempt':\n case 'teacher-card-redo':\n onNodeReattempt?.(nodeData, milestoneId);\n\n return;\n\n case 'teacher-card-assign-as-hw':\n onNodeAssignAsHomework?.(nodeData, milestoneId);\n\n return;\n\n default:\n throw new Error(`No callback function for ${optionId}`);\n }\n },\n [\n nodeData,\n onNodeAssignAsHomework,\n onNodeReattempt,\n onNodeUnassign,\n onStudentViewSheet,\n onTeacherCardClick,\n milestoneId,\n ],\n );\n\n const teacherOptions = [\n {\n id: 'teacher-card-view',\n label: canReview ? 'Review' : 'View',\n icon: Eye2Icon,\n disabled: false,\n onClick: handleOnMenuOptionClick,\n },\n {\n id: 'teacher-card-unassign',\n label: 'Unassign',\n icon: Styled.StyledMinus2Icon,\n disabled: isHomeWork ? nodeType === 'MASTERY' : !canUnassign,\n onClick: handleOnMenuOptionClick,\n },\n {\n id: 'teacher-card-redo',\n label: 'Redo',\n icon: RedoIcon,\n disabled: !canReset,\n onClick: handleOnMenuOptionClick,\n },\n {\n id: 'teacher-card-assign-as-hw',\n label: 'Assign as HW',\n icon: Home2Icon,\n disabled: !canAssignAsHw,\n onClick: handleOnMenuOptionClick,\n },\n ];\n\n const studentOptions = [\n {\n id: 'student-card-view',\n label: 'Review',\n icon: Eye2Icon,\n disabled: !canReview,\n onClick: handleOnMenuOptionClick,\n },\n {\n id: 'student-card-reattempt',\n label: 'Reattempt',\n icon: RedoIcon,\n disabled: !canReset,\n onClick: handleOnMenuOptionClick,\n },\n ];\n\n const analyticsLabel = useMemo(\n () =>\n getCardAnalyticProps({\n canResume,\n canStart,\n homeworkId,\n isHomeWork,\n isStudent,\n milestoneId,\n nodeType,\n studentId,\n userNodeId,\n }),\n [\n isStudent,\n isHomeWork,\n studentId,\n nodeType,\n canStart,\n canResume,\n homeworkId,\n userNodeId,\n milestoneId,\n ],\n );\n\n return (\n <Styled.CardContainer $position=\"relative\" $width=\"fit-content\">\n <Clickable\n onClick={isStudent ? onStudentCardClick : onTeacherCardClick}\n label=\"homework-card\"\n analyticsLabel={analyticsLabel.analyticsLabel}\n analyticsProps={analyticsLabel.analyticsProps}\n >\n <HomeworkView\n header={header}\n isInQueue={isInQueue}\n nodeData={nodeData}\n studentContainerRef={studentContainerRef}\n subHeader={subHeader}\n userType={userType}\n />\n </Clickable>\n {isStudent && !isHomeWork && (\n <CardMenuOptions\n $width={200}\n options={studentOptions}\n triggerRef={studentContainerRef}\n visible={studentMenuVisible}\n shouldOpenOnRight={false}\n />\n )}\n {!isStudent && (\n <Styled.MenuWrapper $position=\"absolute\" $width=\"fit-content\" $borderRadiusX={2}>\n <ArrowTooltip\n renderAs=\"primary\"\n tooltipItem=\"Review\"\n position=\"bottom\"\n zIndex={6}\n parentWidth=\"100%\"\n hidden={teacherMenuVisible || (state !== 'WAIT_FOR_REVIEW' && isHomeWork)}\n >\n <Styled.CardKebabMenuWrapper\n $alignItems=\"center\"\n $justifyContent=\"center\"\n ref={teacherContainerRef}\n onClick={onTeacherMenuClick}\n >\n <MoreVerticalIcon width={16} height={16} />\n </Styled.CardKebabMenuWrapper>\n </ArrowTooltip>\n <CardMenuOptions\n options={teacherOptions}\n triggerRef={teacherContainerRef}\n visible={teacherMenuVisible}\n shouldOpenOnRight={shouldOpenOnRight}\n $width={144}\n />\n </Styled.MenuWrapper>\n )}\n {isInQueue && (\n <Styled.BlurContainer $background=\"WHITE_5\">\n <Styled.BlurFlexView $heightX={1} $widthX={6}>\n <ArrowTooltip renderAs=\"primary\" tooltipItem=\"Not visible to student\" position=\"bottom\">\n <FlexView $heightX={1} $widthX={6} />\n </ArrowTooltip>\n </Styled.BlurFlexView>\n </Styled.BlurContainer>\n )}\n </Styled.CardContainer>\n );\n};\n\nexport default memo(HomeworkCard);\n"],"names":["HomeworkCard","nodeData","onNodeAttempt","onNodeReattempt","onNodeReview","onNodeUnassign","onNodeView","onNodeAssignAsHomework","header","isInQueue","renderAs","shouldOpenOnRight","studentId","subHeader","userMilestoneId","userType","isHomeWork","nodeType","state","permissions","userNodeId","nodeDataMilestoneId","homeworkId","milestoneId","teacherContainerRef","useRef","studentContainerRef","teacherMenuVisible","onTeacherMenuClick","useContextMenuClickHandler","studentMenuVisible","onStudentMenuClick","canStart","canResume","canReview","canUnassign","canReset","canAssignAsHw","isStudent","onStudentViewSheet","useCallback","onStudentCardClick","onTeacherCardClick","handleOnMenuOptionClick","optionId","teacherOptions","Eye2Icon","Styled.StyledMinus2Icon","RedoIcon","Home2Icon","studentOptions","analyticsLabel","useMemo","getCardAnalyticProps","Styled.CardContainer","jsx","Clickable","HomeworkView","CardMenuOptions","jsxs","Styled.MenuWrapper","ArrowTooltip","Styled.CardKebabMenuWrapper","MoreVerticalIcon","Styled.BlurContainer","Styled.BlurFlexView","FlexView","HomeworkCard$1","memo"],"mappings":";;;;;;;;;;;;;;AAiCA,MAAMA,KAAe,CAAC;AAAA;AAAA,EAEpB,UAAAC;AAAA,EACA,eAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,wBAAAC;AAAA,EAEA,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,WAAAC;AAAA,EACA,WAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,UAAAC;AACF,MAA0B;AACxB,QAAMC,IAAaN,MAAa,YAC1B;AAAA,IACJ,WAAWO;AAAA,IACX,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,cAAcC;AAAA,IACd,mBAAmBC;AAAA,IACnB,aAAaC;AAAA,EACX,IAAArB,GAEEsB,IAAcT,KAAmBO,KAAuB,IAExDG,IAAsBC,EAAuB,IAAI,GACjDC,IAAsBD,EAAuB,IAAI,GACjD,EAAE,aAAaE,GAAoB,aAAaC,MACpDC,EAA2BL,CAAmB,GAC1C,EAAE,aAAaM,GAAoB,aAAaC,MACpDF,EAA2BH,CAAmB,GAE1C;AAAA,IACJ,WAAWM;AAAA,IACX,YAAYC;AAAA,IACZ,YAAYC;AAAA,IACZ,cAAcC;AAAA,IACd,WAAWC;AAAA,IACX,wBAAwBC;AAAA,EACtB,IAAAlB,GACEmB,IAAYvB,MAAa,WAEzBwB,IAAqBC,EAAY,MAAM;AAC3C,QAAIN,GAAW;AACT,UAAA,OAAO9B,KAAiB;AACpB,cAAA,IAAI,MAAM,6BAA6B;AAG/C,UAAI,CAACgB;AACG,cAAA,IAAI,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