@cuemath/leap 3.2.30 → 3.2.31-m

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