@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,171 +1,148 @@
1
- import { jsxs as ee, jsx as e } from "react/jsx-runtime";
2
- import { deepEqual as ne } from "../../../../node_modules/fast-equals/dist/esm/index.js";
3
- import { memo as ie, useMemo as lt, useState as q, useEffect as T } from "react";
4
- import oe from "../../../../assets/line-icons/icons/check2.js";
5
- import se from "../../../../assets/line-icons/icons/hand.js";
6
- import re from "../../../../assets/line-icons/icons/question.js";
7
- import ae from "../../../../assets/line-icons/icons/skip.js";
8
- import dt from "../../../ui/arrow-tooltip/arrow-tooltip.js";
9
- import o from "../../../ui/buttons/button/button.js";
10
- import x from "../../../ui/buttons/icon-button/icon-button.js";
11
- import ue from "../../../ui/layout/flex-view.js";
12
- import { useWorksheetJourney as le } from "../hooks/use-worksheet-journey.js";
13
- import de from "./use-handler-callbacks.js";
14
- const xe = ie((N) => {
15
- var st, rt, at;
1
+ import { jsxs as Qt, jsx as i } from "react/jsx-runtime";
2
+ import { deepEqual as Mt } from "../../../../node_modules/fast-equals/dist/esm/index.js";
3
+ import { memo as Xt, useState as N, useEffect as C, useMemo as $t } from "react";
4
+ import jt from "../../../../assets/line-icons/icons/check2.js";
5
+ import Wt from "../../../../assets/line-icons/icons/hand.js";
6
+ import Pt from "../../../../assets/line-icons/icons/question.js";
7
+ import Ft from "../../../../assets/line-icons/icons/skip.js";
8
+ import r from "../../../ui/buttons/button/button.js";
9
+ import A from "../../../ui/buttons/icon-button/icon-button.js";
10
+ import Gt from "../../../ui/layout/flex-view.js";
11
+ import Ot from "./use-handler-callbacks.js";
12
+ const re = Xt((L) => {
13
+ var nt, it, ot;
16
14
  const {
17
- layout: ct,
18
- learnosity: b,
19
- question: l,
20
- questions: v,
21
- responses: L,
22
- questionIndex: X,
23
- canSubmitWorksheet: H,
24
- isQuestionUnlocked: Q,
25
- isQuestionAppended: c,
15
+ layout: at,
16
+ learnosity: p,
17
+ question: u,
18
+ questions: T,
19
+ responses: U,
20
+ questionIndex: H,
21
+ canSubmitWorksheet: Q,
22
+ isQuestionUnlocked: M,
23
+ isQuestionAppended: d,
26
24
  response: t,
27
- behavior: m,
28
- userType: p,
29
- setActiveQuestionId: mt,
30
- setSummaryVisible: pt,
31
- setBlocker: Bt,
32
- setResponses: ht,
33
- getTimeSpentOnQuestion: ft,
34
- onSubmit: kt,
25
+ behavior: f,
26
+ userType: m,
27
+ setActiveQuestionId: rt,
28
+ setSummaryVisible: lt,
29
+ setBlocker: ut,
30
+ setResponses: ct,
31
+ getTimeSpentOnQuestion: dt,
35
32
  onSkip: g,
36
- onUnassign: bt,
37
- onReview: yt
38
- } = N, { onHelp: At, onResponseChange: St, onTeacherValidation: Ct, loggerRef: Tt } = N, {
39
- navigationMode: w,
40
- canAttempt: s,
41
- hints: xt,
42
- checkButtonLabel: vt,
43
- retryButtonLabel: gt,
44
- validation: d,
45
- maximumAttempts: B,
46
- canExceedAttempts: M,
47
- teacherValidationEnabled: $,
48
- canTeacherValidate: r,
49
- hintsTimer: I,
33
+ actionBarRightElement: X,
34
+ onSubmit: mt
35
+ } = L, { onHelp: Bt, onResponseChange: ht, onTeacherValidation: kt, loggerRef: pt } = L, {
36
+ navigationMode: I,
37
+ canAttempt: o,
38
+ hints: ft,
39
+ checkButtonLabel: bt,
40
+ retryButtonLabel: St,
41
+ validation: c,
42
+ maximumAttempts: v,
43
+ canExceedAttempts: $,
44
+ teacherValidationEnabled: j,
45
+ canTeacherValidate: l,
46
+ hintsTimer: E,
50
47
  skippableTime: W,
51
- skippable: j,
52
- canUnAssign: P,
53
- canTeacherValidateDisabled: F
54
- } = m, { response_id: z, item_type: wt, type: R, instructor_stimulus: It, is_optional: G } = l, y = xt ? ((at = (rt = (st = b.question(z)) == null ? void 0 : st.getMetadata()) == null ? void 0 : rt.hints) == null ? void 0 : at.length) ?? 0 : 0, D = It === "SystemIntro", E = wt === "exit-ticket", h = s && y - ((t == null ? void 0 : t.hintsUsed) ?? 0) > 0, J = lt(() => B === -2, [B]), [a, O] = q(!1), [K, Y] = q(!1), [Z, A] = q(!1), { puzzleAttemptCtaRef: zt, puzzleReviewCtaRef: Rt, puzzleUnassignRef: Dt } = le({
55
- behavior: m
56
- });
57
- T(() => {
58
- if (I && h) {
59
- const i = setTimeout(() => {
60
- O(!0);
61
- }, I * 1e3);
62
- return () => clearTimeout(i);
48
+ skippable: P
49
+ } = f, { response_id: _, item_type: yt, type: R, instructor_stimulus: xt, is_optional: F } = u, b = ft ? ((ot = (it = (nt = p.question(_)) == null ? void 0 : nt.getMetadata()) == null ? void 0 : it.hints) == null ? void 0 : ot.length) ?? 0 : 0, w = xt === "SystemIntro", D = yt === "exit-ticket", B = o && b - ((t == null ? void 0 : t.hintsUsed) ?? 0) > 0, [s, G] = N(!1), [O, J] = N(!1), [K, S] = N(!1);
50
+ C(() => {
51
+ if (E && B) {
52
+ const n = setTimeout(() => {
53
+ G(!0);
54
+ }, E * 1e3);
55
+ return () => clearTimeout(n);
63
56
  }
64
- O(h);
65
- }, [I, h]), T(() => {
66
- const i = !(t != null && t.response) && !(t != null && t.skipped);
67
- if (j)
68
- if (y > 0 && !h)
69
- A(i);
70
- else if (y === 0 && i) {
71
- const C = setTimeout(
57
+ G(B);
58
+ }, [E, B]), C(() => {
59
+ const n = !(t != null && t.response) && !(t != null && t.skipped);
60
+ if (P)
61
+ if (b > 0 && !B)
62
+ S(n);
63
+ else if (b === 0 && n) {
64
+ const x = setTimeout(
72
65
  () => {
73
- A(i);
66
+ S(n);
74
67
  },
75
68
  (W ?? 0) * 1e3
76
69
  );
77
- return () => clearTimeout(C);
70
+ return () => clearTimeout(x);
78
71
  } else
79
- A(!1);
80
- }, [y, h, t, j, W]);
72
+ S(!1);
73
+ }, [b, B, t, P, W]);
81
74
  const {
82
- checkButton: f,
83
- checkButtonDisabled: Et,
84
- hintsButton: tt,
85
- retryButton: S,
86
- nextButton: _t,
87
- nextButtonDisabled: Ut,
88
- startButton: Vt,
89
- readyButton: qt,
90
- validateButton: Nt,
91
- skipSectionButton: Lt,
92
- submitAttemptButton: et,
93
- skipButton: Xt,
94
- unassignButton: Ht,
95
- reviewButton: Qt,
96
- submitAttemptButtonDisabled: Mt,
97
- submitAttemptButtonTooltip: $t,
98
- submitAttemptButtonTooltipText: Wt,
99
- reviewButtonDisabled: nt
100
- } = lt(() => {
101
- const i = r && G && (t == null ? void 0 : t.assignStatus) === "assigned", C = () => {
102
- var ut;
103
- if (B === -2)
104
- return p === "STUDENT" ? s ? {
105
- submitAttemptButton: !0
106
- } : {
107
- submitAttemptButton: !0,
108
- submitAttemptButtonDisabled: !0,
109
- submitAttemptButtonTooltip: !0,
110
- submitAttemptButtonTooltipText: r ? "To be discussed with tutor" : "Already solved"
111
- } : P ? {
112
- unassignButton: !0
113
- } : {
114
- reviewButton: r,
115
- reviewButtonDisabled: F
116
- };
117
- if (!s)
75
+ checkButton: h,
76
+ checkButtonDisabled: Ct,
77
+ hintsButton: Y,
78
+ retryButton: y,
79
+ nextButton: At,
80
+ nextButtonDisabled: Tt,
81
+ startButton: gt,
82
+ readyButton: It,
83
+ validateButton: vt,
84
+ skipSectionButton: Et,
85
+ submitAttemptButton: Z,
86
+ skipButton: _t
87
+ } = $t(() => {
88
+ const n = l && F && (t == null ? void 0 : t.assignStatus) === "assigned", x = () => {
89
+ var st;
90
+ if (v === -2)
91
+ return m === "STUDENT" && o ? {
92
+ hintsButton: s
93
+ } : {};
94
+ if (!o)
118
95
  return {
119
96
  nextButton: !0
120
97
  };
121
- if (!d && m.navigationMode === "LINEAR")
98
+ if (!c && f.navigationMode === "LINEAR")
122
99
  return {
123
100
  nextButton: !0,
124
101
  nextButtonDisabled: !(t != null && t.response),
125
- hintsButton: a,
126
- skipButton: Z
102
+ hintsButton: s,
103
+ skipButton: K
127
104
  };
128
- if (!d)
105
+ if (!c)
129
106
  return {
130
107
  nextButton: !0,
131
- hintsButton: a
108
+ hintsButton: s
132
109
  };
133
110
  if (!t || !t.response || !t.score)
134
111
  return {
135
112
  checkButton: !0,
136
113
  checkButtonDisabled: !0,
137
- hintsButton: a
114
+ hintsButton: s
138
115
  };
139
- const { responseEdited: k, score: u, attemptsHistory: n } = t, V = ((n == null ? void 0 : n.length) ?? 0) >= B;
140
- if (V && !M)
116
+ const { responseEdited: k, score: a, attemptsHistory: e } = t, q = ((e == null ? void 0 : e.length) ?? 0) >= v;
117
+ if (q && !$)
141
118
  return {
142
119
  nextButton: !0
143
120
  };
144
121
  if (k) {
145
- const te = (ut = n == null ? void 0 : n.slice(-1)[0]) == null ? void 0 : ut.response;
122
+ const Ht = (st = e == null ? void 0 : e.slice(-1)[0]) == null ? void 0 : st.response;
146
123
  return {
147
- nextButton: V,
124
+ nextButton: q,
148
125
  checkButton: !0,
149
- checkButtonDisabled: ne(t.response, te),
150
- hintsButton: a
126
+ checkButtonDisabled: Mt(t.response, Ht),
127
+ hintsButton: s
151
128
  };
152
129
  }
153
- return (u.score ?? 0) < u.max_score ? {
154
- nextButton: V,
130
+ return (a.score ?? 0) < a.max_score ? {
131
+ nextButton: q,
155
132
  retryButton: !0,
156
- hintsButton: a
157
- } : (u.score ?? 0) === u.max_score ? {
133
+ hintsButton: s
134
+ } : (a.score ?? 0) === a.max_score ? {
158
135
  nextButton: !0
159
136
  } : {};
160
- }, Zt = () => v.some(({ response_id: k }) => {
161
- const { assignStatus: u, validatedByTeacher: n } = L[k] ?? {};
162
- return u === "skipped" ? !1 : n !== !0;
137
+ }, Ut = () => T.some(({ response_id: k }) => {
138
+ const { assignStatus: a, validatedByTeacher: e } = U[k] ?? {};
139
+ return a === "skipped" ? !1 : e !== !0;
163
140
  });
164
- if ($) {
141
+ if (j) {
165
142
  const { validatedByTeacher: k } = t ?? {};
166
- if (w === "ADAPTIVE" || w === "CURRENT")
167
- return p === "STUDENT" ? {
168
- hintsButton: a,
143
+ if (I === "ADAPTIVE" || I === "CURRENT")
144
+ return m === "STUDENT" ? {
145
+ hintsButton: s,
169
146
  validateButton: !1
170
147
  } : {
171
148
  validateButton: !1
@@ -173,114 +150,112 @@ const xe = ie((N) => {
173
150
  if (k)
174
151
  return {
175
152
  validateButton: !0,
176
- submitAttemptButton: r && s && p === "STUDENT" && H ? !Zt() : !1
153
+ submitAttemptButton: l && o && m === "STUDENT" && Q ? !Ut() : !1
177
154
  };
178
- if (!Q)
155
+ if (!M)
179
156
  return {};
180
- if (p === "STUDENT")
181
- return D ? {
182
- startButton: r && s
157
+ if (m === "STUDENT")
158
+ return w ? {
159
+ startButton: l && o
183
160
  } : R !== "clozetext" ? {
184
- ...C(),
161
+ ...x(),
185
162
  nextButton: !1
186
163
  } : {
187
- hintsButton: a,
188
- readyButton: r && E && !(t != null && t.submittedByStudent)
164
+ hintsButton: s,
165
+ readyButton: l && D && !(t != null && t.submittedByStudent)
189
166
  };
190
- if (D)
167
+ if (w)
191
168
  return {
192
- skipSectionButton: i
169
+ skipSectionButton: n
193
170
  };
194
171
  if (R !== "clozetext") {
195
- const { responseEdited: u, score: n } = t ?? {};
172
+ const { responseEdited: a, score: e } = t ?? {};
196
173
  return {
197
- skipSectionButton: i,
198
- validateButton: u || !r ? !1 : !!(n != null && n.score && (n != null && n.max_score) && !((n.score ?? 0) < n.max_score))
174
+ skipSectionButton: n,
175
+ validateButton: a || !l ? !1 : !!(e != null && e.score && (e != null && e.max_score) && !((e.score ?? 0) < e.max_score))
199
176
  };
200
177
  }
201
178
  return {
202
- skipSectionButton: i,
203
- validateButton: r && (E ? t == null ? void 0 : t.submittedByStudent : !0)
179
+ skipSectionButton: n,
180
+ validateButton: l && (D ? t == null ? void 0 : t.submittedByStudent : !0)
204
181
  };
205
182
  }
206
- return C();
183
+ return x();
207
184
  }, [
208
- r,
209
- G,
185
+ l,
186
+ F,
210
187
  t,
188
+ j,
189
+ o,
190
+ c,
191
+ f.navigationMode,
192
+ v,
211
193
  $,
212
194
  s,
213
- d,
214
- m.navigationMode,
215
- B,
195
+ K,
196
+ T,
197
+ U,
198
+ I,
216
199
  M,
217
- a,
218
- Z,
219
- v,
220
- L,
221
- P,
200
+ m,
222
201
  w,
223
- Q,
224
- p,
225
- D,
226
202
  R,
227
- E,
228
- H,
229
- F
203
+ D,
204
+ Q
230
205
  ]), {
231
- handleResponseChange: _,
232
- handleHelpButtonClick: it,
233
- handleBackButtonClick: ot,
234
- handleNextButtonClick: U,
235
- handleCheckButtonClick: jt,
236
- handleRetryButtonClick: Pt,
237
- handleHintButtonClick: Ft,
238
- handleValidateButtonClick: Gt,
239
- handleStartButtonClick: Jt,
240
- handleSkipSectionButtonClick: Ot,
241
- handleReadyButtonClick: Kt,
242
- handleSkipButtonClick: Yt
243
- } = de({
244
- layout: ct,
245
- question: l,
246
- questions: v,
247
- learnosity: b,
248
- questionIndex: X,
249
- setActiveQuestionId: mt,
250
- setSummaryVisible: pt,
251
- setBlocker: Bt,
252
- setResponses: ht,
253
- onResponseChange: St,
254
- onTeacherValidation: Ct,
255
- onHelp: At,
256
- behavior: m,
257
- loggerRef: Tt,
258
- setSkipped: Y,
259
- getTimeSpentOnQuestion: ft
206
+ handleResponseChange: z,
207
+ handleHelpButtonClick: tt,
208
+ handleBackButtonClick: et,
209
+ handleNextButtonClick: V,
210
+ handleCheckButtonClick: Rt,
211
+ handleRetryButtonClick: wt,
212
+ handleHintButtonClick: Dt,
213
+ handleValidateButtonClick: zt,
214
+ handleStartButtonClick: Vt,
215
+ handleSkipSectionButtonClick: qt,
216
+ handleReadyButtonClick: Nt,
217
+ handleSkipButtonClick: Lt
218
+ } = Ot({
219
+ layout: at,
220
+ question: u,
221
+ questions: T,
222
+ learnosity: p,
223
+ questionIndex: H,
224
+ setActiveQuestionId: rt,
225
+ setSummaryVisible: lt,
226
+ setBlocker: ut,
227
+ setResponses: ct,
228
+ onResponseChange: ht,
229
+ onTeacherValidation: kt,
230
+ onHelp: Bt,
231
+ behavior: f,
232
+ loggerRef: pt,
233
+ setSkipped: J,
234
+ getTimeSpentOnQuestion: dt
260
235
  });
261
- return T(() => {
262
- K && (Y(!1), A(!1), U(), g && g(l.item_display_number, l.question_number));
236
+ return C(() => {
237
+ O && (J(!1), S(!1), V(), g && g(u.item_display_number, u.question_number));
263
238
  }, [
264
- U,
239
+ V,
265
240
  g,
266
- l.item_display_number,
267
- l.question_number,
268
- K
269
- ]), T(() => {
270
- const i = c ? b.question(z) : void 0;
271
- return i && s && (!d || f) && (i.on("changed", _), i.enable()), () => {
272
- i && s && (!d || f) && (i.off("changed", _), i.disable());
241
+ u.item_display_number,
242
+ u.question_number,
243
+ O
244
+ ]), C(() => {
245
+ const n = d ? p.question(_) : void 0;
246
+ return n && o && (!c || h) && (n.on("changed", z), n.enable()), () => {
247
+ n && o && (!c || h) && (n.off("changed", z), n.disable());
273
248
  };
274
249
  }, [
275
- s,
276
- f,
277
- _,
278
- c,
279
- b,
250
+ o,
251
+ h,
280
252
  z,
281
- d
282
- ]), /* @__PURE__ */ ee(
283
- ue,
253
+ d,
254
+ p,
255
+ _,
256
+ c
257
+ ]), /* @__PURE__ */ Qt(
258
+ Gt,
284
259
  {
285
260
  $background: "WHITE",
286
261
  $flexDirection: "row",
@@ -288,153 +263,106 @@ const xe = ie((N) => {
288
263
  $alignItems: "center",
289
264
  $justifyContent: "flex-end",
290
265
  children: [
291
- tt && /* @__PURE__ */ e(
292
- x,
266
+ Y && /* @__PURE__ */ i(
267
+ A,
293
268
  {
294
- Icon: re,
269
+ Icon: Pt,
295
270
  analyticsLabel: "Hint",
296
271
  renderAs: "secondary",
297
- disabled: !c,
298
- onClick: Ft
272
+ disabled: !d,
273
+ onClick: Dt
299
274
  }
300
275
  ),
301
- !tt && it && (f || S) && /* @__PURE__ */ e(
302
- x,
276
+ !Y && tt && (h || y) && /* @__PURE__ */ i(
277
+ A,
303
278
  {
304
- Icon: se,
279
+ Icon: Wt,
305
280
  analyticsLabel: "Ask for help",
306
281
  renderAs: "secondary",
307
- onClick: it
282
+ onClick: tt
308
283
  }
309
284
  ),
310
- ot && /* @__PURE__ */ e(
311
- o,
285
+ et && /* @__PURE__ */ i(
286
+ r,
312
287
  {
313
288
  widthX: 6,
314
289
  renderAs: "secondary",
315
290
  size: "small",
316
291
  label: "Back",
317
- disabled: X === 0,
318
- onClick: ot
292
+ disabled: H === 0,
293
+ onClick: et
319
294
  }
320
295
  ),
321
- Xt && /* @__PURE__ */ e(
322
- o,
296
+ _t && /* @__PURE__ */ i(
297
+ r,
323
298
  {
324
299
  widthX: 6,
325
- renderAs: S ? "secondary" : "primary",
300
+ renderAs: y ? "secondary" : "primary",
326
301
  size: "small",
327
302
  label: "Skip",
328
- onClick: Yt
303
+ onClick: Lt
329
304
  }
330
305
  ),
331
- _t && /* @__PURE__ */ e(
332
- o,
306
+ At && /* @__PURE__ */ i(
307
+ r,
333
308
  {
334
309
  widthX: 6,
335
- renderAs: S ? "secondary" : "primary",
310
+ renderAs: y ? "secondary" : "primary",
336
311
  size: "small",
337
312
  label: "Next",
338
- onClick: U,
339
- disabled: Ut === !0
313
+ onClick: V,
314
+ disabled: Tt === !0
340
315
  }
341
316
  ),
342
- S && /* @__PURE__ */ e(
343
- o,
317
+ y && /* @__PURE__ */ i(
318
+ r,
344
319
  {
345
320
  widthX: 6,
346
321
  renderAs: "primary",
347
322
  size: "small",
348
- label: gt,
349
- disabled: !c,
350
- onClick: Pt
323
+ label: St,
324
+ disabled: !d,
325
+ onClick: wt
351
326
  }
352
327
  ),
353
- f && /* @__PURE__ */ e(
354
- o,
328
+ h && /* @__PURE__ */ i(
329
+ r,
355
330
  {
356
331
  renderAs: "primary",
357
332
  size: "small",
358
- label: vt,
359
- disabled: Et === !0 || !c,
360
- onClick: jt
333
+ label: bt,
334
+ disabled: Ct === !0 || !d,
335
+ onClick: Rt
361
336
  }
362
337
  ),
363
- Vt && /* @__PURE__ */ e(o, { renderAs: "primary", size: "small", label: "Start", onClick: Jt }),
364
- qt && /* @__PURE__ */ e(o, { renderAs: "primary", size: "small", label: "Submit", onClick: Kt }),
365
- Lt && /* @__PURE__ */ e(
366
- x,
338
+ gt && /* @__PURE__ */ i(r, { renderAs: "primary", size: "small", label: "Start", onClick: Vt }),
339
+ It && /* @__PURE__ */ i(r, { renderAs: "primary", size: "small", label: "Submit", onClick: Nt }),
340
+ Et && /* @__PURE__ */ i(
341
+ A,
367
342
  {
368
343
  renderAs: "primary",
369
- Icon: ae,
344
+ Icon: Ft,
370
345
  analyticsLabel: "Skip Section",
371
- onClick: Ot
346
+ onClick: qt
372
347
  }
373
348
  ),
374
- !et && Nt && /* @__PURE__ */ e(
375
- x,
349
+ !Z && vt && /* @__PURE__ */ i(
350
+ A,
376
351
  {
377
352
  renderAs: "primary",
378
- Icon: oe,
353
+ Icon: jt,
379
354
  disabled: t == null ? void 0 : t.validatedByTeacher,
380
355
  analyticsLabel: "Validate",
381
- onClick: Gt
382
- }
383
- ),
384
- et && /* @__PURE__ */ e(
385
- dt,
386
- {
387
- position: "top",
388
- renderAs: "primary",
389
- tooltipItem: Wt ?? "",
390
- hidden: !$t,
391
- children: /* @__PURE__ */ e("div", { ref: J ? zt : void 0, children: /* @__PURE__ */ e(
392
- o,
393
- {
394
- renderAs: "primary",
395
- size: "small",
396
- label: J ? "I have solved" : "Submit",
397
- onClick: kt,
398
- disabled: Mt
399
- }
400
- ) })
356
+ onClick: zt
401
357
  }
402
358
  ),
403
- Ht && /* @__PURE__ */ e("div", { ref: Dt, children: /* @__PURE__ */ e(
404
- o,
405
- {
406
- widthX: 6,
407
- renderAs: "primary",
408
- size: "small",
409
- label: "Unassign",
410
- onClick: bt
411
- }
412
- ) }),
413
- Qt && /* @__PURE__ */ e(
414
- dt,
415
- {
416
- tooltipItem: "Review this in class with student.",
417
- position: "top",
418
- renderAs: "primary",
419
- hidden: !nt,
420
- children: /* @__PURE__ */ e("div", { ref: Rt, children: /* @__PURE__ */ e(
421
- o,
422
- {
423
- widthX: 6,
424
- renderAs: "primary",
425
- size: "small",
426
- label: "Review",
427
- onClick: yt,
428
- disabled: nt
429
- }
430
- ) })
431
- }
432
- )
359
+ Z && /* @__PURE__ */ i(r, { renderAs: "primary", size: "small", label: "Submit", onClick: mt }),
360
+ X && X
433
361
  ]
434
362
  }
435
363
  );
436
364
  });
437
365
  export {
438
- xe as default
366
+ re as default
439
367
  };
440
368
  //# sourceMappingURL=worksheet-questions-controller.js.map