@cuemath/leap 3.2.17-pzd-0.1 → 3.2.18-mb

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 (241) hide show
  1. package/dist/assets/illustrations/illustrations.js +5 -6
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/lottie/lottie.js +1 -6
  4. package/dist/assets/lottie/lottie.js.map +1 -1
  5. package/dist/features/analytics-events/platform-events-student.js +1 -2
  6. package/dist/features/analytics-events/platform-events-student.js.map +1 -1
  7. package/dist/features/analytics-events/platform-events-teacher.js +4 -6
  8. package/dist/features/analytics-events/platform-events-teacher.js.map +1 -1
  9. package/dist/features/analytics-events/whitelist-events.js +8 -10
  10. package/dist/features/analytics-events/whitelist-events.js.map +1 -1
  11. package/dist/features/auth/account-selector/account-selector.js +25 -26
  12. package/dist/features/auth/account-selector/account-selector.js.map +1 -1
  13. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +14 -15
  14. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +1 -1
  15. package/dist/features/auth/comps/user-list/user-item/user-item.js +31 -30
  16. package/dist/features/auth/comps/user-list/user-item/user-item.js.map +1 -1
  17. package/dist/features/auth/comps/user-list/user-list.js +34 -35
  18. package/dist/features/auth/comps/user-list/user-list.js.map +1 -1
  19. package/dist/features/auth/forgot-password/forgot-password-styled.js +15 -14
  20. package/dist/features/auth/forgot-password/forgot-password-styled.js.map +1 -1
  21. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js +7 -6
  22. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js.map +1 -1
  23. package/dist/features/auth/login/login-styled.js +9 -8
  24. package/dist/features/auth/login/login-styled.js.map +1 -1
  25. package/dist/features/chapters-v2/utils/node-card-utils.js +9 -9
  26. package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -1
  27. package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card-styled.js +4 -4
  28. package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card-styled.js.map +1 -1
  29. package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card.js +85 -85
  30. package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card.js.map +1 -1
  31. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +98 -121
  32. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +1 -1
  33. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js +28 -29
  34. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js.map +1 -1
  35. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js +42 -43
  36. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js.map +1 -1
  37. package/dist/features/circle-games/games/tutorial/tutorial.js +35 -43
  38. package/dist/features/circle-games/games/tutorial/tutorial.js.map +1 -1
  39. package/dist/features/circle-games/sign-up/comp/grade-input/grade-input-styled.js +2 -2
  40. package/dist/features/circle-games/sign-up/comp/grade-input/grade-input-styled.js.map +1 -1
  41. package/dist/features/circle-games/sign-up/comp/grade-input/grade-input.js +1 -1
  42. package/dist/features/circle-games/sign-up/comp/grade-input/grade-input.js.map +1 -1
  43. package/dist/features/circle-games/sign-up/comp/username-input/username-input.js +24 -26
  44. package/dist/features/circle-games/sign-up/comp/username-input/username-input.js.map +1 -1
  45. package/dist/features/circle-games/sign-up/constants.js +1 -3
  46. package/dist/features/circle-games/sign-up/constants.js.map +1 -1
  47. package/dist/features/communication/pub-sub/constants.js +4 -7
  48. package/dist/features/communication/pub-sub/constants.js.map +1 -1
  49. package/dist/features/cue-canvas/hooks/use-canvas-sync-broker.js +42 -42
  50. package/dist/features/cue-canvas/hooks/use-canvas-sync-broker.js.map +1 -1
  51. package/dist/features/homework/homework-card-view.js +97 -85
  52. package/dist/features/homework/homework-card-view.js.map +1 -1
  53. package/dist/features/homework/homework-card.js +42 -44
  54. package/dist/features/homework/homework-card.js.map +1 -1
  55. package/dist/features/homework/hw-card-list/hw-card-list-view.js +29 -31
  56. package/dist/features/homework/hw-card-list/hw-card-list-view.js.map +1 -1
  57. package/dist/features/homework/hw-card-list/hw-card-list.js +48 -54
  58. package/dist/features/homework/hw-card-list/hw-card-list.js.map +1 -1
  59. package/dist/features/homework/utils.js +27 -33
  60. package/dist/features/homework/utils.js.map +1 -1
  61. package/dist/features/hooks/use-viewport/use-viewport.js +22 -0
  62. package/dist/features/hooks/use-viewport/use-viewport.js.map +1 -0
  63. package/dist/features/journey/comps/coachmark/coachmark.js +27 -29
  64. package/dist/features/journey/comps/coachmark/coachmark.js.map +1 -1
  65. package/dist/features/journey/hooks/use-home-page-journey/tooltip-item.js +11 -17
  66. package/dist/features/journey/hooks/use-home-page-journey/tooltip-item.js.map +1 -1
  67. package/dist/features/journey/journey-id/journey-id-student.js +2 -2
  68. package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
  69. package/dist/features/journey/journey-id/journey-id-teacher.js +2 -2
  70. package/dist/features/journey/journey-id/journey-id-teacher.js.map +1 -1
  71. package/dist/features/journey/use-journey/journey-context-provider.js +72 -73
  72. package/dist/features/journey/use-journey/journey-context-provider.js.map +1 -1
  73. package/dist/features/journey/use-journey/journey-styled.js +4 -6
  74. package/dist/features/journey/use-journey/journey-styled.js.map +1 -1
  75. package/dist/features/puzzles/comps/puzzle-card-styled.js +69 -24
  76. package/dist/features/puzzles/comps/puzzle-card-styled.js.map +1 -1
  77. package/dist/features/puzzles/comps/puzzle-card.js +30 -79
  78. package/dist/features/puzzles/comps/puzzle-card.js.map +1 -1
  79. package/dist/features/puzzles/puzzle-container/puzzle-container-styled.js +25 -55
  80. package/dist/features/puzzles/puzzle-container/puzzle-container-styled.js.map +1 -1
  81. package/dist/features/puzzles/puzzle-container/puzzle-container.js +107 -100
  82. package/dist/features/puzzles/puzzle-container/puzzle-container.js.map +1 -1
  83. package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js +1 -1
  84. package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js.map +1 -1
  85. package/dist/features/puzzles/utils/puzzle-pattern.js +13 -28
  86. package/dist/features/puzzles/utils/puzzle-pattern.js.map +1 -1
  87. package/dist/features/stickers/sticker-data.js +234 -0
  88. package/dist/features/stickers/sticker-data.js.map +1 -0
  89. package/dist/features/{ui/sticker-grid/sticker-grid-styles.js → stickers/sticker-selector/sticker-selector-styles.js} +4 -3
  90. package/dist/features/stickers/sticker-selector/sticker-selector-styles.js.map +1 -0
  91. package/dist/features/stickers/sticker-selector/sticker-selector.js +25 -0
  92. package/dist/features/stickers/sticker-selector/sticker-selector.js.map +1 -0
  93. package/dist/features/stickers/sticker-selector/sticker.js +57 -0
  94. package/dist/features/stickers/sticker-selector/sticker.js.map +1 -0
  95. package/dist/features/{ui/stickers/stickers-effects.js → stickers/stickers-effects/effects.js} +6 -6
  96. package/dist/features/stickers/stickers-effects/effects.js.map +1 -0
  97. package/dist/features/{ui/stickers/stickers-styled.js → stickers/stickers-effects/stickers-effects-styled.js} +2 -2
  98. package/dist/features/stickers/stickers-effects/stickers-effects-styled.js.map +1 -0
  99. package/dist/features/stickers/stickers-effects/stickers-effects-utils.js +93 -0
  100. package/dist/features/stickers/stickers-effects/stickers-effects-utils.js.map +1 -0
  101. package/dist/features/stickers/stickers-effects/stickers-effects.js +39 -0
  102. package/dist/features/stickers/stickers-effects/stickers-effects.js.map +1 -0
  103. package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js +60 -12
  104. package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js.map +1 -1
  105. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +77 -72
  106. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
  107. package/dist/features/ui/error/error.js +27 -65
  108. package/dist/features/ui/error/error.js.map +1 -1
  109. package/dist/features/ui/lottie-animation/lottie-animation.js +29 -25
  110. package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
  111. package/dist/features/ui/modals/modal-styled.js +58 -34
  112. package/dist/features/ui/modals/modal-styled.js.map +1 -1
  113. package/dist/features/ui/modals/modal.js +14 -40
  114. package/dist/features/ui/modals/modal.js.map +1 -1
  115. package/dist/features/ui/nudge/nudge-styled.js +7 -14
  116. package/dist/features/ui/nudge/nudge-styled.js.map +1 -1
  117. package/dist/features/ui/nudge/nudge.js +12 -13
  118. package/dist/features/ui/nudge/nudge.js.map +1 -1
  119. package/dist/features/ui/streak-icon/streak-icon-styled.js +13 -13
  120. package/dist/features/ui/streak-icon/streak-icon-styled.js.map +1 -1
  121. package/dist/features/ui/streak-icon/streak-icon.js +15 -17
  122. package/dist/features/ui/streak-icon/streak-icon.js.map +1 -1
  123. package/dist/features/ui/text/text.js +36 -40
  124. package/dist/features/ui/text/text.js.map +1 -1
  125. package/dist/features/ui/theme/constants.js +2 -4
  126. package/dist/features/ui/theme/constants.js.map +1 -1
  127. package/dist/features/ui/theme/get-device.js +3 -3
  128. package/dist/features/ui/theme/get-device.js.map +1 -1
  129. package/dist/features/worksheet/worksheet/constants.js +13 -12
  130. package/dist/features/worksheet/worksheet/constants.js.map +1 -1
  131. package/dist/features/worksheet/worksheet/worksheet-helpers.js +19 -20
  132. package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
  133. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js +25 -29
  134. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js.map +1 -1
  135. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js +47 -101
  136. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js.map +1 -1
  137. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +255 -244
  138. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
  139. package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js +207 -242
  140. package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js.map +1 -1
  141. package/dist/features/worksheet/worksheet/worksheet-styled.js +36 -45
  142. package/dist/features/worksheet/worksheet/worksheet-styled.js.map +1 -1
  143. package/dist/features/worksheet/worksheet/worksheet-types.js.map +1 -1
  144. package/dist/features/worksheet/worksheet/worksheet.js +325 -321
  145. package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
  146. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js +1 -1
  147. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
  148. package/dist/features/worksheet/worksheet-preview/worksheet-preview.js +35 -44
  149. package/dist/features/worksheet/worksheet-preview/worksheet-preview.js.map +1 -1
  150. package/dist/index.d.ts +56 -152
  151. package/dist/index.js +539 -563
  152. package/dist/index.js.map +1 -1
  153. package/dist/static/nudge-tap.5cb30093.json +1057 -0
  154. package/dist/static/puzzle-pattern-blue.f4bea1ee.svg +1 -0
  155. package/dist/static/puzzle-pattern-green.c9f84bbc.svg +1 -0
  156. package/dist/static/puzzle-pattern-orange.3da09665.svg +1 -0
  157. package/dist/static/puzzle-pattern-purple.5fb5a319.svg +1 -0
  158. package/dist/static/puzzle-pattern-yellow.aadbf457.svg +1 -0
  159. package/package.json +1 -1
  160. package/dist/assets/line-icons/icons/cue-board-filled.js +0 -33
  161. package/dist/assets/line-icons/icons/cue-board-filled.js.map +0 -1
  162. package/dist/assets/line-icons/icons/cue-board.js +0 -23
  163. package/dist/assets/line-icons/icons/cue-board.js.map +0 -1
  164. package/dist/assets/line-icons/icons/hint-fill.js +0 -35
  165. package/dist/assets/line-icons/icons/hint-fill.js.map +0 -1
  166. package/dist/assets/line-icons/icons/screen-grab-filled.js +0 -35
  167. package/dist/assets/line-icons/icons/screen-grab-filled.js.map +0 -1
  168. package/dist/assets/line-icons/icons/screen-grab.js +0 -23
  169. package/dist/assets/line-icons/icons/screen-grab.js.map +0 -1
  170. package/dist/assets/line-icons/icons/sticker-filled.js +0 -64
  171. package/dist/assets/line-icons/icons/sticker-filled.js.map +0 -1
  172. package/dist/assets/line-icons/icons/sticker.js +0 -46
  173. package/dist/assets/line-icons/icons/sticker.js.map +0 -1
  174. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-assigned.js +0 -72
  175. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-assigned.js.map +0 -1
  176. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-attempt-journey.js +0 -59
  177. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-attempt-journey.js.map +0 -1
  178. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js +0 -63
  179. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js.map +0 -1
  180. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-intro-journey.js +0 -67
  181. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-intro-journey.js.map +0 -1
  182. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-progress-journey.js +0 -70
  183. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-progress-journey.js.map +0 -1
  184. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-review-journey.js +0 -59
  185. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-review-journey.js.map +0 -1
  186. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-unassign-journey.js +0 -59
  187. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-unassign-journey.js.map +0 -1
  188. package/dist/features/journey/hooks/use-puzzles-journey/use-teacher-puzzle-assigned-journey.js +0 -70
  189. package/dist/features/journey/hooks/use-puzzles-journey/use-teacher-puzzle-assigned-journey.js.map +0 -1
  190. package/dist/features/puzzles/api/puzzle-dashboard.js +0 -10
  191. package/dist/features/puzzles/api/puzzle-dashboard.js.map +0 -1
  192. package/dist/features/puzzles/app/puzzle-app-styled.js +0 -85
  193. package/dist/features/puzzles/app/puzzle-app-styled.js.map +0 -1
  194. package/dist/features/puzzles/app/puzzle-app-view.js +0 -120
  195. package/dist/features/puzzles/app/puzzle-app-view.js.map +0 -1
  196. package/dist/features/puzzles/app/puzzle-app.js +0 -62
  197. package/dist/features/puzzles/app/puzzle-app.js.map +0 -1
  198. package/dist/features/puzzles/constants/puzzle-container.js +0 -8
  199. package/dist/features/puzzles/constants/puzzle-container.js.map +0 -1
  200. package/dist/features/puzzles/puzzle-analytics-events.js +0 -11
  201. package/dist/features/puzzles/puzzle-analytics-events.js.map +0 -1
  202. package/dist/features/puzzles/puzzle-container/puzzle-container-view.js +0 -55
  203. package/dist/features/puzzles/puzzle-container/puzzle-container-view.js.map +0 -1
  204. package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard-styled.js +0 -37
  205. package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard-styled.js.map +0 -1
  206. package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js +0 -110
  207. package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js.map +0 -1
  208. package/dist/features/ui/arrow-tooltip/arrow-tooltip-constants.js +0 -6
  209. package/dist/features/ui/arrow-tooltip/arrow-tooltip-constants.js.map +0 -1
  210. package/dist/features/ui/arrow-tooltip/comps/tooltip-body-styled.js +0 -63
  211. package/dist/features/ui/arrow-tooltip/comps/tooltip-body-styled.js.map +0 -1
  212. package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js +0 -21
  213. package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js.map +0 -1
  214. package/dist/features/ui/sticker-grid/sticker-grid-styles.js.map +0 -1
  215. package/dist/features/ui/sticker-grid/sticker-grid.js +0 -24
  216. package/dist/features/ui/sticker-grid/sticker-grid.js.map +0 -1
  217. package/dist/features/ui/sticker-grid/sticker.js +0 -57
  218. package/dist/features/ui/sticker-grid/sticker.js.map +0 -1
  219. package/dist/features/ui/stickers/constants.js +0 -6
  220. package/dist/features/ui/stickers/constants.js.map +0 -1
  221. package/dist/features/ui/stickers/stickers-effects.js.map +0 -1
  222. package/dist/features/ui/stickers/stickers-styled.js.map +0 -1
  223. package/dist/features/ui/stickers/stickers-utils.js +0 -91
  224. package/dist/features/ui/stickers/stickers-utils.js.map +0 -1
  225. package/dist/features/ui/stickers/stickers.js +0 -40
  226. package/dist/features/ui/stickers/stickers.js.map +0 -1
  227. package/dist/features/worksheet/worksheet/hooks/use-worksheet-journey.js +0 -28
  228. package/dist/features/worksheet/worksheet/hooks/use-worksheet-journey.js.map +0 -1
  229. package/dist/static/nudge-tap.0591aef4.json +0 -1
  230. package/dist/static/puzzle-blue-lottie.7017e2e8.json +0 -1
  231. package/dist/static/puzzle-blue-lottie.bf64ebc5.json +0 -12760
  232. package/dist/static/puzzle-dashboard-banner.b7956519.svg +0 -1
  233. package/dist/static/puzzle-green-lottie.1da90698.json +0 -1
  234. package/dist/static/puzzle-orange-lottie.cfcf3724.json +0 -1
  235. package/dist/static/puzzle-pattern-blue.abff0164.svg +0 -1
  236. package/dist/static/puzzle-pattern-green.b8ba1840.svg +0 -1
  237. package/dist/static/puzzle-pattern-orange.3f5a17ff.svg +0 -1
  238. package/dist/static/puzzle-pattern-purple.14b09759.svg +0 -1
  239. package/dist/static/puzzle-pattern-yellow.50917fab.svg +0 -1
  240. package/dist/static/puzzle-purple-lottie.e70de110.json +0 -9860
  241. package/dist/static/puzzle-yellow-lottie.275b5cf4.json +0 -1
@@ -1,296 +1,307 @@
1
- import { jsxs as I, jsx as r, Fragment as Ut } from "react/jsx-runtime";
2
- import { memo as Dt, useMemo as $, useState as M, useRef as D, useCallback as Pt, useEffect as _, useLayoutEffect as Vt } from "react";
3
- import { IMAGES as Xt } from "../../../../assets/images/images.js";
4
- import jt from "../../../cue-canvas/cue-canvas.js";
5
- import Ft from "../../../pointer-sync/pointer.js";
1
+ import { jsxs as L, jsx as i, Fragment as Vt } from "react/jsx-runtime";
2
+ import { memo as Xt, useMemo as p, useState as T, useRef as K, useCallback as Pt, useEffect as R, useLayoutEffect as jt } from "react";
3
+ import { IMAGES as Gt } from "../../../../assets/images/images.js";
4
+ import Yt from "../../../cue-canvas/cue-canvas.js";
5
+ import Zt from "../../../pointer-sync/pointer.js";
6
6
  import Ht from "../../../ui/layout/flex-view.js";
7
- import Gt from "../../constants/events.js";
8
- import { QUESTIONS_GAP as Yt } from "../constants.js";
9
- import { getPaperColorByQuestion as Zt, isConceptIntroWidget as Kt, scrollToQuestion as vt } from "../worksheet-helpers.js";
10
- import Jt from "./header/header.js";
11
- import kt from "./learnosity-question.js";
12
- import qt from "./question-backdrop/question-backdrop.js";
13
- import ti from "./subjective-review.js";
14
- import ii from "./system-intros/advanced-practice-intro.js";
15
- import ri from "./system-intros/basic-practice-intro.js";
16
- import ei from "./system-intros/exit-ticket-intro.js";
17
- import oi from "./system-intros/regular-practice-intro.js";
18
- import { QuestionContainerWrapper as ni, StimulusReview as ci, QuestionContainer as ai, QuestionWrapper as mi, LessonOverviewBanner as li, CueCanvasWrapper as ui, Hint as si, Solution as hi } from "./worksheet-question-styled.js";
19
- const Ti = Dt(
7
+ import Jt from "../../constants/events.js";
8
+ import { QUESTIONS_GAP as kt, LEARNOSITY_KEYBOARD_HEIGHT as St } from "../constants.js";
9
+ import { getPaperColorByQuestion as qt, isConceptIntroWidget as te, scrollToQuestion as bt } from "../worksheet-helpers.js";
10
+ import ee from "./header/header.js";
11
+ import ie from "./learnosity-question.js";
12
+ import re from "./question-backdrop/question-backdrop.js";
13
+ import oe from "./subjective-review.js";
14
+ import ne from "./system-intros/advanced-practice-intro.js";
15
+ import ce from "./system-intros/basic-practice-intro.js";
16
+ import ae from "./system-intros/exit-ticket-intro.js";
17
+ import se from "./system-intros/regular-practice-intro.js";
18
+ import { QuestionContainerWrapper as le, StimulusReview as me, QuestionContainer as ue, QuestionWrapper as fe, LessonOverviewBanner as he, CueCanvasWrapper as de, Hint as ge, Solution as Ee } from "./worksheet-question-styled.js";
19
+ const Me = Xt(
20
20
  ({
21
- userType: n,
22
- signedRequest: St,
23
- worksheetCompleted: d,
24
- question: c,
25
- response: i,
26
- nextQuestionId: w,
27
- isActive: H,
28
- isHidden: T,
29
- canRender: P,
30
- loggerRef: A,
21
+ userType: c,
22
+ signedRequest: Ct,
23
+ worksheetCompleted: g,
24
+ question: n,
25
+ response: e,
26
+ nextQuestionId: v,
27
+ isActive: w,
28
+ isHidden: A,
29
+ canRender: V,
30
+ loggerRef: M,
31
31
  appended: a,
32
- maxQuestionWidth: V,
33
- behavior: X,
32
+ maxQuestionWidth: X,
33
+ behavior: P,
34
34
  layout: j,
35
- actionbarHeight: Rt,
36
- learnosity: S,
37
- intersectionObserver: F,
38
- background: G = "paper",
39
- onMediaStateChange: Wt,
40
- onMarkForReview: Ct,
41
- userId: pt,
42
- onPublishStrokes: Y,
43
- onReceiveStrokes: Z,
44
- isScribblingEnabled: K,
45
- initialStrokesData: B,
46
- isCanvasEnabled: J,
47
- onPublishMouseMove: k,
48
- onSubscribeMouseMove: q,
49
- setActiveQuestionId: tt,
50
- canResolveDoubt: Lt,
51
- onResolveDoubt: bt,
52
- studentId: xt,
53
- responses: It,
54
- subjectiveProps: it
35
+ actionbarHeight: Wt,
36
+ learnosity: b,
37
+ intersectionObserver: G,
38
+ background: Y = "paper",
39
+ onMediaStateChange: yt,
40
+ onMarkForReview: Bt,
41
+ userId: xt,
42
+ onPublishStrokes: Z,
43
+ onReceiveStrokes: J,
44
+ isScribblingEnabled: k,
45
+ initialStrokesData: O,
46
+ isCanvasEnabled: q,
47
+ onPublishMouseMove: tt,
48
+ onSubscribeMouseMove: et,
49
+ setActiveQuestionId: it,
50
+ canResolveDoubt: It,
51
+ onResolveDoubt: Lt,
52
+ studentId: Tt,
53
+ responses: At,
54
+ subjectiveProps: rt
55
55
  }) => {
56
- const R = $(
57
- () => G === "paper" ? Zt(c) : void 0,
58
- [G, c]
59
- ), [W, Mt] = M(), [rt, Tt] = M(), {
60
- validation: et,
61
- review: y,
62
- maximumAttempts: O,
63
- canExceedAttempts: ot,
64
- teacherValidationEnabled: C,
65
- solutionHidden: nt
66
- } = X, { minQuestionHeight: At, topOffset: ct, questionsScrollable: p, renderQuestionHeader: Bt, imageHue: at } = j, {
67
- type: v,
68
- response_id: e,
69
- stimulus_review: g,
70
- item_type: s,
56
+ const C = p(
57
+ () => Y === "paper" ? qt(n) : void 0,
58
+ [Y, n]
59
+ ), [W, Mt] = T(), [ot, Ot] = T(), {
60
+ validation: nt,
61
+ review: N,
62
+ maximumAttempts: ct,
63
+ canExceedAttempts: at,
64
+ teacherValidationEnabled: H,
65
+ solutionHidden: st
66
+ } = P, { minQuestionHeight: Nt, topOffset: lt, questionsScrollable: y, renderQuestionHeader: Qt } = j, {
67
+ type: E,
68
+ response_id: r,
69
+ stimulus_review: _,
70
+ item_type: f,
71
71
  instructor_stimulus: mt,
72
- metadata: { hints: h, solution: L, widget_reference: lt },
73
- item_reference: ut,
74
- question_number: st,
75
- item_number: ht,
76
- item_display_number: ft
77
- } = c, yt = !!g, b = s === "overview", l = Kt(mt), f = mt === "SystemIntro", dt = l || f, gt = i == null ? void 0 : i.responseEdited, Ot = $(() => {
72
+ metadata: { hints: h, solution: B, widget_reference: ut },
73
+ item_reference: ft,
74
+ question_number: ht,
75
+ item_number: dt,
76
+ item_display_number: gt
77
+ } = n, Ft = !!_, x = f === "overview", m = te(mt), d = mt === "SystemIntro", Q = m || d, Et = e == null ? void 0 : e.responseEdited, zt = p(() => {
78
78
  const t = [];
79
- return gt && n === "TEACHER" && t.push("attempting"), a || t.push("hidden"), v === "hotspot" && t.push("correct-answers-hidden"), a && C && v === "clozetext" && (!l || n === "STUDENT" ? t.push("response-hidden") : t.push("response-code-hidden")), b && t.push("lesson-overview"), l && t.push("concept-intro"), f && t.push("system-intro"), t.join(" ");
79
+ return Et && c === "TEACHER" && t.push("attempting"), a || t.push("hidden"), E === "hotspot" && t.push("correct-answers-hidden"), a && H && E === "clozetext" && (!m || c === "STUDENT" ? t.push("response-hidden") : t.push("response-code-hidden")), x && t.push("lesson-overview"), m && t.push("concept-intro"), d && t.push("system-intro"), t.join(" ");
80
80
  }, [
81
81
  a,
82
- l,
83
- b,
84
- f,
85
- v,
86
- gt,
87
- C,
88
- n
89
- ]), Q = D({}), N = (i == null ? void 0 : i.hintsUsed) ?? 0, [Et] = M((i == null ? void 0 : i.validatedByTeacher) ?? !1), x = D(null), z = D(null), U = $(() => h == null ? void 0 : h.slice(0, N), [h, N]), $t = $(() => n === "TEACHER" || d ? !0 : !i || !i.response || i.responseEdited ? !1 : et, [i, n, et, d]), _t = $(() => {
90
- if (n === "TEACHER") return !0;
91
- if (y) {
92
- const { attemptsHistory: t } = i ?? {};
93
- return ((t == null ? void 0 : t.length) ?? 0) >= O && !ot;
82
+ m,
83
+ x,
84
+ d,
85
+ E,
86
+ Et,
87
+ H,
88
+ c
89
+ ]), F = K({}), z = (e == null ? void 0 : e.hintsUsed) ?? 0, [_t] = T((e == null ? void 0 : e.validatedByTeacher) ?? !1), I = K(null), D = K(null), U = p(() => h == null ? void 0 : h.slice(0, z), [h, z]), $t = p(() => c === "TEACHER" || g ? !0 : !e || !e.response || e.responseEdited ? !1 : nt, [e, c, nt, g]), pt = p(() => {
90
+ if (c === "TEACHER") return !0;
91
+ if (N) {
92
+ const { attemptsHistory: t } = e ?? {};
93
+ return ((t == null ? void 0 : t.length) ?? 0) >= ct && !at;
94
94
  }
95
95
  return !1;
96
- }, [ot, O, i, y, n]), Qt = $(
97
- () => L && d && !nt,
98
- [nt, L, d]
99
- ), [wt, Nt] = M({
96
+ }, [at, ct, e, N, c]), Dt = p(
97
+ () => B && g && !st,
98
+ [st, B, g]
99
+ ), [Rt, Ut] = T({
100
100
  width: 0,
101
101
  height: 0
102
- }), zt = Pt((t) => {
103
- Tt(t);
102
+ }), Kt = Pt((t) => {
103
+ Ot(t);
104
104
  }, []);
105
- return _(() => {
106
- x.current && F.observe(x.current);
107
- }, [F]), _(() => {
108
- if (a && (c.type === "clozeassociation" || c.type === "association" || c.type === "clozeformula")) {
105
+ return R(() => {
106
+ I.current && G.observe(I.current);
107
+ }, [G]), R(() => {
108
+ if (a && (n.type === "clozeassociation" || n.type === "association" || n.type === "clozeformula")) {
109
109
  const t = document.querySelectorAll(
110
- `.widget-${c.response_id} .lrn_draggable`
110
+ `.widget-${n.response_id} .lrn_draggable`
111
111
  );
112
- let o = 0, m = 0;
113
- t.forEach((u) => {
114
- o = Math.max(o, u.clientWidth + 33), m = Math.max(m, u.clientHeight + 1);
115
- }), Nt({
116
- width: c.type !== "association" ? o : 0,
117
- height: m
112
+ let s = 0, o = 0;
113
+ t.forEach((l) => {
114
+ s = Math.max(s, l.clientWidth + 33), o = Math.max(o, l.clientHeight + 1);
115
+ }), Ut({
116
+ width: n.type !== "association" ? s : 0,
117
+ height: o
118
118
  });
119
119
  }
120
- }, [a, c.response_id, c.type]), _(() => {
120
+ }, [a, n.response_id, n.type]), R(() => {
121
121
  if (a && $t) {
122
- const t = S.question(e);
122
+ const t = b.question(r);
123
123
  t && t.validate({
124
- showCorrectAnswers: _t
124
+ showCorrectAnswers: pt
125
125
  });
126
126
  }
127
- }, [a, S, e, y, _t, n, $t]), _(() => {
128
- const t = z.current;
129
- if (a && t && A.current && Q.current[e] === void 0 && !l && !f) {
130
- const o = t.clientWidth, m = t.querySelectorAll("*");
131
- for (let u = 0; u < m.length; u++) {
132
- const E = m[u];
133
- if (E != null && E.closest(".resize-sensor"))
127
+ }, [a, b, r, N, pt, c, $t]), R(() => {
128
+ const t = D.current;
129
+ if (a && t && M.current && F.current[r] === void 0 && !m && !d) {
130
+ const s = t.clientWidth, o = t.querySelectorAll("*");
131
+ for (let l = 0; l < o.length; l++) {
132
+ const u = o[l];
133
+ if (u != null && u.closest(".resize-sensor"))
134
134
  continue;
135
- if (((E == null ? void 0 : E.clientWidth) ?? 0) > o) {
136
- Q.current[e] = !0, A.current(Gt.WORKSHEET_V3_GREATER_WIDTH_ELEMENT, {
137
- item_reference: ut,
138
- widget_reference: lt,
139
- question_type: v,
140
- question_number: st,
141
- responseId: e,
142
- item_number: ht,
143
- item_display_number: ft
135
+ if (((u == null ? void 0 : u.clientWidth) ?? 0) > s) {
136
+ F.current[r] = !0, M.current(Jt.WORKSHEET_V3_GREATER_WIDTH_ELEMENT, {
137
+ item_reference: ft,
138
+ widget_reference: ut,
139
+ question_type: E,
140
+ question_number: ht,
141
+ responseId: r,
142
+ item_number: dt,
143
+ item_display_number: gt
144
144
  });
145
145
  break;
146
146
  }
147
147
  }
148
- Q.current[e] = !1;
148
+ F.current[r] = !1;
149
149
  }
150
150
  }, [
151
151
  a,
152
- l,
153
- f,
152
+ m,
153
+ d,
154
+ gt,
155
+ dt,
154
156
  ft,
157
+ M,
158
+ E,
155
159
  ht,
156
- ut,
157
- A,
158
- v,
159
- st,
160
- e,
161
- lt
162
- ]), _(() => {
163
- const t = x.current, o = t == null ? void 0 : t.clientHeight;
164
- a && o && o > 0 && Mt((m) => {
165
- if (!m)
166
- return Math.ceil(o);
167
- const u = Math.ceil(o);
168
- return Math.abs(u - m) > 4 ? u : m;
169
- }), (N || yt || L && d) && S.renderMath("mathjax");
170
- }), Vt(() => {
171
- !p && !T && vt(e);
172
- }, [T, p, e, ct]), _(() => {
173
- if (C && w && !Et && (i != null && i.validatedByTeacher)) {
160
+ r,
161
+ ut
162
+ ]), R(() => {
163
+ const t = I.current, s = (o) => {
164
+ const l = o.querySelector(".lrn_response_wrapper");
165
+ if (Q || !l)
166
+ return 0;
167
+ const u = o.getBoundingClientRect().bottom, S = l.getBoundingClientRect().bottom, $ = Math.abs(u - S);
168
+ return $ < St ? St - $ : 0;
169
+ };
170
+ a && t && Mt((o) => {
171
+ var wt;
172
+ const S = ((wt = n.ui_style) == null ? void 0 : wt.type) === "floating-keyboard" && !(H && E === "clozetext"), $ = t.clientHeight;
173
+ if ($ === 0)
174
+ return o;
175
+ if (!o)
176
+ return Math.ceil(
177
+ $ + (S ? s(t) : 0)
178
+ );
179
+ const vt = Math.ceil(
180
+ $ + (S ? s(t) : 0)
181
+ );
182
+ return Math.abs(vt - o) > 4 ? vt : o;
183
+ }), (z || Ft || B && g) && b.renderMath("mathjax");
184
+ }), jt(() => {
185
+ !y && !A && bt(r);
186
+ }, [A, y, r, lt]), R(() => {
187
+ if (H && v && !_t && (e != null && e.validatedByTeacher)) {
174
188
  const t = setTimeout(() => {
175
- p ? vt(w) : tt(w);
189
+ y ? bt(v) : it(v);
176
190
  }, 1e3);
177
191
  return () => {
178
192
  clearTimeout(t);
179
193
  };
180
194
  }
181
195
  }, [
182
- w,
183
- C,
184
- Et,
185
- p,
186
- tt,
187
- i == null ? void 0 : i.validatedByTeacher
188
- ]), /* @__PURE__ */ I(
189
- ni,
196
+ v,
197
+ H,
198
+ _t,
199
+ y,
200
+ it,
201
+ e == null ? void 0 : e.validatedByTeacher
202
+ ]), /* @__PURE__ */ L(
203
+ le,
190
204
  {
191
- "data-response-id": e,
192
- className: `widget-${e}`,
193
- ref: x,
194
- $topOffset: ct,
195
- $flexDirection: g ? "row" : "column",
196
- $alignItems: g ? "flex-start" : "center",
197
- $hidden: T,
198
- $marginBottom: Yt,
205
+ "data-response-id": r,
206
+ className: `widget-${r}`,
207
+ ref: I,
208
+ $topOffset: lt,
209
+ $flexDirection: _ ? "row" : "column",
210
+ $alignItems: _ ? "flex-start" : "center",
211
+ $hidden: A,
212
+ $marginBottom: kt,
199
213
  children: [
200
- g && /* @__PURE__ */ r(
201
- ci,
214
+ _ && /* @__PURE__ */ i(
215
+ me,
202
216
  {
203
217
  dangerouslySetInnerHTML: {
204
- __html: g
218
+ __html: _
205
219
  }
206
220
  }
207
221
  ),
208
- /* @__PURE__ */ I(
209
- ai,
222
+ /* @__PURE__ */ L(
223
+ ue,
210
224
  {
211
- ref: z,
212
- $width: g ? "50%" : `${V}px`,
213
- $minHeight: W ? Math.max(W - 72, rt ?? 0) : At,
214
- $isActive: H,
215
- $paperColor: R,
216
- $opacity: H ? 1 : 0.2,
217
- $imageHue: at,
225
+ ref: D,
226
+ $width: _ ? "50%" : `${X}px`,
227
+ $minHeight: W ? Math.max(W - 72, ot ?? 0) : Nt,
228
+ $isActive: w,
229
+ $paperColor: C,
230
+ $opacity: w ? 1 : 0.2,
218
231
  children: [
219
- H && !!k && !!q && J && /* @__PURE__ */ r(
220
- Ft,
232
+ w && !!tt && !!et && q && /* @__PURE__ */ i(
233
+ Zt,
221
234
  {
222
- containerRef: z,
223
- onPublish: k,
224
- onSubscribe: q,
225
- responseId: e
235
+ containerRef: D,
236
+ onPublish: tt,
237
+ onSubscribe: et,
238
+ responseId: r
226
239
  }
227
240
  ),
228
- /* @__PURE__ */ I(
229
- mi,
241
+ /* @__PURE__ */ L(
242
+ fe,
230
243
  {
231
- className: Ot,
232
- $dropzoneMinWidth: wt.width,
233
- $dropzoneMinHeight: wt.height,
244
+ className: zt,
245
+ $dropzoneMinWidth: Rt.width,
246
+ $dropzoneMinHeight: Rt.height,
234
247
  children: [
235
- Bt && !(b || l || f) && /* @__PURE__ */ r(
236
- Jt,
248
+ Qt && !(x || m || d) && /* @__PURE__ */ i(
249
+ ee,
237
250
  {
238
- userType: n,
239
- question: c,
240
- response: i,
241
- behavior: X,
251
+ userType: c,
252
+ question: n,
253
+ response: e,
254
+ behavior: P,
242
255
  layout: j,
243
- paperColor: R,
244
- onMarkForReview: Ct,
245
- actionbarHeight: Rt,
246
- canResolveDoubt: Lt,
247
- onResolveDoubt: bt,
248
- worksheetCompleted: d
256
+ paperColor: C,
257
+ onMarkForReview: Bt,
258
+ actionbarHeight: Wt,
259
+ canResolveDoubt: It,
260
+ onResolveDoubt: Lt,
261
+ worksheetCompleted: g
249
262
  }
250
263
  ),
251
- b && /* @__PURE__ */ r(li, { src: Xt.LESSON_OVERVIEW_BANNER }),
252
- l && R && /* @__PURE__ */ r(qt, { paperColor: R }),
253
- f ? /* @__PURE__ */ I(Ut, { children: [
254
- s === "practice-basic" && /* @__PURE__ */ r(ri, {}),
255
- s === "practice-regular" && /* @__PURE__ */ r(oi, {}),
256
- s === "exit-ticket" && /* @__PURE__ */ r(ei, {}),
257
- (s == null ? void 0 : s.startsWith("advanced-")) && /* @__PURE__ */ r(ii, {})
264
+ x && /* @__PURE__ */ i(he, { src: Gt.LESSON_OVERVIEW_BANNER }),
265
+ m && C && /* @__PURE__ */ i(re, { paperColor: C }),
266
+ d ? /* @__PURE__ */ L(Vt, { children: [
267
+ f === "practice-basic" && /* @__PURE__ */ i(ce, {}),
268
+ f === "practice-regular" && /* @__PURE__ */ i(se, {}),
269
+ f === "exit-ticket" && /* @__PURE__ */ i(ae, {}),
270
+ (f == null ? void 0 : f.startsWith("advanced-")) && /* @__PURE__ */ i(ne, {})
258
271
  ] }) : void 0,
259
- /* @__PURE__ */ r(
260
- kt,
272
+ /* @__PURE__ */ i(
273
+ ie,
261
274
  {
262
- signedRequest: St,
275
+ signedRequest: Ct,
263
276
  appended: a,
264
- question: c,
265
- response: i == null ? void 0 : i.response,
266
- canRender: P || H,
267
- learnosity: S,
268
- canForceAppend: n === "TEACHER",
269
- isConceptIntro: l,
270
- simState: i == null ? void 0 : i.simState,
271
- onMediaStateChange: Wt,
272
- imageHue: at,
273
- isPuzzle: O === -2
277
+ question: n,
278
+ response: e == null ? void 0 : e.response,
279
+ canRender: V || w,
280
+ learnosity: b,
281
+ canForceAppend: c === "TEACHER",
282
+ isConceptIntro: m,
283
+ simState: e == null ? void 0 : e.simState,
284
+ onMediaStateChange: yt
274
285
  }
275
286
  ),
276
- !dt && J && Y && Z && W !== void 0 && /* @__PURE__ */ r(ui, { $canScribble: K, children: /* @__PURE__ */ r(
277
- jt,
287
+ !Q && q && Z && J && W !== void 0 && /* @__PURE__ */ i(de, { $canScribble: k, children: /* @__PURE__ */ i(
288
+ Yt,
278
289
  {
279
- canRender: P,
280
- canScribble: K && H,
290
+ canRender: V,
291
+ canScribble: k && w,
281
292
  appended: a,
282
- canvasId: e,
283
- width: V,
284
- height: Math.max(W, rt ?? 0),
285
- onUpdateHeight: zt,
286
- onPublish: Y,
287
- onSubscribe: Z,
288
- userId: pt,
289
- initialData: B == null ? void 0 : B[e],
290
- userType: n
293
+ canvasId: r,
294
+ width: X,
295
+ height: Math.max(W, ot ?? 0),
296
+ onUpdateHeight: Kt,
297
+ onPublish: Z,
298
+ onSubscribe: J,
299
+ userId: xt,
300
+ initialData: O == null ? void 0 : O[r],
301
+ userType: c
291
302
  }
292
303
  ) }),
293
- !dt && U && U.length > 0 && /* @__PURE__ */ r(
304
+ !Q && U && U.length > 0 && /* @__PURE__ */ i(
294
305
  Ht,
295
306
  {
296
307
  $background: "BLUE_1",
@@ -298,18 +309,18 @@ const Ti = Dt(
298
309
  $gapX: 0.5,
299
310
  $borderRadiusX: 0,
300
311
  $borderColor: "BLUE_2",
301
- children: U.map((t, o) => /* @__PURE__ */ r(
302
- si,
312
+ children: U.map((t, s) => /* @__PURE__ */ i(
313
+ ge,
303
314
  {
304
315
  dangerouslySetInnerHTML: {
305
- __html: `<span style="color: #DA5107; font-weight: 600;">Hint${((h == null ? void 0 : h.length) ?? 0) > 1 ? ` ${o + 1}` : ""}:</span>&nbsp;${t}`
316
+ __html: `<span style="color: #DA5107; font-weight: 600;">Hint${((h == null ? void 0 : h.length) ?? 0) > 1 ? ` ${s + 1}` : ""}:</span>&nbsp;${t}`
306
317
  }
307
318
  },
308
319
  t
309
320
  ))
310
321
  }
311
322
  ),
312
- Qt && /* @__PURE__ */ r(
323
+ Dt && /* @__PURE__ */ i(
313
324
  Ht,
314
325
  {
315
326
  $background: "YELLOW_1",
@@ -317,26 +328,26 @@ const Ti = Dt(
317
328
  $gapX: 0.875,
318
329
  $borderRadiusX: 0,
319
330
  $borderColor: "YELLOW_2",
320
- children: /* @__PURE__ */ r(
321
- hi,
331
+ children: /* @__PURE__ */ i(
332
+ Ee,
322
333
  {
323
334
  dangerouslySetInnerHTML: {
324
- __html: `<div style="color: #DA5107; font-weight: 600;">Solution:</div>${L}`
335
+ __html: `<div style="color: #DA5107; font-weight: 600;">Solution:</div>${B}`
325
336
  }
326
337
  }
327
338
  )
328
339
  }
329
340
  ),
330
- !!it && /* @__PURE__ */ r(
331
- ti,
341
+ !!rt && /* @__PURE__ */ i(
342
+ oe,
332
343
  {
333
- responses: It,
334
- response: i,
335
- nextQuestionId: w,
336
- responseId: e,
337
- studentId: xt,
338
- userType: n,
339
- ...it
344
+ responses: At,
345
+ response: e,
346
+ nextQuestionId: v,
347
+ responseId: r,
348
+ studentId: Tt,
349
+ userType: c,
350
+ ...rt
340
351
  }
341
352
  )
342
353
  ]
@@ -351,6 +362,6 @@ const Ti = Dt(
351
362
  }
352
363
  );
353
364
  export {
354
- Ti as default
365
+ Me as default
355
366
  };
356
367
  //# sourceMappingURL=worksheet-question.js.map