@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,454 +1,509 @@
1
- import { jsxs as y, Fragment as lt, jsx as i } from "react/jsx-runtime";
2
- import { memo as dt, forwardRef as mt, useMemo as K, useState as I, useCallback as S, useEffect as T, useLayoutEffect as ut } from "react";
1
+ import { jsxs as R, Fragment as ut, jsx as o } from "react/jsx-runtime";
2
+ import { captureMessage as Y } from "@sentry/browser";
3
+ import { memo as mt, forwardRef as ft, useMemo as Z, useState as v, useCallback as y, useEffect as b, useLayoutEffect as pt } from "react";
3
4
  import ht from "../../../assets/line-icons/icons/check2.js";
4
- import ft from "../../../assets/line-icons/icons/info2.js";
5
- import pt from "../../../helpers/get-device-details.js";
6
- import gt from "../../sheet-tools/desmos-calculator/desmos-calculator.js";
7
- import de from "../../ui/layout/flex-view.js";
8
- import bt from "../../ui/text/text.js";
9
- import Ct from "../user-pointer-pin/user-pin.js";
10
- import { WORKSHEET_NUDGE_BANNER_HEIGHT as me, TOP_NAVIGATION_HEIGHT as It, DESMOS_CALC_POSITION as St } from "./constants.js";
11
- import kt from "./hooks/use-create-imperative-handle.js";
12
- import $t from "./hooks/use-get-active-question-id.js";
13
- import Tt from "./hooks/use-time-on-questions.js";
14
- import vt from "./question-tips.js";
5
+ import gt from "../../../assets/line-icons/icons/info2.js";
6
+ import bt from "../../../helpers/get-device-details.js";
7
+ import It from "../../sheet-tools/desmos-calculator/desmos-calculator.js";
8
+ import me from "../../ui/layout/flex-view.js";
9
+ import St from "../../ui/text/text.js";
10
+ import Ct from "../constants/events.js";
11
+ import vt from "../user-pointer-pin/user-pin.js";
12
+ import { WORKSHEET_NUDGE_BANNER_HEIGHT as fe, TOP_NAVIGATION_HEIGHT as yt, DESMOS_CALC_POSITION as Tt } from "./constants.js";
13
+ import $t from "./hooks/use-create-imperative-handle.js";
14
+ import _t from "./hooks/use-get-active-question-id.js";
15
+ import Et from "./hooks/use-time-on-questions.js";
16
+ import kt from "./question-tips.js";
15
17
  import wt from "./worksheet-action-bar/worksheet-action-bar.js";
16
- import Et from "./worksheet-blocker/worksheet-blocker.js";
17
- import { getWorksheetDimensions as Nt, getQuestionsFromItems as At, getInitialResponses as Bt, getLastUnlockedQuestionIndex as ue, getInitialQuestionId as yt, getQuestionMetadata as he, scrollToQuestion as x, getRenderableQuestions as Wt, getWorksheetNudgeBannerInfo as _t } from "./worksheet-helpers.js";
18
- import Ot from "./worksheet-navigation/worksheet-navigation.js";
19
- import Dt from "./worksheet-question/worksheet-question.js";
20
- import Vt from "./worksheet-sidebar/navigator.js";
21
- import Ht from "./worksheet-sidebar/sidebar.js";
22
- import { NudgeBannerWrapper as Mt, NudgeBannerIcon as fe, WorksheetContainer as xt, NavigationContainer as Rt, NavigationWrapper as Pt, BlockerWrapper as Qt, DesmosCalcWrapper as Gt, ActionbarContainer as Ft, ActionbarWrapper as jt, StudentWorksheetSideBar as zt, QuestionsWrapper as Lt } from "./worksheet-styled.js";
23
- import qt from "./worksheet-summary/worksheet-summary.js";
24
- const Xt = (pe, ge) => {
18
+ import Nt from "./worksheet-blocker/worksheet-blocker.js";
19
+ import { getWorksheetDimensions as At, getQuestionsFromItems as Bt, getInitialResponses as Wt, getLastUnlockedQuestionIndex as pe, getInitialQuestionId as Ot, getQuestionMetadata as he, scrollToQuestion as Q, getRenderableQuestions as Rt, getWorksheetNudgeBannerInfo as Dt } from "./worksheet-helpers.js";
20
+ import Vt from "./worksheet-navigation/worksheet-navigation.js";
21
+ import Ht from "./worksheet-question/worksheet-question.js";
22
+ import Mt from "./worksheet-sidebar/navigator.js";
23
+ import xt from "./worksheet-sidebar/sidebar.js";
24
+ import { NudgeBannerWrapper as qt, NudgeBannerIcon as ge, WorksheetContainer as Pt, NavigationContainer as Qt, NavigationWrapper as Gt, BlockerWrapper as Lt, DesmosCalcWrapper as Ft, ActionbarContainer as jt, ActionbarWrapper as Ut, StudentWorksheetSideBar as Kt, QuestionsWrapper as Xt } from "./worksheet-styled.js";
25
+ import zt from "./worksheet-summary/worksheet-summary.js";
26
+ const Jt = (be, Ie) => {
25
27
  const {
26
- userType: r,
27
- studentName: be = "Student",
28
+ userType: s,
29
+ studentName: Se = "Student",
28
30
  questionsSignedRequest: Ce,
29
- worksheetName: U,
30
- initialResponseId: Ie,
31
- initialItemIndex: Se,
32
- // learnosityActivityRef,
33
- learnosityItems: R,
34
- learnosityResponses: ke,
35
- layout: k,
31
+ worksheetName: ee,
32
+ initialResponseId: ve,
33
+ initialItemIndex: ye,
34
+ learnosityActivityRef: E,
35
+ learnosityItems: k,
36
+ learnosityResponses: Te,
37
+ layout: T,
36
38
  background: $e,
37
39
  behavior: a,
38
- updatedResponses: P,
39
- showNudgeBanner: Te,
40
- markedAsCompleted: J,
41
- onResponseChange: f,
42
- onBulkResponsesChange: ve,
43
- onResponsesChange: Q,
44
- onMediaStateChange: G,
45
- onTeacherValidation: Y,
46
- onOptionalItemAssignment: we,
47
- onOptionalItemSkip: Ee,
48
- onExitTicketStart: W,
49
- onExitTicketSubmit: _,
40
+ updatedResponses: G,
41
+ showNudgeBanner: _e,
42
+ markedAsCompleted: te,
43
+ onResponseChange: I,
44
+ onBulkResponsesChange: Ee,
45
+ onResponsesChange: L,
46
+ onMediaStateChange: F,
47
+ onTeacherValidation: ie,
48
+ onOptionalItemAssignment: ke,
49
+ onOptionalItemSkip: we,
50
+ onExitTicketStart: D,
51
+ onExitTicketSubmit: V,
50
52
  onSubmit: Ne,
51
- learnosity: p,
52
- appendedQuestionIds: Z,
53
+ learnosity: S,
54
+ appendedQuestionIds: ne,
53
55
  worksheetCompleted: Ae,
54
56
  userId: Be,
55
- onPublishStrokes: ye,
56
- onReceiveStrokes: We,
57
- initialStrokesData: _e,
58
- isCanvasEnabled: ee,
59
- onHelp: Oe,
60
- onPublishMouseMove: De,
61
- onSubscribeMouseMove: Ve,
62
- onActiveQuestionChange: F,
63
- openQuestionFeedbackModal: He,
64
- summaryDescription: Me,
65
- canSubmitWorksheet: xe,
66
- loggerRef: j,
67
- canResolveDoubt: Re,
68
- onResolveDoubt: Pe,
69
- onSkip: Qe,
70
- onUnassign: Ge,
57
+ onPublishStrokes: We,
58
+ onReceiveStrokes: Oe,
59
+ initialStrokesData: Re,
60
+ isCanvasEnabled: oe,
61
+ onHelp: De,
62
+ onPublishMouseMove: Ve,
63
+ onSubscribeMouseMove: He,
64
+ onActiveQuestionChange: j,
65
+ openQuestionFeedbackModal: Me,
66
+ summaryDescription: xe,
67
+ canSubmitWorksheet: qe,
68
+ loggerRef: w,
69
+ canResolveDoubt: Pe,
70
+ onResolveDoubt: Qe,
71
+ onSkip: Ge,
72
+ onUnassign: Le,
71
73
  onReview: Fe,
72
74
  canToggleScribbling: je = !0,
73
- studentId: ze,
74
- subjectiveProps: Le,
75
- canShowActionBar: qe = !0
76
- } = pe, { initialQuestion: Xe, navigationMode: m, teacherValidationEnabled: Ke, maximumAttempts: te } = a, {
77
- containerStyle: O,
78
- containerWidth: Ue,
79
- minQuestionHeight: ie,
80
- minSummaryHeight: Je,
81
- questionsScrollable: D,
82
- navigationBar: Ye,
83
- topOffset: V,
84
- renderSideBar: Ze,
85
- showUserPointer: et = !0
86
- } = k, ne = te === -2, { actionbarHeight: g, maxQuestionWidth: z, questionsContainerWidth: L } = K(
87
- () => Nt(R, k),
88
- [k, R]
89
- ), [t] = I(
90
- () => At(R, {
91
- sectioned: Ke && m !== "ADAPTIVE" && m !== "CURRENT",
92
- adaptive: m === "ADAPTIVE"
75
+ studentId: Ue,
76
+ subjectiveProps: Ke,
77
+ canShowActionBar: Xe = !0
78
+ } = be, { initialQuestion: ze, navigationMode: p, teacherValidationEnabled: U } = a, {
79
+ containerStyle: H,
80
+ containerWidth: Je,
81
+ minQuestionHeight: re,
82
+ minSummaryHeight: Ye,
83
+ questionsScrollable: M,
84
+ navigationBar: Ze,
85
+ topOffset: x,
86
+ renderSideBar: et,
87
+ showUserPointer: tt = !0,
88
+ imageHue: se
89
+ } = T, { actionbarHeight: C, maxQuestionWidth: K, questionsContainerWidth: X } = Z(
90
+ () => At(k, T),
91
+ [T, k]
92
+ ), [t] = v(
93
+ () => Bt(k, {
94
+ sectioned: U && p !== "ADAPTIVE" && p !== "CURRENT",
95
+ adaptive: p === "ADAPTIVE"
93
96
  })
94
- ), [c, v] = I(
95
- () => ke ?? Bt(t)
96
- ), [oe, tt] = I(!1), u = K(
97
- () => m !== "OPEN" ? ue({
97
+ ), [c, N] = v(
98
+ () => Te ?? Wt(t)
99
+ ), [ae, it] = v(!1), h = Z(
100
+ () => p !== "OPEN" ? pe({
98
101
  questions: t,
99
102
  responses: c,
100
103
  behavior: a,
101
- userType: r
104
+ userType: s
102
105
  }) : t.length - 1,
103
- [a, m, t, c, r]
104
- ), l = t[u], n = c[(l == null ? void 0 : l.response_id) ?? ""], { bannerBackgroundColor: it, label: nt } = _t(r, !!J), [w] = I(
105
- () => yt({
106
+ [a, p, t, c, s]
107
+ ), l = t[h], r = c[(l == null ? void 0 : l.response_id) ?? ""], { bannerBackgroundColor: nt, label: ot } = Dt(s, !!te), [A] = v(
108
+ () => Ot({
106
109
  questions: t,
107
- initialQuestion: Xe,
108
- lastUnlockedQuestionIndex: ue({
110
+ initialQuestion: ze,
111
+ lastUnlockedQuestionIndex: pe({
109
112
  questions: t,
110
113
  responses: c,
111
114
  behavior: a,
112
- userType: r
115
+ userType: s
113
116
  }),
114
- initialResponseId: Ie,
115
- initialItemIndex: Se
117
+ initialResponseId: ve,
118
+ initialItemIndex: ye
116
119
  })
117
- ), { activeQuestionId: E, setActiveQuestionId: H, intersectionObserver: q } = $t(w), d = K(
118
- () => t.findIndex((e) => e.response_id === E),
119
- [E, t]
120
- ), [h, X] = I(!1), [re, N] = I(), [se, ae] = I(!1), ce = Tt(a, c, E), ot = S(
121
- (e, s, o) => {
122
- const b = s === "SIMULATION" ? "simState" : void 0;
123
- b && (f ? v(($) => {
124
- const C = e.response_id, B = he(t, C);
125
- if (!B) return $;
126
- const le = {
127
- ...B,
128
- ...$[C],
129
- [b]: o
120
+ ), { activeQuestionId: B, setActiveQuestionId: q, intersectionObserver: z } = _t(A), f = Z(
121
+ () => t.findIndex((e) => e.response_id === B),
122
+ [B, t]
123
+ ), [g, J] = v(!1), [ce, W] = v(), [le, de] = v(!1), ue = Et(a, c, B), rt = y(
124
+ (e, i, n) => {
125
+ const d = i === "SIMULATION" ? "simState" : void 0;
126
+ d && (I ? N((u) => {
127
+ const m = e.response_id, $ = he(t, m);
128
+ if (!$) return u;
129
+ const _ = {
130
+ ...$,
131
+ ...u[m],
132
+ [d]: n
130
133
  };
131
- return f == null || f({
132
- responseId: C,
133
- response: le,
134
+ return I == null || I({
135
+ responseId: m,
136
+ response: _,
134
137
  isNewAttempt: !1,
135
138
  question: e
136
139
  }), {
137
- ...$,
138
- [C]: le
140
+ ...u,
141
+ [m]: _
139
142
  };
140
- }) : G && G(e, s, o));
143
+ }) : F && F(e, i, n));
141
144
  },
142
- [G, f, t]
143
- ), rt = S(
144
- (e, s) => {
145
- v((o) => {
146
- const b = he(t, e);
147
- return b ? {
148
- ...o,
145
+ [F, I, t]
146
+ ), st = y(
147
+ (e, i) => {
148
+ N((n) => {
149
+ const d = he(t, e);
150
+ return d ? {
151
+ ...n,
149
152
  [e]: {
150
- ...b,
151
- ...o[e],
152
- markedForReview: s
153
+ ...d,
154
+ ...n[e],
155
+ markedForReview: i
153
156
  }
154
- } : o;
157
+ } : n;
155
158
  });
156
159
  },
157
160
  [t]
158
- ), A = S(() => {
159
- N((e) => {
160
- var s;
161
+ ), O = y(() => {
162
+ W((e) => {
163
+ var i;
161
164
  if (e) {
162
- const o = (s = t[u]) == null ? void 0 : s.response_id;
163
- o && setTimeout(() => {
164
- x(o);
165
+ const n = (i = t[h]) == null ? void 0 : i.response_id;
166
+ n && setTimeout(() => {
167
+ Q(n);
165
168
  }, 50);
166
169
  }
167
170
  });
168
- }, [u, t]), M = S(
171
+ }, [h, t]), P = y(
169
172
  (e) => {
170
- X(!1), D ? requestAnimationFrame(() => x(e)) : H(e);
173
+ J(!1), M ? requestAnimationFrame(() => Q(e)) : q(e);
171
174
  },
172
- [D, H]
173
- ), st = S(() => {
174
- ae(!1);
175
- }, []), at = S(() => {
176
- ae(!0);
177
- }, []), ct = S(() => {
178
- X(!0);
175
+ [M, q]
176
+ ), at = y(() => {
177
+ de(!1);
178
+ }, []), ct = y(() => {
179
+ de(!0);
180
+ }, []), lt = y(() => {
181
+ J(!0);
179
182
  }, []);
180
- return T(() => {
181
- const e = t[d];
182
- e && F && F(e);
183
- }, [F, t, d]), kt(ge, {
183
+ return b(() => {
184
+ const e = t[f];
185
+ e && j && j(e);
186
+ }, [j, t, f]), $t(Ie, {
184
187
  behavior: a,
185
188
  questions: t,
186
- setResponses: v,
187
- onResponseChange: f,
188
- onBulkResponsesChange: ve,
189
- getTimeSpentOnQuestion: ce
190
- }), T(() => () => {
191
- q.disconnect();
192
- }, [q]), T(() => {
193
- Q && c && Q(c);
194
- }, [Q, c]), T(() => {
195
- P && v(P);
196
- }, [P]), ut(() => {
189
+ setResponses: N,
190
+ onResponseChange: I,
191
+ onBulkResponsesChange: Ee,
192
+ getTimeSpentOnQuestion: ue
193
+ }), b(() => () => {
194
+ z.disconnect();
195
+ }, [z]), b(() => {
196
+ L && c && L(c);
197
+ }, [L, c]), b(() => {
198
+ G && N(G);
199
+ }, [G]), pt(() => {
197
200
  let e;
198
- return p && w && (pt().browser_name === "Safari" ? e = setTimeout(() => {
199
- x(w);
200
- }, 400) : x(w)), () => {
201
+ return S && A && (bt().browser_name === "Safari" ? e = setTimeout(() => {
202
+ Q(A);
203
+ }, 400) : Q(A)), () => {
201
204
  clearTimeout(e);
202
205
  };
203
- }, [p, w, V]), T(() => {
206
+ }, [S, A, x]), b(() => {
204
207
  if (a.teacherValidationEnabled && l) {
205
- const { item_type: e, instructor_stimulus: s, is_optional: o } = l;
206
- r === "TEACHER" && (e === "exit-ticket" && s !== "SystemIntro" ? n != null && n.submittedByStudent && !(n != null && n.validatedByTeacher) ? N("exit-ticket-review-available") : n != null && n.validatedByTeacher ? A() : N("exit-ticket-teacher-intervention") : o ? n != null && n.assignStatus ? A() : N("optional-items-assignment") : o || A());
208
+ const { item_type: e, instructor_stimulus: i, is_optional: n } = l;
209
+ s === "TEACHER" && (e === "exit-ticket" && i !== "SystemIntro" ? r != null && r.submittedByStudent && !(r != null && r.validatedByTeacher) ? W("exit-ticket-review-available") : r != null && r.validatedByTeacher ? O() : W("exit-ticket-teacher-intervention") : n ? r != null && r.assignStatus ? O() : W("optional-items-assignment") : n || O());
207
210
  }
208
211
  }, [
209
212
  a.teacherValidationEnabled,
210
- A,
213
+ O,
211
214
  l,
212
- n,
213
- r
214
- ]), T(() => {
215
+ r,
216
+ s
217
+ ]), b(() => {
215
218
  if (a.teacherValidationEnabled && l) {
216
- const { item_type: e, instructor_stimulus: s } = l;
217
- r === "STUDENT" && e === "exit-ticket" && s !== "SystemIntro" && (n != null && n.submittedByStudent ? _ == null || _() : W == null || W());
219
+ const { item_type: e, instructor_stimulus: i } = l;
220
+ s === "STUDENT" && e === "exit-ticket" && i !== "SystemIntro" && (r != null && r.submittedByStudent ? V == null || V() : D == null || D());
218
221
  }
219
222
  }, [
220
223
  a.teacherValidationEnabled,
221
224
  l,
222
- n == null ? void 0 : n.submittedByStudent,
223
- W,
224
- _,
225
- r
226
- ]), p ? /* @__PURE__ */ y(lt, { children: [
227
- Te && /* @__PURE__ */ y(
228
- Mt,
225
+ r == null ? void 0 : r.submittedByStudent,
226
+ D,
227
+ V,
228
+ s
229
+ ]), b(() => {
230
+ p === "CURRENT" && k.forEach(({ reference: e, questions: i }) => {
231
+ var n, d, u;
232
+ i.length < 3 ? Y(`Diagnostics item has Less than 3 questions: ${e}`, {
233
+ tags: {
234
+ "content-type": "learnosity",
235
+ "activity-reference": E,
236
+ "item-reference": e
237
+ },
238
+ fingerprint: [`diagnostics-item-questions-count-${e}`]
239
+ // Add unique fingerprint
240
+ }) : (((n = i[0]) == null ? void 0 : n.instructor_stimulus) !== "Try" || ((d = i[1]) == null ? void 0 : d.instructor_stimulus) !== "Learn" || ((u = i[2]) == null ? void 0 : u.instructor_stimulus) !== "Apply") && Y(
241
+ `Diagnostics questions sequence is incorrect expected [Try, Learn, Apply]: ${e}`,
242
+ {
243
+ tags: {
244
+ "content-type": "learnosity",
245
+ "activity-reference": E,
246
+ "item-reference": e
247
+ },
248
+ fingerprint: [`diagnostics-item-questions-sequence-${e}`]
249
+ // Add unique fingerprint
250
+ }
251
+ );
252
+ });
253
+ }, [E, k, p]), b(() => {
254
+ t.forEach((e) => {
255
+ const { validation: i, item_reference: n, type: d, question_number: u, metadata: m } = e;
256
+ if ((U ? d !== "clozetext" : !0) && (i != null && i.valid_response)) {
257
+ const _ = i.valid_response.value ?? [];
258
+ (_ == null ? void 0 : _.length) === 0 && ((i.alt_responses ?? []).some((dt) => dt.value.length > 0) || (Y(`Question has no valid response: ${m.widget_reference}`, {
259
+ tags: {
260
+ "content-type": "learnosity",
261
+ "activity-reference": E,
262
+ "item-reference": n,
263
+ "question-number": u,
264
+ "widget-reference": m.widget_reference
265
+ },
266
+ fingerprint: [`no-valid-response-${m.widget_reference}`]
267
+ // Add unique fingerprint
268
+ }), w.current(Ct.WORKSHEET_V3_QUESTION_MISSING_VALIDATION, {
269
+ item_reference: n,
270
+ widget_reference: m.widget_reference,
271
+ question_type: d,
272
+ question_number: u
273
+ })));
274
+ }
275
+ });
276
+ }, [E, w, t, U]), S ? /* @__PURE__ */ R(ut, { children: [
277
+ _e && /* @__PURE__ */ R(
278
+ qt,
229
279
  {
230
280
  $flexDirection: "row",
231
281
  $justifyContent: "center",
232
282
  $alignItems: "center",
233
283
  $width: "100%",
234
284
  $heightX: 1.75,
235
- $height: me,
285
+ $height: fe,
236
286
  $gap: 8,
237
287
  $gutter: 8,
238
288
  $flexGap: 8,
239
- $background: it,
240
- $topOffset: k.topOffset - me,
289
+ $background: nt,
290
+ $topOffset: T.topOffset - fe,
241
291
  children: [
242
- J ? /* @__PURE__ */ i(fe, { children: /* @__PURE__ */ i(ht, { width: 16, height: 16 }) }) : /* @__PURE__ */ i(fe, { children: /* @__PURE__ */ i(ft, { width: 16, height: 16 }) }),
243
- /* @__PURE__ */ i(bt, { $renderAs: "ub3", children: nt })
292
+ te ? /* @__PURE__ */ o(ge, { children: /* @__PURE__ */ o(ht, { width: 16, height: 16 }) }) : /* @__PURE__ */ o(ge, { children: /* @__PURE__ */ o(gt, { width: 16, height: 16 }) }),
293
+ /* @__PURE__ */ o(St, { $renderAs: "ub3", children: ot })
244
294
  ]
245
295
  }
246
296
  ),
247
- /* @__PURE__ */ y(xt, { $background: "WHITE_1", $width: Ue, children: [
248
- Ye === "top" && /* @__PURE__ */ i(Rt, { $topOffset: V, $height: It, children: /* @__PURE__ */ i(Pt, { children: /* @__PURE__ */ i(
249
- Ot,
250
- {
251
- placement: "top",
252
- questions: t,
253
- responses: c,
254
- activeQuestionIndex: d,
255
- lastUnlockedQuestionIndex: u,
256
- behavior: a,
257
- onItemNumberClick: M,
258
- userType: r,
259
- summaryVisible: h
260
- }
261
- ) }) }),
262
- re && l && /* @__PURE__ */ i(Qt, { $minHeight: ie, $topOffset: V, children: /* @__PURE__ */ i(de, { $width: z, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ i(
263
- Et,
264
- {
265
- blocker: re,
266
- lastUnlockedQuestion: l,
267
- studentName: be,
268
- onBlockerClose: A,
269
- onOptionalItemAssignment: we,
270
- onOptionalItemSkip: Ee,
271
- onTeacherValidation: Y
272
- }
273
- ) }) }),
274
- et && /* @__PURE__ */ i(
275
- Ct,
276
- {
277
- activeQuestionIndex: d,
278
- onClick: M,
279
- questions: t,
280
- bottomOffset: g,
281
- topOffset: V,
282
- userType: r
283
- }
284
- ),
285
- se && /* @__PURE__ */ i(Gt, { children: /* @__PURE__ */ i(gt, { initialPosition: St, onClose: st }) }),
286
- /* @__PURE__ */ y(
287
- Ft,
288
- {
289
- $marginTop: r === "TEACHER" && h ? "0" : g,
290
- $height: g,
291
- $isCardView: O === "card",
292
- $isPuzzleCard: ne,
293
- children: [
294
- te !== -2 && /* @__PURE__ */ i(
295
- vt,
296
- {
297
- width: L - 32,
298
- question: t[d],
299
- learnosity: p,
300
- userType: r
301
- }
302
- ),
303
- qe && /* @__PURE__ */ i(
304
- jt,
305
- {
306
- $height: g,
307
- $width: O === "card" ? L - 32 : "100%",
308
- $isCardView: O === "card",
309
- children: /* @__PURE__ */ i(
310
- de,
297
+ /* @__PURE__ */ R(
298
+ Pt,
299
+ {
300
+ $background: se ? `${se}_1` : "WHITE",
301
+ $width: Je,
302
+ children: [
303
+ Ze === "top" && /* @__PURE__ */ o(Qt, { $topOffset: x, $height: yt, children: /* @__PURE__ */ o(Gt, { children: /* @__PURE__ */ o(
304
+ Vt,
305
+ {
306
+ placement: "top",
307
+ questions: t,
308
+ responses: c,
309
+ activeQuestionIndex: f,
310
+ lastUnlockedQuestionIndex: h,
311
+ behavior: a,
312
+ onItemNumberClick: P,
313
+ userType: s,
314
+ summaryVisible: g
315
+ }
316
+ ) }) }),
317
+ ce && l && /* @__PURE__ */ o(Lt, { $minHeight: re, $topOffset: x, children: /* @__PURE__ */ o(me, { $width: K, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ o(
318
+ Nt,
319
+ {
320
+ blocker: ce,
321
+ lastUnlockedQuestion: l,
322
+ studentName: Se,
323
+ onBlockerClose: O,
324
+ onOptionalItemAssignment: ke,
325
+ onOptionalItemSkip: we,
326
+ onTeacherValidation: ie
327
+ }
328
+ ) }) }),
329
+ tt && /* @__PURE__ */ o(
330
+ vt,
331
+ {
332
+ activeQuestionIndex: f,
333
+ onClick: P,
334
+ questions: t,
335
+ bottomOffset: C,
336
+ topOffset: x,
337
+ userType: s
338
+ }
339
+ ),
340
+ le && /* @__PURE__ */ o(Ft, { children: /* @__PURE__ */ o(It, { initialPosition: Tt, onClose: at }) }),
341
+ /* @__PURE__ */ R(
342
+ jt,
343
+ {
344
+ $marginTop: s === "TEACHER" && g ? "0" : C,
345
+ $height: C,
346
+ $isCardView: H === "card",
347
+ children: [
348
+ /* @__PURE__ */ o(
349
+ kt,
350
+ {
351
+ width: X - 32,
352
+ question: t[f],
353
+ learnosity: S,
354
+ userType: s
355
+ }
356
+ ),
357
+ Xe && /* @__PURE__ */ o(
358
+ Ut,
311
359
  {
312
- $gutterX: 1,
313
- $flexDirection: "row",
314
- $justifyContent: "space-between",
315
- $alignItems: "center",
316
- $width: L - 32,
317
- children: /* @__PURE__ */ i(
318
- wt,
360
+ $height: C,
361
+ $width: H === "card" ? X - 32 : "100%",
362
+ $isCardView: H === "card",
363
+ children: /* @__PURE__ */ o(
364
+ me,
319
365
  {
320
- userType: r,
321
- layout: k,
322
- behavior: a,
323
- worksheetName: U,
324
- questions: t,
325
- responses: c,
326
- onCalculatorOpen: at,
327
- activeQuestionIndex: d,
328
- lastUnlockedQuestionIndex: u,
329
- appendedQuestionIds: Z,
330
- learnosity: p,
331
- isCanvasEnabled: ee,
332
- canSubmitWorksheet: xe,
333
- isScribblingEnabled: oe,
334
- isSummaryVisible: h,
335
- setResponses: v,
336
- getTimeSpentOnQuestion: ce,
337
- setSummaryVisible: X,
338
- setBlocker: N,
339
- setIsScribblingEnabled: tt,
340
- setActiveQuestionId: H,
341
- onItemNumberClick: M,
342
- onGoToReview: ct,
343
- onResponseChange: f,
344
- onHelp: Oe,
345
- onTeacherValidation: Y,
346
- onSubmit: Ne,
347
- showCalculator: se,
348
- loggerRef: j,
349
- onSkip: Qe,
350
- onUnassign: Ge,
351
- onReview: Fe,
352
- canToggleScribbling: je
366
+ $gutterX: 1,
367
+ $flexDirection: "row",
368
+ $justifyContent: "space-between",
369
+ $alignItems: "center",
370
+ $width: X - 32,
371
+ children: /* @__PURE__ */ o(
372
+ wt,
373
+ {
374
+ userType: s,
375
+ layout: T,
376
+ behavior: a,
377
+ worksheetName: ee,
378
+ questions: t,
379
+ responses: c,
380
+ onCalculatorOpen: ct,
381
+ activeQuestionIndex: f,
382
+ lastUnlockedQuestionIndex: h,
383
+ appendedQuestionIds: ne,
384
+ learnosity: S,
385
+ isCanvasEnabled: oe,
386
+ canSubmitWorksheet: qe,
387
+ isScribblingEnabled: ae,
388
+ isSummaryVisible: g,
389
+ setResponses: N,
390
+ getTimeSpentOnQuestion: ue,
391
+ setSummaryVisible: J,
392
+ setBlocker: W,
393
+ setIsScribblingEnabled: it,
394
+ setActiveQuestionId: q,
395
+ onItemNumberClick: P,
396
+ onGoToReview: lt,
397
+ onResponseChange: I,
398
+ onHelp: De,
399
+ onTeacherValidation: ie,
400
+ onSubmit: Ne,
401
+ showCalculator: le,
402
+ loggerRef: w,
403
+ onSkip: Ge,
404
+ onUnassign: Le,
405
+ onReview: Fe,
406
+ canToggleScribbling: je
407
+ }
408
+ )
353
409
  }
354
410
  )
355
411
  }
356
- )
357
- }
358
- ),
359
- !h && D && r === "STUDENT" && /* @__PURE__ */ i(zt, { children: /* @__PURE__ */ i(Vt, {}) })
360
- ]
361
- }
362
- ),
363
- /* @__PURE__ */ y(
364
- Lt,
365
- {
366
- $actionbarHeight: g,
367
- $isCardView: O === "card",
368
- $isPuzzleCard: ne,
369
- children: [
370
- Wt({ questions: t, lastUnlockedQuestionIndex: u, userType: r }).map(
371
- (e, s) => {
372
- var C, B;
373
- const { response_id: o, is_optional: b } = e, $ = (C = c[o]) == null ? void 0 : C.assignStatus;
374
- return a.teacherValidationEnabled && ($ === "skipped" || b && $ !== "assigned" && r === "STUDENT") ? null : /* @__PURE__ */ i(
375
- Dt,
412
+ ),
413
+ !g && M && s === "STUDENT" && /* @__PURE__ */ o(Kt, { children: /* @__PURE__ */ o(Mt, {}) })
414
+ ]
415
+ }
416
+ ),
417
+ /* @__PURE__ */ R(
418
+ Xt,
419
+ {
420
+ $actionbarHeight: C,
421
+ $isCardView: H === "card",
422
+ children: [
423
+ Rt({ questions: t, lastUnlockedQuestionIndex: h, userType: s }).map(
424
+ (e, i) => {
425
+ var m, $;
426
+ const { response_id: n, is_optional: d } = e, u = (m = c[n]) == null ? void 0 : m.assignStatus;
427
+ return a.teacherValidationEnabled && (u === "skipped" || d && u !== "assigned" && s === "STUDENT") ? null : /* @__PURE__ */ o(
428
+ Ht,
429
+ {
430
+ signedRequest: Ce,
431
+ userType: s,
432
+ worksheetCompleted: Ae,
433
+ question: e,
434
+ response: c[n],
435
+ nextQuestionId: p === "ADAPTIVE" || p === "CURRENT" ? l == null ? void 0 : l.response_id : i < h ? ($ = t[i + 1]) == null ? void 0 : $.response_id : void 0,
436
+ maxQuestionWidth: K,
437
+ learnosity: S,
438
+ isActive: n === B,
439
+ isHidden: !M && n !== B || g,
440
+ canRender: f > -1 && (i === f || p !== "CURRENT" && i === f + 1),
441
+ background: $e,
442
+ appended: ne.includes(n),
443
+ behavior: a,
444
+ layout: T,
445
+ actionbarHeight: C,
446
+ intersectionObserver: z,
447
+ onMarkForReview: st,
448
+ onMediaStateChange: rt,
449
+ userId: Be,
450
+ isScribblingEnabled: ae,
451
+ onPublishStrokes: We,
452
+ onReceiveStrokes: Oe,
453
+ initialStrokesData: Re,
454
+ isCanvasEnabled: oe,
455
+ onPublishMouseMove: Ve,
456
+ onSubscribeMouseMove: He,
457
+ setActiveQuestionId: q,
458
+ canResolveDoubt: Pe,
459
+ onResolveDoubt: Qe,
460
+ studentId: Ue,
461
+ subjectiveProps: Ke,
462
+ responses: c,
463
+ loggerRef: w
464
+ },
465
+ n
466
+ );
467
+ }
468
+ ),
469
+ g && /* @__PURE__ */ o(
470
+ zt,
376
471
  {
377
- signedRequest: Ce,
378
- userType: r,
379
- worksheetCompleted: Ae,
380
- question: e,
381
- response: c[o],
382
- nextQuestionId: m === "ADAPTIVE" || m === "CURRENT" ? l == null ? void 0 : l.response_id : s < u ? (B = t[s + 1]) == null ? void 0 : B.response_id : void 0,
383
- maxQuestionWidth: z,
384
- learnosity: p,
385
- isActive: o === E,
386
- isHidden: !D && o !== E || h,
387
- canRender: d > -1 && (s === d || m !== "CURRENT" && s === d + 1),
388
- background: $e,
389
- appended: Z.includes(o),
390
- behavior: a,
391
- layout: k,
392
- actionbarHeight: g,
393
- intersectionObserver: q,
394
- onMarkForReview: rt,
395
- onMediaStateChange: ot,
396
- userId: Be,
397
- isScribblingEnabled: oe,
398
- onPublishStrokes: ye,
399
- onReceiveStrokes: We,
400
- initialStrokesData: _e,
401
- isCanvasEnabled: ee,
402
- onPublishMouseMove: De,
403
- onSubscribeMouseMove: Ve,
404
- setActiveQuestionId: H,
405
- canResolveDoubt: Re,
406
- onResolveDoubt: Pe,
407
- studentId: ze,
408
- subjectiveProps: Le,
472
+ worksheetName: ee,
473
+ questions: t,
409
474
  responses: c,
410
- loggerRef: j
411
- },
412
- o
413
- );
414
- }
415
- ),
416
- h && /* @__PURE__ */ i(
417
- qt,
418
- {
419
- worksheetName: U,
420
- questions: t,
421
- responses: c,
422
- activeQuestionIndex: d,
423
- lastUnlockedQuestionIndex: u,
424
- onItemNumberClick: M,
425
- behavior: a,
426
- minHeight: Je,
427
- summaryDescription: Me,
428
- summaryVisible: h
429
- }
430
- )
431
- ]
432
- }
433
- ),
434
- !h && Ze && /* @__PURE__ */ i(
435
- Ht,
436
- {
437
- questionWidth: z,
438
- questions: t,
439
- activeQuestionIndex: d,
440
- learnosity: p,
441
- userType: r,
442
- height: ie,
443
- actionbarHeight: g,
444
- openQuestionFeedbackModal: He,
445
- loggerRef: j
446
- }
447
- )
448
- ] })
475
+ activeQuestionIndex: f,
476
+ lastUnlockedQuestionIndex: h,
477
+ onItemNumberClick: P,
478
+ behavior: a,
479
+ minHeight: Ye,
480
+ summaryDescription: xe,
481
+ summaryVisible: g
482
+ }
483
+ )
484
+ ]
485
+ }
486
+ ),
487
+ !g && et && /* @__PURE__ */ o(
488
+ xt,
489
+ {
490
+ questionWidth: K,
491
+ questions: t,
492
+ activeQuestionIndex: f,
493
+ learnosity: S,
494
+ userType: s,
495
+ height: re,
496
+ actionbarHeight: C,
497
+ openQuestionFeedbackModal: Me,
498
+ loggerRef: w
499
+ }
500
+ )
501
+ ]
502
+ }
503
+ )
449
504
  ] }) : null;
450
- }, Ci = dt(mt(Xt));
505
+ }, _i = mt(ft(Jt));
451
506
  export {
452
- Ci as default
507
+ _i as default
453
508
  };
454
509
  //# sourceMappingURL=worksheet.js.map