@cuemath/leap 3.2.15-link.1 → 3.2.16-pzd-beta-0.1

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