@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.
- package/dist/assets/gif/gif.js +3 -0
- package/dist/assets/gif/gif.js.map +1 -1
- package/dist/assets/illustrations/illustrations.js +10 -1
- package/dist/assets/illustrations/illustrations.js.map +1 -1
- package/dist/assets/images/images.js +10 -0
- package/dist/assets/images/images.js.map +1 -1
- package/dist/assets/line-icons/icons/cue-coin.js +182 -0
- package/dist/assets/line-icons/icons/cue-coin.js.map +1 -0
- package/dist/assets/line-icons/icons/wins-common-icon.js +26 -0
- package/dist/assets/line-icons/icons/wins-common-icon.js.map +1 -0
- package/dist/assets/line-icons/icons/wins-epic-icon.js +25 -0
- package/dist/assets/line-icons/icons/wins-epic-icon.js.map +1 -0
- package/dist/assets/line-icons/icons/wins-legendary-icon.js +25 -0
- package/dist/assets/line-icons/icons/wins-legendary-icon.js.map +1 -0
- package/dist/assets/line-icons/icons/wins-mystery-icon.js +105 -0
- package/dist/assets/line-icons/icons/wins-mystery-icon.js.map +1 -0
- package/dist/assets/line-icons/icons/wins-mythic-icon.js +28 -0
- package/dist/assets/line-icons/icons/wins-mythic-icon.js.map +1 -0
- package/dist/assets/line-icons/icons/wins-rare-icon.js +28 -0
- package/dist/assets/line-icons/icons/wins-rare-icon.js.map +1 -0
- package/dist/assets/lottie/lottie.js +10 -3
- package/dist/assets/lottie/lottie.js.map +1 -1
- package/dist/constants/config.js +5 -0
- package/dist/constants/config.js.map +1 -0
- package/dist/constants/country.js +9 -0
- package/dist/constants/country.js.map +1 -1
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +6 -6
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +1 -1
- package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar.js +4 -4
- package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar.js.map +1 -1
- package/dist/features/auth/comps/otp-input/otp-input.js +19 -18
- package/dist/features/auth/comps/otp-input/otp-input.js.map +1 -1
- package/dist/features/auth/comps/pill-button/pill-button-styled.js +17 -17
- package/dist/features/auth/comps/pill-button/pill-button-styled.js.map +1 -1
- package/dist/features/auth/comps/pill-button/pill-button.js +26 -24
- package/dist/features/auth/comps/pill-button/pill-button.js.map +1 -1
- package/dist/features/auth/comps/user-list/user-item/user-item.js +32 -30
- package/dist/features/auth/comps/user-list/user-item/user-item.js.map +1 -1
- package/dist/features/auth/comps/user-list/user-list.js +20 -19
- package/dist/features/auth/comps/user-list/user-list.js.map +1 -1
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-constants.js +9 -9
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-constants.js.map +1 -1
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-styled.js +58 -29
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-styled.js.map +1 -1
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide.js +78 -41
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide.js.map +1 -1
- package/dist/features/auth/pla-signup/pla-analytics-events.js +5 -4
- package/dist/features/auth/pla-signup/pla-analytics-events.js.map +1 -1
- package/dist/features/auth/pla-signup/signup-header/signup-header.js +1 -1
- package/dist/features/auth/pla-signup/signup-header/signup-header.js.map +1 -1
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js +37 -35
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js.map +1 -1
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js +75 -70
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +1 -1
- package/dist/features/auth/signup/custom-input-field/custom-input-field.js +55 -50
- package/dist/features/auth/signup/custom-input-field/custom-input-field.js.map +1 -1
- package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js +47 -25
- package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js.map +1 -1
- package/dist/features/auth/signup-unavailable/signup-unavailable-styled.js +16 -0
- package/dist/features/auth/signup-unavailable/signup-unavailable-styled.js.map +1 -0
- package/dist/features/auth/signup-unavailable/signup-unavailable-view.js +62 -0
- package/dist/features/auth/signup-unavailable/signup-unavailable-view.js.map +1 -0
- package/dist/features/auth/signup-unavailable/signup-unavailable.js +17 -0
- package/dist/features/auth/signup-unavailable/signup-unavailable.js.map +1 -0
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/question-overview.js +19 -18
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/question-overview.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/sat-sheet-summary-styled.js +7 -7
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/sat-sheet-summary-styled.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/sat-sheet-summary.js +26 -24
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/sat-sheet-summary.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/summary-module.js +15 -13
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/summary-module.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/constants/index.js.map +1 -1
- package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js +130 -69
- package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js.map +1 -1
- package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js +43 -33
- package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js.map +1 -1
- package/dist/features/chapters-v2/chapter-details/chapter-details.js +137 -95
- package/dist/features/chapters-v2/chapter-details/chapter-details.js.map +1 -1
- package/dist/features/chapters-v2/comps/node-card/node-card-styled.js +36 -31
- package/dist/features/chapters-v2/comps/node-card/node-card-styled.js.map +1 -1
- package/dist/features/chapters-v2/comps/sat-mock-test/sat-mock-test-styled.js +22 -0
- package/dist/features/chapters-v2/comps/sat-mock-test/sat-mock-test-styled.js.map +1 -0
- package/dist/features/chapters-v2/comps/sat-mock-test/sat-mock-test.js +141 -0
- package/dist/features/chapters-v2/comps/sat-mock-test/sat-mock-test.js.map +1 -0
- package/dist/features/chapters-v2/constants/block-constants.js +7 -5
- package/dist/features/chapters-v2/constants/block-constants.js.map +1 -1
- package/dist/features/chapters-v2/utils/index.js +22 -12
- package/dist/features/chapters-v2/utils/index.js.map +1 -1
- package/dist/features/chapters-v2/utils/sat-sheet-utils.js +12 -0
- package/dist/features/chapters-v2/utils/sat-sheet-utils.js.map +1 -0
- package/dist/features/circle-games/games/web-view/web-view.js +0 -1
- package/dist/features/circle-games/games/web-view/web-view.js.map +1 -1
- package/dist/features/journey/hooks/use-chapter-page-journey/use-download-block-journey.js +86 -0
- package/dist/features/journey/hooks/use-chapter-page-journey/use-download-block-journey.js.map +1 -0
- package/dist/features/journey/hooks/use-chapter-page-journey/use-download-node-journey.js +140 -0
- package/dist/features/journey/hooks/use-chapter-page-journey/use-download-node-journey.js.map +1 -0
- package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js +8 -4
- package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js.map +1 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js +23 -29
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js.map +1 -1
- package/dist/features/journey/journey-id/journey-id-student.js +1 -1
- package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
- package/dist/features/journey/journey-id/journey-id-teacher.js +2 -2
- package/dist/features/journey/journey-id/journey-id-teacher.js.map +1 -1
- package/dist/features/journey/mocks/chapter-page-journey-mock-data.js +400 -0
- package/dist/features/journey/mocks/chapter-page-journey-mock-data.js.map +1 -1
- package/dist/features/milestone/constants.js +13 -10
- package/dist/features/milestone/constants.js.map +1 -1
- package/dist/features/milestone/create/comps/add-custom-chapter/add-custom-chapter.js +42 -40
- package/dist/features/milestone/create/comps/add-custom-chapter/add-custom-chapter.js.map +1 -1
- package/dist/features/milestone/create/comps/add-custom-chapter/course-catalog.js +70 -64
- package/dist/features/milestone/create/comps/add-custom-chapter/course-catalog.js.map +1 -1
- package/dist/features/milestone/create/comps/add-custom-chapter/hooks/use-catalog-helpers.js +54 -29
- package/dist/features/milestone/create/comps/add-custom-chapter/hooks/use-catalog-helpers.js.map +1 -1
- package/dist/features/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapter-category/chapter-category-container.js +48 -28
- package/dist/features/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapter-category/chapter-category-container.js.map +1 -1
- package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js +79 -76
- package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js.map +1 -1
- package/dist/features/milestone/create/comps/chapters-selection-step/utils.js +97 -94
- package/dist/features/milestone/create/comps/chapters-selection-step/utils.js.map +1 -1
- package/dist/features/milestone/create/comps/class-details-step/class-details-step.js +160 -143
- package/dist/features/milestone/create/comps/class-details-step/class-details-step.js.map +1 -1
- package/dist/features/milestone/create/comps/class-details-step/class-details-utils.js +22 -12
- package/dist/features/milestone/create/comps/class-details-step/class-details-utils.js.map +1 -1
- package/dist/features/milestone/create/comps/goal-completion-date-selector/goal-completion-date-selector.js +6 -6
- package/dist/features/milestone/create/comps/test-type-step/test-type-step.js +64 -59
- package/dist/features/milestone/create/comps/test-type-step/test-type-step.js.map +1 -1
- package/dist/features/milestone/create/milestone-create-container.js +17 -15
- package/dist/features/milestone/create/milestone-create-container.js.map +1 -1
- package/dist/features/milestone/create/milestone-create-helpers.js +170 -153
- package/dist/features/milestone/create/milestone-create-helpers.js.map +1 -1
- package/dist/features/milestone/create/milestone-create-styled.js +1 -1
- package/dist/features/milestone/create/milestone-create-styled.js.map +1 -1
- package/dist/features/milestone/create/milestone-create.js +19 -17
- package/dist/features/milestone/create/milestone-create.js.map +1 -1
- package/dist/features/milestone/milestone-tests/tests-creation/test-stages/test-preview/test-preview.js +19 -20
- package/dist/features/milestone/milestone-tests/tests-creation/test-stages/test-preview/test-preview.js.map +1 -1
- package/dist/features/parent-dashboard/api/get-student-profile-summary.js +9 -0
- package/dist/features/parent-dashboard/api/get-student-profile-summary.js.map +1 -0
- package/dist/features/parent-dashboard/api/parent-home.js +10 -0
- package/dist/features/parent-dashboard/api/parent-home.js.map +1 -0
- package/dist/features/parent-dashboard/comps/compact-header/compact-header.js +30 -0
- package/dist/features/parent-dashboard/comps/compact-header/compact-header.js.map +1 -0
- package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features-constants.js +25 -0
- package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features-constants.js.map +1 -0
- package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features-styled.js +15 -0
- package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features-styled.js.map +1 -0
- package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features.js +90 -0
- package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features.js.map +1 -0
- package/dist/features/parent-dashboard/comps/math-practice/math-practice-constants.js +19 -0
- package/dist/features/parent-dashboard/comps/math-practice/math-practice-constants.js.map +1 -0
- package/dist/features/parent-dashboard/comps/math-practice/math-practice-styled.js +32 -0
- package/dist/features/parent-dashboard/comps/math-practice/math-practice-styled.js.map +1 -0
- package/dist/features/parent-dashboard/comps/math-practice/math-practice.js +67 -0
- package/dist/features/parent-dashboard/comps/math-practice/math-practice.js.map +1 -0
- package/dist/features/parent-dashboard/comps/parent-dashboard-faqs/parent-dashboard-faqs-constants.js +42 -0
- package/dist/features/parent-dashboard/comps/parent-dashboard-faqs/parent-dashboard-faqs-constants.js.map +1 -0
- package/dist/features/parent-dashboard/comps/parent-dashboard-faqs/parent-dashboard-faqs.js +20 -0
- package/dist/features/parent-dashboard/comps/parent-dashboard-faqs/parent-dashboard-faqs.js.map +1 -0
- package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction-styled.js +10 -0
- package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction-styled.js.map +1 -0
- package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction.js +42 -0
- package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction.js.map +1 -0
- package/dist/features/parent-dashboard/hooks/use-parent-home-data.js +67 -0
- package/dist/features/parent-dashboard/hooks/use-parent-home-data.js.map +1 -0
- package/dist/features/parent-dashboard/hooks/use-student-profile-summary-data.js +24 -0
- package/dist/features/parent-dashboard/hooks/use-student-profile-summary-data.js.map +1 -0
- package/dist/features/parent-dashboard/hooks/use-switch-user-journey.js +71 -0
- package/dist/features/parent-dashboard/hooks/use-switch-user-journey.js.map +1 -0
- package/dist/features/parent-dashboard/modals/help-and-support/help-and-support.js +40 -0
- package/dist/features/parent-dashboard/modals/help-and-support/help-and-support.js.map +1 -0
- package/dist/features/parent-dashboard/modals/student-login-info/student-login-info.js +44 -0
- package/dist/features/parent-dashboard/modals/student-login-info/student-login-info.js.map +1 -0
- package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-helpers.js +32 -0
- package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-helpers.js.map +1 -0
- package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-styled.js +12 -0
- package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-styled.js.map +1 -0
- package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary.js +44 -0
- package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary.js.map +1 -0
- package/dist/features/parent-dashboard/modals/trial-report/trial-report-styled.js +13 -0
- package/dist/features/parent-dashboard/modals/trial-report/trial-report-styled.js.map +1 -0
- package/dist/features/parent-dashboard/modals/trial-report/trial-report.js +28 -0
- package/dist/features/parent-dashboard/modals/trial-report/trial-report.js.map +1 -0
- package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-constants.js +43 -0
- package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-constants.js.map +1 -0
- package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js +59 -0
- package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js.map +1 -0
- package/dist/features/parent-dashboard/modals/tutor-change/tutor-change.js +86 -0
- package/dist/features/parent-dashboard/modals/tutor-change/tutor-change.js.map +1 -0
- package/dist/features/parent-dashboard/parent-dashboard-constants.js +26 -0
- package/dist/features/parent-dashboard/parent-dashboard-constants.js.map +1 -0
- package/dist/features/parent-dashboard/parent-dashboard-styled.js +33 -0
- package/dist/features/parent-dashboard/parent-dashboard-styled.js.map +1 -0
- package/dist/features/parent-dashboard/parent-dashboard-types.js +6 -0
- package/dist/features/parent-dashboard/parent-dashboard-types.js.map +1 -0
- package/dist/features/parent-dashboard/parent-dashboard-view.js +215 -0
- package/dist/features/parent-dashboard/parent-dashboard-view.js.map +1 -0
- package/dist/features/parent-dashboard/parent-dashboard.js +8 -0
- package/dist/features/parent-dashboard/parent-dashboard.js.map +1 -0
- package/dist/features/sentry/constants/ignored.js +10 -6
- package/dist/features/sentry/constants/ignored.js.map +1 -1
- package/dist/features/sheets/constants/sheet.js +23 -10
- package/dist/features/sheets/constants/sheet.js.map +1 -1
- package/dist/features/sheets/utils/is-v3-worksheet.js +17 -0
- package/dist/features/sheets/utils/is-v3-worksheet.js.map +1 -1
- package/dist/features/student-details/class-details/class-details-utils.js +6 -6
- package/dist/features/trial-session/api/course-stream.js.map +1 -1
- package/dist/features/trial-session/comps/about-cuemath/about-cuemath-constants.js +1 -1
- package/dist/features/trial-session/comps/about-cuemath/about-cuemath-constants.js.map +1 -1
- package/dist/features/trial-session/comps/background-grid/background-grid-utils.js +66 -60
- package/dist/features/trial-session/comps/background-grid/background-grid-utils.js.map +1 -1
- package/dist/features/trial-session/comps/learning-plan/index.js +62 -88
- package/dist/features/trial-session/comps/learning-plan/index.js.map +1 -1
- package/dist/features/trial-session/comps/offering-information/offering-information-constants.js +12 -12
- package/dist/features/trial-session/comps/offering-information/offering-information-constants.js.map +1 -1
- package/dist/features/trial-session/comps/pla/next-steps/next-steps-constants.js +25 -0
- package/dist/features/trial-session/comps/pla/next-steps/next-steps-constants.js.map +1 -0
- package/dist/features/trial-session/comps/pla/next-steps/next-steps-styled.js +43 -0
- package/dist/features/trial-session/comps/pla/next-steps/next-steps-styled.js.map +1 -0
- package/dist/features/trial-session/comps/pla/next-steps/next-steps.js +49 -0
- package/dist/features/trial-session/comps/pla/next-steps/next-steps.js.map +1 -0
- package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-countdown.js +29 -0
- package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-countdown.js.map +1 -0
- package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-status-config.js +132 -0
- package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-status-config.js.map +1 -0
- package/dist/features/trial-session/comps/pla/session-status/session-status-constants.js +11 -0
- package/dist/features/trial-session/comps/pla/session-status/session-status-constants.js.map +1 -0
- package/dist/features/trial-session/comps/pla/session-status/session-status-helpers.js +19 -0
- package/dist/features/trial-session/comps/pla/session-status/session-status-helpers.js.map +1 -0
- package/dist/features/trial-session/comps/pla/session-status/session-status-styled.js +17 -0
- package/dist/features/trial-session/comps/pla/session-status/session-status-styled.js.map +1 -0
- package/dist/features/trial-session/comps/pla/session-status/session-status.js +127 -0
- package/dist/features/trial-session/comps/pla/session-status/session-status.js.map +1 -0
- package/dist/features/trial-session/comps/pla/session-summary/session-summary-constants.js +53 -0
- package/dist/features/trial-session/comps/pla/session-summary/session-summary-constants.js.map +1 -0
- package/dist/features/trial-session/comps/pla/session-summary/session-summary.js +53 -0
- package/dist/features/trial-session/comps/pla/session-summary/session-summary.js.map +1 -0
- package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card-styled.js +17 -0
- package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card-styled.js.map +1 -0
- package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card.js +56 -0
- package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card.js.map +1 -0
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-constants.js +5 -0
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-constants.js.map +1 -0
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-styled.js +17 -0
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-styled.js.map +1 -0
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-types.js +5 -0
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-types.js.map +1 -0
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions.js +96 -0
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions.js.map +1 -0
- package/dist/features/trial-session/comps/school-goals/school-goals.js +25 -24
- package/dist/features/trial-session/comps/school-goals/school-goals.js.map +1 -1
- package/dist/features/trial-session/comps/session-report/report-404/report-404.js +34 -0
- package/dist/features/trial-session/comps/session-report/report-404/report-404.js.map +1 -0
- package/dist/features/trial-session/comps/session-report/report-information/report-card.js +41 -0
- package/dist/features/trial-session/comps/session-report/report-information/report-card.js.map +1 -0
- package/dist/features/trial-session/comps/session-report/report-information/report-information-styled.js +39 -0
- package/dist/features/trial-session/comps/session-report/report-information/report-information-styled.js.map +1 -0
- package/dist/features/trial-session/comps/session-report/report-information/report-information.js +179 -0
- package/dist/features/trial-session/comps/session-report/report-information/report-information.js.map +1 -0
- package/dist/features/trial-session/comps/session-report/session-report-styled.js +6 -29
- package/dist/features/trial-session/comps/session-report/session-report-styled.js.map +1 -1
- package/dist/features/trial-session/comps/session-report/session-report.js +44 -174
- package/dist/features/trial-session/comps/session-report/session-report.js.map +1 -1
- package/dist/features/trial-session/comps/student-personalization/student-personalization-styled.js +20 -5
- package/dist/features/trial-session/comps/student-personalization/student-personalization-styled.js.map +1 -1
- package/dist/features/trial-session/comps/student-personalization/student-personalization.js +59 -126
- package/dist/features/trial-session/comps/student-personalization/student-personalization.js.map +1 -1
- package/dist/features/trial-session/comps/student-profile/constant.js +10 -0
- package/dist/features/trial-session/comps/student-profile/constant.js.map +1 -0
- package/dist/features/trial-session/comps/student-profile/student-profile-highlights/student-profile-highlights.js +53 -0
- package/dist/features/trial-session/comps/student-profile/student-profile-highlights/student-profile-highlights.js.map +1 -0
- package/dist/features/trial-session/comps/student-profile/student-profile.js +93 -46
- package/dist/features/trial-session/comps/student-profile/student-profile.js.map +1 -1
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-helpers.js +12 -0
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-helpers.js.map +1 -0
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-styled.js +121 -42
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-styled.js.map +1 -1
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js +174 -56
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js.map +1 -1
- package/dist/features/trial-session/comps/worksheet/worksheet.js +23 -23
- package/dist/features/trial-session/comps/worksheet/worksheet.js.map +1 -1
- package/dist/features/trial-session/hooks/use-trial-session-navigation.js +65 -63
- package/dist/features/trial-session/hooks/use-trial-session-navigation.js.map +1 -1
- package/dist/features/trial-session/left-panel/index.js +1 -1
- package/dist/features/trial-session/left-panel/index.js.map +1 -1
- package/dist/features/trial-session/right-panel/slide-components-map.js +32 -32
- package/dist/features/trial-session/right-panel/slide-components-map.js.map +1 -1
- package/dist/features/trial-session/trial-session-constants.js +3 -3
- package/dist/features/trial-session/trial-session-constants.js.map +1 -1
- package/dist/features/trial-session/trial-session-types.js.map +1 -1
- package/dist/features/ui/buttons/icon-button/icon-button.js +32 -29
- package/dist/features/ui/buttons/icon-button/icon-button.js.map +1 -1
- package/dist/features/ui/constants/z-index.js +5 -3
- package/dist/features/ui/constants/z-index.js.map +1 -1
- package/dist/features/ui/inputs/base-select-input/select-section/select-section.js +12 -11
- package/dist/features/ui/inputs/base-select-input/select-section/select-section.js.map +1 -1
- package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list-styled.js +2 -7
- package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list-styled.js.map +1 -1
- package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js +29 -27
- package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js.map +1 -1
- package/dist/features/ui/modals/modal.js +30 -28
- package/dist/features/ui/modals/modal.js.map +1 -1
- package/dist/features/wins-dashboard/belts-elements-stickers/belts-elements-stickers.js +109 -0
- package/dist/features/wins-dashboard/belts-elements-stickers/belts-elements-stickers.js.map +1 -0
- package/dist/features/wins-dashboard/belts-elements-stickers/belts.js +95 -0
- package/dist/features/wins-dashboard/belts-elements-stickers/belts.js.map +1 -0
- package/dist/features/wins-dashboard/belts-elements-stickers/elements.js +184 -0
- package/dist/features/wins-dashboard/belts-elements-stickers/elements.js.map +1 -0
- package/dist/features/wins-dashboard/belts-elements-stickers/progress-bar-horizontal.js +36 -0
- package/dist/features/wins-dashboard/belts-elements-stickers/progress-bar-horizontal.js.map +1 -0
- package/dist/features/wins-dashboard/belts-elements-stickers/reward-elements.js +83 -0
- package/dist/features/wins-dashboard/belts-elements-stickers/reward-elements.js.map +1 -0
- package/dist/features/wins-dashboard/constants.js +161 -0
- package/dist/features/wins-dashboard/constants.js.map +1 -0
- package/dist/features/wins-dashboard/header/wins-header.js +95 -0
- package/dist/features/wins-dashboard/header/wins-header.js.map +1 -0
- package/dist/features/wins-dashboard/student-badges/animated-tabbar.js +66 -0
- package/dist/features/wins-dashboard/student-badges/animated-tabbar.js.map +1 -0
- package/dist/features/wins-dashboard/student-badges/hooks/use-student-badge-list-hook.js +135 -0
- package/dist/features/wins-dashboard/student-badges/hooks/use-student-badge-list-hook.js.map +1 -0
- package/dist/features/wins-dashboard/student-badges/student-badge.js +168 -0
- package/dist/features/wins-dashboard/student-badges/student-badge.js.map +1 -0
- package/dist/features/wins-dashboard/student-badges/student-badges-lists.js +137 -0
- package/dist/features/wins-dashboard/student-badges/student-badges-lists.js.map +1 -0
- package/dist/features/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.js +86 -90
- package/dist/features/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-behavior-helper.js +147 -0
- package/dist/features/worksheet/worksheet/worksheet-behavior-helper.js.map +1 -0
- package/dist/features/worksheet/worksheet/worksheet-container.js +62 -42
- package/dist/features/worksheet/worksheet/worksheet-container.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +197 -199
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js +228 -300
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-styled.js +34 -34
- package/dist/features/worksheet/worksheet/worksheet-styled.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-types.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet.js +206 -215
- package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js +33 -33
- package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js +30 -28
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js +69 -73
- package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/worksheet-preview.js +30 -79
- package/dist/features/worksheet/worksheet-preview/worksheet-preview.js.map +1 -1
- package/dist/index.d.ts +473 -45
- package/dist/index.js +695 -627
- package/dist/index.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/getRoundingMethod.js +10 -0
- package/dist/node_modules/date-fns/_lib/getRoundingMethod.js.map +1 -0
- package/dist/node_modules/date-fns/differenceInMilliseconds.js +9 -0
- package/dist/node_modules/date-fns/differenceInMilliseconds.js.map +1 -0
- package/dist/node_modules/date-fns/differenceInSeconds.js +11 -0
- package/dist/node_modules/date-fns/differenceInSeconds.js.map +1 -0
- package/dist/node_modules/date-fns/fromUnixTime.js +9 -0
- package/dist/node_modules/date-fns/fromUnixTime.js.map +1 -0
- package/dist/static/awesome.4239f583.json +1 -0
- package/dist/static/black-belt.81b3ebf9.png +0 -0
- package/dist/static/blue-belt.508a1b4b.png +0 -0
- package/dist/static/{book-checked-green.c275dbd9.svg → book-checked-green.0436b91e.svg} +1 -1
- package/dist/static/brown-belt.09bb7e93.png +0 -0
- package/dist/static/clapping-hands.17e7ecf0.json +1 -0
- package/dist/static/common.9e8ceef1.svg +1 -0
- package/dist/static/community-bulb-yellow-2.f89c30f9.svg +1 -0
- package/dist/static/cool.cd6921bb.json +1 -0
- package/dist/static/epic.37a0265a.svg +1 -0
- package/dist/static/error-responsive.9916ff66.json +1 -0
- package/dist/static/error.dd744fa5.json +1 -0
- package/dist/static/green-belt.5501296f.png +0 -0
- package/dist/static/learning-puzzle-bot.6fe93cf6.svg +1 -0
- package/dist/static/legendary.f15d09ca.svg +1 -0
- package/dist/static/like-button.281a2618.json +1 -0
- package/dist/static/mastered-badge.91d25e92.png +0 -0
- package/dist/static/mystery.81ada5fb.svg +1 -0
- package/dist/static/mythic.58ba0ae0.svg +1 -0
- package/dist/static/orange-belt.1fefcc8c.png +0 -0
- package/dist/static/personalization.7a6c33e8.svg +1 -0
- package/dist/static/personalized-session.b4fd7df8.gif +0 -0
- package/dist/static/purple-belt.e15611b4.png +0 -0
- package/dist/static/rare.1ffaa311.svg +1 -0
- package/dist/static/red-belt.11f841d9.png +0 -0
- package/dist/static/regular-practice.b15f24d9.gif +0 -0
- package/dist/static/star-strike-emoji.c0b31028.json +1 -0
- package/dist/static/stepup.321df6ed.gif +0 -0
- package/dist/static/trophy.5ef1853a.json +1 -0
- package/dist/static/username-responsive.787b5515.json +1 -0
- package/dist/static/username.2c755605.json +1 -0
- package/dist/static/white-belt.ea93103e.png +0 -0
- package/dist/static/yellow-belt.0c47b8cc.png +0 -0
- package/package.json +1 -1
- package/dist/features/trial-session/comps/session-report/report-card.js +0 -26
- package/dist/features/trial-session/comps/session-report/report-card.js.map +0 -1
- package/dist/features/worksheet/worksheet/hooks/use-worksheet-journey.js +0 -28
- package/dist/features/worksheet/worksheet/hooks/use-worksheet-journey.js.map +0 -1
- package/dist/static/error.cbe1ddde.json +0 -1
- package/dist/static/username.9e034d51.json +0 -1
|
@@ -1,171 +1,148 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { deepEqual as
|
|
3
|
-
import { memo as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
|
|
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:
|
|
18
|
-
learnosity:
|
|
19
|
-
question:
|
|
20
|
-
questions:
|
|
21
|
-
responses:
|
|
22
|
-
questionIndex:
|
|
23
|
-
canSubmitWorksheet:
|
|
24
|
-
isQuestionUnlocked:
|
|
25
|
-
isQuestionAppended:
|
|
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:
|
|
28
|
-
userType:
|
|
29
|
-
setActiveQuestionId:
|
|
30
|
-
setSummaryVisible:
|
|
31
|
-
setBlocker:
|
|
32
|
-
setResponses:
|
|
33
|
-
getTimeSpentOnQuestion:
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
} =
|
|
39
|
-
navigationMode:
|
|
40
|
-
canAttempt:
|
|
41
|
-
hints:
|
|
42
|
-
checkButtonLabel:
|
|
43
|
-
retryButtonLabel:
|
|
44
|
-
validation:
|
|
45
|
-
maximumAttempts:
|
|
46
|
-
canExceedAttempts:
|
|
47
|
-
teacherValidationEnabled:
|
|
48
|
-
canTeacherValidate:
|
|
49
|
-
hintsTimer:
|
|
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:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
-
|
|
65
|
-
}, [
|
|
66
|
-
const
|
|
67
|
-
if (
|
|
68
|
-
if (
|
|
69
|
-
|
|
70
|
-
else if (
|
|
71
|
-
const
|
|
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
|
-
|
|
66
|
+
S(n);
|
|
74
67
|
},
|
|
75
68
|
(W ?? 0) * 1e3
|
|
76
69
|
);
|
|
77
|
-
return () => clearTimeout(
|
|
70
|
+
return () => clearTimeout(x);
|
|
78
71
|
} else
|
|
79
|
-
|
|
80
|
-
}, [
|
|
72
|
+
S(!1);
|
|
73
|
+
}, [b, B, t, P, W]);
|
|
81
74
|
const {
|
|
82
|
-
checkButton:
|
|
83
|
-
checkButtonDisabled:
|
|
84
|
-
hintsButton:
|
|
85
|
-
retryButton:
|
|
86
|
-
nextButton:
|
|
87
|
-
nextButtonDisabled:
|
|
88
|
-
startButton:
|
|
89
|
-
readyButton:
|
|
90
|
-
validateButton:
|
|
91
|
-
skipSectionButton:
|
|
92
|
-
submitAttemptButton:
|
|
93
|
-
skipButton:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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 (!
|
|
98
|
+
if (!c && f.navigationMode === "LINEAR")
|
|
122
99
|
return {
|
|
123
100
|
nextButton: !0,
|
|
124
101
|
nextButtonDisabled: !(t != null && t.response),
|
|
125
|
-
hintsButton:
|
|
126
|
-
skipButton:
|
|
102
|
+
hintsButton: s,
|
|
103
|
+
skipButton: K
|
|
127
104
|
};
|
|
128
|
-
if (!
|
|
105
|
+
if (!c)
|
|
129
106
|
return {
|
|
130
107
|
nextButton: !0,
|
|
131
|
-
hintsButton:
|
|
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:
|
|
114
|
+
hintsButton: s
|
|
138
115
|
};
|
|
139
|
-
const { responseEdited: k, score:
|
|
140
|
-
if (
|
|
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
|
|
122
|
+
const Ht = (st = e == null ? void 0 : e.slice(-1)[0]) == null ? void 0 : st.response;
|
|
146
123
|
return {
|
|
147
|
-
nextButton:
|
|
124
|
+
nextButton: q,
|
|
148
125
|
checkButton: !0,
|
|
149
|
-
checkButtonDisabled:
|
|
150
|
-
hintsButton:
|
|
126
|
+
checkButtonDisabled: Mt(t.response, Ht),
|
|
127
|
+
hintsButton: s
|
|
151
128
|
};
|
|
152
129
|
}
|
|
153
|
-
return (
|
|
154
|
-
nextButton:
|
|
130
|
+
return (a.score ?? 0) < a.max_score ? {
|
|
131
|
+
nextButton: q,
|
|
155
132
|
retryButton: !0,
|
|
156
|
-
hintsButton:
|
|
157
|
-
} : (
|
|
133
|
+
hintsButton: s
|
|
134
|
+
} : (a.score ?? 0) === a.max_score ? {
|
|
158
135
|
nextButton: !0
|
|
159
136
|
} : {};
|
|
160
|
-
},
|
|
161
|
-
const { assignStatus:
|
|
162
|
-
return
|
|
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 (
|
|
167
|
-
return
|
|
168
|
-
hintsButton:
|
|
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:
|
|
153
|
+
submitAttemptButton: l && o && m === "STUDENT" && Q ? !Ut() : !1
|
|
177
154
|
};
|
|
178
|
-
if (!
|
|
155
|
+
if (!M)
|
|
179
156
|
return {};
|
|
180
|
-
if (
|
|
181
|
-
return
|
|
182
|
-
startButton:
|
|
157
|
+
if (m === "STUDENT")
|
|
158
|
+
return w ? {
|
|
159
|
+
startButton: l && o
|
|
183
160
|
} : R !== "clozetext" ? {
|
|
184
|
-
...
|
|
161
|
+
...x(),
|
|
185
162
|
nextButton: !1
|
|
186
163
|
} : {
|
|
187
|
-
hintsButton:
|
|
188
|
-
readyButton:
|
|
164
|
+
hintsButton: s,
|
|
165
|
+
readyButton: l && D && !(t != null && t.submittedByStudent)
|
|
189
166
|
};
|
|
190
|
-
if (
|
|
167
|
+
if (w)
|
|
191
168
|
return {
|
|
192
|
-
skipSectionButton:
|
|
169
|
+
skipSectionButton: n
|
|
193
170
|
};
|
|
194
171
|
if (R !== "clozetext") {
|
|
195
|
-
const { responseEdited:
|
|
172
|
+
const { responseEdited: a, score: e } = t ?? {};
|
|
196
173
|
return {
|
|
197
|
-
skipSectionButton:
|
|
198
|
-
validateButton:
|
|
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:
|
|
203
|
-
validateButton:
|
|
179
|
+
skipSectionButton: n,
|
|
180
|
+
validateButton: l && (D ? t == null ? void 0 : t.submittedByStudent : !0)
|
|
204
181
|
};
|
|
205
182
|
}
|
|
206
|
-
return
|
|
183
|
+
return x();
|
|
207
184
|
}, [
|
|
208
|
-
|
|
209
|
-
|
|
185
|
+
l,
|
|
186
|
+
F,
|
|
210
187
|
t,
|
|
188
|
+
j,
|
|
189
|
+
o,
|
|
190
|
+
c,
|
|
191
|
+
f.navigationMode,
|
|
192
|
+
v,
|
|
211
193
|
$,
|
|
212
194
|
s,
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
195
|
+
K,
|
|
196
|
+
T,
|
|
197
|
+
U,
|
|
198
|
+
I,
|
|
216
199
|
M,
|
|
217
|
-
|
|
218
|
-
Z,
|
|
219
|
-
v,
|
|
220
|
-
L,
|
|
221
|
-
P,
|
|
200
|
+
m,
|
|
222
201
|
w,
|
|
223
|
-
Q,
|
|
224
|
-
p,
|
|
225
|
-
D,
|
|
226
202
|
R,
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
F
|
|
203
|
+
D,
|
|
204
|
+
Q
|
|
230
205
|
]), {
|
|
231
|
-
handleResponseChange:
|
|
232
|
-
handleHelpButtonClick:
|
|
233
|
-
handleBackButtonClick:
|
|
234
|
-
handleNextButtonClick:
|
|
235
|
-
handleCheckButtonClick:
|
|
236
|
-
handleRetryButtonClick:
|
|
237
|
-
handleHintButtonClick:
|
|
238
|
-
handleValidateButtonClick:
|
|
239
|
-
handleStartButtonClick:
|
|
240
|
-
handleSkipSectionButtonClick:
|
|
241
|
-
handleReadyButtonClick:
|
|
242
|
-
handleSkipButtonClick:
|
|
243
|
-
} =
|
|
244
|
-
layout:
|
|
245
|
-
question:
|
|
246
|
-
questions:
|
|
247
|
-
learnosity:
|
|
248
|
-
questionIndex:
|
|
249
|
-
setActiveQuestionId:
|
|
250
|
-
setSummaryVisible:
|
|
251
|
-
setBlocker:
|
|
252
|
-
setResponses:
|
|
253
|
-
onResponseChange:
|
|
254
|
-
onTeacherValidation:
|
|
255
|
-
onHelp:
|
|
256
|
-
behavior:
|
|
257
|
-
loggerRef:
|
|
258
|
-
setSkipped:
|
|
259
|
-
getTimeSpentOnQuestion:
|
|
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
|
|
262
|
-
|
|
236
|
+
return C(() => {
|
|
237
|
+
O && (J(!1), S(!1), V(), g && g(u.item_display_number, u.question_number));
|
|
263
238
|
}, [
|
|
264
|
-
|
|
239
|
+
V,
|
|
265
240
|
g,
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
]),
|
|
270
|
-
const
|
|
271
|
-
return
|
|
272
|
-
|
|
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
|
-
|
|
276
|
-
|
|
277
|
-
_,
|
|
278
|
-
c,
|
|
279
|
-
b,
|
|
250
|
+
o,
|
|
251
|
+
h,
|
|
280
252
|
z,
|
|
281
|
-
d
|
|
282
|
-
|
|
283
|
-
|
|
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
|
-
|
|
292
|
-
|
|
266
|
+
Y && /* @__PURE__ */ i(
|
|
267
|
+
A,
|
|
293
268
|
{
|
|
294
|
-
Icon:
|
|
269
|
+
Icon: Pt,
|
|
295
270
|
analyticsLabel: "Hint",
|
|
296
271
|
renderAs: "secondary",
|
|
297
|
-
disabled: !
|
|
298
|
-
onClick:
|
|
272
|
+
disabled: !d,
|
|
273
|
+
onClick: Dt
|
|
299
274
|
}
|
|
300
275
|
),
|
|
301
|
-
!
|
|
302
|
-
|
|
276
|
+
!Y && tt && (h || y) && /* @__PURE__ */ i(
|
|
277
|
+
A,
|
|
303
278
|
{
|
|
304
|
-
Icon:
|
|
279
|
+
Icon: Wt,
|
|
305
280
|
analyticsLabel: "Ask for help",
|
|
306
281
|
renderAs: "secondary",
|
|
307
|
-
onClick:
|
|
282
|
+
onClick: tt
|
|
308
283
|
}
|
|
309
284
|
),
|
|
310
|
-
|
|
311
|
-
|
|
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:
|
|
318
|
-
onClick:
|
|
292
|
+
disabled: H === 0,
|
|
293
|
+
onClick: et
|
|
319
294
|
}
|
|
320
295
|
),
|
|
321
|
-
|
|
322
|
-
|
|
296
|
+
_t && /* @__PURE__ */ i(
|
|
297
|
+
r,
|
|
323
298
|
{
|
|
324
299
|
widthX: 6,
|
|
325
|
-
renderAs:
|
|
300
|
+
renderAs: y ? "secondary" : "primary",
|
|
326
301
|
size: "small",
|
|
327
302
|
label: "Skip",
|
|
328
|
-
onClick:
|
|
303
|
+
onClick: Lt
|
|
329
304
|
}
|
|
330
305
|
),
|
|
331
|
-
|
|
332
|
-
|
|
306
|
+
At && /* @__PURE__ */ i(
|
|
307
|
+
r,
|
|
333
308
|
{
|
|
334
309
|
widthX: 6,
|
|
335
|
-
renderAs:
|
|
310
|
+
renderAs: y ? "secondary" : "primary",
|
|
336
311
|
size: "small",
|
|
337
312
|
label: "Next",
|
|
338
|
-
onClick:
|
|
339
|
-
disabled:
|
|
313
|
+
onClick: V,
|
|
314
|
+
disabled: Tt === !0
|
|
340
315
|
}
|
|
341
316
|
),
|
|
342
|
-
|
|
343
|
-
|
|
317
|
+
y && /* @__PURE__ */ i(
|
|
318
|
+
r,
|
|
344
319
|
{
|
|
345
320
|
widthX: 6,
|
|
346
321
|
renderAs: "primary",
|
|
347
322
|
size: "small",
|
|
348
|
-
label:
|
|
349
|
-
disabled: !
|
|
350
|
-
onClick:
|
|
323
|
+
label: St,
|
|
324
|
+
disabled: !d,
|
|
325
|
+
onClick: wt
|
|
351
326
|
}
|
|
352
327
|
),
|
|
353
|
-
|
|
354
|
-
|
|
328
|
+
h && /* @__PURE__ */ i(
|
|
329
|
+
r,
|
|
355
330
|
{
|
|
356
331
|
renderAs: "primary",
|
|
357
332
|
size: "small",
|
|
358
|
-
label:
|
|
359
|
-
disabled:
|
|
360
|
-
onClick:
|
|
333
|
+
label: bt,
|
|
334
|
+
disabled: Ct === !0 || !d,
|
|
335
|
+
onClick: Rt
|
|
361
336
|
}
|
|
362
337
|
),
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
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:
|
|
344
|
+
Icon: Ft,
|
|
370
345
|
analyticsLabel: "Skip Section",
|
|
371
|
-
onClick:
|
|
346
|
+
onClick: qt
|
|
372
347
|
}
|
|
373
348
|
),
|
|
374
|
-
!
|
|
375
|
-
|
|
349
|
+
!Z && vt && /* @__PURE__ */ i(
|
|
350
|
+
A,
|
|
376
351
|
{
|
|
377
352
|
renderAs: "primary",
|
|
378
|
-
Icon:
|
|
353
|
+
Icon: jt,
|
|
379
354
|
disabled: t == null ? void 0 : t.validatedByTeacher,
|
|
380
355
|
analyticsLabel: "Validate",
|
|
381
|
-
onClick:
|
|
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
|
-
|
|
404
|
-
|
|
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
|
-
|
|
366
|
+
re as default
|
|
439
367
|
};
|
|
440
368
|
//# sourceMappingURL=worksheet-questions-controller.js.map
|