@cuemath/leap 3.5.73 → 3.5.74
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/features/blockers/multi-tab-blocker/multi-tab-blocker.js +10 -10
- package/dist/features/blockers/multi-tab-blocker/multi-tab-blocker.js.map +1 -1
- package/dist/features/chapters/chapter/comps/supplementary-resources/supplementary-resources.js +15 -15
- package/dist/features/chapters/chapter/comps/supplementary-resources/supplementary-resources.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/block-section.js +22 -22
- package/dist/features/chapters/lpar-chapter/block-section/block-section.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/chapter-block/chapter-block-action.js +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/chapter-block/chapter-block-action.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/chapter-block/chapter-block-header.js +11 -11
- package/dist/features/chapters/lpar-chapter/block-section/chapter-block/chapter-block-header.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-item.js +20 -20
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-item.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/question-overview.js +10 -10
- 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/student-actions/student-actions.js +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/student-actions/student-actions.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/sheet-item/context-menu-helper/menu-element.js +5 -5
- package/dist/features/chapters/lpar-chapter/block-section/sheet-item/context-menu-helper/menu-element.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/sheet-item/rewards-n-actions/student-actions/student-actions.js +12 -12
- package/dist/features/chapters/lpar-chapter/block-section/sheet-item/rewards-n-actions/student-actions/student-actions.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/sheet-item/rewards-n-actions/teacher-actions/teacher-actions.js +6 -6
- package/dist/features/chapters/lpar-chapter/block-section/sheet-item/rewards-n-actions/teacher-actions/teacher-actions.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/sheet-item/sheet-item.js +15 -15
- package/dist/features/chapters/lpar-chapter/block-section/sheet-item/sheet-item.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/comps/chapter-progress.js +5 -5
- package/dist/features/chapters/lpar-chapter/comps/chapter-progress.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/comps/tab-section.js +9 -9
- package/dist/features/chapters/lpar-chapter/comps/tab-section.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/lpar-chapter-banner/chapter-banner.js +24 -24
- package/dist/features/chapters/lpar-chapter/lpar-chapter-banner/chapter-banner.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/puzzle-section/puzzle-card/cue-coins.js +6 -6
- package/dist/features/chapters/lpar-chapter/puzzle-section/puzzle-card/cue-coins.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/puzzle-section/puzzle-card/puzzle-card.js +23 -23
- package/dist/features/chapters/lpar-chapter/puzzle-section/puzzle-card/puzzle-card.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/puzzle-section/puzzle-section.js +11 -11
- package/dist/features/chapters/lpar-chapter/puzzle-section/puzzle-section.js.map +1 -1
- package/dist/features/chapters/lpar-milestone-chapter/block-section/block-section.js +21 -21
- package/dist/features/chapters/lpar-milestone-chapter/block-section/block-section.js.map +1 -1
- package/dist/features/chapters/lpar-milestone-chapter/block-section/sheet-item/rewards-n-actions/rewards-n-actions.js +12 -12
- package/dist/features/chapters/lpar-milestone-chapter/block-section/sheet-item/rewards-n-actions/rewards-n-actions.js.map +1 -1
- package/dist/features/chapters/lpar-milestone-chapter/block-section/sheet-item/sheet-info.js +13 -13
- package/dist/features/chapters/lpar-milestone-chapter/block-section/sheet-item/sheet-info.js.map +1 -1
- package/dist/features/chapters/lpar-milestone-chapter/extra-practice-section/extra-practice-section.js +13 -13
- package/dist/features/chapters/lpar-milestone-chapter/extra-practice-section/extra-practice-section.js.map +1 -1
- package/dist/features/chapters/lpar-milestone-chapter/puzzle-section/puzzle-card.js +22 -22
- package/dist/features/chapters/lpar-milestone-chapter/puzzle-section/puzzle-card.js.map +1 -1
- package/dist/features/chapters/lpar-milestone-chapter/puzzle-section/puzzle-section.js +12 -12
- package/dist/features/chapters/lpar-milestone-chapter/puzzle-section/puzzle-section.js.map +1 -1
- package/dist/features/chapters-v2/chapter-details/chapter-details.js +10 -10
- package/dist/features/chapters-v2/chapter-details/chapter-details.js.map +1 -1
- package/dist/features/cue-canvas/bottombar/homework-controls.js +1 -1
- package/dist/features/cue-canvas/bottombar/homework-controls.js.map +1 -1
- package/dist/features/cue-canvas/sidebar/homework/homework-menu.js +10 -10
- package/dist/features/cue-canvas/sidebar/homework/homework-menu.js.map +1 -1
- package/dist/features/cue-canvas/sidebar/homework/homework-request.js +12 -12
- package/dist/features/cue-canvas/sidebar/homework/homework-request.js.map +1 -1
- package/dist/features/cue-canvas/sidebar/puzzles/filter-selection-menu.js +1 -1
- package/dist/features/cue-canvas/sidebar/puzzles/filter-selection-menu.js.map +1 -1
- package/dist/features/cue-canvas/sidebar/puzzles/filters-section.js +11 -11
- package/dist/features/cue-canvas/sidebar/puzzles/filters-section.js.map +1 -1
- package/dist/features/cue-canvas/sidebar/puzzles/filters.js +31 -31
- package/dist/features/cue-canvas/sidebar/puzzles/filters.js.map +1 -1
- package/dist/features/cue-canvas/sidebar/puzzles/puzzle-menu-header.js +1 -1
- package/dist/features/cue-canvas/sidebar/puzzles/puzzle-menu-header.js.map +1 -1
- package/dist/features/cue-canvas/sidebar/puzzles/puzzle-menu.js +18 -18
- package/dist/features/cue-canvas/sidebar/puzzles/puzzle-menu.js.map +1 -1
- package/dist/features/extra-practice/extra-practice.js +16 -16
- package/dist/features/extra-practice/extra-practice.js.map +1 -1
- package/dist/features/extra-practice/list/list.js +16 -16
- package/dist/features/extra-practice/list/list.js.map +1 -1
- package/dist/features/milestone/create/comps/info-points/info-points.js +5 -5
- package/dist/features/milestone/create/comps/info-points/info-points.js.map +1 -1
- package/dist/features/milestone/create/comps/milestone-progress/milestone-progress.js +11 -11
- package/dist/features/milestone/create/comps/milestone-progress/milestone-progress.js.map +1 -1
- package/dist/features/milestone/create/submit-modal/submit-with-plan-modal/submit-with-plan-modal.js +32 -32
- package/dist/features/milestone/create/submit-modal/submit-with-plan-modal/submit-with-plan-modal.js.map +1 -1
- package/dist/features/milestone/edit/comps/delete-milestone/confirm-delete.js +3 -3
- package/dist/features/milestone/edit/comps/delete-milestone/confirm-delete.js.map +1 -1
- package/dist/features/milestone/edit/comps/edit-milestone-modal/edit-milestone.js +19 -19
- package/dist/features/milestone/edit/comps/edit-milestone-modal/edit-milestone.js.map +1 -1
- package/dist/features/milestone/milestone-action-widget/milestone-action-widget.js +21 -21
- package/dist/features/milestone/milestone-action-widget/milestone-action-widget.js.map +1 -1
- package/dist/features/milestone/milestone-resources/resources-assign/resources-assign.js +1 -1
- package/dist/features/milestone/milestone-resources/resources-assign/resources-assign.js.map +1 -1
- package/dist/features/milestone/milestone-resources/resources-list/resources-list.js +16 -16
- package/dist/features/milestone/milestone-resources/resources-list/resources-list.js.map +1 -1
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js +1 -1
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js.map +1 -1
- package/dist/features/milestone/milestone-tests/tests-creation/tests-creation.js +14 -14
- package/dist/features/milestone/milestone-tests/tests-creation/tests-creation.js.map +1 -1
- package/dist/features/milestone/outcome/comps/achievement/achievement-constants.js +6 -6
- package/dist/features/milestone/outcome/comps/achievement/achievement-constants.js.map +1 -1
- package/dist/features/milestone/outcome/comps/achievement/achievement-container.js +20 -20
- package/dist/features/milestone/outcome/comps/achievement/achievement-container.js.map +1 -1
- package/dist/features/milestone/outcome/comps/achievement/reason-submit-modal.js +8 -8
- package/dist/features/milestone/outcome/comps/achievement/reason-submit-modal.js.map +1 -1
- package/dist/features/milestone/outcome/comps/outcome-collection/input-descriptor.js +4 -4
- package/dist/features/milestone/outcome/comps/outcome-collection/input-descriptor.js.map +1 -1
- package/dist/features/milestone/outcome/comps/outcome-collection/milestone-outcome-collection-container.js +5 -5
- package/dist/features/milestone/outcome/comps/outcome-collection/milestone-outcome-collection-container.js.map +1 -1
- package/dist/features/milestone/outcome/comps/outcome-collection/rank-inputs/index.js +12 -12
- package/dist/features/milestone/outcome/comps/outcome-collection/rank-inputs/index.js.map +1 -1
- package/dist/features/milestone/outcome/comps/past-milestone/past-milestone-container.js +5 -5
- package/dist/features/milestone/outcome/comps/past-milestone/past-milestone-container.js.map +1 -1
- package/dist/features/milestone/outcome/comps/past-milestone/question.js +3 -3
- package/dist/features/milestone/outcome/comps/past-milestone/question.js.map +1 -1
- package/dist/features/milestone/outcome/milestone-outcome-container.js +8 -8
- package/dist/features/milestone/outcome/milestone-outcome-container.js.map +1 -1
- package/dist/features/milestone/start/milestone-start.js +8 -8
- package/dist/features/milestone/start/milestone-start.js.map +1 -1
- package/dist/features/puzzles/puzzle-container/puzzle-container-view.js +1 -1
- package/dist/features/puzzles/puzzle-container/puzzle-container-view.js.map +1 -1
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js +1 -1
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js.map +1 -1
- package/dist/features/sheet-tools/tool-header/tool-header.js +19 -19
- package/dist/features/sheet-tools/tool-header/tool-header.js.map +1 -1
- package/dist/features/sheets/reference-sheet/reference-sheet.js +1 -1
- package/dist/features/sheets/reference-sheet/reference-sheet.js.map +1 -1
- package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/context-menu-helper/menu-element/menu-element.js +9 -9
- package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/context-menu-helper/menu-element/menu-element.js.map +1 -1
- package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/reward-n-actions.js +6 -6
- package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/reward-n-actions.js.map +1 -1
- package/dist/features/sheets/sheets-list/sheet-item/sheet-item-tag.js +15 -15
- package/dist/features/sheets/sheets-list/sheet-item/sheet-item-tag.js.map +1 -1
- package/dist/features/sheets/sheets-list/sheet-item/sheet-item.js +16 -16
- package/dist/features/sheets/sheets-list/sheet-item/sheet-item.js.map +1 -1
- package/dist/features/sheets/sheets-list/sheets-list.js +18 -18
- package/dist/features/sheets/sheets-list/sheets-list.js.map +1 -1
- package/dist/features/student-details/student-details.js +6 -6
- package/dist/features/student-details/student-details.js.map +1 -1
- package/dist/features/student-details/wins-preview/wins-preview.js +8 -8
- package/dist/features/student-details/wins-preview/wins-preview.js.map +1 -1
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/support-card/support-card.js +3 -3
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/support-card/support-card.js.map +1 -1
- package/dist/features/trial-session/comps/clock/clock.js +6 -6
- package/dist/features/trial-session/comps/clock/clock.js.map +1 -1
- package/dist/features/trial-session/comps/cue-tips/cues/index.js +5 -5
- package/dist/features/trial-session/comps/cue-tips/cues/index.js.map +1 -1
- package/dist/features/trial-session/comps/cue-tips/tips/index.js +6 -6
- package/dist/features/trial-session/comps/cue-tips/tips/index.js.map +1 -1
- package/dist/features/trial-session/comps/solutions/index.js +9 -9
- package/dist/features/trial-session/comps/solutions/index.js.map +1 -1
- package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +16 -16
- package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
- package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js +7 -7
- package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js.map +1 -1
- package/dist/features/ui/callout/callout.js +5 -5
- package/dist/features/ui/callout/callout.js.map +1 -1
- package/dist/features/ui/error/error.js +14 -14
- package/dist/features/ui/error/error.js.map +1 -1
- package/dist/features/ui/inputs/base-input/base-input.js +4 -4
- package/dist/features/ui/inputs/base-input/base-input.js.map +1 -1
- package/dist/features/ui/inputs/base-select-input/select-option/select-option.js +8 -8
- package/dist/features/ui/inputs/base-select-input/select-option/select-option.js.map +1 -1
- package/dist/features/ui/inputs/base-select-input/select-section/select-section.js +12 -12
- package/dist/features/ui/inputs/base-select-input/select-section/select-section.js.map +1 -1
- package/dist/features/ui/inputs/num-range-input/num-range-input.js +6 -6
- package/dist/features/ui/inputs/num-range-input/num-range-input.js.map +1 -1
- package/dist/features/ui/inputs/radio-input/radio-option/radio-option.js +3 -3
- package/dist/features/ui/inputs/radio-input/radio-option/radio-option.js.map +1 -1
- package/dist/features/ui/perfect-hits/perfect-hits.js +3 -3
- package/dist/features/ui/perfect-hits/perfect-hits.js.map +1 -1
- package/dist/features/ui/radio-cards/radio-card-option/radio-card-option.js +9 -9
- package/dist/features/ui/radio-cards/radio-card-option/radio-card-option.js.map +1 -1
- package/dist/features/ui/stepper/stepper.js +7 -7
- package/dist/features/ui/stepper/stepper.js.map +1 -1
- package/dist/features/ui/tag/tag.js +1 -1
- package/dist/features/ui/tag/tag.js.map +1 -1
- package/dist/features/ui/theme/input.js +13 -13
- package/dist/features/ui/theme/input.js.map +1 -1
- package/dist/features/ui/theme/tab.js +4 -4
- package/dist/features/ui/theme/tab.js.map +1 -1
- package/dist/features/ui/theme/text-button.js +3 -3
- package/dist/features/ui/theme/text-button.js.map +1 -1
- package/dist/features/ui/timers/countdown-timer/countdown-timer.js +14 -14
- package/dist/features/ui/timers/countdown-timer/countdown-timer.js.map +1 -1
- package/dist/features/wins-dashboard/belts-elements-stickers/belts.js +27 -27
- package/dist/features/wins-dashboard/belts-elements-stickers/belts.js.map +1 -1
- package/dist/features/wins-dashboard/belts-elements-stickers/elements.js +15 -23
- package/dist/features/wins-dashboard/belts-elements-stickers/elements.js.map +1 -1
- package/dist/features/wins-dashboard/belts-elements-stickers/reward-elements.js +12 -12
- package/dist/features/wins-dashboard/belts-elements-stickers/reward-elements.js.map +1 -1
- package/dist/features/wins-dashboard/header/wins-header.js +10 -10
- package/dist/features/wins-dashboard/header/wins-header.js.map +1 -1
- package/dist/features/wins-dashboard/student-badges/animated-tabbar.js +13 -13
- package/dist/features/wins-dashboard/student-badges/animated-tabbar.js.map +1 -1
- package/dist/features/wins-dashboard/student-badges/student-badge.js +18 -18
- package/dist/features/wins-dashboard/student-badges/student-badge.js.map +1 -1
- package/dist/features/wins-dashboard/student-badges/student-badges-lists.js +10 -10
- package/dist/features/wins-dashboard/student-badges/student-badges-lists.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-blocker/blockers/exit-ticket-intervention.js +2 -2
- package/dist/features/worksheet/worksheet/worksheet-blocker/blockers/exit-ticket-intervention.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-blocker/blockers/exit-ticket-review-available.js +4 -4
- package/dist/features/worksheet/worksheet/worksheet-blocker/blockers/exit-ticket-review-available.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-blocker/blockers/exit-ticket-review.js +7 -7
- package/dist/features/worksheet/worksheet/worksheet-blocker/blockers/exit-ticket-review.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-blocker/blockers/exit-ticket-student-submission.js +2 -2
- package/dist/features/worksheet/worksheet/worksheet-blocker/blockers/exit-ticket-student-submission.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-blocker/blockers/optional-items-assignment.js +5 -5
- package/dist/features/worksheet/worksheet/worksheet-blocker/blockers/optional-items-assignment.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-blocker/blockers/optional-items-skip.js +1 -1
- package/dist/features/worksheet/worksheet/worksheet-blocker/blockers/optional-items-skip.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-navigation/worksheet-item-number/worksheet-item-number.js +20 -20
- package/dist/features/worksheet/worksheet/worksheet-navigation/worksheet-item-number/worksheet-item-number.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-permissions/error.js +11 -11
- package/dist/features/worksheet/worksheet/worksheet-permissions/error.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-permissions/sheet-locked.js +12 -12
- package/dist/features/worksheet/worksheet/worksheet-permissions/sheet-locked.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/header/header-tags.js +7 -7
- package/dist/features/worksheet/worksheet/worksheet-question/header/header-tags.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/header/header.js +21 -21
- package/dist/features/worksheet/worksheet/worksheet-question/header/header.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/intros/system-intros/advanced-practice-intro.js +6 -6
- package/dist/features/worksheet/worksheet/worksheet-question/intros/system-intros/advanced-practice-intro.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/intros/system-intros/basic-practice-intro.js +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/intros/system-intros/basic-practice-intro.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/intros/system-intros/exit-ticket-intro.js +4 -4
- package/dist/features/worksheet/worksheet/worksheet-question/intros/system-intros/exit-ticket-intro.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/intros/system-intros/regular-practice-intro.js +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/intros/system-intros/regular-practice-intro.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/subjective-feedback.js +41 -41
- package/dist/features/worksheet/worksheet/worksheet-question/subjective-feedback.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/subjective-review.js +23 -23
- package/dist/features/worksheet/worksheet/worksheet-question/subjective-review.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-summary/worksheet-questions-summary.js +6 -6
- package/dist/features/worksheet/worksheet/worksheet-questions-summary/worksheet-questions-summary.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-summary/worksheet-summary.js +1 -1
- package/dist/features/worksheet/worksheet/worksheet-summary/worksheet-summary.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-teaching-tools/worksheet-teaching-tools.js +18 -18
- package/dist/features/worksheet/worksheet/worksheet-teaching-tools/worksheet-teaching-tools.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js +11 -11
- package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js +14 -14
- package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/regex.js +5 -0
- package/dist/node_modules/uuid/dist/esm-browser/regex.js.map +1 -0
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +2 -3
- package/dist/node_modules/uuid/dist/esm-browser/rng.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +10 -6
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +9 -12
- package/dist/node_modules/uuid/dist/esm-browser/v4.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/validate.js +8 -0
- package/dist/node_modules/uuid/dist/esm-browser/validate.js.map +1 -0
- package/package.json +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/native.js +0 -7
- package/dist/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
|
@@ -8,7 +8,7 @@ import q from "../../../../ui/text/text.js";
|
|
|
8
8
|
import { TOP_NAVIGATION_HEIGHT as M } from "../../constants.js";
|
|
9
9
|
import { ItemNumberWrapper as z, BookmarkWrapper as D, UserPin as J, ItemStatus as C, OptionalTag as V } from "./worksheet-item-number-styled.js";
|
|
10
10
|
import { useWorksheetStore as X } from "../../hooks/use-worksheet-store.js";
|
|
11
|
-
const
|
|
11
|
+
const ue = G(function({
|
|
12
12
|
placement: k,
|
|
13
13
|
item: _,
|
|
14
14
|
isOptional: R,
|
|
@@ -19,22 +19,22 @@ const de = G(function({
|
|
|
19
19
|
summaryVisible: m,
|
|
20
20
|
maximumAttempts: I
|
|
21
21
|
}) {
|
|
22
|
-
const w = X((n) => n.changeQuestion), { firstQuestion:
|
|
22
|
+
const w = X((n) => n.changeQuestion), { firstQuestion: u, isActive: d, isUnlocked: l, questionIds: p } = _, { item_number: g, item_display_number: x } = u, { itemState: s, markedForReview: F } = $(() => {
|
|
23
23
|
const n = p.length;
|
|
24
24
|
let i = "unanswered";
|
|
25
25
|
const {
|
|
26
26
|
correctQuestions: f,
|
|
27
|
-
incorrectQuestions:
|
|
28
|
-
editedQuestions:
|
|
29
|
-
markedForReviewQuestions:
|
|
30
|
-
skippedQuestions:
|
|
27
|
+
incorrectQuestions: E,
|
|
28
|
+
editedQuestions: O,
|
|
29
|
+
markedForReviewQuestions: S,
|
|
30
|
+
skippedQuestions: U
|
|
31
31
|
} = p.reduce(
|
|
32
|
-
(e,
|
|
33
|
-
const c = Q[
|
|
32
|
+
(e, j) => {
|
|
33
|
+
const c = Q[j];
|
|
34
34
|
if (!c)
|
|
35
35
|
return e;
|
|
36
|
-
const { responseEdited: b, score: t, validatedByTeacher:
|
|
37
|
-
return o ? b && I !== -1 ? e.editedQuestions++ : h &&
|
|
36
|
+
const { responseEdited: b, score: t, validatedByTeacher: y } = c, N = t && "score" in t && "max_score" in t, T = (t == null ? void 0 : t.score) === (t == null ? void 0 : t.max_score);
|
|
37
|
+
return o ? b && I !== -1 ? e.editedQuestions++ : h && y ? e.correctQuestions++ : N && e[T ? "correctQuestions" : "incorrectQuestions"]++ : b && e.editedQuestions++, c.markedForReview && e.markedForReviewQuestions++, c.skipped && e.skippedQuestions++, e;
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
correctQuestions: 0,
|
|
@@ -44,22 +44,22 @@ const de = G(function({
|
|
|
44
44
|
skippedQuestions: 0
|
|
45
45
|
}
|
|
46
46
|
);
|
|
47
|
-
return
|
|
47
|
+
return O > 0 ? i = "answered" : U > 0 ? i = "skipped" : E > 0 ? i = o ? "incorrect" : "answered" : f === n ? i = o ? "correct" : "answered" : f > 0 && f < n && (i = "answered"), {
|
|
48
48
|
itemState: i,
|
|
49
|
-
markedForReview:
|
|
49
|
+
markedForReview: S > 0
|
|
50
50
|
};
|
|
51
51
|
}, [I, p, Q, h, o]), v = H(() => {
|
|
52
|
-
w(
|
|
53
|
-
}, [
|
|
54
|
-
() => (!
|
|
55
|
-
[
|
|
52
|
+
w(u.response_id);
|
|
53
|
+
}, [u.response_id, w]), W = $(
|
|
54
|
+
() => (!d || m) && s === "answered" ? "WHITE" : "BLACK",
|
|
55
|
+
[d, s, m]
|
|
56
56
|
);
|
|
57
57
|
return /* @__PURE__ */ r(P, { label: "Item Number", disabled: !l, onClick: v, children: /* @__PURE__ */ r(K, { $height: M, $justifyContent: "center", children: /* @__PURE__ */ B(
|
|
58
58
|
z,
|
|
59
59
|
{
|
|
60
60
|
className: `worksheet-item-number-${g}`,
|
|
61
61
|
$itemState: l ? s : "disabled",
|
|
62
|
-
$isActive:
|
|
62
|
+
$isActive: d,
|
|
63
63
|
$placement: k,
|
|
64
64
|
$alignItems: "center",
|
|
65
65
|
$justifyContent: "center",
|
|
@@ -68,8 +68,8 @@ const de = G(function({
|
|
|
68
68
|
/* @__PURE__ */ r(
|
|
69
69
|
q,
|
|
70
70
|
{
|
|
71
|
-
$renderAs: k === "top" ? "
|
|
72
|
-
$color:
|
|
71
|
+
$renderAs: k === "top" ? "ub3" : "ub1",
|
|
72
|
+
$color: W,
|
|
73
73
|
$opacity: l ? 1 : 0.5,
|
|
74
74
|
children: x
|
|
75
75
|
}
|
|
@@ -84,6 +84,6 @@ const de = G(function({
|
|
|
84
84
|
) }) });
|
|
85
85
|
});
|
|
86
86
|
export {
|
|
87
|
-
|
|
87
|
+
ue as default
|
|
88
88
|
};
|
|
89
89
|
//# sourceMappingURL=worksheet-item-number.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worksheet-item-number.js","sources":["../../../../../../src/features/worksheet/worksheet/worksheet-navigation/worksheet-item-number/worksheet-item-number.tsx"],"sourcesContent":["import { memo, useCallback, useMemo, type FC } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../../assets/illustrations/illustrations';\nimport BookmarkIcon from '../../../../../assets/line-icons/icons/bookmark';\nimport Clickable from '../../../../ui/buttons/clickable/clickable';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Text from '../../../../ui/text/text';\nimport { TOP_NAVIGATION_HEIGHT } from '../../constants';\nimport * as Styled from './worksheet-item-number-styled';\nimport type { IWorksheetItemNumberProps, TItemState } from './worksheet-item-number-types';\nimport { useWorksheetStore } from '../../hooks/use-worksheet-store';\n\nconst WorksheetItemNumber: FC<IWorksheetItemNumberProps> = memo(function WorksheetItemNumber({\n placement,\n item,\n isOptional,\n responses,\n validation,\n canShowUserPin,\n teacherValidationEnabled,\n summaryVisible,\n maximumAttempts,\n}) {\n const changeQuestion = useWorksheetStore(state => state.changeQuestion);\n const { firstQuestion, isActive, isUnlocked, questionIds } = item;\n const { item_number, item_display_number } = firstQuestion;\n const { itemState, markedForReview }: { itemState: TItemState; markedForReview: boolean } =\n useMemo(() => {\n const totalQuestion = questionIds.length;\n let state: TItemState = 'unanswered';\n const {\n correctQuestions,\n incorrectQuestions,\n editedQuestions,\n markedForReviewQuestions,\n skippedQuestions,\n } = questionIds.reduce(\n (acc, questionId) => {\n const response = responses[questionId];\n\n if (!response) {\n return acc;\n }\n\n const { responseEdited, score: responseScore, validatedByTeacher } = response;\n const isAttempted =\n responseScore && 'score' in responseScore && 'max_score' in responseScore;\n const isCorrect = responseScore?.score === responseScore?.max_score;\n\n if (validation) {\n if (responseEdited && maximumAttempts !== -1) {\n acc.editedQuestions++;\n } else if (teacherValidationEnabled) {\n if (validatedByTeacher) acc.correctQuestions++;\n else if (isAttempted) {\n acc[isCorrect ? 'correctQuestions' : 'incorrectQuestions']++;\n }\n } else if (isAttempted) {\n acc[isCorrect ? 'correctQuestions' : 'incorrectQuestions']++;\n }\n } else {\n if (responseEdited) {\n acc.editedQuestions++;\n }\n }\n\n if (response.markedForReview) acc.markedForReviewQuestions++;\n\n if (response.skipped) acc.skippedQuestions++;\n\n return acc;\n },\n {\n correctQuestions: 0,\n incorrectQuestions: 0,\n editedQuestions: 0,\n markedForReviewQuestions: 0,\n skippedQuestions: 0,\n },\n );\n\n if (editedQuestions > 0) state = 'answered';\n else if (skippedQuestions > 0) state = 'skipped';\n else if (incorrectQuestions > 0) state = validation ? 'incorrect' : 'answered';\n else if (correctQuestions === totalQuestion) state = validation ? 'correct' : 'answered';\n else if (correctQuestions > 0 && correctQuestions < totalQuestion) state = 'answered';\n\n return {\n itemState: state,\n markedForReview: markedForReviewQuestions > 0,\n };\n }, [maximumAttempts, questionIds, responses, teacherValidationEnabled, validation]);\n\n const handleItemNumberClick = useCallback(() => {\n changeQuestion(firstQuestion.response_id);\n }, [firstQuestion.response_id, changeQuestion]);\n\n const itemTextColor = useMemo(\n () => ((!isActive || summaryVisible) && itemState === 'answered' ? 'WHITE' : 'BLACK'),\n [isActive, itemState, summaryVisible],\n );\n\n return (\n <Clickable label=\"Item Number\" disabled={!isUnlocked} onClick={handleItemNumberClick}>\n <FlexView $height={TOP_NAVIGATION_HEIGHT} $justifyContent=\"center\">\n <Styled.ItemNumberWrapper\n className={`worksheet-item-number-${item_number}`}\n $itemState={isUnlocked ? itemState : 'disabled'}\n $isActive={isActive}\n $placement={placement}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $summaryVisible={summaryVisible}\n >\n <Text\n $renderAs={placement === 'top' ? '
|
|
1
|
+
{"version":3,"file":"worksheet-item-number.js","sources":["../../../../../../src/features/worksheet/worksheet/worksheet-navigation/worksheet-item-number/worksheet-item-number.tsx"],"sourcesContent":["import { memo, useCallback, useMemo, type FC } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../../assets/illustrations/illustrations';\nimport BookmarkIcon from '../../../../../assets/line-icons/icons/bookmark';\nimport Clickable from '../../../../ui/buttons/clickable/clickable';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Text from '../../../../ui/text/text';\nimport { TOP_NAVIGATION_HEIGHT } from '../../constants';\nimport * as Styled from './worksheet-item-number-styled';\nimport type { IWorksheetItemNumberProps, TItemState } from './worksheet-item-number-types';\nimport { useWorksheetStore } from '../../hooks/use-worksheet-store';\n\nconst WorksheetItemNumber: FC<IWorksheetItemNumberProps> = memo(function WorksheetItemNumber({\n placement,\n item,\n isOptional,\n responses,\n validation,\n canShowUserPin,\n teacherValidationEnabled,\n summaryVisible,\n maximumAttempts,\n}) {\n const changeQuestion = useWorksheetStore(state => state.changeQuestion);\n const { firstQuestion, isActive, isUnlocked, questionIds } = item;\n const { item_number, item_display_number } = firstQuestion;\n const { itemState, markedForReview }: { itemState: TItemState; markedForReview: boolean } =\n useMemo(() => {\n const totalQuestion = questionIds.length;\n let state: TItemState = 'unanswered';\n const {\n correctQuestions,\n incorrectQuestions,\n editedQuestions,\n markedForReviewQuestions,\n skippedQuestions,\n } = questionIds.reduce(\n (acc, questionId) => {\n const response = responses[questionId];\n\n if (!response) {\n return acc;\n }\n\n const { responseEdited, score: responseScore, validatedByTeacher } = response;\n const isAttempted =\n responseScore && 'score' in responseScore && 'max_score' in responseScore;\n const isCorrect = responseScore?.score === responseScore?.max_score;\n\n if (validation) {\n if (responseEdited && maximumAttempts !== -1) {\n acc.editedQuestions++;\n } else if (teacherValidationEnabled) {\n if (validatedByTeacher) acc.correctQuestions++;\n else if (isAttempted) {\n acc[isCorrect ? 'correctQuestions' : 'incorrectQuestions']++;\n }\n } else if (isAttempted) {\n acc[isCorrect ? 'correctQuestions' : 'incorrectQuestions']++;\n }\n } else {\n if (responseEdited) {\n acc.editedQuestions++;\n }\n }\n\n if (response.markedForReview) acc.markedForReviewQuestions++;\n\n if (response.skipped) acc.skippedQuestions++;\n\n return acc;\n },\n {\n correctQuestions: 0,\n incorrectQuestions: 0,\n editedQuestions: 0,\n markedForReviewQuestions: 0,\n skippedQuestions: 0,\n },\n );\n\n if (editedQuestions > 0) state = 'answered';\n else if (skippedQuestions > 0) state = 'skipped';\n else if (incorrectQuestions > 0) state = validation ? 'incorrect' : 'answered';\n else if (correctQuestions === totalQuestion) state = validation ? 'correct' : 'answered';\n else if (correctQuestions > 0 && correctQuestions < totalQuestion) state = 'answered';\n\n return {\n itemState: state,\n markedForReview: markedForReviewQuestions > 0,\n };\n }, [maximumAttempts, questionIds, responses, teacherValidationEnabled, validation]);\n\n const handleItemNumberClick = useCallback(() => {\n changeQuestion(firstQuestion.response_id);\n }, [firstQuestion.response_id, changeQuestion]);\n\n const itemTextColor = useMemo(\n () => ((!isActive || summaryVisible) && itemState === 'answered' ? 'WHITE' : 'BLACK'),\n [isActive, itemState, summaryVisible],\n );\n\n return (\n <Clickable label=\"Item Number\" disabled={!isUnlocked} onClick={handleItemNumberClick}>\n <FlexView $height={TOP_NAVIGATION_HEIGHT} $justifyContent=\"center\">\n <Styled.ItemNumberWrapper\n className={`worksheet-item-number-${item_number}`}\n $itemState={isUnlocked ? itemState : 'disabled'}\n $isActive={isActive}\n $placement={placement}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $summaryVisible={summaryVisible}\n >\n <Text\n $renderAs={placement === 'top' ? 'ub3' : 'ub1'}\n $color={itemTextColor}\n $opacity={isUnlocked ? 1 : 0.5}\n >\n {item_display_number}\n </Text>\n {markedForReview && (\n <Styled.BookmarkWrapper>\n <BookmarkIcon />\n </Styled.BookmarkWrapper>\n )}\n {canShowUserPin && <Styled.UserPin width={20} height={20} src={ILLUSTRATIONS.USER_PIN} />}\n {itemState === 'correct' && <Styled.ItemStatus src={ILLUSTRATIONS.TICK_GREEN} />}\n {['incorrect', 'skipped'].includes(itemState) && (\n <Styled.ItemStatus src={ILLUSTRATIONS.CAUTION} />\n )}\n {itemState === 'unanswered' && isOptional && <Styled.OptionalTag />}\n </Styled.ItemNumberWrapper>\n </FlexView>\n </Clickable>\n );\n});\n\nexport default WorksheetItemNumber;\n"],"names":["WorksheetItemNumber","memo","placement","item","isOptional","responses","validation","canShowUserPin","teacherValidationEnabled","summaryVisible","maximumAttempts","changeQuestion","useWorksheetStore","state","firstQuestion","isActive","isUnlocked","questionIds","item_number","item_display_number","itemState","markedForReview","useMemo","totalQuestion","correctQuestions","incorrectQuestions","editedQuestions","markedForReviewQuestions","skippedQuestions","acc","questionId","response","responseEdited","responseScore","validatedByTeacher","isAttempted","isCorrect","handleItemNumberClick","useCallback","itemTextColor","jsx","Clickable","FlexView","TOP_NAVIGATION_HEIGHT","jsxs","Styled.ItemNumberWrapper","Text","Styled.BookmarkWrapper","BookmarkIcon","Styled.UserPin","ILLUSTRATIONS","Styled.ItemStatus","Styled.OptionalTag"],"mappings":";;;;;;;;;;AAYM,MAAAA,KAAqDC,EAAK,SAA6B;AAAA,EAC3F,WAAAC;AAAA,EACA,MAAAC;AAAA,EACA,YAAAC;AAAA,EACA,WAAAC;AAAA,EACA,YAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,0BAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,iBAAAC;AACF,GAAG;AACD,QAAMC,IAAiBC,EAAkB,CAASC,MAAAA,EAAM,cAAc,GAChE,EAAE,eAAAC,GAAe,UAAAC,GAAU,YAAAC,GAAY,aAAAC,MAAgBd,GACvD,EAAE,aAAAe,GAAa,qBAAAC,EAAwB,IAAAL,GACvC,EAAE,WAAAM,GAAW,iBAAAC,EAAgB,IACjCC,EAAQ,MAAM;AACZ,UAAMC,IAAgBN,EAAY;AAClC,QAAIJ,IAAoB;AAClB,UAAA;AAAA,MACJ,kBAAAW;AAAA,MACA,oBAAAC;AAAA,MACA,iBAAAC;AAAA,MACA,0BAAAC;AAAA,MACA,kBAAAC;AAAA,QACEX,EAAY;AAAA,MACd,CAACY,GAAKC,MAAe;AACb,cAAAC,IAAW1B,EAAUyB,CAAU;AAErC,YAAI,CAACC;AACI,iBAAAF;AAGT,cAAM,EAAE,gBAAAG,GAAgB,OAAOC,GAAe,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IAACC;AAAAA,IAAA;AAAA,MACC,WAAW,yBAAyB3B,CAAW;AAAA,MAC/C,YAAYF,IAAaI,IAAY;AAAA,MACrC,WAAWL;AAAA,MACX,YAAYb;AAAA,MACZ,aAAY;AAAA,MACZ,iBAAgB;AAAA,MAChB,iBAAiBO;AAAA,MAEjB,UAAA;AAAA,QAAA,gBAAA+B;AAAA,UAACM;AAAA,UAAA;AAAA,YACC,WAAW5C,MAAc,QAAQ,QAAQ;AAAA,YACzC,QAAQqC;AAAA,YACR,UAAUvB,IAAa,IAAI;AAAA,YAE1B,UAAAG;AAAA,UAAA;AAAA,QACH;AAAA,QACCE,KACE,gBAAAmB,EAAAO,GAAA,EACC,UAAA,gBAAAP,EAACQ,IAAa,CAAA,GAChB;AAAA,QAEDzC,KAAmB,gBAAAiC,EAAAS,GAAA,EAAe,OAAO,IAAI,QAAQ,IAAI,KAAKC,EAAc,SAAU,CAAA;AAAA,QACtF9B,MAAc,aAAc,gBAAAoB,EAAAW,GAAA,EAAkB,KAAKD,EAAc,YAAY;AAAA,QAC7E,CAAC,aAAa,SAAS,EAAE,SAAS9B,CAAS,KAC1C,gBAAAoB,EAACW,GAAA,EAAkB,KAAKD,EAAc,QAAS,CAAA;AAAA,QAEhD9B,MAAc,gBAAgBhB,KAAe,gBAAAoC,EAAAY,GAAA,CAAA,CAAmB;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,EAErE,CAAA,EACF,CAAA;AAEJ,CAAC;"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import { memo as n } from "react";
|
|
3
|
-
import { LOTTIE as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import { LOTTIE as a } from "../../../../assets/lottie/lottie.js";
|
|
4
|
+
import p from "../../../ui/buttons/button/button.js";
|
|
5
|
+
import l from "../../../ui/layout/flex-view.js";
|
|
6
6
|
import c from "../../../ui/lottie-animation/lottie-animation.js";
|
|
7
7
|
import o from "../../../ui/separator/separator.js";
|
|
8
|
-
import
|
|
9
|
-
import { BaseWrapper as
|
|
10
|
-
const
|
|
8
|
+
import d from "../../../ui/text/text.js";
|
|
9
|
+
import { BaseWrapper as h } from "./styles.js";
|
|
10
|
+
const s = ({ buttonLabel: e = "Home", error: t, handleClick: i }) => /* @__PURE__ */ r(h, { $background: "BLACK_75", children: /* @__PURE__ */ m(l, { $alignItems: "center", children: [
|
|
11
11
|
/* @__PURE__ */ r(o, { heightX: 4 }),
|
|
12
|
-
/* @__PURE__ */ r(c, { src:
|
|
13
|
-
/* @__PURE__ */ r(
|
|
12
|
+
/* @__PURE__ */ r(c, { src: a.ERROR_LOTTIE, height: 320, width: 320 }),
|
|
13
|
+
/* @__PURE__ */ r(d, { $renderAs: "ab1-bold", $color: "WHITE", $align: "center", children: t || "Oh No! Error detected..." }),
|
|
14
14
|
/* @__PURE__ */ r(o, { heightX: 1 }),
|
|
15
15
|
/* @__PURE__ */ r(
|
|
16
|
-
|
|
16
|
+
p,
|
|
17
17
|
{
|
|
18
18
|
label: e,
|
|
19
19
|
onClick: i,
|
|
@@ -22,8 +22,8 @@ const d = ({ buttonLabel: e = "Home", error: t, handleClick: i }) => /* @__PURE_
|
|
|
22
22
|
widthX: 14
|
|
23
23
|
}
|
|
24
24
|
)
|
|
25
|
-
] }) }),
|
|
25
|
+
] }) }), I = n(s);
|
|
26
26
|
export {
|
|
27
|
-
|
|
27
|
+
I as default
|
|
28
28
|
};
|
|
29
29
|
//# sourceMappingURL=error.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sources":["../../../../../src/features/worksheet/worksheet/worksheet-permissions/error.tsx"],"sourcesContent":["import { memo, type FC } from 'react';\n\nimport { LOTTIE } from '../../../../assets/lottie/lottie';\nimport Button from '../../../ui/buttons/button/button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport LottieAnimation from '../../../ui/lottie-animation/lottie-animation';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { BaseWrapper } from './styles';\n\ninterface IErrorProps {\n buttonLabel?: string;\n error: string;\n handleClick: () => void;\n}\n\nconst Error: FC<IErrorProps> = ({ buttonLabel = 'Home', error, handleClick }) => (\n <BaseWrapper $background=\"BLACK_75\">\n <FlexView $alignItems=\"center\">\n <Separator heightX={4} />\n <LottieAnimation src={LOTTIE.ERROR_LOTTIE} height={320} width={320} />\n <Text $renderAs=\"
|
|
1
|
+
{"version":3,"file":"error.js","sources":["../../../../../src/features/worksheet/worksheet/worksheet-permissions/error.tsx"],"sourcesContent":["import { memo, type FC } from 'react';\n\nimport { LOTTIE } from '../../../../assets/lottie/lottie';\nimport Button from '../../../ui/buttons/button/button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport LottieAnimation from '../../../ui/lottie-animation/lottie-animation';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { BaseWrapper } from './styles';\n\ninterface IErrorProps {\n buttonLabel?: string;\n error: string;\n handleClick: () => void;\n}\n\nconst Error: FC<IErrorProps> = ({ buttonLabel = 'Home', error, handleClick }) => (\n <BaseWrapper $background=\"BLACK_75\">\n <FlexView $alignItems=\"center\">\n <Separator heightX={4} />\n <LottieAnimation src={LOTTIE.ERROR_LOTTIE} height={320} width={320} />\n <Text $renderAs=\"ab1-bold\" $color=\"WHITE\" $align=\"center\">\n {error || 'Oh No! Error detected...'}\n </Text>\n <Separator heightX={1} />\n <Button\n label={buttonLabel}\n onClick={handleClick}\n renderAs=\"primary\"\n size=\"regular\"\n widthX={14}\n />\n </FlexView>\n </BaseWrapper>\n);\n\nexport default memo(Error);\n"],"names":["Error","buttonLabel","error","handleClick","jsx","BaseWrapper","jsxs","FlexView","Separator","LottieAnimation","LOTTIE","Text","Button","memo"],"mappings":";;;;;;;;;AAgBA,MAAMA,IAAyB,CAAC,EAAE,aAAAC,IAAc,QAAQ,OAAAC,GAAO,aAAAC,EAAA,MAC7D,gBAAAC,EAACC,KAAY,aAAY,YACvB,UAAC,gBAAAC,EAAAC,GAAA,EAAS,aAAY,UACpB,UAAA;AAAA,EAAC,gBAAAH,EAAAI,GAAA,EAAU,SAAS,EAAG,CAAA;AAAA,EACvB,gBAAAJ,EAACK,KAAgB,KAAKC,EAAO,cAAc,QAAQ,KAAK,OAAO,KAAK;AAAA,EACpE,gBAAAN,EAACO,KAAK,WAAU,YAAW,QAAO,SAAQ,QAAO,UAC9C,UAAAT,KAAS,2BACZ,CAAA;AAAA,EACA,gBAAAE,EAACI,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,EACvB,gBAAAJ;AAAA,IAACQ;AAAA,IAAA;AAAA,MACC,OAAOX;AAAA,MACP,SAASE;AAAA,MACT,UAAS;AAAA,MACT,MAAK;AAAA,MACL,QAAQ;AAAA,IAAA;AAAA,EACV;AAAA,EACF,CAAA,EACF,CAAA,GAGaD,IAAAW,EAAKb,CAAK;"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as e, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import { memo as i } from "react";
|
|
3
|
-
import { useTheme as
|
|
3
|
+
import { useTheme as l } from "styled-components";
|
|
4
4
|
import { ILLUSTRATIONS as s } from "../../../../assets/illustrations/illustrations.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import a from "../../../ui/buttons/button/button.js";
|
|
6
|
+
import c from "../../../ui/layout/flex-view.js";
|
|
7
7
|
import o from "../../../ui/separator/separator.js";
|
|
8
|
-
import
|
|
9
|
-
import { BaseWrapper as
|
|
10
|
-
const
|
|
8
|
+
import h from "../../../ui/text/text.js";
|
|
9
|
+
import { BaseWrapper as d } from "./styles.js";
|
|
10
|
+
const n = ({ onHomeClick: t }) => {
|
|
11
11
|
const {
|
|
12
12
|
layout: { gutter: r }
|
|
13
|
-
} =
|
|
14
|
-
return /* @__PURE__ */ e(
|
|
13
|
+
} = l();
|
|
14
|
+
return /* @__PURE__ */ e(d, { $background: "BLACK_75", children: /* @__PURE__ */ m(c, { $alignItems: "center", children: [
|
|
15
15
|
/* @__PURE__ */ e(o, { heightX: 4 }),
|
|
16
16
|
/* @__PURE__ */ e(
|
|
17
17
|
"img",
|
|
@@ -22,12 +22,12 @@ const p = ({ onHomeClick: t }) => {
|
|
|
22
22
|
height: r * 12.5
|
|
23
23
|
}
|
|
24
24
|
),
|
|
25
|
-
/* @__PURE__ */ e(
|
|
25
|
+
/* @__PURE__ */ e(h, { $renderAs: "ab1-bold", $color: "WHITE", children: "The sheet is locked. Come back later" }),
|
|
26
26
|
/* @__PURE__ */ e(o, { heightX: 1 }),
|
|
27
|
-
/* @__PURE__ */ e(
|
|
27
|
+
/* @__PURE__ */ e(a, { label: "Home", onClick: t, renderAs: "primary", size: "regular", widthX: 14 })
|
|
28
28
|
] }) });
|
|
29
|
-
},
|
|
29
|
+
}, A = i(n);
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
A as default
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=sheet-locked.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet-locked.js","sources":["../../../../../src/features/worksheet/worksheet/worksheet-permissions/sheet-locked.tsx"],"sourcesContent":["import { memo } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Button from '../../../ui/buttons/button/button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { BaseWrapper } from './styles';\n\nconst SheetLocked = ({ onHomeClick }: { onHomeClick: () => void }) => {\n const {\n layout: { gutter },\n } = useTheme();\n\n return (\n <BaseWrapper $background=\"BLACK_75\">\n <FlexView $alignItems=\"center\">\n <Separator heightX={4} />\n <img\n alt=\"locked-img\"\n src={ILLUSTRATIONS.LOCKED}\n width={gutter * 12.5}\n height={gutter * 12.5}\n />\n <Text $renderAs=\"
|
|
1
|
+
{"version":3,"file":"sheet-locked.js","sources":["../../../../../src/features/worksheet/worksheet/worksheet-permissions/sheet-locked.tsx"],"sourcesContent":["import { memo } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Button from '../../../ui/buttons/button/button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { BaseWrapper } from './styles';\n\nconst SheetLocked = ({ onHomeClick }: { onHomeClick: () => void }) => {\n const {\n layout: { gutter },\n } = useTheme();\n\n return (\n <BaseWrapper $background=\"BLACK_75\">\n <FlexView $alignItems=\"center\">\n <Separator heightX={4} />\n <img\n alt=\"locked-img\"\n src={ILLUSTRATIONS.LOCKED}\n width={gutter * 12.5}\n height={gutter * 12.5}\n />\n <Text $renderAs=\"ab1-bold\" $color=\"WHITE\">\n The sheet is locked. Come back later\n </Text>\n <Separator heightX={1} />\n <Button label=\"Home\" onClick={onHomeClick} renderAs=\"primary\" size=\"regular\" widthX={14} />\n </FlexView>\n </BaseWrapper>\n );\n};\n\nexport default memo(SheetLocked);\n"],"names":["SheetLocked","onHomeClick","gutter","useTheme","BaseWrapper","jsxs","FlexView","jsx","Separator","ILLUSTRATIONS","Text","Button","sheetLocked","memo"],"mappings":";;;;;;;;;AAUA,MAAMA,IAAc,CAAC,EAAE,aAAAC,QAA+C;AAC9D,QAAA;AAAA,IACJ,QAAQ,EAAE,QAAAC,EAAO;AAAA,MACfC,EAAS;AAEb,2BACGC,GAAY,EAAA,aAAY,YACvB,UAAC,gBAAAC,EAAAC,GAAA,EAAS,aAAY,UACpB,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAU,SAAS,EAAG,CAAA;AAAA,IACvB,gBAAAD;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAI;AAAA,QACJ,KAAKE,EAAc;AAAA,QACnB,OAAOP,IAAS;AAAA,QAChB,QAAQA,IAAS;AAAA,MAAA;AAAA,IACnB;AAAA,sBACCQ,GAAK,EAAA,WAAU,YAAW,QAAO,SAAQ,UAE1C,wCAAA;AAAA,IACA,gBAAAH,EAACC,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,IACvB,gBAAAD,EAACI,GAAO,EAAA,OAAM,QAAO,SAASV,GAAa,UAAS,WAAU,MAAK,WAAU,QAAQ,GAAI,CAAA;AAAA,EAAA,EAC3F,CAAA,EACF,CAAA;AAEJ,GAEeW,IAAAC,EAAKb,CAAW;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { memo as
|
|
1
|
+
import { jsxs as t, Fragment as c, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { memo as d, useMemo as i } from "react";
|
|
3
3
|
import g from "../../../../ui/layout/flex-view.js";
|
|
4
4
|
import l from "../../../../ui/separator/separator.js";
|
|
5
5
|
import m from "../../../../ui/text/text.js";
|
|
@@ -22,18 +22,18 @@ const h = (o, e) => {
|
|
|
22
22
|
return "Apply";
|
|
23
23
|
}
|
|
24
24
|
return null;
|
|
25
|
-
}, $ =
|
|
25
|
+
}, $ = d(function({
|
|
26
26
|
itemType: e,
|
|
27
27
|
paperColor: p,
|
|
28
28
|
instructorStimulus: n
|
|
29
29
|
}) {
|
|
30
|
-
const
|
|
30
|
+
const a = i(
|
|
31
31
|
() => h(e, n),
|
|
32
32
|
[n, e]
|
|
33
33
|
);
|
|
34
|
-
return
|
|
34
|
+
return a ? /* @__PURE__ */ t(c, { children: [
|
|
35
35
|
/* @__PURE__ */ r(l, { width: 4 }),
|
|
36
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ t(
|
|
37
37
|
g,
|
|
38
38
|
{
|
|
39
39
|
$borderRadius: 12,
|
|
@@ -42,7 +42,7 @@ const h = (o, e) => {
|
|
|
42
42
|
$height: "fit-content",
|
|
43
43
|
children: [
|
|
44
44
|
/* @__PURE__ */ r(l, { height: 2 }),
|
|
45
|
-
/* @__PURE__ */ r(m, { $renderAs: "
|
|
45
|
+
/* @__PURE__ */ r(m, { $renderAs: "ac4-black", children: a })
|
|
46
46
|
]
|
|
47
47
|
}
|
|
48
48
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header-tags.js","sources":["../../../../../../src/features/worksheet/worksheet/worksheet-question/header/header-tags.tsx"],"sourcesContent":["import { memo, useMemo, type FC } from 'react';\n\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Separator from '../../../../ui/separator/separator';\nimport Text from '../../../../ui/text/text';\nimport { getQuestionBorderColor } from '../../worksheet-helpers';\nimport type { TInstructorStimulus, TItemType } from '../../worksheet-types';\nimport type { TWorksheetQuestionPaperColor } from '../worksheet-question-types';\n\ninterface IHeaderTag {\n itemType?: TItemType;\n paperColor?: TWorksheetQuestionPaperColor;\n instructorStimulus?: TInstructorStimulus;\n}\n\nconst getItemType = (itemType?: string, instructorStimulus?: TInstructorStimulus) => {\n switch (itemType) {\n case 'learning-we-do':\n return 'We Do';\n case 'learning-your-turn':\n return 'Your Turn';\n case 'learning-explore':\n return 'Explore';\n }\n\n switch (instructorStimulus?.toLowerCase()) {\n case 'try':\n return 'Try';\n case 'learn':\n return 'Learn';\n case 'apply':\n return 'Apply';\n }\n\n return null;\n};\n\nconst HeaderTag: FC<IHeaderTag> = memo(function HeaderTag({\n itemType,\n paperColor,\n instructorStimulus,\n}) {\n const itemTypeLabel = useMemo(\n () => getItemType(itemType, instructorStimulus),\n [instructorStimulus, itemType],\n );\n\n if (itemTypeLabel) {\n return (\n <>\n <Separator width={4} />\n <FlexView\n $borderRadius={12}\n $background={getQuestionBorderColor(paperColor ?? 'yellow', true)}\n $gutter={8}\n $height=\"fit-content\"\n >\n <Separator height={2} />\n <Text $renderAs=\"
|
|
1
|
+
{"version":3,"file":"header-tags.js","sources":["../../../../../../src/features/worksheet/worksheet/worksheet-question/header/header-tags.tsx"],"sourcesContent":["import { memo, useMemo, type FC } from 'react';\n\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Separator from '../../../../ui/separator/separator';\nimport Text from '../../../../ui/text/text';\nimport { getQuestionBorderColor } from '../../worksheet-helpers';\nimport type { TInstructorStimulus, TItemType } from '../../worksheet-types';\nimport type { TWorksheetQuestionPaperColor } from '../worksheet-question-types';\n\ninterface IHeaderTag {\n itemType?: TItemType;\n paperColor?: TWorksheetQuestionPaperColor;\n instructorStimulus?: TInstructorStimulus;\n}\n\nconst getItemType = (itemType?: string, instructorStimulus?: TInstructorStimulus) => {\n switch (itemType) {\n case 'learning-we-do':\n return 'We Do';\n case 'learning-your-turn':\n return 'Your Turn';\n case 'learning-explore':\n return 'Explore';\n }\n\n switch (instructorStimulus?.toLowerCase()) {\n case 'try':\n return 'Try';\n case 'learn':\n return 'Learn';\n case 'apply':\n return 'Apply';\n }\n\n return null;\n};\n\nconst HeaderTag: FC<IHeaderTag> = memo(function HeaderTag({\n itemType,\n paperColor,\n instructorStimulus,\n}) {\n const itemTypeLabel = useMemo(\n () => getItemType(itemType, instructorStimulus),\n [instructorStimulus, itemType],\n );\n\n if (itemTypeLabel) {\n return (\n <>\n <Separator width={4} />\n <FlexView\n $borderRadius={12}\n $background={getQuestionBorderColor(paperColor ?? 'yellow', true)}\n $gutter={8}\n $height=\"fit-content\"\n >\n <Separator height={2} />\n <Text $renderAs=\"ac4-black\">{itemTypeLabel}</Text>\n </FlexView>\n </>\n );\n }\n\n return null;\n});\n\nexport default HeaderTag;\n"],"names":["getItemType","itemType","instructorStimulus","HeaderTag","memo","paperColor","itemTypeLabel","useMemo","jsxs","Fragment","jsx","Separator","FlexView","getQuestionBorderColor","Text"],"mappings":";;;;;;AAeA,MAAMA,IAAc,CAACC,GAAmBC,MAA6C;AACnF,UAAQD,GAAU;AAAA,IAChB,KAAK;AACI,aAAA;AAAA,IACT,KAAK;AACI,aAAA;AAAA,IACT,KAAK;AACI,aAAA;AAAA,EACX;AAEQ,UAAAC,KAAA,gBAAAA,EAAoB,eAAe;AAAA,IACzC,KAAK;AACI,aAAA;AAAA,IACT,KAAK;AACI,aAAA;AAAA,IACT,KAAK;AACI,aAAA;AAAA,EACX;AAEO,SAAA;AACT,GAEMC,IAA4BC,EAAK,SAAmB;AAAA,EACxD,UAAAH;AAAA,EACA,YAAAI;AAAA,EACA,oBAAAH;AACF,GAAG;AACD,QAAMI,IAAgBC;AAAA,IACpB,MAAMP,EAAYC,GAAUC,CAAkB;AAAA,IAC9C,CAACA,GAAoBD,CAAQ;AAAA,EAAA;AAG/B,SAAIK,IAGE,gBAAAE,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAU,OAAO,EAAG,CAAA;AAAA,IACrB,gBAAAH;AAAA,MAACI;AAAA,MAAA;AAAA,QACC,eAAe;AAAA,QACf,aAAaC,EAAuBR,KAAc,UAAU,EAAI;AAAA,QAChE,SAAS;AAAA,QACT,SAAQ;AAAA,QAER,UAAA;AAAA,UAAC,gBAAAK,EAAAC,GAAA,EAAU,QAAQ,EAAG,CAAA;AAAA,UACrB,gBAAAD,EAAAI,GAAA,EAAK,WAAU,aAAa,UAAcR,GAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAC7C;AAAA,EACF,EAAA,CAAA,IAIG;AACT,CAAC;"}
|
|
@@ -4,10 +4,10 @@ import W from "../../../../../assets/line-icons/icons/bookmark.js";
|
|
|
4
4
|
import p from "../../../../../assets/line-icons/icons/bookmark-stroke-icon.js";
|
|
5
5
|
import q from "../../../../../assets/line-icons/icons/mistake.js";
|
|
6
6
|
import G from "../../../../../assets/line-icons/icons/skip2.js";
|
|
7
|
-
import
|
|
7
|
+
import b from "../../../../ui/buttons/button/button.js";
|
|
8
8
|
import m from "../../../../ui/layout/flex-view.js";
|
|
9
9
|
import N from "../../../../ui/separator/separator.js";
|
|
10
|
-
import
|
|
10
|
+
import c from "../../../../ui/text/text.js";
|
|
11
11
|
import { TOP_NAVIGATION_HEIGHT as P } from "../../constants.js";
|
|
12
12
|
import { getQuestionBorderColor as z } from "../../worksheet-helpers.js";
|
|
13
13
|
import { QuestionHeaderWrapper as L, QuestionValidationAnimationWrapper as D, ItemHeader as U, ItemHeaderTag as Y } from "../worksheet-question-styled.js";
|
|
@@ -18,7 +18,7 @@ const gt = V(function({
|
|
|
18
18
|
paperColor: u,
|
|
19
19
|
actionbarHeight: g,
|
|
20
20
|
behavior: w,
|
|
21
|
-
question:
|
|
21
|
+
question: y,
|
|
22
22
|
response: t,
|
|
23
23
|
onResolveDoubt: e,
|
|
24
24
|
canResolveDoubt: I,
|
|
@@ -28,24 +28,24 @@ const gt = V(function({
|
|
|
28
28
|
layout: o.layout,
|
|
29
29
|
markForReview: o.markForReview,
|
|
30
30
|
userType: o.userType
|
|
31
|
-
})), { topOffset: A, questionsScrollable: T, navigationBar: s } = x, H = (t == null ? void 0 : t.validatedByTeacher) ?? !1,
|
|
31
|
+
})), { topOffset: A, questionsScrollable: T, navigationBar: s } = x, H = (t == null ? void 0 : t.validatedByTeacher) ?? !1, d = (t == null ? void 0 : t.markedForReview) ?? !1, $ = ((t == null ? void 0 : t.attemptsHistory) || []).length ?? 0, { canMarkForReview: h, teacherValidationEnabled: R } = w, {
|
|
32
32
|
item_display_number: k,
|
|
33
33
|
question_number: _,
|
|
34
34
|
total_questions: B,
|
|
35
35
|
response_id: r,
|
|
36
36
|
item_type: C,
|
|
37
37
|
instructor_stimulus: F
|
|
38
|
-
} =
|
|
38
|
+
} = y, S = `${k}${B > 1 ? String.fromCharCode(97 + _) : ""}`, X = l(
|
|
39
39
|
() => n(r, !0),
|
|
40
40
|
[n, r]
|
|
41
|
-
),
|
|
41
|
+
), E = l(
|
|
42
42
|
() => n(r, !1),
|
|
43
43
|
[n, r]
|
|
44
|
-
),
|
|
45
|
-
const { score: o, max_score:
|
|
44
|
+
), Q = O(() => {
|
|
45
|
+
const { score: o, max_score: M } = (t == null ? void 0 : t.score) || {};
|
|
46
46
|
if (f && e && !(t != null && t.doubtResolved))
|
|
47
|
-
return !!(t != null && t.skipped || t != null && t.responseEdited && o !==
|
|
48
|
-
}, [e, t, f]),
|
|
47
|
+
return !!(t != null && t.skipped || t != null && t.responseEdited && o !== M);
|
|
48
|
+
}, [e, t, f]), j = l(() => {
|
|
49
49
|
e && e(r);
|
|
50
50
|
}, [e, r]);
|
|
51
51
|
return T || !h ? /* @__PURE__ */ i(
|
|
@@ -68,17 +68,17 @@ const gt = V(function({
|
|
|
68
68
|
$borderRadiusX: 0.5,
|
|
69
69
|
$marginBottom: 18,
|
|
70
70
|
children: [
|
|
71
|
-
/* @__PURE__ */ i(
|
|
71
|
+
/* @__PURE__ */ i(c, { $renderAs: "ub1-bold", children: S }),
|
|
72
72
|
R && /* @__PURE__ */ i(D, { children: /* @__PURE__ */ i(K, { validated: H }) })
|
|
73
73
|
]
|
|
74
74
|
}
|
|
75
75
|
),
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
Q && /* @__PURE__ */ i(m, { $gutterX: 0.5, $gapX: 0.2, children: /* @__PURE__ */ i(
|
|
77
|
+
b,
|
|
78
78
|
{
|
|
79
79
|
renderAs: "secondary",
|
|
80
80
|
label: "Mark as Resolved",
|
|
81
|
-
onClick:
|
|
81
|
+
onClick: j,
|
|
82
82
|
disabled: !I,
|
|
83
83
|
size: "xsmall",
|
|
84
84
|
iconPosition: "left",
|
|
@@ -98,8 +98,8 @@ const gt = V(function({
|
|
|
98
98
|
$marginBottom: 18,
|
|
99
99
|
$gutterX: 0.5,
|
|
100
100
|
children: [
|
|
101
|
-
/* @__PURE__ */ i(
|
|
102
|
-
/* @__PURE__ */ i(
|
|
101
|
+
/* @__PURE__ */ i(c, { $renderAs: "ub1", children: "Attempts:" }),
|
|
102
|
+
/* @__PURE__ */ i(c, { $renderAs: "ub1-bold", children: $ })
|
|
103
103
|
]
|
|
104
104
|
}
|
|
105
105
|
),
|
|
@@ -122,19 +122,19 @@ const gt = V(function({
|
|
|
122
122
|
$background: "YELLOW_1",
|
|
123
123
|
$marginBottom: 18,
|
|
124
124
|
children: [
|
|
125
|
-
/* @__PURE__ */ i(Y, { children: /* @__PURE__ */ a(
|
|
125
|
+
/* @__PURE__ */ i(Y, { children: /* @__PURE__ */ a(c, { $renderAs: "ac3-black", children: [
|
|
126
126
|
"Question ",
|
|
127
127
|
k
|
|
128
128
|
] }) }),
|
|
129
129
|
h && /* @__PURE__ */ i(
|
|
130
|
-
|
|
130
|
+
b,
|
|
131
131
|
{
|
|
132
132
|
renderAs: "secondary",
|
|
133
|
-
label: `Mark${
|
|
134
|
-
onClick:
|
|
133
|
+
label: `Mark${d ? "ed" : ""} for review`,
|
|
134
|
+
onClick: d ? E : X,
|
|
135
135
|
size: "xsmall",
|
|
136
136
|
iconPosition: "left",
|
|
137
|
-
Icon:
|
|
137
|
+
Icon: d ? W : p
|
|
138
138
|
}
|
|
139
139
|
)
|
|
140
140
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.js","sources":["../../../../../../src/features/worksheet/worksheet/worksheet-question/header/header.tsx"],"sourcesContent":["import { memo, useCallback, useMemo, type FC } from 'react';\n\nimport BookmarkIcon from '../../../../../assets/line-icons/icons/bookmark';\nimport BookmarkStrokeIcon from '../../../../../assets/line-icons/icons/bookmark-stroke-icon';\nimport MistakeIcon from '../../../../../assets/line-icons/icons/mistake';\nimport Skip2Icon from '../../../../../assets/line-icons/icons/skip2';\nimport Button from '../../../../ui/buttons/button/button';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Separator from '../../../../ui/separator/separator';\nimport Text from '../../../../ui/text/text';\nimport { TOP_NAVIGATION_HEIGHT } from '../../constants';\nimport { getQuestionBorderColor } from '../../worksheet-helpers';\nimport * as Styled from '../worksheet-question-styled';\nimport type { IQuestionHeaderProps } from '../worksheet-question-types';\nimport HeaderTag from './header-tags';\nimport ValidatedAnimation from './validated-animation';\nimport { useWorksheetStore } from '../../hooks/use-worksheet-store';\n\nconst QuestionHeader: FC<IQuestionHeaderProps> = memo(function QuestionHeader({\n paperColor,\n actionbarHeight,\n behavior,\n question,\n response,\n onResolveDoubt,\n canResolveDoubt,\n worksheetCompleted,\n}) {\n const { layout, markForReview, userType } = useWorksheetStore(store => ({\n layout: store.layout,\n markForReview: store.markForReview,\n userType: store.userType,\n }));\n const { topOffset, questionsScrollable, navigationBar } = layout;\n const teacherValidated = response?.validatedByTeacher ?? false;\n const markedForReview = response?.markedForReview ?? false;\n const attempts = (response?.attemptsHistory || []).length ?? 0;\n const { canMarkForReview, teacherValidationEnabled } = behavior;\n const {\n item_display_number,\n question_number,\n total_questions: totalQuestions,\n response_id: responseId,\n item_type: itemType,\n instructor_stimulus: instructorStimulus,\n } = question;\n\n const questionNumber = `${item_display_number}${\n totalQuestions > 1 ? String.fromCharCode('a'.charCodeAt(0) + question_number) : ''\n }`;\n\n const handleMarkForReview = useCallback(\n () => markForReview(responseId, true),\n [markForReview, responseId],\n );\n\n const handleUnmarkForReview = useCallback(\n () => markForReview(responseId, false),\n [markForReview, responseId],\n );\n\n const canShowResolveButton = useMemo(() => {\n const { score, max_score: maxScore } = response?.score || {};\n\n if (worksheetCompleted && onResolveDoubt && !response?.doubtResolved) {\n if (response?.skipped) {\n return true;\n }\n\n if (response?.responseEdited && score !== maxScore) {\n return true;\n }\n\n return false;\n }\n }, [onResolveDoubt, response, worksheetCompleted]);\n\n const handleDoubtResolve = useCallback(() => {\n if (onResolveDoubt) {\n onResolveDoubt(responseId);\n }\n }, [onResolveDoubt, responseId]);\n\n if (questionsScrollable || !canMarkForReview) {\n return (\n <Styled.QuestionHeaderWrapper\n $flexDirection=\"row\"\n $topOffset={topOffset + navigationBar === 'top' ? TOP_NAVIGATION_HEIGHT : 0}\n $actionbarHeight={actionbarHeight}\n $justifyContent=\"space-between\"\n >\n <FlexView $flexDirection=\"row\">\n <FlexView\n $position=\"relative\"\n $background={getQuestionBorderColor(paperColor ?? 'yellow', true)}\n $widthX={2.5}\n $heightX={2.5}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $borderRadiusX={0.5}\n $marginBottom={18}\n >\n <Text $renderAs=\"body1Medium\">{questionNumber}</Text>\n {teacherValidationEnabled && (\n <Styled.QuestionValidationAnimationWrapper>\n <ValidatedAnimation validated={teacherValidated} />\n </Styled.QuestionValidationAnimationWrapper>\n )}\n </FlexView>\n {canShowResolveButton && (\n <FlexView $gutterX={0.5} $gapX={0.2}>\n <Button\n renderAs=\"secondary\"\n label={`Mark as Resolved`}\n onClick={handleDoubtResolve}\n disabled={!canResolveDoubt}\n size=\"xsmall\"\n iconPosition=\"left\"\n Icon={response?.skipped ? Skip2Icon : MistakeIcon}\n />\n </FlexView>\n )}\n <Separator width={5} />\n {!!attempts && userType === 'TEACHER' && (\n <FlexView\n $flexDirection=\"row\"\n $background=\"WHITE\"\n $flexGapX={0.25}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $borderRadiusX={0.5}\n $marginBottom={18}\n $gutterX={0.5}\n >\n <Text $renderAs=\"body1\">Attempts:</Text>\n <Text $renderAs=\"body1Medium\">{attempts}</Text>\n </FlexView>\n )}\n <HeaderTag\n itemType={itemType}\n instructorStimulus={instructorStimulus}\n paperColor={paperColor}\n />\n </FlexView>\n </Styled.QuestionHeaderWrapper>\n );\n }\n\n return (\n <Styled.ItemHeader\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $justifyContent=\"space-between\"\n $background=\"YELLOW_1\"\n $marginBottom={18}\n >\n <Styled.ItemHeaderTag>\n <Text $renderAs=\"eyebrow1\">Question {item_display_number}</Text>\n </Styled.ItemHeaderTag>\n {canMarkForReview && (\n <Button\n renderAs=\"secondary\"\n label={`Mark${markedForReview ? 'ed' : ''} for review`}\n onClick={markedForReview ? handleUnmarkForReview : handleMarkForReview}\n size=\"xsmall\"\n iconPosition=\"left\"\n Icon={markedForReview ? BookmarkIcon : BookmarkStrokeIcon}\n />\n )}\n </Styled.ItemHeader>\n );\n});\n\nexport default QuestionHeader;\n"],"names":["QuestionHeader","memo","paperColor","actionbarHeight","behavior","question","response","onResolveDoubt","canResolveDoubt","worksheetCompleted","layout","markForReview","userType","useWorksheetStore","store","topOffset","questionsScrollable","navigationBar","teacherValidated","markedForReview","attempts","canMarkForReview","teacherValidationEnabled","item_display_number","question_number","totalQuestions","responseId","itemType","instructorStimulus","questionNumber","handleMarkForReview","useCallback","handleUnmarkForReview","canShowResolveButton","useMemo","score","maxScore","handleDoubtResolve","jsx","Styled.QuestionHeaderWrapper","TOP_NAVIGATION_HEIGHT","jsxs","FlexView","getQuestionBorderColor","Text","Styled.QuestionValidationAnimationWrapper","ValidatedAnimation","Button","Skip2Icon","MistakeIcon","Separator","HeaderTag","Styled.ItemHeader","Styled.ItemHeaderTag","BookmarkIcon","BookmarkStrokeIcon"],"mappings":";;;;;;;;;;;;;;;;AAkBM,MAAAA,KAA2CC,EAAK,SAAwB;AAAA,EAC5E,YAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,oBAAAC;AACF,GAAG;AACD,QAAM,EAAE,QAAAC,GAAQ,eAAAC,GAAe,UAAAC,EAAS,IAAIC,EAAkB,CAAUC,OAAA;AAAA,IACtE,QAAQA,EAAM;AAAA,IACd,eAAeA,EAAM;AAAA,IACrB,UAAUA,EAAM;AAAA,EAChB,EAAA,GACI,EAAE,WAAAC,GAAW,qBAAAC,GAAqB,eAAAC,EAAA,IAAkBP,GACpDQ,KAAmBZ,KAAA,gBAAAA,EAAU,uBAAsB,IACnDa,KAAkBb,KAAA,gBAAAA,EAAU,oBAAmB,IAC/Cc,MAAYd,KAAA,gBAAAA,EAAU,oBAAmB,IAAI,UAAU,GACvD,EAAE,kBAAAe,GAAkB,0BAAAC,EAA6B,IAAAlB,GACjD;AAAA,IACJ,qBAAAmB;AAAA,IACA,iBAAAC;AAAA,IACA,iBAAiBC;AAAA,IACjB,aAAaC;AAAA,IACb,WAAWC;AAAA,IACX,qBAAqBC;AAAA,EACnB,I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e;AAAA,MAEf,UAAA;AAAA,QAAA,gBAAAd,EAACe,GAAA,EACC,UAAC,gBAAAZ,EAAAG,GAAA,EAAK,WAAU,YAAW,UAAA;AAAA,UAAA;AAAA,UAAUrB;AAAA,QAAA,EAAA,CAAoB,EAC3D,CAAA;AAAA,QACCF,KACC,gBAAAiB;AAAA,UAACS;AAAA,UAAA;AAAA,YACC,UAAS;AAAA,YACT,OAAO,OAAO5B,IAAkB,OAAO,EAAE;AAAA,YACzC,SAASA,IAAkBa,IAAwBF;AAAA,YACnD,MAAK;AAAA,YACL,cAAa;AAAA,YACb,MAAMX,IAAkBmC,IAAeC;AAAA,UAAA;AAAA,QACzC;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR,CAAC;"}
|
|
1
|
+
{"version":3,"file":"header.js","sources":["../../../../../../src/features/worksheet/worksheet/worksheet-question/header/header.tsx"],"sourcesContent":["import { memo, useCallback, useMemo, type FC } from 'react';\n\nimport BookmarkIcon from '../../../../../assets/line-icons/icons/bookmark';\nimport BookmarkStrokeIcon from '../../../../../assets/line-icons/icons/bookmark-stroke-icon';\nimport MistakeIcon from '../../../../../assets/line-icons/icons/mistake';\nimport Skip2Icon from '../../../../../assets/line-icons/icons/skip2';\nimport Button from '../../../../ui/buttons/button/button';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Separator from '../../../../ui/separator/separator';\nimport Text from '../../../../ui/text/text';\nimport { TOP_NAVIGATION_HEIGHT } from '../../constants';\nimport { getQuestionBorderColor } from '../../worksheet-helpers';\nimport * as Styled from '../worksheet-question-styled';\nimport type { IQuestionHeaderProps } from '../worksheet-question-types';\nimport HeaderTag from './header-tags';\nimport ValidatedAnimation from './validated-animation';\nimport { useWorksheetStore } from '../../hooks/use-worksheet-store';\n\nconst QuestionHeader: FC<IQuestionHeaderProps> = memo(function QuestionHeader({\n paperColor,\n actionbarHeight,\n behavior,\n question,\n response,\n onResolveDoubt,\n canResolveDoubt,\n worksheetCompleted,\n}) {\n const { layout, markForReview, userType } = useWorksheetStore(store => ({\n layout: store.layout,\n markForReview: store.markForReview,\n userType: store.userType,\n }));\n const { topOffset, questionsScrollable, navigationBar } = layout;\n const teacherValidated = response?.validatedByTeacher ?? false;\n const markedForReview = response?.markedForReview ?? false;\n const attempts = (response?.attemptsHistory || []).length ?? 0;\n const { canMarkForReview, teacherValidationEnabled } = behavior;\n const {\n item_display_number,\n question_number,\n total_questions: totalQuestions,\n response_id: responseId,\n item_type: itemType,\n instructor_stimulus: instructorStimulus,\n } = question;\n\n const questionNumber = `${item_display_number}${\n totalQuestions > 1 ? String.fromCharCode('a'.charCodeAt(0) + question_number) : ''\n }`;\n\n const handleMarkForReview = useCallback(\n () => markForReview(responseId, true),\n [markForReview, responseId],\n );\n\n const handleUnmarkForReview = useCallback(\n () => markForReview(responseId, false),\n [markForReview, responseId],\n );\n\n const canShowResolveButton = useMemo(() => {\n const { score, max_score: maxScore } = response?.score || {};\n\n if (worksheetCompleted && onResolveDoubt && !response?.doubtResolved) {\n if (response?.skipped) {\n return true;\n }\n\n if (response?.responseEdited && score !== maxScore) {\n return true;\n }\n\n return false;\n }\n }, [onResolveDoubt, response, worksheetCompleted]);\n\n const handleDoubtResolve = useCallback(() => {\n if (onResolveDoubt) {\n onResolveDoubt(responseId);\n }\n }, [onResolveDoubt, responseId]);\n\n if (questionsScrollable || !canMarkForReview) {\n return (\n <Styled.QuestionHeaderWrapper\n $flexDirection=\"row\"\n $topOffset={topOffset + navigationBar === 'top' ? TOP_NAVIGATION_HEIGHT : 0}\n $actionbarHeight={actionbarHeight}\n $justifyContent=\"space-between\"\n >\n <FlexView $flexDirection=\"row\">\n <FlexView\n $position=\"relative\"\n $background={getQuestionBorderColor(paperColor ?? 'yellow', true)}\n $widthX={2.5}\n $heightX={2.5}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $borderRadiusX={0.5}\n $marginBottom={18}\n >\n <Text $renderAs=\"ub1-bold\">{questionNumber}</Text>\n {teacherValidationEnabled && (\n <Styled.QuestionValidationAnimationWrapper>\n <ValidatedAnimation validated={teacherValidated} />\n </Styled.QuestionValidationAnimationWrapper>\n )}\n </FlexView>\n {canShowResolveButton && (\n <FlexView $gutterX={0.5} $gapX={0.2}>\n <Button\n renderAs=\"secondary\"\n label={`Mark as Resolved`}\n onClick={handleDoubtResolve}\n disabled={!canResolveDoubt}\n size=\"xsmall\"\n iconPosition=\"left\"\n Icon={response?.skipped ? Skip2Icon : MistakeIcon}\n />\n </FlexView>\n )}\n <Separator width={5} />\n {!!attempts && userType === 'TEACHER' && (\n <FlexView\n $flexDirection=\"row\"\n $background=\"WHITE\"\n $flexGapX={0.25}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $borderRadiusX={0.5}\n $marginBottom={18}\n $gutterX={0.5}\n >\n <Text $renderAs=\"ub1\">Attempts:</Text>\n <Text $renderAs=\"ub1-bold\">{attempts}</Text>\n </FlexView>\n )}\n <HeaderTag\n itemType={itemType}\n instructorStimulus={instructorStimulus}\n paperColor={paperColor}\n />\n </FlexView>\n </Styled.QuestionHeaderWrapper>\n );\n }\n\n return (\n <Styled.ItemHeader\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $justifyContent=\"space-between\"\n $background=\"YELLOW_1\"\n $marginBottom={18}\n >\n <Styled.ItemHeaderTag>\n <Text $renderAs=\"ac3-black\">Question {item_display_number}</Text>\n </Styled.ItemHeaderTag>\n {canMarkForReview && (\n <Button\n renderAs=\"secondary\"\n label={`Mark${markedForReview ? 'ed' : ''} for review`}\n onClick={markedForReview ? handleUnmarkForReview : handleMarkForReview}\n size=\"xsmall\"\n iconPosition=\"left\"\n Icon={markedForReview ? BookmarkIcon : BookmarkStrokeIcon}\n />\n )}\n </Styled.ItemHeader>\n );\n});\n\nexport default QuestionHeader;\n"],"names":["QuestionHeader","memo","paperColor","actionbarHeight","behavior","question","response","onResolveDoubt","canResolveDoubt","worksheetCompleted","layout","markForReview","userType","useWorksheetStore","store","topOffset","questionsScrollable","navigationBar","teacherValidated","markedForReview","attempts","canMarkForReview","teacherValidationEnabled","item_display_number","question_number","totalQuestions","responseId","itemType","instructorStimulus","questionNumber","handleMarkForReview","useCallback","handleUnmarkForReview","canShowResolveButton","useMemo","score","maxScore","handleDoubtResolve","jsx","Styled.QuestionHeaderWrapper","TOP_NAVIGATION_HEIGHT","jsxs","FlexView","getQuestionBorderColor","Text","Styled.QuestionValidationAnimationWrapper","ValidatedAnimation","Button","Skip2Icon","MistakeIcon","Separator","HeaderTag","Styled.ItemHeader","Styled.ItemHeaderTag","BookmarkIcon","BookmarkStrokeIcon"],"mappings":";;;;;;;;;;;;;;;;AAkBM,MAAAA,KAA2CC,EAAK,SAAwB;AAAA,EAC5E,YAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,oBAAAC;AACF,GAAG;AACD,QAAM,EAAE,QAAAC,GAAQ,eAAAC,GAAe,UAAAC,EAAS,IAAIC,EAAkB,CAAUC,OAAA;AAAA,IACtE,QAAQA,EAAM;AAAA,IACd,eAAeA,EAAM;AAAA,IACrB,UAAUA,EAAM;AAAA,EAChB,EAAA,GACI,EAAE,WAAAC,GAAW,qBAAAC,GAAqB,eAAAC,EAAA,IAAkBP,GACpDQ,KAAmBZ,KAAA,gBAAAA,EAAU,uBAAsB,IACnDa,KAAkBb,KAAA,gBAAAA,EAAU,oBAAmB,IAC/Cc,MAAYd,KAAA,gBAAAA,EAAU,oBAAmB,IAAI,UAAU,GACvD,EAAE,kBAAAe,GAAkB,0BAAAC,EAA6B,IAAAlB,GACjD;AAAA,IACJ,qBAAAmB;AAAA,IACA,iBAAAC;AAAA,IACA,iBAAiBC;AAAA,IACjB,aAAaC;AAAA,IACb,WAAWC;AAAA,IACX,qBAAqBC;AAAA,EACnB,IAAAvB,GAEEwB,IAAiB,GAAGN,CAAmB,GAC3CE,IAAiB,IAAI,OAAO,aAAa,KAA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AAG,GAAA,EAAK,WAAU,aAAY,UAAA;AAAA,UAAA;AAAA,UAAUrB;AAAA,QAAA,EAAA,CAAoB,EAC5D,CAAA;AAAA,QACCF,KACC,gBAAAiB;AAAA,UAACS;AAAA,UAAA;AAAA,YACC,UAAS;AAAA,YACT,OAAO,OAAO5B,IAAkB,OAAO,EAAE;AAAA,YACzC,SAASA,IAAkBa,IAAwBF;AAAA,YACnD,MAAK;AAAA,YACL,cAAa;AAAA,YACb,MAAMX,IAAkBmC,IAAeC;AAAA,UAAA;AAAA,QACzC;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR,CAAC;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { memo as
|
|
1
|
+
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { memo as o } from "react";
|
|
3
3
|
import e from "../../../../../ui/text/text.js";
|
|
4
4
|
import t from "../../question-backdrop/question-backdrop.js";
|
|
5
|
-
const l =
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
/* @__PURE__ */ r(e, { $renderAs: "
|
|
8
|
-
/* @__PURE__ */ r(e, { $renderAs: "
|
|
5
|
+
const l = o(function() {
|
|
6
|
+
return /* @__PURE__ */ n(t, { paperColor: "orange", children: [
|
|
7
|
+
/* @__PURE__ */ r(e, { $renderAs: "ah3", $align: "center", $marginBottom: 40, children: "Great work!" }),
|
|
8
|
+
/* @__PURE__ */ r(e, { $renderAs: "ah2", $align: "center", children: "A new challenge awaits!" })
|
|
9
9
|
] });
|
|
10
10
|
});
|
|
11
11
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advanced-practice-intro.js","sources":["../../../../../../../src/features/worksheet/worksheet/worksheet-question/intros/system-intros/advanced-practice-intro.tsx"],"sourcesContent":["import { memo } from 'react';\n\nimport Text from '../../../../../ui/text/text';\nimport QuestionBackdrop from '../../question-backdrop/question-backdrop';\n\nconst AdvancedPracticeIntro = memo(function AdvancedPracticeIntro() {\n return (\n <QuestionBackdrop paperColor=\"orange\">\n <Text $renderAs=\"
|
|
1
|
+
{"version":3,"file":"advanced-practice-intro.js","sources":["../../../../../../../src/features/worksheet/worksheet/worksheet-question/intros/system-intros/advanced-practice-intro.tsx"],"sourcesContent":["import { memo } from 'react';\n\nimport Text from '../../../../../ui/text/text';\nimport QuestionBackdrop from '../../question-backdrop/question-backdrop';\n\nconst AdvancedPracticeIntro = memo(function AdvancedPracticeIntro() {\n return (\n <QuestionBackdrop paperColor=\"orange\">\n <Text $renderAs=\"ah3\" $align=\"center\" $marginBottom={40}>\n Great work!\n </Text>\n <Text $renderAs=\"ah2\" $align=\"center\">\n A new challenge awaits!\n </Text>\n </QuestionBackdrop>\n );\n});\n\nexport default AdvancedPracticeIntro;\n"],"names":["AdvancedPracticeIntro","memo","jsxs","QuestionBackdrop","jsx","Text"],"mappings":";;;;AAKM,MAAAA,IAAwBC,EAAK,WAAiC;AAEhE,SAAA,gBAAAC,EAACC,GAAiB,EAAA,YAAW,UAC3B,UAAA;AAAA,IAAA,gBAAAC,EAACC,KAAK,WAAU,OAAM,QAAO,UAAS,eAAe,IAAI,UAEzD,cAAA,CAAA;AAAA,sBACCA,GAAK,EAAA,WAAU,OAAM,QAAO,UAAS,UAEtC,2BAAA;AAAA,EACF,EAAA,CAAA;AAEJ,CAAC;"}
|
|
@@ -3,7 +3,7 @@ import { memo as t } from "react";
|
|
|
3
3
|
import e from "../../../../../ui/text/text.js";
|
|
4
4
|
import i from "../../question-backdrop/question-backdrop.js";
|
|
5
5
|
const p = t(function() {
|
|
6
|
-
return /* @__PURE__ */ r(i, { paperColor: "yellow", children: /* @__PURE__ */ o(e, { $renderAs: "
|
|
6
|
+
return /* @__PURE__ */ r(i, { paperColor: "yellow", children: /* @__PURE__ */ o(e, { $renderAs: "ah3", $align: "center", children: [
|
|
7
7
|
"Great job with learning!",
|
|
8
8
|
/* @__PURE__ */ r("br", {}),
|
|
9
9
|
"Now it is practice time."
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic-practice-intro.js","sources":["../../../../../../../src/features/worksheet/worksheet/worksheet-question/intros/system-intros/basic-practice-intro.tsx"],"sourcesContent":["import { memo } from 'react';\n\nimport Text from '../../../../../ui/text/text';\nimport QuestionBackdrop from '../../question-backdrop/question-backdrop';\n\nconst BasicPracticeIntro = memo(function BasicPracticeIntro() {\n return (\n <QuestionBackdrop paperColor=\"yellow\">\n <Text $renderAs=\"
|
|
1
|
+
{"version":3,"file":"basic-practice-intro.js","sources":["../../../../../../../src/features/worksheet/worksheet/worksheet-question/intros/system-intros/basic-practice-intro.tsx"],"sourcesContent":["import { memo } from 'react';\n\nimport Text from '../../../../../ui/text/text';\nimport QuestionBackdrop from '../../question-backdrop/question-backdrop';\n\nconst BasicPracticeIntro = memo(function BasicPracticeIntro() {\n return (\n <QuestionBackdrop paperColor=\"yellow\">\n <Text $renderAs=\"ah3\" $align=\"center\">\n Great job with learning!\n <br />\n Now it is practice time.\n </Text>\n </QuestionBackdrop>\n );\n});\n\nexport default BasicPracticeIntro;\n"],"names":["BasicPracticeIntro","memo","jsx","QuestionBackdrop","Text"],"mappings":";;;;AAKM,MAAAA,IAAqBC,EAAK,WAA8B;AAE1D,SAAA,gBAAAC,EAACC,KAAiB,YAAW,UAC3B,4BAACC,GAAK,EAAA,WAAU,OAAM,QAAO,UAAS,UAAA;AAAA,IAAA;AAAA,sBAEnC,MAAG,EAAA;AAAA,IAAE;AAAA,EAAA,EAER,CAAA,EACF,CAAA;AAEJ,CAAC;"}
|
|
@@ -2,10 +2,10 @@ import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { memo as t } from "react";
|
|
3
3
|
import e from "../../../../../ui/text/text.js";
|
|
4
4
|
import n from "../../question-backdrop/question-backdrop.js";
|
|
5
|
-
const
|
|
5
|
+
const s = t(function() {
|
|
6
6
|
return /* @__PURE__ */ o(n, { paperColor: "purple", children: [
|
|
7
|
-
/* @__PURE__ */ r(e, { $renderAs: "
|
|
8
|
-
/* @__PURE__ */ o(e, { $renderAs: "
|
|
7
|
+
/* @__PURE__ */ r(e, { $renderAs: "ah3", $align: "center", $marginBottom: 16, children: "Good job on practice!" }),
|
|
8
|
+
/* @__PURE__ */ o(e, { $renderAs: "ah2", $align: "center", children: [
|
|
9
9
|
"Time to solve a few",
|
|
10
10
|
/* @__PURE__ */ r("br", {}),
|
|
11
11
|
"questions on your own!"
|
|
@@ -13,6 +13,6 @@ const a = t(function() {
|
|
|
13
13
|
] });
|
|
14
14
|
});
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
s as default
|
|
17
17
|
};
|
|
18
18
|
//# sourceMappingURL=exit-ticket-intro.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exit-ticket-intro.js","sources":["../../../../../../../src/features/worksheet/worksheet/worksheet-question/intros/system-intros/exit-ticket-intro.tsx"],"sourcesContent":["import { memo } from 'react';\n\nimport Text from '../../../../../ui/text/text';\nimport QuestionBackdrop from '../../question-backdrop/question-backdrop';\n\nconst ExitTicketIntro = memo(function ExitTicketIntro() {\n return (\n <QuestionBackdrop paperColor=\"purple\">\n <Text $renderAs=\"
|
|
1
|
+
{"version":3,"file":"exit-ticket-intro.js","sources":["../../../../../../../src/features/worksheet/worksheet/worksheet-question/intros/system-intros/exit-ticket-intro.tsx"],"sourcesContent":["import { memo } from 'react';\n\nimport Text from '../../../../../ui/text/text';\nimport QuestionBackdrop from '../../question-backdrop/question-backdrop';\n\nconst ExitTicketIntro = memo(function ExitTicketIntro() {\n return (\n <QuestionBackdrop paperColor=\"purple\">\n <Text $renderAs=\"ah3\" $align=\"center\" $marginBottom={16}>\n Good job on practice!\n </Text>\n <Text $renderAs=\"ah2\" $align=\"center\">\n Time to solve a few\n <br />\n questions on your own!\n </Text>\n </QuestionBackdrop>\n );\n});\n\nexport default ExitTicketIntro;\n"],"names":["ExitTicketIntro","memo","jsxs","QuestionBackdrop","jsx","Text"],"mappings":";;;;AAKM,MAAAA,IAAkBC,EAAK,WAA2B;AAEpD,SAAA,gBAAAC,EAACC,GAAiB,EAAA,YAAW,UAC3B,UAAA;AAAA,IAAA,gBAAAC,EAACC,KAAK,WAAU,OAAM,QAAO,UAAS,eAAe,IAAI,UAEzD,wBAAA,CAAA;AAAA,IACC,gBAAAH,EAAAG,GAAA,EAAK,WAAU,OAAM,QAAO,UAAS,UAAA;AAAA,MAAA;AAAA,wBAEnC,MAAG,EAAA;AAAA,MAAE;AAAA,IAAA,GAER;AAAA,EACF,EAAA,CAAA;AAEJ,CAAC;"}
|
|
@@ -3,7 +3,7 @@ import { memo as e } from "react";
|
|
|
3
3
|
import t from "../../../../../ui/text/text.js";
|
|
4
4
|
import c from "../../question-backdrop/question-backdrop.js";
|
|
5
5
|
const l = e(function() {
|
|
6
|
-
return /* @__PURE__ */ r(c, { paperColor: "yellow", children: /* @__PURE__ */ o(t, { $renderAs: "
|
|
6
|
+
return /* @__PURE__ */ r(c, { paperColor: "yellow", children: /* @__PURE__ */ o(t, { $renderAs: "ah3", $align: "center", children: [
|
|
7
7
|
"Good job!",
|
|
8
8
|
/* @__PURE__ */ r("br", {}),
|
|
9
9
|
"Let’s step up for more practice."
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regular-practice-intro.js","sources":["../../../../../../../src/features/worksheet/worksheet/worksheet-question/intros/system-intros/regular-practice-intro.tsx"],"sourcesContent":["import { memo } from 'react';\n\nimport Text from '../../../../../ui/text/text';\nimport QuestionBackdrop from '../../question-backdrop/question-backdrop';\n\nconst RegularPracticeIntro = memo(function RegularPracticeIntro() {\n return (\n <QuestionBackdrop paperColor=\"yellow\">\n <Text $renderAs=\"
|
|
1
|
+
{"version":3,"file":"regular-practice-intro.js","sources":["../../../../../../../src/features/worksheet/worksheet/worksheet-question/intros/system-intros/regular-practice-intro.tsx"],"sourcesContent":["import { memo } from 'react';\n\nimport Text from '../../../../../ui/text/text';\nimport QuestionBackdrop from '../../question-backdrop/question-backdrop';\n\nconst RegularPracticeIntro = memo(function RegularPracticeIntro() {\n return (\n <QuestionBackdrop paperColor=\"yellow\">\n <Text $renderAs=\"ah3\" $align=\"center\">\n Good job!\n <br />\n Let’s step up for more practice.\n </Text>\n </QuestionBackdrop>\n );\n});\n\nexport default RegularPracticeIntro;\n"],"names":["RegularPracticeIntro","memo","jsx","QuestionBackdrop","Text"],"mappings":";;;;AAKM,MAAAA,IAAuBC,EAAK,WAAgC;AAE9D,SAAA,gBAAAC,EAACC,KAAiB,YAAW,UAC3B,4BAACC,GAAK,EAAA,WAAU,OAAM,QAAO,UAAS,UAAA;AAAA,IAAA;AAAA,sBAEnC,MAAG,EAAA;AAAA,IAAE;AAAA,EAAA,EAER,CAAA,EACF,CAAA;AAEJ,CAAC;"}
|