@cuemath/leap 3.2.18-mb → 3.2.19-beta-0.1

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 (328) hide show
  1. package/dist/assets/illustrations/illustrations.js +11 -5
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/line-icons/icons/after-noon.js +34 -0
  4. package/dist/assets/line-icons/icons/after-noon.js.map +1 -0
  5. package/dist/assets/line-icons/icons/apple-icon-white.js +42 -0
  6. package/dist/assets/line-icons/icons/apple-icon-white.js.map +1 -0
  7. package/dist/assets/line-icons/icons/cue-board-filled.js +33 -0
  8. package/dist/assets/line-icons/icons/cue-board-filled.js.map +1 -0
  9. package/dist/assets/line-icons/icons/cue-board.js +23 -0
  10. package/dist/assets/line-icons/icons/cue-board.js.map +1 -0
  11. package/dist/assets/line-icons/icons/evening.js +35 -0
  12. package/dist/assets/line-icons/icons/evening.js.map +1 -0
  13. package/dist/assets/line-icons/icons/hint-fill.js +35 -0
  14. package/dist/assets/line-icons/icons/hint-fill.js.map +1 -0
  15. package/dist/assets/line-icons/icons/morning.js +35 -0
  16. package/dist/assets/line-icons/icons/morning.js.map +1 -0
  17. package/dist/assets/line-icons/icons/screen-grab-filled.js +35 -0
  18. package/dist/assets/line-icons/icons/screen-grab-filled.js.map +1 -0
  19. package/dist/assets/line-icons/icons/screen-grab.js +23 -0
  20. package/dist/assets/line-icons/icons/screen-grab.js.map +1 -0
  21. package/dist/assets/line-icons/icons/sticker-filled.js +64 -0
  22. package/dist/assets/line-icons/icons/sticker-filled.js.map +1 -0
  23. package/dist/assets/line-icons/icons/sticker.js +46 -0
  24. package/dist/assets/line-icons/icons/sticker.js.map +1 -0
  25. package/dist/assets/lottie/lottie.js +16 -1
  26. package/dist/assets/lottie/lottie.js.map +1 -1
  27. package/dist/features/analytics-events/platform-events-student.js +2 -1
  28. package/dist/features/analytics-events/platform-events-student.js.map +1 -1
  29. package/dist/features/analytics-events/platform-events-teacher.js +6 -4
  30. package/dist/features/analytics-events/platform-events-teacher.js.map +1 -1
  31. package/dist/features/analytics-events/whitelist-events.js +10 -8
  32. package/dist/features/analytics-events/whitelist-events.js.map +1 -1
  33. package/dist/features/auth/account-selector/account-selector.js +26 -25
  34. package/dist/features/auth/account-selector/account-selector.js.map +1 -1
  35. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-constants.js +9 -0
  36. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-constants.js.map +1 -0
  37. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js +52 -0
  38. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js.map +1 -0
  39. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js +93 -0
  40. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js.map +1 -0
  41. package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text-styled.js +10 -0
  42. package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text-styled.js.map +1 -0
  43. package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text.js +17 -0
  44. package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text.js.map +1 -0
  45. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +20 -14
  46. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +1 -1
  47. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar-styled.js +12 -0
  48. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar-styled.js.map +1 -0
  49. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar.js +34 -0
  50. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar.js.map +1 -0
  51. package/dist/features/auth/comps/otp-input/otp-input-styled.js +26 -0
  52. package/dist/features/auth/comps/otp-input/otp-input-styled.js.map +1 -0
  53. package/dist/features/auth/comps/otp-input/otp-input.js +50 -0
  54. package/dist/features/auth/comps/otp-input/otp-input.js.map +1 -0
  55. package/dist/features/auth/comps/pill-button/pill-button-styled.js +44 -0
  56. package/dist/features/auth/comps/pill-button/pill-button-styled.js.map +1 -0
  57. package/dist/features/auth/comps/pill-button/pill-button.js +74 -0
  58. package/dist/features/auth/comps/pill-button/pill-button.js.map +1 -0
  59. package/dist/features/auth/comps/resend-otp/resend-otp.js +54 -47
  60. package/dist/features/auth/comps/resend-otp/resend-otp.js.map +1 -1
  61. package/dist/features/auth/comps/selectable-info-card/selectable-info-card-styled.js +17 -0
  62. package/dist/features/auth/comps/selectable-info-card/selectable-info-card-styled.js.map +1 -0
  63. package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js +67 -0
  64. package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js.map +1 -0
  65. package/dist/features/auth/comps/tabs/tab-tem/tab-item.js +29 -17
  66. package/dist/features/auth/comps/tabs/tab-tem/tab-item.js.map +1 -1
  67. package/dist/features/auth/comps/tabs/tabs-styled.js +22 -10
  68. package/dist/features/auth/comps/tabs/tabs-styled.js.map +1 -1
  69. package/dist/features/auth/comps/tabs/tabs.js +5 -5
  70. package/dist/features/auth/comps/tabs/tabs.js.map +1 -1
  71. package/dist/features/auth/comps/user-list/user-item/user-item.js +30 -31
  72. package/dist/features/auth/comps/user-list/user-item/user-item.js.map +1 -1
  73. package/dist/features/auth/comps/user-list/user-list.js +35 -34
  74. package/dist/features/auth/comps/user-list/user-list.js.map +1 -1
  75. package/dist/features/auth/forgot-password/forgot-password-styled.js +14 -15
  76. package/dist/features/auth/forgot-password/forgot-password-styled.js.map +1 -1
  77. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js +6 -7
  78. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js.map +1 -1
  79. package/dist/features/auth/login/login-styled.js +8 -9
  80. package/dist/features/auth/login/login-styled.js.map +1 -1
  81. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-constants.js +19 -0
  82. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-constants.js.map +1 -0
  83. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-styled.js +32 -0
  84. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-styled.js.map +1 -0
  85. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide.js +44 -0
  86. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide.js.map +1 -0
  87. package/dist/features/auth/pla-signup/signup-header/signup-header.js +54 -0
  88. package/dist/features/auth/pla-signup/signup-header/signup-header.js.map +1 -0
  89. package/dist/features/auth/pla-signup/signup-options/signup-options.js +83 -0
  90. package/dist/features/auth/pla-signup/signup-options/signup-options.js.map +1 -0
  91. package/dist/features/chapters-v2/utils/node-card-utils.js +9 -9
  92. package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -1
  93. package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card-styled.js +4 -4
  94. package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card-styled.js.map +1 -1
  95. package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card.js +85 -85
  96. package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card.js.map +1 -1
  97. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +121 -98
  98. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +1 -1
  99. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js +29 -28
  100. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js.map +1 -1
  101. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js +43 -42
  102. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js.map +1 -1
  103. package/dist/features/circle-games/games/tutorial/tutorial.js +43 -35
  104. package/dist/features/circle-games/games/tutorial/tutorial.js.map +1 -1
  105. package/dist/features/circle-games/sign-up/comp/grade-input/grade-input-styled.js +2 -2
  106. package/dist/features/circle-games/sign-up/comp/grade-input/grade-input-styled.js.map +1 -1
  107. package/dist/features/circle-games/sign-up/comp/grade-input/grade-input.js +1 -1
  108. package/dist/features/circle-games/sign-up/comp/grade-input/grade-input.js.map +1 -1
  109. package/dist/features/circle-games/sign-up/comp/username-input/username-input.js +26 -24
  110. package/dist/features/circle-games/sign-up/comp/username-input/username-input.js.map +1 -1
  111. package/dist/features/circle-games/sign-up/constants.js +3 -1
  112. package/dist/features/circle-games/sign-up/constants.js.map +1 -1
  113. package/dist/features/communication/pub-sub/constants.js +7 -4
  114. package/dist/features/communication/pub-sub/constants.js.map +1 -1
  115. package/dist/features/cue-canvas/hooks/use-canvas-sync-broker.js +42 -42
  116. package/dist/features/cue-canvas/hooks/use-canvas-sync-broker.js.map +1 -1
  117. package/dist/features/homework/homework-card-view.js +85 -97
  118. package/dist/features/homework/homework-card-view.js.map +1 -1
  119. package/dist/features/homework/homework-card.js +44 -42
  120. package/dist/features/homework/homework-card.js.map +1 -1
  121. package/dist/features/homework/hw-card-list/hw-card-list-view.js +31 -29
  122. package/dist/features/homework/hw-card-list/hw-card-list-view.js.map +1 -1
  123. package/dist/features/homework/hw-card-list/hw-card-list.js +54 -48
  124. package/dist/features/homework/hw-card-list/hw-card-list.js.map +1 -1
  125. package/dist/features/homework/utils.js +33 -27
  126. package/dist/features/homework/utils.js.map +1 -1
  127. package/dist/features/journey/comps/coachmark/coachmark.js +29 -27
  128. package/dist/features/journey/comps/coachmark/coachmark.js.map +1 -1
  129. package/dist/features/journey/hooks/use-home-page-journey/tooltip-item.js +17 -11
  130. package/dist/features/journey/hooks/use-home-page-journey/tooltip-item.js.map +1 -1
  131. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-assigned.js +72 -0
  132. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-assigned.js.map +1 -0
  133. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-attempt-journey.js +59 -0
  134. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-attempt-journey.js.map +1 -0
  135. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js +63 -0
  136. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js.map +1 -0
  137. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-intro-journey.js +67 -0
  138. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-intro-journey.js.map +1 -0
  139. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-progress-journey.js +70 -0
  140. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-progress-journey.js.map +1 -0
  141. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-review-journey.js +59 -0
  142. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-review-journey.js.map +1 -0
  143. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-unassign-journey.js +59 -0
  144. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-unassign-journey.js.map +1 -0
  145. package/dist/features/journey/hooks/use-puzzles-journey/use-teacher-puzzle-assigned-journey.js +70 -0
  146. package/dist/features/journey/hooks/use-puzzles-journey/use-teacher-puzzle-assigned-journey.js.map +1 -0
  147. package/dist/features/journey/journey-id/journey-id-student.js +2 -2
  148. package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
  149. package/dist/features/journey/journey-id/journey-id-teacher.js +2 -2
  150. package/dist/features/journey/journey-id/journey-id-teacher.js.map +1 -1
  151. package/dist/features/journey/use-journey/journey-context-provider.js +73 -72
  152. package/dist/features/journey/use-journey/journey-context-provider.js.map +1 -1
  153. package/dist/features/journey/use-journey/journey-styled.js +6 -4
  154. package/dist/features/journey/use-journey/journey-styled.js.map +1 -1
  155. package/dist/features/puzzles/api/puzzle-dashboard.js +10 -0
  156. package/dist/features/puzzles/api/puzzle-dashboard.js.map +1 -0
  157. package/dist/features/puzzles/app/puzzle-app-styled.js +85 -0
  158. package/dist/features/puzzles/app/puzzle-app-styled.js.map +1 -0
  159. package/dist/features/puzzles/app/puzzle-app-view.js +120 -0
  160. package/dist/features/puzzles/app/puzzle-app-view.js.map +1 -0
  161. package/dist/features/puzzles/app/puzzle-app.js +62 -0
  162. package/dist/features/puzzles/app/puzzle-app.js.map +1 -0
  163. package/dist/features/puzzles/comps/puzzle-card-styled.js +24 -69
  164. package/dist/features/puzzles/comps/puzzle-card-styled.js.map +1 -1
  165. package/dist/features/puzzles/comps/puzzle-card.js +79 -30
  166. package/dist/features/puzzles/comps/puzzle-card.js.map +1 -1
  167. package/dist/features/puzzles/constants/puzzle-container.js +8 -0
  168. package/dist/features/puzzles/constants/puzzle-container.js.map +1 -0
  169. package/dist/features/puzzles/puzzle-analytics-events.js +11 -0
  170. package/dist/features/puzzles/puzzle-analytics-events.js.map +1 -0
  171. package/dist/features/puzzles/puzzle-container/puzzle-container-styled.js +55 -25
  172. package/dist/features/puzzles/puzzle-container/puzzle-container-styled.js.map +1 -1
  173. package/dist/features/puzzles/puzzle-container/puzzle-container-view.js +55 -0
  174. package/dist/features/puzzles/puzzle-container/puzzle-container-view.js.map +1 -0
  175. package/dist/features/puzzles/puzzle-container/puzzle-container.js +100 -107
  176. package/dist/features/puzzles/puzzle-container/puzzle-container.js.map +1 -1
  177. package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard-styled.js +37 -0
  178. package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard-styled.js.map +1 -0
  179. package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js +110 -0
  180. package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js.map +1 -0
  181. package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js +1 -1
  182. package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js.map +1 -1
  183. package/dist/features/puzzles/utils/puzzle-pattern.js +28 -13
  184. package/dist/features/puzzles/utils/puzzle-pattern.js.map +1 -1
  185. package/dist/features/ui/arrow-tooltip/arrow-tooltip-constants.js +6 -0
  186. package/dist/features/ui/arrow-tooltip/arrow-tooltip-constants.js.map +1 -0
  187. package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js +12 -60
  188. package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js.map +1 -1
  189. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +72 -77
  190. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
  191. package/dist/features/ui/arrow-tooltip/comps/tooltip-body-styled.js +63 -0
  192. package/dist/features/ui/arrow-tooltip/comps/tooltip-body-styled.js.map +1 -0
  193. package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js +21 -0
  194. package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js.map +1 -0
  195. package/dist/features/ui/buttons/button/button.js +41 -38
  196. package/dist/features/ui/buttons/button/button.js.map +1 -1
  197. package/dist/features/ui/buttons/icon-button/icon-button.js +31 -27
  198. package/dist/features/ui/buttons/icon-button/icon-button.js.map +1 -1
  199. package/dist/features/ui/buttons/text-button/text-button.js +26 -22
  200. package/dist/features/ui/buttons/text-button/text-button.js.map +1 -1
  201. package/dist/features/ui/drawer/drawer-styled.js +34 -0
  202. package/dist/features/ui/drawer/drawer-styled.js.map +1 -0
  203. package/dist/features/ui/drawer/drawer.js +42 -0
  204. package/dist/features/ui/drawer/drawer.js.map +1 -0
  205. package/dist/features/ui/error/error.js +65 -27
  206. package/dist/features/ui/error/error.js.map +1 -1
  207. package/dist/features/ui/grade-selector/grade-selector.js +33 -27
  208. package/dist/features/ui/grade-selector/grade-selector.js.map +1 -1
  209. package/dist/features/ui/image/image.js +1 -1
  210. package/dist/features/ui/image/image.js.map +1 -1
  211. package/dist/features/ui/lottie-animation/lottie-animation.js +25 -29
  212. package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
  213. package/dist/features/ui/modals/modal-styled.js +34 -58
  214. package/dist/features/ui/modals/modal-styled.js.map +1 -1
  215. package/dist/features/ui/modals/modal.js +40 -14
  216. package/dist/features/ui/modals/modal.js.map +1 -1
  217. package/dist/features/ui/nudge/nudge-styled.js +14 -7
  218. package/dist/features/ui/nudge/nudge-styled.js.map +1 -1
  219. package/dist/features/ui/nudge/nudge.js +13 -12
  220. package/dist/features/ui/nudge/nudge.js.map +1 -1
  221. package/dist/features/{stickers/sticker-selector/sticker-selector-styles.js → ui/sticker-grid/sticker-grid-styles.js} +3 -4
  222. package/dist/features/ui/sticker-grid/sticker-grid-styles.js.map +1 -0
  223. package/dist/features/ui/sticker-grid/sticker-grid.js +24 -0
  224. package/dist/features/ui/sticker-grid/sticker-grid.js.map +1 -0
  225. package/dist/features/ui/sticker-grid/sticker.js +57 -0
  226. package/dist/features/ui/sticker-grid/sticker.js.map +1 -0
  227. package/dist/features/ui/stickers/constants.js +6 -0
  228. package/dist/features/ui/stickers/constants.js.map +1 -0
  229. package/dist/features/{stickers/stickers-effects/effects.js → ui/stickers/stickers-effects.js} +6 -6
  230. package/dist/features/ui/stickers/stickers-effects.js.map +1 -0
  231. package/dist/features/{stickers/stickers-effects/stickers-effects-styled.js → ui/stickers/stickers-styled.js} +2 -2
  232. package/dist/features/ui/stickers/stickers-styled.js.map +1 -0
  233. package/dist/features/ui/stickers/stickers-utils.js +91 -0
  234. package/dist/features/ui/stickers/stickers-utils.js.map +1 -0
  235. package/dist/features/ui/stickers/stickers.js +40 -0
  236. package/dist/features/ui/stickers/stickers.js.map +1 -0
  237. package/dist/features/ui/streak-icon/streak-icon-styled.js +13 -13
  238. package/dist/features/ui/streak-icon/streak-icon-styled.js.map +1 -1
  239. package/dist/features/ui/streak-icon/streak-icon.js +17 -15
  240. package/dist/features/ui/streak-icon/streak-icon.js.map +1 -1
  241. package/dist/features/ui/tab/tab.js +30 -26
  242. package/dist/features/ui/tab/tab.js.map +1 -1
  243. package/dist/features/ui/text/text.js +40 -36
  244. package/dist/features/ui/text/text.js.map +1 -1
  245. package/dist/features/ui/theme/button.js +78 -78
  246. package/dist/features/ui/theme/button.js.map +1 -1
  247. package/dist/features/ui/theme/constants.js +4 -2
  248. package/dist/features/ui/theme/constants.js.map +1 -1
  249. package/dist/features/ui/theme/get-device.js +3 -3
  250. package/dist/features/ui/theme/get-device.js.map +1 -1
  251. package/dist/features/worksheet/worksheet/constants.js +12 -13
  252. package/dist/features/worksheet/worksheet/constants.js.map +1 -1
  253. package/dist/features/worksheet/worksheet/hooks/use-worksheet-journey.js +28 -0
  254. package/dist/features/worksheet/worksheet/hooks/use-worksheet-journey.js.map +1 -0
  255. package/dist/features/worksheet/worksheet/worksheet-helpers.js +20 -19
  256. package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
  257. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js +29 -25
  258. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js.map +1 -1
  259. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js +101 -47
  260. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js.map +1 -1
  261. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +244 -255
  262. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
  263. package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js +242 -207
  264. package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js.map +1 -1
  265. package/dist/features/worksheet/worksheet/worksheet-styled.js +45 -36
  266. package/dist/features/worksheet/worksheet/worksheet-styled.js.map +1 -1
  267. package/dist/features/worksheet/worksheet/worksheet-types.js.map +1 -1
  268. package/dist/features/worksheet/worksheet/worksheet.js +321 -325
  269. package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
  270. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js +1 -1
  271. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
  272. package/dist/features/worksheet/worksheet-preview/worksheet-preview.js +44 -35
  273. package/dist/features/worksheet/worksheet-preview/worksheet-preview.js.map +1 -1
  274. package/dist/index.d.ts +281 -61
  275. package/dist/index.js +585 -537
  276. package/dist/index.js.map +1 -1
  277. package/dist/static/animated-avatar.1ad58b1d.json +1 -0
  278. package/dist/static/animated-avatar.69b07505.json +1 -0
  279. package/dist/static/animated-avatar.9c560b46.json +1 -0
  280. package/dist/static/calendar-purple.1a840b41.svg +1 -0
  281. package/dist/static/flying-disk.c7f6ed39.json +1 -0
  282. package/dist/static/graduation-cap.3be3340a.json +1 -0
  283. package/dist/static/handshake.287e7dfb.svg +1 -0
  284. package/dist/static/light-bulb.c6db0b23.json +1 -0
  285. package/dist/static/money.332aacf1.svg +1 -0
  286. package/dist/static/muscle.9bcfb8a7.json +1 -0
  287. package/dist/static/nudge-tap.0591aef4.json +1 -0
  288. package/dist/static/parent-avatar.822c7b9b.svg +1 -0
  289. package/dist/static/pencil.23df9da0.json +1 -0
  290. package/dist/static/plus-sign.de6af957.json +1 -0
  291. package/dist/static/puzzle-blue-lottie.7017e2e8.json +1 -0
  292. package/dist/static/puzzle-blue-lottie.bf64ebc5.json +12760 -0
  293. package/dist/static/puzzle-dashboard-banner.b7956519.svg +1 -0
  294. package/dist/static/puzzle-green-lottie.1da90698.json +1 -0
  295. package/dist/static/puzzle-orange-lottie.cfcf3724.json +1 -0
  296. package/dist/static/puzzle-pattern-blue.abff0164.svg +1 -0
  297. package/dist/static/puzzle-pattern-green.b8ba1840.svg +1 -0
  298. package/dist/static/puzzle-pattern-orange.3f5a17ff.svg +1 -0
  299. package/dist/static/puzzle-pattern-purple.14b09759.svg +1 -0
  300. package/dist/static/puzzle-pattern-yellow.50917fab.svg +1 -0
  301. package/dist/static/puzzle-purple-lottie.e70de110.json +9860 -0
  302. package/dist/static/puzzle-yellow-lottie.275b5cf4.json +1 -0
  303. package/dist/static/racing-car.2cbf864e.json +1 -0
  304. package/dist/static/rocket.0a3ccab0.json +1 -0
  305. package/dist/static/shovel.abeec04c.json +1 -0
  306. package/dist/static/trustpilot.bd3d79e1.svg +1 -0
  307. package/package.json +1 -1
  308. package/dist/features/hooks/use-viewport/use-viewport.js +0 -22
  309. package/dist/features/hooks/use-viewport/use-viewport.js.map +0 -1
  310. package/dist/features/stickers/sticker-data.js +0 -234
  311. package/dist/features/stickers/sticker-data.js.map +0 -1
  312. package/dist/features/stickers/sticker-selector/sticker-selector-styles.js.map +0 -1
  313. package/dist/features/stickers/sticker-selector/sticker-selector.js +0 -25
  314. package/dist/features/stickers/sticker-selector/sticker-selector.js.map +0 -1
  315. package/dist/features/stickers/sticker-selector/sticker.js +0 -57
  316. package/dist/features/stickers/sticker-selector/sticker.js.map +0 -1
  317. package/dist/features/stickers/stickers-effects/effects.js.map +0 -1
  318. package/dist/features/stickers/stickers-effects/stickers-effects-styled.js.map +0 -1
  319. package/dist/features/stickers/stickers-effects/stickers-effects-utils.js +0 -93
  320. package/dist/features/stickers/stickers-effects/stickers-effects-utils.js.map +0 -1
  321. package/dist/features/stickers/stickers-effects/stickers-effects.js +0 -39
  322. package/dist/features/stickers/stickers-effects/stickers-effects.js.map +0 -1
  323. package/dist/static/nudge-tap.5cb30093.json +0 -1057
  324. package/dist/static/puzzle-pattern-blue.f4bea1ee.svg +0 -1
  325. package/dist/static/puzzle-pattern-green.c9f84bbc.svg +0 -1
  326. package/dist/static/puzzle-pattern-orange.3da09665.svg +0 -1
  327. package/dist/static/puzzle-pattern-purple.5fb5a319.svg +0 -1
  328. package/dist/static/puzzle-pattern-yellow.aadbf457.svg +0 -1
@@ -1,102 +1,107 @@
1
- import { jsxs as Ft, jsx as i } from "react/jsx-runtime";
2
- import { deepEqual as Gt } from "../../../../node_modules/fast-equals/dist/esm/index.js";
3
- import { memo as Ot, useState as q, useEffect as T, useMemo as Jt } from "react";
4
- import Kt from "../../../../assets/line-icons/icons/check2.js";
5
- import Yt from "../../../../assets/line-icons/icons/hand.js";
6
- import Zt from "../../../../assets/line-icons/icons/question.js";
7
- import te from "../../../../assets/line-icons/icons/skip.js";
8
- import ee from "../../../ui/arrow-tooltip/arrow-tooltip.js";
1
+ import { jsxs as ee, jsx as e } from "react/jsx-runtime";
2
+ import { deepEqual as ne } from "../../../../node_modules/fast-equals/dist/esm/index.js";
3
+ import { memo as ie, useMemo as lt, useState as q, useEffect as T } from "react";
4
+ import oe from "../../../../assets/line-icons/icons/check2.js";
5
+ import se from "../../../../assets/line-icons/icons/hand.js";
6
+ import re from "../../../../assets/line-icons/icons/question.js";
7
+ import ae from "../../../../assets/line-icons/icons/skip.js";
8
+ import dt from "../../../ui/arrow-tooltip/arrow-tooltip.js";
9
9
  import o from "../../../ui/buttons/button/button.js";
10
- import C from "../../../ui/buttons/icon-button/icon-button.js";
11
- import ne from "../../../ui/layout/flex-view.js";
12
- import ie from "./use-handler-callbacks.js";
13
- const ke = Ot((N) => {
14
- var nt, it, ot;
10
+ import x from "../../../ui/buttons/icon-button/icon-button.js";
11
+ import ue from "../../../ui/layout/flex-view.js";
12
+ import { useWorksheetJourney as le } from "../hooks/use-worksheet-journey.js";
13
+ import de from "./use-handler-callbacks.js";
14
+ const xe = ie((N) => {
15
+ var st, rt, at;
15
16
  const {
16
- layout: rt,
17
- learnosity: k,
17
+ layout: ct,
18
+ learnosity: b,
18
19
  question: l,
19
- questions: g,
20
+ questions: v,
20
21
  responses: L,
21
22
  questionIndex: X,
22
23
  canSubmitWorksheet: H,
23
24
  isQuestionUnlocked: Q,
24
- isQuestionAppended: d,
25
+ isQuestionAppended: c,
25
26
  response: t,
26
- behavior: f,
27
- userType: m,
28
- setActiveQuestionId: at,
29
- setSummaryVisible: ut,
30
- setBlocker: lt,
31
- setResponses: ct,
32
- getTimeSpentOnQuestion: dt,
33
- onSubmit: mt,
34
- onSkip: v,
35
- onUnassign: Bt,
36
- onReview: pt
37
- } = N, { onHelp: ht, onResponseChange: kt, onTeacherValidation: ft, loggerRef: bt } = N, {
38
- navigationMode: I,
27
+ behavior: m,
28
+ userType: p,
29
+ setActiveQuestionId: mt,
30
+ setSummaryVisible: pt,
31
+ setBlocker: Bt,
32
+ setResponses: ht,
33
+ getTimeSpentOnQuestion: ft,
34
+ onSubmit: kt,
35
+ onSkip: g,
36
+ onUnassign: bt,
37
+ onReview: yt
38
+ } = N, { onHelp: At, onResponseChange: St, onTeacherValidation: Ct, loggerRef: Tt } = N, {
39
+ navigationMode: w,
39
40
  canAttempt: s,
40
- hints: yt,
41
- checkButtonLabel: St,
42
- retryButtonLabel: At,
43
- validation: c,
44
- maximumAttempts: b,
41
+ hints: xt,
42
+ checkButtonLabel: vt,
43
+ retryButtonLabel: gt,
44
+ validation: d,
45
+ maximumAttempts: B,
45
46
  canExceedAttempts: M,
46
47
  teacherValidationEnabled: $,
47
48
  canTeacherValidate: r,
48
- hintsTimer: w,
49
- skippableTime: j,
50
- skippable: W,
51
- canUnAssign: P
52
- } = f, { response_id: E, item_type: xt, type: _, instructor_stimulus: Tt, is_optional: F } = l, y = yt ? ((ot = (it = (nt = k.question(E)) == null ? void 0 : nt.getMetadata()) == null ? void 0 : it.hints) == null ? void 0 : ot.length) ?? 0 : 0, R = Tt === "SystemIntro", D = xt === "exit-ticket", B = s && y - ((t == null ? void 0 : t.hintsUsed) ?? 0) > 0, [a, G] = q(!1), [O, J] = q(!1), [K, S] = q(!1);
49
+ hintsTimer: I,
50
+ skippableTime: W,
51
+ skippable: j,
52
+ canUnAssign: P,
53
+ canTeacherValidateDisabled: F
54
+ } = m, { response_id: z, item_type: wt, type: R, instructor_stimulus: It, is_optional: G } = l, y = xt ? ((at = (rt = (st = b.question(z)) == null ? void 0 : st.getMetadata()) == null ? void 0 : rt.hints) == null ? void 0 : at.length) ?? 0 : 0, D = It === "SystemIntro", E = wt === "exit-ticket", h = s && y - ((t == null ? void 0 : t.hintsUsed) ?? 0) > 0, J = lt(() => B === -2, [B]), [a, O] = q(!1), [K, Y] = q(!1), [Z, A] = q(!1), { puzzleAttemptCtaRef: zt, puzzleReviewCtaRef: Rt, puzzleUnassignRef: Dt } = le({
55
+ behavior: m
56
+ });
53
57
  T(() => {
54
- if (w && B) {
55
- const n = setTimeout(() => {
56
- G(!0);
57
- }, w * 1e3);
58
- return () => clearTimeout(n);
58
+ if (I && h) {
59
+ const i = setTimeout(() => {
60
+ O(!0);
61
+ }, I * 1e3);
62
+ return () => clearTimeout(i);
59
63
  }
60
- G(B);
61
- }, [w, B]), T(() => {
62
- const n = !(t != null && t.response) && !(t != null && t.skipped);
63
- if (W)
64
- if (y > 0 && !B)
65
- S(n);
66
- else if (y === 0 && n) {
67
- const x = setTimeout(
64
+ O(h);
65
+ }, [I, h]), T(() => {
66
+ const i = !(t != null && t.response) && !(t != null && t.skipped);
67
+ if (j)
68
+ if (y > 0 && !h)
69
+ A(i);
70
+ else if (y === 0 && i) {
71
+ const C = setTimeout(
68
72
  () => {
69
- S(n);
73
+ A(i);
70
74
  },
71
- (j ?? 0) * 1e3
75
+ (W ?? 0) * 1e3
72
76
  );
73
- return () => clearTimeout(x);
77
+ return () => clearTimeout(C);
74
78
  } else
75
- S(!1);
76
- }, [y, B, t, W, j]);
79
+ A(!1);
80
+ }, [y, h, t, j, W]);
77
81
  const {
78
- checkButton: p,
79
- checkButtonDisabled: Ct,
80
- hintsButton: Y,
81
- retryButton: A,
82
- nextButton: gt,
83
- nextButtonDisabled: vt,
84
- startButton: It,
85
- readyButton: wt,
86
- validateButton: Et,
87
- skipSectionButton: _t,
88
- submitAttemptButton: Z,
89
- skipButton: Rt,
90
- unassignButton: Dt,
91
- reviewButton: zt,
92
- submitAttemptButtonDisabled: Ut,
93
- submitAttemptButtonTooltip: Vt,
94
- submitAttemptButtonTooltipText: qt
95
- } = Jt(() => {
96
- const n = r && F && (t == null ? void 0 : t.assignStatus) === "assigned", x = () => {
97
- var st;
98
- if (b === -2)
99
- return m === "STUDENT" ? s ? {
82
+ checkButton: f,
83
+ checkButtonDisabled: Et,
84
+ hintsButton: tt,
85
+ retryButton: S,
86
+ nextButton: _t,
87
+ nextButtonDisabled: Ut,
88
+ startButton: Vt,
89
+ readyButton: qt,
90
+ validateButton: Nt,
91
+ skipSectionButton: Lt,
92
+ submitAttemptButton: et,
93
+ skipButton: Xt,
94
+ unassignButton: Ht,
95
+ reviewButton: Qt,
96
+ submitAttemptButtonDisabled: Mt,
97
+ submitAttemptButtonTooltip: $t,
98
+ submitAttemptButtonTooltipText: Wt,
99
+ reviewButtonDisabled: nt
100
+ } = lt(() => {
101
+ const i = r && G && (t == null ? void 0 : t.assignStatus) === "assigned", C = () => {
102
+ var ut;
103
+ if (B === -2)
104
+ return p === "STUDENT" ? s ? {
100
105
  submitAttemptButton: !0
101
106
  } : {
102
107
  submitAttemptButton: !0,
@@ -106,20 +111,21 @@ const ke = Ot((N) => {
106
111
  } : P ? {
107
112
  unassignButton: !0
108
113
  } : {
109
- reviewButton: r
114
+ reviewButton: r,
115
+ reviewButtonDisabled: F
110
116
  };
111
117
  if (!s)
112
118
  return {
113
119
  nextButton: !0
114
120
  };
115
- if (!c && f.navigationMode === "LINEAR")
121
+ if (!d && m.navigationMode === "LINEAR")
116
122
  return {
117
123
  nextButton: !0,
118
124
  nextButtonDisabled: !(t != null && t.response),
119
125
  hintsButton: a,
120
- skipButton: K
126
+ skipButton: Z
121
127
  };
122
- if (!c)
128
+ if (!d)
123
129
  return {
124
130
  nextButton: !0,
125
131
  hintsButton: a
@@ -130,17 +136,17 @@ const ke = Ot((N) => {
130
136
  checkButtonDisabled: !0,
131
137
  hintsButton: a
132
138
  };
133
- const { responseEdited: h, score: u, attemptsHistory: e } = t, V = ((e == null ? void 0 : e.length) ?? 0) >= b;
139
+ const { responseEdited: k, score: u, attemptsHistory: n } = t, V = ((n == null ? void 0 : n.length) ?? 0) >= B;
134
140
  if (V && !M)
135
141
  return {
136
142
  nextButton: !0
137
143
  };
138
- if (h) {
139
- const Pt = (st = e == null ? void 0 : e.slice(-1)[0]) == null ? void 0 : st.response;
144
+ if (k) {
145
+ const te = (ut = n == null ? void 0 : n.slice(-1)[0]) == null ? void 0 : ut.response;
140
146
  return {
141
147
  nextButton: V,
142
148
  checkButton: !0,
143
- checkButtonDisabled: Gt(t.response, Pt),
149
+ checkButtonDisabled: ne(t.response, te),
144
150
  hintsButton: a
145
151
  };
146
152
  }
@@ -151,129 +157,130 @@ const ke = Ot((N) => {
151
157
  } : (u.score ?? 0) === u.max_score ? {
152
158
  nextButton: !0
153
159
  } : {};
154
- }, Wt = () => g.some(({ response_id: h }) => {
155
- const { assignStatus: u, validatedByTeacher: e } = L[h] ?? {};
156
- return u === "skipped" ? !1 : e !== !0;
160
+ }, Zt = () => v.some(({ response_id: k }) => {
161
+ const { assignStatus: u, validatedByTeacher: n } = L[k] ?? {};
162
+ return u === "skipped" ? !1 : n !== !0;
157
163
  });
158
164
  if ($) {
159
- const { validatedByTeacher: h } = t ?? {};
160
- if (I === "ADAPTIVE" || I === "CURRENT")
161
- return m === "STUDENT" ? {
165
+ const { validatedByTeacher: k } = t ?? {};
166
+ if (w === "ADAPTIVE" || w === "CURRENT")
167
+ return p === "STUDENT" ? {
162
168
  hintsButton: a,
163
169
  validateButton: !1
164
170
  } : {
165
171
  validateButton: !1
166
172
  };
167
- if (h)
173
+ if (k)
168
174
  return {
169
175
  validateButton: !0,
170
- submitAttemptButton: r && s && m === "STUDENT" && H ? !Wt() : !1
176
+ submitAttemptButton: r && s && p === "STUDENT" && H ? !Zt() : !1
171
177
  };
172
178
  if (!Q)
173
179
  return {};
174
- if (m === "STUDENT")
175
- return R ? {
180
+ if (p === "STUDENT")
181
+ return D ? {
176
182
  startButton: r && s
177
- } : _ !== "clozetext" ? {
178
- ...x(),
183
+ } : R !== "clozetext" ? {
184
+ ...C(),
179
185
  nextButton: !1
180
186
  } : {
181
187
  hintsButton: a,
182
- readyButton: r && D && !(t != null && t.submittedByStudent)
188
+ readyButton: r && E && !(t != null && t.submittedByStudent)
183
189
  };
184
- if (R)
190
+ if (D)
185
191
  return {
186
- skipSectionButton: n
192
+ skipSectionButton: i
187
193
  };
188
- if (_ !== "clozetext") {
189
- const { responseEdited: u, score: e } = t ?? {};
194
+ if (R !== "clozetext") {
195
+ const { responseEdited: u, score: n } = t ?? {};
190
196
  return {
191
- skipSectionButton: n,
192
- validateButton: u || !r ? !1 : !!(e != null && e.score && (e != null && e.max_score) && !((e.score ?? 0) < e.max_score))
197
+ skipSectionButton: i,
198
+ validateButton: u || !r ? !1 : !!(n != null && n.score && (n != null && n.max_score) && !((n.score ?? 0) < n.max_score))
193
199
  };
194
200
  }
195
201
  return {
196
- skipSectionButton: n,
197
- validateButton: r && (D ? t == null ? void 0 : t.submittedByStudent : !0)
202
+ skipSectionButton: i,
203
+ validateButton: r && (E ? t == null ? void 0 : t.submittedByStudent : !0)
198
204
  };
199
205
  }
200
- return x();
206
+ return C();
201
207
  }, [
202
208
  r,
203
- F,
209
+ G,
204
210
  t,
205
211
  $,
206
212
  s,
207
- c,
208
- f.navigationMode,
209
- b,
213
+ d,
214
+ m.navigationMode,
215
+ B,
210
216
  M,
211
217
  a,
212
- K,
213
- g,
218
+ Z,
219
+ v,
214
220
  L,
215
221
  P,
216
- I,
222
+ w,
217
223
  Q,
218
- m,
219
- R,
220
- _,
224
+ p,
221
225
  D,
222
- H
226
+ R,
227
+ E,
228
+ H,
229
+ F
223
230
  ]), {
224
- handleResponseChange: z,
225
- handleHelpButtonClick: tt,
226
- handleBackButtonClick: et,
231
+ handleResponseChange: _,
232
+ handleHelpButtonClick: it,
233
+ handleBackButtonClick: ot,
227
234
  handleNextButtonClick: U,
228
- handleCheckButtonClick: Nt,
229
- handleRetryButtonClick: Lt,
230
- handleHintButtonClick: Xt,
231
- handleValidateButtonClick: Ht,
232
- handleStartButtonClick: Qt,
233
- handleSkipSectionButtonClick: Mt,
234
- handleReadyButtonClick: $t,
235
- handleSkipButtonClick: jt
236
- } = ie({
237
- layout: rt,
235
+ handleCheckButtonClick: jt,
236
+ handleRetryButtonClick: Pt,
237
+ handleHintButtonClick: Ft,
238
+ handleValidateButtonClick: Gt,
239
+ handleStartButtonClick: Jt,
240
+ handleSkipSectionButtonClick: Ot,
241
+ handleReadyButtonClick: Kt,
242
+ handleSkipButtonClick: Yt
243
+ } = de({
244
+ layout: ct,
238
245
  question: l,
239
- questions: g,
240
- learnosity: k,
246
+ questions: v,
247
+ learnosity: b,
241
248
  questionIndex: X,
242
- setActiveQuestionId: at,
243
- setSummaryVisible: ut,
244
- setBlocker: lt,
245
- setResponses: ct,
246
- onResponseChange: kt,
247
- onTeacherValidation: ft,
248
- onHelp: ht,
249
- behavior: f,
250
- loggerRef: bt,
251
- setSkipped: J,
252
- getTimeSpentOnQuestion: dt
249
+ setActiveQuestionId: mt,
250
+ setSummaryVisible: pt,
251
+ setBlocker: Bt,
252
+ setResponses: ht,
253
+ onResponseChange: St,
254
+ onTeacherValidation: Ct,
255
+ onHelp: At,
256
+ behavior: m,
257
+ loggerRef: Tt,
258
+ setSkipped: Y,
259
+ getTimeSpentOnQuestion: ft
253
260
  });
254
261
  return T(() => {
255
- O && (J(!1), S(!1), U(), v && v(l.item_display_number, l.question_number));
262
+ K && (Y(!1), A(!1), U(), g && g(l.item_display_number, l.question_number));
256
263
  }, [
257
264
  U,
258
- v,
265
+ g,
259
266
  l.item_display_number,
260
267
  l.question_number,
261
- O
268
+ K
262
269
  ]), T(() => {
263
- const n = d ? k.question(E) : void 0;
264
- return n && s && (!c || p) && (n.on("changed", z), n.enable()), () => {
265
- n && s && (!c || p) && (n.off("changed", z), n.disable());
270
+ const i = c ? b.question(z) : void 0;
271
+ return i && s && (!d || f) && (i.on("changed", _), i.enable()), () => {
272
+ i && s && (!d || f) && (i.off("changed", _), i.disable());
266
273
  };
267
274
  }, [
268
275
  s,
269
- p,
276
+ f,
277
+ _,
278
+ c,
279
+ b,
270
280
  z,
271
- d,
272
- k,
273
- E,
274
- c
275
- ]), /* @__PURE__ */ Ft(
276
- ne,
281
+ d
282
+ ]), /* @__PURE__ */ ee(
283
+ ue,
277
284
  {
278
285
  $background: "WHITE",
279
286
  $flexDirection: "row",
@@ -281,26 +288,26 @@ const ke = Ot((N) => {
281
288
  $alignItems: "center",
282
289
  $justifyContent: "flex-end",
283
290
  children: [
284
- Y && /* @__PURE__ */ i(
285
- C,
291
+ tt && /* @__PURE__ */ e(
292
+ x,
286
293
  {
287
- Icon: Zt,
294
+ Icon: re,
288
295
  analyticsLabel: "Hint",
289
296
  renderAs: "secondary",
290
- disabled: !d,
291
- onClick: Xt
297
+ disabled: !c,
298
+ onClick: Ft
292
299
  }
293
300
  ),
294
- !Y && tt && (p || A) && /* @__PURE__ */ i(
295
- C,
301
+ !tt && it && (f || S) && /* @__PURE__ */ e(
302
+ x,
296
303
  {
297
- Icon: Yt,
304
+ Icon: se,
298
305
  analyticsLabel: "Ask for help",
299
306
  renderAs: "secondary",
300
- onClick: tt
307
+ onClick: it
301
308
  }
302
309
  ),
303
- et && /* @__PURE__ */ i(
310
+ ot && /* @__PURE__ */ e(
304
311
  o,
305
312
  {
306
313
  widthX: 6,
@@ -308,98 +315,126 @@ const ke = Ot((N) => {
308
315
  size: "small",
309
316
  label: "Back",
310
317
  disabled: X === 0,
311
- onClick: et
318
+ onClick: ot
312
319
  }
313
320
  ),
314
- Rt && /* @__PURE__ */ i(
321
+ Xt && /* @__PURE__ */ e(
315
322
  o,
316
323
  {
317
324
  widthX: 6,
318
- renderAs: A ? "secondary" : "primary",
325
+ renderAs: S ? "secondary" : "primary",
319
326
  size: "small",
320
327
  label: "Skip",
321
- onClick: jt
328
+ onClick: Yt
322
329
  }
323
330
  ),
324
- gt && /* @__PURE__ */ i(
331
+ _t && /* @__PURE__ */ e(
325
332
  o,
326
333
  {
327
334
  widthX: 6,
328
- renderAs: A ? "secondary" : "primary",
335
+ renderAs: S ? "secondary" : "primary",
329
336
  size: "small",
330
337
  label: "Next",
331
338
  onClick: U,
332
- disabled: vt === !0
339
+ disabled: Ut === !0
333
340
  }
334
341
  ),
335
- A && /* @__PURE__ */ i(
342
+ S && /* @__PURE__ */ e(
336
343
  o,
337
344
  {
338
345
  widthX: 6,
339
346
  renderAs: "primary",
340
347
  size: "small",
341
- label: At,
342
- disabled: !d,
343
- onClick: Lt
348
+ label: gt,
349
+ disabled: !c,
350
+ onClick: Pt
344
351
  }
345
352
  ),
346
- p && /* @__PURE__ */ i(
353
+ f && /* @__PURE__ */ e(
347
354
  o,
348
355
  {
349
356
  renderAs: "primary",
350
357
  size: "small",
351
- label: St,
352
- disabled: Ct === !0 || !d,
353
- onClick: Nt
358
+ label: vt,
359
+ disabled: Et === !0 || !c,
360
+ onClick: jt
354
361
  }
355
362
  ),
356
- It && /* @__PURE__ */ i(o, { renderAs: "primary", size: "small", label: "Start", onClick: Qt }),
357
- wt && /* @__PURE__ */ i(o, { renderAs: "primary", size: "small", label: "Submit", onClick: $t }),
358
- _t && /* @__PURE__ */ i(
359
- C,
363
+ Vt && /* @__PURE__ */ e(o, { renderAs: "primary", size: "small", label: "Start", onClick: Jt }),
364
+ qt && /* @__PURE__ */ e(o, { renderAs: "primary", size: "small", label: "Submit", onClick: Kt }),
365
+ Lt && /* @__PURE__ */ e(
366
+ x,
360
367
  {
361
368
  renderAs: "primary",
362
- Icon: te,
369
+ Icon: ae,
363
370
  analyticsLabel: "Skip Section",
364
- onClick: Mt
371
+ onClick: Ot
365
372
  }
366
373
  ),
367
- !Z && Et && /* @__PURE__ */ i(
368
- C,
374
+ !et && Nt && /* @__PURE__ */ e(
375
+ x,
369
376
  {
370
377
  renderAs: "primary",
371
- Icon: Kt,
378
+ Icon: oe,
372
379
  disabled: t == null ? void 0 : t.validatedByTeacher,
373
380
  analyticsLabel: "Validate",
374
- onClick: Ht
381
+ onClick: Gt
375
382
  }
376
383
  ),
377
- Z && /* @__PURE__ */ i(
378
- ee,
384
+ et && /* @__PURE__ */ e(
385
+ dt,
379
386
  {
380
387
  position: "top",
381
388
  renderAs: "primary",
382
- tooltipItem: qt ?? "",
383
- hidden: !Vt,
384
- children: /* @__PURE__ */ i(
389
+ tooltipItem: Wt ?? "",
390
+ hidden: !$t,
391
+ children: /* @__PURE__ */ e("div", { ref: J ? zt : void 0, children: /* @__PURE__ */ e(
385
392
  o,
386
393
  {
387
394
  renderAs: "primary",
388
395
  size: "small",
389
- label: b === -2 ? "I have solved" : "Submit",
390
- onClick: mt,
391
- disabled: Ut
396
+ label: J ? "I have solved" : "Submit",
397
+ onClick: kt,
398
+ disabled: Mt
392
399
  }
393
- )
400
+ ) })
394
401
  }
395
402
  ),
396
- Dt && /* @__PURE__ */ i(o, { widthX: 6, renderAs: "primary", size: "small", label: "Unassign", onClick: Bt }),
397
- zt && /* @__PURE__ */ i(o, { widthX: 6, renderAs: "primary", size: "small", label: "Review", onClick: pt })
403
+ Ht && /* @__PURE__ */ e("div", { ref: Dt, children: /* @__PURE__ */ e(
404
+ o,
405
+ {
406
+ widthX: 6,
407
+ renderAs: "primary",
408
+ size: "small",
409
+ label: "Unassign",
410
+ onClick: bt
411
+ }
412
+ ) }),
413
+ Qt && /* @__PURE__ */ e(
414
+ dt,
415
+ {
416
+ tooltipItem: "Review this in class with student.",
417
+ position: "top",
418
+ renderAs: "primary",
419
+ hidden: !nt,
420
+ children: /* @__PURE__ */ e("div", { ref: Rt, children: /* @__PURE__ */ e(
421
+ o,
422
+ {
423
+ widthX: 6,
424
+ renderAs: "primary",
425
+ size: "small",
426
+ label: "Review",
427
+ onClick: yt,
428
+ disabled: nt
429
+ }
430
+ ) })
431
+ }
432
+ )
398
433
  ]
399
434
  }
400
435
  );
401
436
  });
402
437
  export {
403
- ke as default
438
+ xe as default
404
439
  };
405
440
  //# sourceMappingURL=worksheet-questions-controller.js.map