@cuemath/leap 3.3.0 → 3.3.2-2.beta-guru-01

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 (399) hide show
  1. package/dist/assets/gif/gif.js +3 -0
  2. package/dist/assets/gif/gif.js.map +1 -1
  3. package/dist/assets/illustrations/illustrations.js +10 -1
  4. package/dist/assets/illustrations/illustrations.js.map +1 -1
  5. package/dist/assets/images/images.js +10 -0
  6. package/dist/assets/images/images.js.map +1 -1
  7. package/dist/assets/line-icons/icons/cue-coin.js +182 -0
  8. package/dist/assets/line-icons/icons/cue-coin.js.map +1 -0
  9. package/dist/assets/line-icons/icons/wins-common-icon.js +26 -0
  10. package/dist/assets/line-icons/icons/wins-common-icon.js.map +1 -0
  11. package/dist/assets/line-icons/icons/wins-epic-icon.js +25 -0
  12. package/dist/assets/line-icons/icons/wins-epic-icon.js.map +1 -0
  13. package/dist/assets/line-icons/icons/wins-legendary-icon.js +25 -0
  14. package/dist/assets/line-icons/icons/wins-legendary-icon.js.map +1 -0
  15. package/dist/assets/line-icons/icons/wins-mystery-icon.js +105 -0
  16. package/dist/assets/line-icons/icons/wins-mystery-icon.js.map +1 -0
  17. package/dist/assets/line-icons/icons/wins-mythic-icon.js +28 -0
  18. package/dist/assets/line-icons/icons/wins-mythic-icon.js.map +1 -0
  19. package/dist/assets/line-icons/icons/wins-rare-icon.js +28 -0
  20. package/dist/assets/line-icons/icons/wins-rare-icon.js.map +1 -0
  21. package/dist/assets/lottie/lottie.js +10 -3
  22. package/dist/assets/lottie/lottie.js.map +1 -1
  23. package/dist/constants/config.js +5 -0
  24. package/dist/constants/config.js.map +1 -0
  25. package/dist/constants/country.js +9 -0
  26. package/dist/constants/country.js.map +1 -1
  27. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +6 -6
  28. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +1 -1
  29. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar.js +4 -4
  30. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar.js.map +1 -1
  31. package/dist/features/auth/comps/otp-input/otp-input.js +19 -18
  32. package/dist/features/auth/comps/otp-input/otp-input.js.map +1 -1
  33. package/dist/features/auth/comps/pill-button/pill-button-styled.js +17 -17
  34. package/dist/features/auth/comps/pill-button/pill-button-styled.js.map +1 -1
  35. package/dist/features/auth/comps/pill-button/pill-button.js +26 -24
  36. package/dist/features/auth/comps/pill-button/pill-button.js.map +1 -1
  37. package/dist/features/auth/comps/user-list/user-item/user-item.js +32 -30
  38. package/dist/features/auth/comps/user-list/user-item/user-item.js.map +1 -1
  39. package/dist/features/auth/comps/user-list/user-list.js +20 -19
  40. package/dist/features/auth/comps/user-list/user-list.js.map +1 -1
  41. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-constants.js +9 -9
  42. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-constants.js.map +1 -1
  43. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-styled.js +58 -29
  44. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-styled.js.map +1 -1
  45. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide.js +78 -41
  46. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide.js.map +1 -1
  47. package/dist/features/auth/pla-signup/pla-analytics-events.js +5 -4
  48. package/dist/features/auth/pla-signup/pla-analytics-events.js.map +1 -1
  49. package/dist/features/auth/pla-signup/signup-header/signup-header.js +1 -1
  50. package/dist/features/auth/pla-signup/signup-header/signup-header.js.map +1 -1
  51. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js +37 -35
  52. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js.map +1 -1
  53. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js +75 -70
  54. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +1 -1
  55. package/dist/features/auth/signup/custom-input-field/custom-input-field.js +55 -50
  56. package/dist/features/auth/signup/custom-input-field/custom-input-field.js.map +1 -1
  57. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js +47 -25
  58. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js.map +1 -1
  59. package/dist/features/auth/signup-unavailable/signup-unavailable-styled.js +16 -0
  60. package/dist/features/auth/signup-unavailable/signup-unavailable-styled.js.map +1 -0
  61. package/dist/features/auth/signup-unavailable/signup-unavailable-view.js +62 -0
  62. package/dist/features/auth/signup-unavailable/signup-unavailable-view.js.map +1 -0
  63. package/dist/features/auth/signup-unavailable/signup-unavailable.js +17 -0
  64. package/dist/features/auth/signup-unavailable/signup-unavailable.js.map +1 -0
  65. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/question-overview.js +19 -18
  66. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/question-overview.js.map +1 -1
  67. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/sat-sheet-summary-styled.js +7 -7
  68. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/sat-sheet-summary-styled.js.map +1 -1
  69. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/sat-sheet-summary.js +26 -24
  70. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/sat-sheet-summary.js.map +1 -1
  71. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/summary-module.js +15 -13
  72. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/summary-module.js.map +1 -1
  73. package/dist/features/chapters/lpar-chapter/constants/index.js.map +1 -1
  74. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js +130 -69
  75. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js.map +1 -1
  76. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js +43 -33
  77. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js.map +1 -1
  78. package/dist/features/chapters-v2/chapter-details/chapter-details.js +137 -95
  79. package/dist/features/chapters-v2/chapter-details/chapter-details.js.map +1 -1
  80. package/dist/features/chapters-v2/comps/node-card/node-card-styled.js +36 -31
  81. package/dist/features/chapters-v2/comps/node-card/node-card-styled.js.map +1 -1
  82. package/dist/features/chapters-v2/comps/sat-mock-test/sat-mock-test-styled.js +22 -0
  83. package/dist/features/chapters-v2/comps/sat-mock-test/sat-mock-test-styled.js.map +1 -0
  84. package/dist/features/chapters-v2/comps/sat-mock-test/sat-mock-test.js +141 -0
  85. package/dist/features/chapters-v2/comps/sat-mock-test/sat-mock-test.js.map +1 -0
  86. package/dist/features/chapters-v2/constants/block-constants.js +7 -5
  87. package/dist/features/chapters-v2/constants/block-constants.js.map +1 -1
  88. package/dist/features/chapters-v2/utils/index.js +22 -12
  89. package/dist/features/chapters-v2/utils/index.js.map +1 -1
  90. package/dist/features/chapters-v2/utils/sat-sheet-utils.js +12 -0
  91. package/dist/features/chapters-v2/utils/sat-sheet-utils.js.map +1 -0
  92. package/dist/features/circle-games/games/web-view/web-view.js +0 -1
  93. package/dist/features/circle-games/games/web-view/web-view.js.map +1 -1
  94. package/dist/features/journey/hooks/use-chapter-page-journey/use-download-block-journey.js +86 -0
  95. package/dist/features/journey/hooks/use-chapter-page-journey/use-download-block-journey.js.map +1 -0
  96. package/dist/features/journey/hooks/use-chapter-page-journey/use-download-node-journey.js +140 -0
  97. package/dist/features/journey/hooks/use-chapter-page-journey/use-download-node-journey.js.map +1 -0
  98. package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js +8 -4
  99. package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js.map +1 -1
  100. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js +23 -29
  101. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js.map +1 -1
  102. package/dist/features/journey/journey-id/journey-id-student.js +1 -1
  103. package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
  104. package/dist/features/journey/journey-id/journey-id-teacher.js +2 -2
  105. package/dist/features/journey/journey-id/journey-id-teacher.js.map +1 -1
  106. package/dist/features/journey/mocks/chapter-page-journey-mock-data.js +400 -0
  107. package/dist/features/journey/mocks/chapter-page-journey-mock-data.js.map +1 -1
  108. package/dist/features/milestone/constants.js +13 -10
  109. package/dist/features/milestone/constants.js.map +1 -1
  110. package/dist/features/milestone/create/comps/add-custom-chapter/add-custom-chapter.js +42 -40
  111. package/dist/features/milestone/create/comps/add-custom-chapter/add-custom-chapter.js.map +1 -1
  112. package/dist/features/milestone/create/comps/add-custom-chapter/course-catalog.js +70 -64
  113. package/dist/features/milestone/create/comps/add-custom-chapter/course-catalog.js.map +1 -1
  114. package/dist/features/milestone/create/comps/add-custom-chapter/hooks/use-catalog-helpers.js +54 -29
  115. package/dist/features/milestone/create/comps/add-custom-chapter/hooks/use-catalog-helpers.js.map +1 -1
  116. package/dist/features/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapter-category/chapter-category-container.js +48 -28
  117. package/dist/features/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapter-category/chapter-category-container.js.map +1 -1
  118. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js +79 -76
  119. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js.map +1 -1
  120. package/dist/features/milestone/create/comps/chapters-selection-step/utils.js +97 -94
  121. package/dist/features/milestone/create/comps/chapters-selection-step/utils.js.map +1 -1
  122. package/dist/features/milestone/create/comps/class-details-step/class-details-step.js +160 -143
  123. package/dist/features/milestone/create/comps/class-details-step/class-details-step.js.map +1 -1
  124. package/dist/features/milestone/create/comps/class-details-step/class-details-utils.js +22 -12
  125. package/dist/features/milestone/create/comps/class-details-step/class-details-utils.js.map +1 -1
  126. package/dist/features/milestone/create/comps/goal-completion-date-selector/goal-completion-date-selector.js +6 -6
  127. package/dist/features/milestone/create/comps/test-type-step/test-type-step.js +64 -59
  128. package/dist/features/milestone/create/comps/test-type-step/test-type-step.js.map +1 -1
  129. package/dist/features/milestone/create/milestone-create-container.js +17 -15
  130. package/dist/features/milestone/create/milestone-create-container.js.map +1 -1
  131. package/dist/features/milestone/create/milestone-create-helpers.js +170 -153
  132. package/dist/features/milestone/create/milestone-create-helpers.js.map +1 -1
  133. package/dist/features/milestone/create/milestone-create-styled.js +1 -1
  134. package/dist/features/milestone/create/milestone-create-styled.js.map +1 -1
  135. package/dist/features/milestone/create/milestone-create.js +19 -17
  136. package/dist/features/milestone/create/milestone-create.js.map +1 -1
  137. package/dist/features/milestone/milestone-tests/tests-creation/test-stages/test-preview/test-preview.js +19 -20
  138. package/dist/features/milestone/milestone-tests/tests-creation/test-stages/test-preview/test-preview.js.map +1 -1
  139. package/dist/features/parent-dashboard/api/get-student-profile-summary.js +9 -0
  140. package/dist/features/parent-dashboard/api/get-student-profile-summary.js.map +1 -0
  141. package/dist/features/parent-dashboard/api/parent-home.js +10 -0
  142. package/dist/features/parent-dashboard/api/parent-home.js.map +1 -0
  143. package/dist/features/parent-dashboard/comps/compact-header/compact-header.js +30 -0
  144. package/dist/features/parent-dashboard/comps/compact-header/compact-header.js.map +1 -0
  145. package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features-constants.js +25 -0
  146. package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features-constants.js.map +1 -0
  147. package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features-styled.js +15 -0
  148. package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features-styled.js.map +1 -0
  149. package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features.js +90 -0
  150. package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features.js.map +1 -0
  151. package/dist/features/parent-dashboard/comps/math-practice/math-practice-constants.js +19 -0
  152. package/dist/features/parent-dashboard/comps/math-practice/math-practice-constants.js.map +1 -0
  153. package/dist/features/parent-dashboard/comps/math-practice/math-practice-styled.js +32 -0
  154. package/dist/features/parent-dashboard/comps/math-practice/math-practice-styled.js.map +1 -0
  155. package/dist/features/parent-dashboard/comps/math-practice/math-practice.js +67 -0
  156. package/dist/features/parent-dashboard/comps/math-practice/math-practice.js.map +1 -0
  157. package/dist/features/parent-dashboard/comps/parent-dashboard-faqs/parent-dashboard-faqs-constants.js +42 -0
  158. package/dist/features/parent-dashboard/comps/parent-dashboard-faqs/parent-dashboard-faqs-constants.js.map +1 -0
  159. package/dist/features/parent-dashboard/comps/parent-dashboard-faqs/parent-dashboard-faqs.js +20 -0
  160. package/dist/features/parent-dashboard/comps/parent-dashboard-faqs/parent-dashboard-faqs.js.map +1 -0
  161. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction-styled.js +10 -0
  162. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction-styled.js.map +1 -0
  163. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction.js +42 -0
  164. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction.js.map +1 -0
  165. package/dist/features/parent-dashboard/hooks/use-parent-home-data.js +67 -0
  166. package/dist/features/parent-dashboard/hooks/use-parent-home-data.js.map +1 -0
  167. package/dist/features/parent-dashboard/hooks/use-student-profile-summary-data.js +24 -0
  168. package/dist/features/parent-dashboard/hooks/use-student-profile-summary-data.js.map +1 -0
  169. package/dist/features/parent-dashboard/hooks/use-switch-user-journey.js +71 -0
  170. package/dist/features/parent-dashboard/hooks/use-switch-user-journey.js.map +1 -0
  171. package/dist/features/parent-dashboard/modals/help-and-support/help-and-support.js +40 -0
  172. package/dist/features/parent-dashboard/modals/help-and-support/help-and-support.js.map +1 -0
  173. package/dist/features/parent-dashboard/modals/student-login-info/student-login-info.js +44 -0
  174. package/dist/features/parent-dashboard/modals/student-login-info/student-login-info.js.map +1 -0
  175. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-helpers.js +32 -0
  176. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-helpers.js.map +1 -0
  177. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-styled.js +12 -0
  178. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-styled.js.map +1 -0
  179. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary.js +44 -0
  180. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary.js.map +1 -0
  181. package/dist/features/parent-dashboard/modals/trial-report/trial-report-styled.js +13 -0
  182. package/dist/features/parent-dashboard/modals/trial-report/trial-report-styled.js.map +1 -0
  183. package/dist/features/parent-dashboard/modals/trial-report/trial-report.js +28 -0
  184. package/dist/features/parent-dashboard/modals/trial-report/trial-report.js.map +1 -0
  185. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-constants.js +43 -0
  186. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-constants.js.map +1 -0
  187. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js +59 -0
  188. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js.map +1 -0
  189. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change.js +86 -0
  190. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change.js.map +1 -0
  191. package/dist/features/parent-dashboard/parent-dashboard-constants.js +26 -0
  192. package/dist/features/parent-dashboard/parent-dashboard-constants.js.map +1 -0
  193. package/dist/features/parent-dashboard/parent-dashboard-styled.js +33 -0
  194. package/dist/features/parent-dashboard/parent-dashboard-styled.js.map +1 -0
  195. package/dist/features/parent-dashboard/parent-dashboard-types.js +6 -0
  196. package/dist/features/parent-dashboard/parent-dashboard-types.js.map +1 -0
  197. package/dist/features/parent-dashboard/parent-dashboard-view.js +215 -0
  198. package/dist/features/parent-dashboard/parent-dashboard-view.js.map +1 -0
  199. package/dist/features/parent-dashboard/parent-dashboard.js +8 -0
  200. package/dist/features/parent-dashboard/parent-dashboard.js.map +1 -0
  201. package/dist/features/sentry/constants/ignored.js +10 -6
  202. package/dist/features/sentry/constants/ignored.js.map +1 -1
  203. package/dist/features/sheets/constants/sheet.js +23 -10
  204. package/dist/features/sheets/constants/sheet.js.map +1 -1
  205. package/dist/features/sheets/utils/is-v3-worksheet.js +17 -0
  206. package/dist/features/sheets/utils/is-v3-worksheet.js.map +1 -1
  207. package/dist/features/student-details/class-details/class-details-utils.js +6 -6
  208. package/dist/features/trial-session/api/course-stream.js.map +1 -1
  209. package/dist/features/trial-session/comps/about-cuemath/about-cuemath-constants.js +1 -1
  210. package/dist/features/trial-session/comps/about-cuemath/about-cuemath-constants.js.map +1 -1
  211. package/dist/features/trial-session/comps/background-grid/background-grid-utils.js +66 -60
  212. package/dist/features/trial-session/comps/background-grid/background-grid-utils.js.map +1 -1
  213. package/dist/features/trial-session/comps/learning-plan/index.js +62 -88
  214. package/dist/features/trial-session/comps/learning-plan/index.js.map +1 -1
  215. package/dist/features/trial-session/comps/offering-information/offering-information-constants.js +12 -12
  216. package/dist/features/trial-session/comps/offering-information/offering-information-constants.js.map +1 -1
  217. package/dist/features/trial-session/comps/pla/next-steps/next-steps-constants.js +25 -0
  218. package/dist/features/trial-session/comps/pla/next-steps/next-steps-constants.js.map +1 -0
  219. package/dist/features/trial-session/comps/pla/next-steps/next-steps-styled.js +43 -0
  220. package/dist/features/trial-session/comps/pla/next-steps/next-steps-styled.js.map +1 -0
  221. package/dist/features/trial-session/comps/pla/next-steps/next-steps.js +49 -0
  222. package/dist/features/trial-session/comps/pla/next-steps/next-steps.js.map +1 -0
  223. package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-countdown.js +29 -0
  224. package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-countdown.js.map +1 -0
  225. package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-status-config.js +132 -0
  226. package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-status-config.js.map +1 -0
  227. package/dist/features/trial-session/comps/pla/session-status/session-status-constants.js +11 -0
  228. package/dist/features/trial-session/comps/pla/session-status/session-status-constants.js.map +1 -0
  229. package/dist/features/trial-session/comps/pla/session-status/session-status-helpers.js +19 -0
  230. package/dist/features/trial-session/comps/pla/session-status/session-status-helpers.js.map +1 -0
  231. package/dist/features/trial-session/comps/pla/session-status/session-status-styled.js +17 -0
  232. package/dist/features/trial-session/comps/pla/session-status/session-status-styled.js.map +1 -0
  233. package/dist/features/trial-session/comps/pla/session-status/session-status.js +127 -0
  234. package/dist/features/trial-session/comps/pla/session-status/session-status.js.map +1 -0
  235. package/dist/features/trial-session/comps/pla/session-summary/session-summary-constants.js +53 -0
  236. package/dist/features/trial-session/comps/pla/session-summary/session-summary-constants.js.map +1 -0
  237. package/dist/features/trial-session/comps/pla/session-summary/session-summary.js +53 -0
  238. package/dist/features/trial-session/comps/pla/session-summary/session-summary.js.map +1 -0
  239. package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card-styled.js +17 -0
  240. package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card-styled.js.map +1 -0
  241. package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card.js +56 -0
  242. package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card.js.map +1 -0
  243. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-constants.js +5 -0
  244. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-constants.js.map +1 -0
  245. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-styled.js +17 -0
  246. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-styled.js.map +1 -0
  247. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-types.js +5 -0
  248. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-types.js.map +1 -0
  249. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions.js +96 -0
  250. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions.js.map +1 -0
  251. package/dist/features/trial-session/comps/school-goals/school-goals.js +25 -24
  252. package/dist/features/trial-session/comps/school-goals/school-goals.js.map +1 -1
  253. package/dist/features/trial-session/comps/session-report/report-404/report-404.js +34 -0
  254. package/dist/features/trial-session/comps/session-report/report-404/report-404.js.map +1 -0
  255. package/dist/features/trial-session/comps/session-report/report-information/report-card.js +41 -0
  256. package/dist/features/trial-session/comps/session-report/report-information/report-card.js.map +1 -0
  257. package/dist/features/trial-session/comps/session-report/report-information/report-information-styled.js +39 -0
  258. package/dist/features/trial-session/comps/session-report/report-information/report-information-styled.js.map +1 -0
  259. package/dist/features/trial-session/comps/session-report/report-information/report-information.js +179 -0
  260. package/dist/features/trial-session/comps/session-report/report-information/report-information.js.map +1 -0
  261. package/dist/features/trial-session/comps/session-report/session-report-styled.js +6 -29
  262. package/dist/features/trial-session/comps/session-report/session-report-styled.js.map +1 -1
  263. package/dist/features/trial-session/comps/session-report/session-report.js +44 -174
  264. package/dist/features/trial-session/comps/session-report/session-report.js.map +1 -1
  265. package/dist/features/trial-session/comps/student-personalization/student-personalization-styled.js +20 -5
  266. package/dist/features/trial-session/comps/student-personalization/student-personalization-styled.js.map +1 -1
  267. package/dist/features/trial-session/comps/student-personalization/student-personalization.js +59 -126
  268. package/dist/features/trial-session/comps/student-personalization/student-personalization.js.map +1 -1
  269. package/dist/features/trial-session/comps/student-profile/constant.js +10 -0
  270. package/dist/features/trial-session/comps/student-profile/constant.js.map +1 -0
  271. package/dist/features/trial-session/comps/student-profile/student-profile-highlights/student-profile-highlights.js +53 -0
  272. package/dist/features/trial-session/comps/student-profile/student-profile-highlights/student-profile-highlights.js.map +1 -0
  273. package/dist/features/trial-session/comps/student-profile/student-profile.js +93 -46
  274. package/dist/features/trial-session/comps/student-profile/student-profile.js.map +1 -1
  275. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-helpers.js +12 -0
  276. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-helpers.js.map +1 -0
  277. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-styled.js +121 -42
  278. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-styled.js.map +1 -1
  279. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js +174 -56
  280. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js.map +1 -1
  281. package/dist/features/trial-session/comps/worksheet/worksheet.js +23 -23
  282. package/dist/features/trial-session/comps/worksheet/worksheet.js.map +1 -1
  283. package/dist/features/trial-session/hooks/use-trial-session-navigation.js +65 -63
  284. package/dist/features/trial-session/hooks/use-trial-session-navigation.js.map +1 -1
  285. package/dist/features/trial-session/left-panel/index.js +1 -1
  286. package/dist/features/trial-session/left-panel/index.js.map +1 -1
  287. package/dist/features/trial-session/right-panel/slide-components-map.js +32 -32
  288. package/dist/features/trial-session/right-panel/slide-components-map.js.map +1 -1
  289. package/dist/features/trial-session/trial-session-constants.js +3 -3
  290. package/dist/features/trial-session/trial-session-constants.js.map +1 -1
  291. package/dist/features/trial-session/trial-session-types.js.map +1 -1
  292. package/dist/features/ui/buttons/icon-button/icon-button.js +32 -29
  293. package/dist/features/ui/buttons/icon-button/icon-button.js.map +1 -1
  294. package/dist/features/ui/constants/z-index.js +5 -3
  295. package/dist/features/ui/constants/z-index.js.map +1 -1
  296. package/dist/features/ui/inputs/base-select-input/select-section/select-section.js +12 -11
  297. package/dist/features/ui/inputs/base-select-input/select-section/select-section.js.map +1 -1
  298. package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list-styled.js +2 -7
  299. package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list-styled.js.map +1 -1
  300. package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js +29 -27
  301. package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js.map +1 -1
  302. package/dist/features/ui/modals/modal.js +30 -28
  303. package/dist/features/ui/modals/modal.js.map +1 -1
  304. package/dist/features/wins-dashboard/belts-elements-stickers/belts-elements-stickers.js +109 -0
  305. package/dist/features/wins-dashboard/belts-elements-stickers/belts-elements-stickers.js.map +1 -0
  306. package/dist/features/wins-dashboard/belts-elements-stickers/belts.js +95 -0
  307. package/dist/features/wins-dashboard/belts-elements-stickers/belts.js.map +1 -0
  308. package/dist/features/wins-dashboard/belts-elements-stickers/elements.js +184 -0
  309. package/dist/features/wins-dashboard/belts-elements-stickers/elements.js.map +1 -0
  310. package/dist/features/wins-dashboard/belts-elements-stickers/progress-bar-horizontal.js +36 -0
  311. package/dist/features/wins-dashboard/belts-elements-stickers/progress-bar-horizontal.js.map +1 -0
  312. package/dist/features/wins-dashboard/belts-elements-stickers/reward-elements.js +83 -0
  313. package/dist/features/wins-dashboard/belts-elements-stickers/reward-elements.js.map +1 -0
  314. package/dist/features/wins-dashboard/constants.js +161 -0
  315. package/dist/features/wins-dashboard/constants.js.map +1 -0
  316. package/dist/features/wins-dashboard/header/wins-header.js +95 -0
  317. package/dist/features/wins-dashboard/header/wins-header.js.map +1 -0
  318. package/dist/features/wins-dashboard/student-badges/animated-tabbar.js +66 -0
  319. package/dist/features/wins-dashboard/student-badges/animated-tabbar.js.map +1 -0
  320. package/dist/features/wins-dashboard/student-badges/hooks/use-student-badge-list-hook.js +135 -0
  321. package/dist/features/wins-dashboard/student-badges/hooks/use-student-badge-list-hook.js.map +1 -0
  322. package/dist/features/wins-dashboard/student-badges/student-badge.js +168 -0
  323. package/dist/features/wins-dashboard/student-badges/student-badge.js.map +1 -0
  324. package/dist/features/wins-dashboard/student-badges/student-badges-lists.js +137 -0
  325. package/dist/features/wins-dashboard/student-badges/student-badges-lists.js.map +1 -0
  326. package/dist/features/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.js +86 -90
  327. package/dist/features/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.js.map +1 -1
  328. package/dist/features/worksheet/worksheet/worksheet-behavior-helper.js +147 -0
  329. package/dist/features/worksheet/worksheet/worksheet-behavior-helper.js.map +1 -0
  330. package/dist/features/worksheet/worksheet/worksheet-container.js +62 -42
  331. package/dist/features/worksheet/worksheet/worksheet-container.js.map +1 -1
  332. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +197 -199
  333. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
  334. package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js +228 -300
  335. package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js.map +1 -1
  336. package/dist/features/worksheet/worksheet/worksheet-styled.js +34 -34
  337. package/dist/features/worksheet/worksheet/worksheet-styled.js.map +1 -1
  338. package/dist/features/worksheet/worksheet/worksheet-types.js.map +1 -1
  339. package/dist/features/worksheet/worksheet/worksheet.js +206 -215
  340. package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
  341. package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js +33 -33
  342. package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js.map +1 -1
  343. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js +30 -28
  344. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
  345. package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js +69 -73
  346. package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js.map +1 -1
  347. package/dist/features/worksheet/worksheet-preview/worksheet-preview.js +30 -79
  348. package/dist/features/worksheet/worksheet-preview/worksheet-preview.js.map +1 -1
  349. package/dist/index.d.ts +473 -45
  350. package/dist/index.js +695 -627
  351. package/dist/index.js.map +1 -1
  352. package/dist/node_modules/date-fns/_lib/getRoundingMethod.js +10 -0
  353. package/dist/node_modules/date-fns/_lib/getRoundingMethod.js.map +1 -0
  354. package/dist/node_modules/date-fns/differenceInMilliseconds.js +9 -0
  355. package/dist/node_modules/date-fns/differenceInMilliseconds.js.map +1 -0
  356. package/dist/node_modules/date-fns/differenceInSeconds.js +11 -0
  357. package/dist/node_modules/date-fns/differenceInSeconds.js.map +1 -0
  358. package/dist/node_modules/date-fns/fromUnixTime.js +9 -0
  359. package/dist/node_modules/date-fns/fromUnixTime.js.map +1 -0
  360. package/dist/static/awesome.4239f583.json +1 -0
  361. package/dist/static/black-belt.81b3ebf9.png +0 -0
  362. package/dist/static/blue-belt.508a1b4b.png +0 -0
  363. package/dist/static/{book-checked-green.c275dbd9.svg → book-checked-green.0436b91e.svg} +1 -1
  364. package/dist/static/brown-belt.09bb7e93.png +0 -0
  365. package/dist/static/clapping-hands.17e7ecf0.json +1 -0
  366. package/dist/static/common.9e8ceef1.svg +1 -0
  367. package/dist/static/community-bulb-yellow-2.f89c30f9.svg +1 -0
  368. package/dist/static/cool.cd6921bb.json +1 -0
  369. package/dist/static/epic.37a0265a.svg +1 -0
  370. package/dist/static/error-responsive.9916ff66.json +1 -0
  371. package/dist/static/error.dd744fa5.json +1 -0
  372. package/dist/static/green-belt.5501296f.png +0 -0
  373. package/dist/static/learning-puzzle-bot.6fe93cf6.svg +1 -0
  374. package/dist/static/legendary.f15d09ca.svg +1 -0
  375. package/dist/static/like-button.281a2618.json +1 -0
  376. package/dist/static/mastered-badge.91d25e92.png +0 -0
  377. package/dist/static/mystery.81ada5fb.svg +1 -0
  378. package/dist/static/mythic.58ba0ae0.svg +1 -0
  379. package/dist/static/orange-belt.1fefcc8c.png +0 -0
  380. package/dist/static/personalization.7a6c33e8.svg +1 -0
  381. package/dist/static/personalized-session.b4fd7df8.gif +0 -0
  382. package/dist/static/purple-belt.e15611b4.png +0 -0
  383. package/dist/static/rare.1ffaa311.svg +1 -0
  384. package/dist/static/red-belt.11f841d9.png +0 -0
  385. package/dist/static/regular-practice.b15f24d9.gif +0 -0
  386. package/dist/static/star-strike-emoji.c0b31028.json +1 -0
  387. package/dist/static/stepup.321df6ed.gif +0 -0
  388. package/dist/static/trophy.5ef1853a.json +1 -0
  389. package/dist/static/username-responsive.787b5515.json +1 -0
  390. package/dist/static/username.2c755605.json +1 -0
  391. package/dist/static/white-belt.ea93103e.png +0 -0
  392. package/dist/static/yellow-belt.0c47b8cc.png +0 -0
  393. package/package.json +1 -1
  394. package/dist/features/trial-session/comps/session-report/report-card.js +0 -26
  395. package/dist/features/trial-session/comps/session-report/report-card.js.map +0 -1
  396. package/dist/features/worksheet/worksheet/hooks/use-worksheet-journey.js +0 -28
  397. package/dist/features/worksheet/worksheet/hooks/use-worksheet-journey.js.map +0 -1
  398. package/dist/static/error.cbe1ddde.json +0 -1
  399. package/dist/static/username.9e034d51.json +0 -1
@@ -1,330 +1,328 @@
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(
1
+ import { jsxs as T, jsx as i, Fragment as Pt } from "react/jsx-runtime";
2
+ import { memo as Vt, useMemo as p, useState as A, useRef as X, useCallback as Xt, useEffect as H, 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 Rt from "../../../ui/layout/flex-view.js";
7
+ import Jt from "../../constants/events.js";
8
+ import { QUESTIONS_GAP as kt, LEARNOSITY_KEYBOARD_HEIGHT as wt } from "../constants.js";
9
+ import { getPaperColorByQuestion as qt, isConceptIntroWidget as te, scrollToQuestion as St } 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 de, LessonOverviewBanner as fe, CueCanvasWrapper as he, Hint as ge, Solution as Ee } from "./worksheet-question-styled.js";
19
+ const Me = Vt(
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,
26
+ nextQuestionId: b,
27
27
  isActive: v,
28
- isHidden: A,
29
- canRender: V,
30
- loggerRef: M,
28
+ isHidden: M,
29
+ canRender: j,
30
+ loggerRef: O,
31
31
  appended: a,
32
- maxQuestionWidth: X,
33
- behavior: j,
34
- layout: G,
35
- actionbarHeight: yt,
36
- learnosity: b,
32
+ maxQuestionWidth: G,
33
+ behavior: S,
34
+ layout: N,
35
+ actionbarHeight: Wt,
36
+ learnosity: C,
37
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,
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
38
+ onMediaStateChange: yt,
39
+ onMarkForReview: Bt,
40
+ userId: xt,
41
+ onPublishStrokes: Z,
42
+ onReceiveStrokes: J,
43
+ isScribblingEnabled: k,
44
+ initialStrokesData: Q,
45
+ onPublishMouseMove: q,
46
+ onSubscribeMouseMove: tt,
47
+ setActiveQuestionId: et,
48
+ canResolveDoubt: It,
49
+ onResolveDoubt: Lt,
50
+ studentId: Tt,
51
+ responses: At,
52
+ subjectiveProps: it
55
53
  }) => {
56
- const C = p(
57
- () => Z === "paper" ? te(n) : void 0,
58
- [Z, n]
59
- ), [W, Ot] = T(), [nt, Nt] = T(), {
60
- validation: ct,
61
- review: N,
62
- maximumAttempts: Q,
63
- canExceedAttempts: at,
64
- teacherValidationEnabled: w,
65
- solutionHidden: st
66
- } = j, { minQuestionHeight: Qt, topOffset: mt, questionsScrollable: y, renderQuestionHeader: zt, imageHue: lt } = G, {
54
+ const { background: rt = "paper" } = N, W = p(
55
+ () => rt === "paper" ? qt(n) : void 0,
56
+ [rt, n]
57
+ ), [y, Mt] = A(), [ot, Ot] = A(), {
58
+ validation: nt,
59
+ review: z,
60
+ maximumAttempts: F,
61
+ canExceedAttempts: ct,
62
+ teacherValidationEnabled: R,
63
+ solutionHidden: at
64
+ } = S, { minQuestionHeight: Nt, topOffset: st, questionsScrollable: B, renderQuestionHeader: Qt, imageHue: lt } = N, {
67
65
  type: E,
68
66
  response_id: r,
69
67
  stimulus_review: _,
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(() => {
68
+ item_type: d,
69
+ instructor_stimulus: mt,
70
+ metadata: { hints: f, solution: x, widget_reference: ut },
71
+ item_reference: dt,
72
+ question_number: ft,
73
+ item_number: ht,
74
+ item_display_number: gt
75
+ } = n, zt = !!_, I = d === "overview", m = te(mt), h = mt === "SystemIntro", D = m || h, Et = e == null ? void 0 : e.responseEdited, Ft = p(() => {
78
76
  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(" ");
77
+ return Et && c === "TEACHER" && t.push("attempting"), a || t.push("hidden"), E === "hotspot" && t.push("correct-answers-hidden"), a && R && E === "clozetext" && (!m || c === "STUDENT" ? t.push("response-hidden") : t.push("response-code-hidden")), I && t.push("lesson-overview"), m && t.push("concept-intro"), h && t.push("system-intro"), t.join(" ");
80
78
  }, [
81
79
  a,
82
- l,
83
- x,
84
- d,
80
+ m,
81
+ I,
82
+ h,
85
83
  E,
86
- _t,
87
- w,
84
+ Et,
85
+ R,
88
86
  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(() => {
87
+ ]), U = X({}), K = (e == null ? void 0 : e.hintsUsed) ?? 0, [_t] = A((e == null ? void 0 : e.validatedByTeacher) ?? !1), L = X(null), P = X(null), V = p(() => f == null ? void 0 : f.slice(0, K), [f, K]), $t = p(() => c === "TEACHER" || g ? !0 : !e || !e.response || e.responseEdited ? !1 : nt, [e, c, nt, g]), pt = p(() => {
90
88
  if (c === "TEACHER") return !0;
91
- if (N) {
89
+ if (z) {
92
90
  const { attemptsHistory: t } = e ?? {};
93
- return ((t == null ? void 0 : t.length) ?? 0) >= Q && !at;
91
+ return ((t == null ? void 0 : t.length) ?? 0) >= F && !ct;
94
92
  }
95
93
  return !1;
96
- }, [at, Q, e, N, c]), Ut = p(
97
- () => B && g && !st,
98
- [st, B, g]
99
- ), [Rt, Kt] = T({
94
+ }, [ct, F, e, z, c]), Dt = p(
95
+ () => x && g && !at,
96
+ [at, x, g]
97
+ ), [Ht, Ut] = A({
100
98
  width: 0,
101
99
  height: 0
102
- }), Pt = jt((t) => {
103
- Nt(t);
100
+ }), Kt = Xt((t) => {
101
+ Ot(t);
104
102
  }, []);
105
103
  return H(() => {
106
- I.current && Y.observe(I.current);
104
+ L.current && Y.observe(L.current);
107
105
  }, [Y]), H(() => {
108
106
  if (a && (n.type === "clozeassociation" || n.type === "association" || n.type === "clozeformula")) {
109
107
  const t = document.querySelectorAll(
110
108
  `.widget-${n.response_id} .lrn_draggable`
111
109
  );
112
110
  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({
111
+ t.forEach((l) => {
112
+ s = Math.max(s, l.clientWidth + 33), o = Math.max(o, l.clientHeight + 1);
113
+ }), Ut({
116
114
  width: n.type !== "association" ? s : 0,
117
115
  height: o
118
116
  });
119
117
  }
120
118
  }, [a, n.response_id, n.type]), H(() => {
121
- if (a && pt) {
122
- const t = b.question(r);
119
+ if (a && $t) {
120
+ const t = C.question(r);
123
121
  t && t.validate({
124
- showCorrectAnswers: Ht
122
+ showCorrectAnswers: pt
125
123
  });
126
124
  }
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) {
125
+ }, [a, C, r, z, pt, c, $t]), H(() => {
126
+ const t = P.current;
127
+ if (a && t && O.current && U.current[r] === void 0 && !m && !h) {
130
128
  const s = t.clientWidth, o = t.querySelectorAll("*");
131
- for (let m = 0; m < o.length; m++) {
132
- const u = o[m];
129
+ for (let l = 0; l < o.length; l++) {
130
+ const u = o[l];
133
131
  if (u != null && u.closest(".resize-sensor"))
134
132
  continue;
135
133
  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,
134
+ U.current[r] = !0, O.current(Jt.WORKSHEET_V3_GREATER_WIDTH_ELEMENT, {
135
+ item_reference: dt,
136
+ widget_reference: ut,
139
137
  question_type: E,
140
- question_number: dt,
138
+ question_number: ft,
141
139
  responseId: r,
142
- item_number: gt,
143
- item_display_number: Et
140
+ item_number: ht,
141
+ item_display_number: gt
144
142
  });
145
143
  break;
146
144
  }
147
145
  }
148
- F.current[r] = !1;
146
+ U.current[r] = !1;
149
147
  }
150
148
  }, [
151
149
  a,
152
- l,
153
- d,
154
- Et,
150
+ m,
151
+ h,
155
152
  gt,
156
153
  ht,
157
- M,
158
- E,
159
154
  dt,
155
+ O,
156
+ E,
157
+ ft,
160
158
  r,
161
- ft
159
+ ut
162
160
  ]), H(() => {
163
- const t = I.current, s = (o) => {
164
- const m = o.querySelector(".lrn_response_wrapper");
165
- if (z || !m)
161
+ const t = L.current, s = (o) => {
162
+ const l = o.querySelector(".lrn_response_wrapper");
163
+ if (D || !l)
166
164
  return 0;
167
- const u = o.getBoundingClientRect().bottom, S = m.getBoundingClientRect().bottom, $ = Math.abs(u - S);
168
- return $ < bt ? bt - $ : 0;
165
+ const u = o.getBoundingClientRect().bottom, w = l.getBoundingClientRect().bottom, $ = Math.abs(u - w);
166
+ return $ < wt ? wt - $ : 0;
169
167
  };
170
- a && t && Ot((o) => {
171
- var wt;
172
- const S = ((wt = n.ui_style) == null ? void 0 : wt.type) === "floating-keyboard" && !(w && E === "clozetext"), $ = t.clientHeight;
168
+ a && t && Mt((o) => {
169
+ var vt;
170
+ const w = ((vt = n.ui_style) == null ? void 0 : vt.type) === "floating-keyboard" && !(R && E === "clozetext"), $ = t.clientHeight;
173
171
  if ($ === 0)
174
172
  return o;
175
173
  if (!o)
176
174
  return Math.ceil(
177
- $ + (S ? s(t) : 0)
175
+ $ + (w ? s(t) : 0)
178
176
  );
179
- const vt = Math.ceil(
180
- $ + (S ? s(t) : 0)
177
+ const bt = Math.ceil(
178
+ $ + (w ? s(t) : 0)
181
179
  );
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)) {
180
+ return Math.abs(bt - o) > 4 ? bt : o;
181
+ }), (K || zt || x && g) && C.renderMath("mathjax");
182
+ }), jt(() => {
183
+ !B && !M && St(r);
184
+ }, [M, B, r, st]), H(() => {
185
+ if (R && b && !_t && (e != null && e.validatedByTeacher)) {
188
186
  const t = setTimeout(() => {
189
- y ? Ct(R) : rt(R);
187
+ B ? St(b) : et(b);
190
188
  }, 1e3);
191
189
  return () => {
192
190
  clearTimeout(t);
193
191
  };
194
192
  }
195
193
  }, [
194
+ b,
196
195
  R,
197
- w,
198
- $t,
199
- y,
200
- rt,
196
+ _t,
197
+ B,
198
+ et,
201
199
  e == null ? void 0 : e.validatedByTeacher
202
- ]), /* @__PURE__ */ L(
200
+ ]), /* @__PURE__ */ T(
203
201
  le,
204
202
  {
205
203
  "data-response-id": r,
206
204
  className: `widget-${r}`,
207
- ref: I,
208
- $topOffset: mt,
205
+ ref: L,
206
+ $topOffset: st,
209
207
  $flexDirection: _ ? "row" : "column",
210
208
  $alignItems: _ ? "flex-start" : "center",
211
- $hidden: A,
212
- $marginBottom: qt,
209
+ $hidden: M,
210
+ $marginBottom: kt,
213
211
  children: [
214
212
  _ && /* @__PURE__ */ i(
215
- ue,
213
+ me,
216
214
  {
217
215
  dangerouslySetInnerHTML: {
218
216
  __html: _
219
217
  }
220
218
  }
221
219
  ),
222
- /* @__PURE__ */ L(
223
- fe,
220
+ /* @__PURE__ */ T(
221
+ ue,
224
222
  {
225
- ref: U,
226
- $width: _ ? "50%" : `${X}px`,
227
- $minHeight: W ? Math.max(W - 72, nt ?? 0) : Qt,
223
+ ref: P,
224
+ $width: _ ? "50%" : `${G}px`,
225
+ $minHeight: y ? Math.max(y - 72, ot ?? 0) : Nt,
228
226
  $isActive: v,
229
- $paperColor: C,
227
+ $paperColor: W,
230
228
  $opacity: v ? 1 : 0.2,
231
229
  $imageHue: lt,
232
230
  children: [
233
- v && !!et && !!it && tt && /* @__PURE__ */ i(
234
- Jt,
231
+ v && !!q && !!tt && !!S.canvasEnabled && /* @__PURE__ */ i(
232
+ Zt,
235
233
  {
236
- containerRef: U,
237
- onPublish: et,
238
- onSubscribe: it,
234
+ containerRef: P,
235
+ onPublish: q,
236
+ onSubscribe: tt,
239
237
  responseId: r
240
238
  }
241
239
  ),
242
- /* @__PURE__ */ L(
243
- he,
240
+ /* @__PURE__ */ T(
241
+ de,
244
242
  {
245
- className: Dt,
246
- $dropzoneMinWidth: Rt.width,
247
- $dropzoneMinHeight: Rt.height,
243
+ className: Ft,
244
+ $dropzoneMinWidth: Ht.width,
245
+ $dropzoneMinHeight: Ht.height,
248
246
  children: [
249
- zt && !(x || l || d) && /* @__PURE__ */ i(
250
- ie,
247
+ Qt && !(I || m || h) && /* @__PURE__ */ i(
248
+ ee,
251
249
  {
252
250
  userType: c,
253
251
  question: n,
254
252
  response: e,
255
- behavior: j,
256
- layout: G,
257
- paperColor: C,
258
- onMarkForReview: xt,
259
- actionbarHeight: yt,
260
- canResolveDoubt: Lt,
261
- onResolveDoubt: Tt,
253
+ behavior: S,
254
+ layout: N,
255
+ paperColor: W,
256
+ onMarkForReview: Bt,
257
+ actionbarHeight: Wt,
258
+ canResolveDoubt: It,
259
+ onResolveDoubt: Lt,
262
260
  worksheetCompleted: g
263
261
  }
264
262
  ),
265
- x && /* @__PURE__ */ i(de, { src: Yt.LESSON_OVERVIEW_BANNER }),
266
- l && C && /* @__PURE__ */ i(oe, { paperColor: C }),
267
- 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, {})
263
+ I && /* @__PURE__ */ i(fe, { src: Gt.LESSON_OVERVIEW_BANNER }),
264
+ m && W && /* @__PURE__ */ i(re, { paperColor: W }),
265
+ h ? /* @__PURE__ */ T(Pt, { children: [
266
+ d === "practice-basic" && /* @__PURE__ */ i(ce, {}),
267
+ d === "practice-regular" && /* @__PURE__ */ i(se, {}),
268
+ d === "exit-ticket" && /* @__PURE__ */ i(ae, {}),
269
+ (d == null ? void 0 : d.startsWith("advanced-")) && /* @__PURE__ */ i(ne, {})
272
270
  ] }) : void 0,
273
271
  /* @__PURE__ */ i(
274
- re,
272
+ ie,
275
273
  {
276
- signedRequest: Wt,
274
+ signedRequest: Ct,
277
275
  appended: a,
278
276
  question: n,
279
277
  response: e == null ? void 0 : e.response,
280
- canRender: V || v,
281
- learnosity: b,
278
+ canRender: j || v,
279
+ learnosity: C,
282
280
  canForceAppend: c === "TEACHER",
283
- isConceptIntro: l,
281
+ isConceptIntro: m,
284
282
  simState: e == null ? void 0 : e.simState,
285
- onMediaStateChange: Bt,
283
+ onMediaStateChange: yt,
286
284
  imageHue: lt,
287
- isPuzzle: Q === -2
285
+ isPuzzle: F === -2
288
286
  }
289
287
  ),
290
- !z && tt && J && k && W !== void 0 && /* @__PURE__ */ i(ge, { $canScribble: q, children: /* @__PURE__ */ i(
291
- Zt,
288
+ !D && !!S.canvasEnabled && Z && J && y !== void 0 && /* @__PURE__ */ i(he, { $canScribble: k, children: /* @__PURE__ */ i(
289
+ Yt,
292
290
  {
293
- canRender: V,
294
- canScribble: q && v,
291
+ canRender: j,
292
+ canScribble: k && v,
295
293
  appended: a,
296
294
  canvasId: r,
297
- width: X,
298
- height: Math.max(W, nt ?? 0),
299
- onUpdateHeight: Pt,
300
- onPublish: J,
301
- onSubscribe: k,
302
- userId: It,
303
- initialData: O == null ? void 0 : O[r],
295
+ width: G,
296
+ height: Math.max(y, ot ?? 0),
297
+ onUpdateHeight: Kt,
298
+ onPublish: Z,
299
+ onSubscribe: J,
300
+ userId: xt,
301
+ initialData: Q == null ? void 0 : Q[r],
304
302
  userType: c
305
303
  }
306
304
  ) }),
307
- !z && K && K.length > 0 && /* @__PURE__ */ i(
308
- St,
305
+ !D && V && V.length > 0 && /* @__PURE__ */ i(
306
+ Rt,
309
307
  {
310
308
  $background: "BLUE_1",
311
309
  $gutterX: 1,
312
310
  $gapX: 0.5,
313
311
  $borderRadiusX: 0,
314
312
  $borderColor: "BLUE_2",
315
- children: K.map((t, s) => /* @__PURE__ */ i(
316
- Ee,
313
+ children: V.map((t, s) => /* @__PURE__ */ i(
314
+ ge,
317
315
  {
318
316
  dangerouslySetInnerHTML: {
319
- __html: `<span style="color: #DA5107; font-weight: 600;">Hint${((h == null ? void 0 : h.length) ?? 0) > 1 ? ` ${s + 1}` : ""}:</span>&nbsp;${t}`
317
+ __html: `<span style="color: #DA5107; font-weight: 600;">Hint${((f == null ? void 0 : f.length) ?? 0) > 1 ? ` ${s + 1}` : ""}:</span>&nbsp;${t}`
320
318
  }
321
319
  },
322
320
  t
323
321
  ))
324
322
  }
325
323
  ),
326
- Ut && /* @__PURE__ */ i(
327
- St,
324
+ Dt && /* @__PURE__ */ i(
325
+ Rt,
328
326
  {
329
327
  $background: "YELLOW_1",
330
328
  $gutterX: 1,
@@ -332,25 +330,25 @@ const Oe = Xt(
332
330
  $borderRadiusX: 0,
333
331
  $borderColor: "YELLOW_2",
334
332
  children: /* @__PURE__ */ i(
335
- _e,
333
+ Ee,
336
334
  {
337
335
  dangerouslySetInnerHTML: {
338
- __html: `<div style="color: #DA5107; font-weight: 600;">Solution:</div>${B}`
336
+ __html: `<div style="color: #DA5107; font-weight: 600;">Solution:</div>${x}`
339
337
  }
340
338
  }
341
339
  )
342
340
  }
343
341
  ),
344
- !!ot && /* @__PURE__ */ i(
345
- ne,
342
+ !!it && /* @__PURE__ */ i(
343
+ oe,
346
344
  {
347
- responses: Mt,
345
+ responses: At,
348
346
  response: e,
349
- nextQuestionId: R,
347
+ nextQuestionId: b,
350
348
  responseId: r,
351
- studentId: At,
349
+ studentId: Tt,
352
350
  userType: c,
353
- ...ot
351
+ ...it
354
352
  }
355
353
  )
356
354
  ]
@@ -365,6 +363,6 @@ const Oe = Xt(
365
363
  }
366
364
  );
367
365
  export {
368
- Oe as default
366
+ Me as default
369
367
  };
370
368
  //# sourceMappingURL=worksheet-question.js.map