@cuemath/leap 3.2.30 → 3.2.31-m
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/illustrations/illustrations.js +5 -6
- package/dist/assets/illustrations/illustrations.js.map +1 -1
- package/dist/assets/lottie/lottie.js +1 -6
- package/dist/assets/lottie/lottie.js.map +1 -1
- package/dist/features/analytics-events/platform-events-student.js +1 -2
- package/dist/features/analytics-events/platform-events-student.js.map +1 -1
- package/dist/features/analytics-events/platform-events-teacher.js +4 -6
- package/dist/features/analytics-events/platform-events-teacher.js.map +1 -1
- package/dist/features/analytics-events/whitelist-events.js +16 -20
- package/dist/features/analytics-events/whitelist-events.js.map +1 -1
- package/dist/features/auth/account-selector/account-selector.js +52 -54
- package/dist/features/auth/account-selector/account-selector.js.map +1 -1
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-constants.js +1 -2
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-constants.js.map +1 -1
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js +8 -8
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js.map +1 -1
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js +60 -82
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js.map +1 -1
- package/dist/features/auth/comps/pill-button/pill-button.js +38 -41
- package/dist/features/auth/comps/pill-button/pill-button.js.map +1 -1
- package/dist/features/auth/comps/resend-otp/resend-otp.js +14 -18
- package/dist/features/auth/comps/resend-otp/resend-otp.js.map +1 -1
- package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js +26 -32
- package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js.map +1 -1
- package/dist/features/auth/comps/tabs/tab-tem/tab-item.js +10 -2
- package/dist/features/auth/comps/tabs/tab-tem/tab-item.js.map +1 -1
- package/dist/features/auth/comps/user-list/user-item/user-item-styled.js +3 -9
- package/dist/features/auth/comps/user-list/user-item/user-item-styled.js.map +1 -1
- package/dist/features/auth/comps/user-list/user-item/user-item.js +15 -14
- package/dist/features/auth/comps/user-list/user-item/user-item.js.map +1 -1
- package/dist/features/auth/pla-signup/signup-options/signup-options.js +35 -42
- package/dist/features/auth/pla-signup/signup-options/signup-options.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-item.js +43 -43
- 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-utils.js +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-utils.js.map +1 -1
- package/dist/features/chapters-v2/utils/node-card-utils.js +2 -2
- package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -1
- package/dist/features/communication/pub-sub/constants.js +4 -7
- package/dist/features/communication/pub-sub/constants.js.map +1 -1
- package/dist/features/homework/homework-card-view.js +97 -85
- package/dist/features/homework/homework-card-view.js.map +1 -1
- package/dist/features/homework/homework-card.js +42 -44
- package/dist/features/homework/homework-card.js.map +1 -1
- package/dist/features/homework/hw-card-list/hw-card-list-view.js +29 -31
- package/dist/features/homework/hw-card-list/hw-card-list-view.js.map +1 -1
- package/dist/features/homework/hw-card-list/hw-card-list.js +48 -54
- package/dist/features/homework/hw-card-list/hw-card-list.js.map +1 -1
- package/dist/features/homework/utils.js +27 -33
- package/dist/features/homework/utils.js.map +1 -1
- package/dist/features/journey/hooks/use-home-page-journey/tooltip-item.js +11 -17
- package/dist/features/journey/hooks/use-home-page-journey/tooltip-item.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/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapters-list.js +53 -68
- package/dist/features/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapters-list.js.map +1 -1
- package/dist/features/puzzles/app/puzzle-app-styled.js +6 -10
- package/dist/features/puzzles/app/puzzle-app-styled.js.map +1 -1
- package/dist/features/puzzles/comps/puzzle-card-styled.js +69 -24
- package/dist/features/puzzles/comps/puzzle-card-styled.js.map +1 -1
- package/dist/features/puzzles/comps/puzzle-card.js +30 -79
- package/dist/features/puzzles/comps/puzzle-card.js.map +1 -1
- package/dist/features/puzzles/puzzle-container/puzzle-container-styled.js +25 -55
- package/dist/features/puzzles/puzzle-container/puzzle-container-styled.js.map +1 -1
- package/dist/features/puzzles/puzzle-container/puzzle-container.js +107 -100
- package/dist/features/puzzles/puzzle-container/puzzle-container.js.map +1 -1
- package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js +1 -1
- package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js.map +1 -1
- package/dist/features/puzzles/utils/puzzle-pattern.js +13 -28
- package/dist/features/puzzles/utils/puzzle-pattern.js.map +1 -1
- package/dist/features/stickers/sticker-data.js +234 -0
- package/dist/features/stickers/sticker-data.js.map +1 -0
- package/dist/features/{ui/sticker-grid/sticker-grid-styles.js → stickers/sticker-selector/sticker-selector-styles.js} +23 -31
- package/dist/features/stickers/sticker-selector/sticker-selector-styles.js.map +1 -0
- package/dist/features/stickers/sticker-selector/sticker-selector.js +39 -0
- package/dist/features/stickers/sticker-selector/sticker-selector.js.map +1 -0
- package/dist/features/stickers/sticker-selector/sticker.js +56 -0
- package/dist/features/stickers/sticker-selector/sticker.js.map +1 -0
- package/dist/features/stickers/stickers-effects/effects.js +82 -0
- package/dist/features/stickers/stickers-effects/effects.js.map +1 -0
- package/dist/features/stickers/stickers-effects/stickers-cache.js +19 -0
- package/dist/features/stickers/stickers-effects/stickers-cache.js.map +1 -0
- package/dist/features/stickers/stickers-effects/stickers-effects-helper.js +105 -0
- package/dist/features/stickers/stickers-effects/stickers-effects-helper.js.map +1 -0
- package/dist/features/stickers/stickers-effects/stickers-effects-styled.js +36 -0
- package/dist/features/stickers/stickers-effects/stickers-effects-styled.js.map +1 -0
- package/dist/features/stickers/stickers-effects/stickers-effects.js +55 -0
- package/dist/features/stickers/stickers-effects/stickers-effects.js.map +1 -0
- package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js +8 -3
- package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js.map +1 -1
- package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +40 -40
- package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
- package/dist/features/ui/dot-lottie-animations/dot-lottie-animation.js +88 -75
- package/dist/features/ui/dot-lottie-animations/dot-lottie-animation.js.map +1 -1
- package/dist/features/ui/lottie-animation/lottie-animation.js +45 -43
- package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
- package/dist/features/ui/modals/modal-styled.js +48 -15
- package/dist/features/ui/modals/modal-styled.js.map +1 -1
- package/dist/features/ui/modals/modal.js +43 -35
- package/dist/features/ui/modals/modal.js.map +1 -1
- package/dist/features/ui/theme/layout.js +3 -3
- package/dist/features/ui/theme/layout.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-helpers.js +19 -20
- package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js +12 -16
- package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js +47 -101
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +163 -166
- 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 +207 -242
- 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 +430 -375
- package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js +1 -1
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/worksheet-preview.js +35 -44
- package/dist/features/worksheet/worksheet-preview/worksheet-preview.js.map +1 -1
- package/dist/index.d.ts +86 -149
- package/dist/index.js +418 -430
- package/dist/index.js.map +1 -1
- package/dist/static/animated-avatar.1ad58b1d.json +1 -0
- package/dist/static/animated-avatar.69b07505.json +1 -0
- package/dist/static/animated-avatar.9c560b46.json +1 -0
- package/dist/static/cuemath-app-qr-code.4beefe48.svg +1 -0
- package/dist/static/cuemath-app-qr-code.ba6cc09b.svg +1 -0
- package/dist/static/cuemath-app-qr-code.d0912fc7.png +0 -0
- package/dist/static/otp.2d08f874.json +1 -0
- package/dist/static/phone-number.84f55562.json +1 -0
- package/dist/static/puzzle-pattern-blue.f4bea1ee.svg +1 -0
- package/dist/static/puzzle-pattern-green.c9f84bbc.svg +1 -0
- package/dist/static/puzzle-pattern-orange.3da09665.svg +1 -0
- package/dist/static/puzzle-pattern-purple.5fb5a319.svg +1 -0
- package/dist/static/puzzle-pattern-yellow.aadbf457.svg +1 -0
- package/dist/static/target-achieved-text.053bd142.json +2830 -0
- package/dist/static/user-type-selector-grid-bg.3c9c8ad6.svg +1 -0
- package/dist/static/user-type-selector-grid-bg.3ce8142d.svg +1 -0
- package/package.json +1 -1
- package/dist/features/auth/pla-signup/pla-analytics-events.js +0 -23
- package/dist/features/auth/pla-signup/pla-analytics-events.js.map +0 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-assigned.js +0 -72
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-assigned.js.map +0 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-attempt-journey.js +0 -59
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-attempt-journey.js.map +0 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js +0 -63
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js.map +0 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-intro-journey.js +0 -67
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-intro-journey.js.map +0 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-progress-journey.js +0 -70
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-progress-journey.js.map +0 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-review-journey.js +0 -59
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-review-journey.js.map +0 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-unassign-journey.js +0 -59
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-unassign-journey.js.map +0 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-teacher-puzzle-assigned-journey.js +0 -70
- package/dist/features/journey/hooks/use-puzzles-journey/use-teacher-puzzle-assigned-journey.js.map +0 -1
- package/dist/features/puzzles/api/puzzle-dashboard.js +0 -10
- package/dist/features/puzzles/api/puzzle-dashboard.js.map +0 -1
- package/dist/features/puzzles/constants/puzzle-container.js +0 -8
- package/dist/features/puzzles/constants/puzzle-container.js.map +0 -1
- package/dist/features/puzzles/puzzle-analytics-events.js +0 -11
- package/dist/features/puzzles/puzzle-analytics-events.js.map +0 -1
- package/dist/features/puzzles/puzzle-container/puzzle-container-view.js +0 -55
- package/dist/features/puzzles/puzzle-container/puzzle-container-view.js.map +0 -1
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard-styled.js +0 -37
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard-styled.js.map +0 -1
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js +0 -107
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js.map +0 -1
- package/dist/features/ui/sticker-grid/sticker-grid-styles.js.map +0 -1
- package/dist/features/ui/sticker-grid/sticker-grid.js +0 -24
- package/dist/features/ui/sticker-grid/sticker-grid.js.map +0 -1
- package/dist/features/ui/sticker-grid/sticker.js +0 -57
- package/dist/features/ui/sticker-grid/sticker.js.map +0 -1
- package/dist/features/ui/stickers/constants.js +0 -6
- package/dist/features/ui/stickers/constants.js.map +0 -1
- package/dist/features/ui/stickers/stickers-effects.js +0 -64
- package/dist/features/ui/stickers/stickers-effects.js.map +0 -1
- package/dist/features/ui/stickers/stickers-styled.js +0 -29
- package/dist/features/ui/stickers/stickers-styled.js.map +0 -1
- package/dist/features/ui/stickers/stickers-utils.js +0 -91
- package/dist/features/ui/stickers/stickers-utils.js.map +0 -1
- package/dist/features/ui/stickers/stickers.js +0 -40
- package/dist/features/ui/stickers/stickers.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/animated-avatar.c3a0fa98.json +0 -1
- package/dist/static/puzzle-blue-lottie.bf64ebc5.json +0 -12760
- package/dist/static/puzzle-dashboard-banner.b7956519.svg +0 -1
- package/dist/static/puzzle-green-lottie.1da90698.json +0 -1
- package/dist/static/puzzle-orange-lottie.0a105c42.json +0 -21206
- package/dist/static/puzzle-pattern-blue.abff0164.svg +0 -1
- package/dist/static/puzzle-pattern-green.b8ba1840.svg +0 -1
- package/dist/static/puzzle-pattern-orange.3f5a17ff.svg +0 -1
- package/dist/static/puzzle-pattern-purple.14b09759.svg +0 -1
- package/dist/static/puzzle-pattern-yellow.50917fab.svg +0 -1
- package/dist/static/puzzle-purple-lottie.e70de110.json +0 -9860
- package/dist/static/puzzle-yellow-lottie.275b5cf4.json +0 -1
|
@@ -1,146 +1,146 @@
|
|
|
1
1
|
import { jsxs as L, jsx as i, Fragment as Vt } from "react/jsx-runtime";
|
|
2
|
-
import { memo as Xt, useMemo as p, useState as T, useRef as
|
|
3
|
-
import { IMAGES as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { QUESTIONS_GAP as
|
|
9
|
-
import { getPaperColorByQuestion as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import { QuestionContainerWrapper as le, StimulusReview as
|
|
19
|
-
const
|
|
2
|
+
import { memo as Xt, useMemo as p, useState as T, useRef as K, useCallback as Pt, useEffect as R, useLayoutEffect as jt } from "react";
|
|
3
|
+
import { IMAGES as Gt } from "../../../../assets/images/images.js";
|
|
4
|
+
import Yt from "../../../cue-canvas/cue-canvas.js";
|
|
5
|
+
import Zt from "../../../pointer-sync/pointer.js";
|
|
6
|
+
import Ht from "../../../ui/layout/flex-view.js";
|
|
7
|
+
import Jt from "../../constants/events.js";
|
|
8
|
+
import { QUESTIONS_GAP as kt, LEARNOSITY_KEYBOARD_HEIGHT as St } from "../constants.js";
|
|
9
|
+
import { getPaperColorByQuestion as qt, isConceptIntroWidget as te, scrollToQuestion as bt } from "../worksheet-helpers.js";
|
|
10
|
+
import ee from "./header/header.js";
|
|
11
|
+
import ie from "./learnosity-question.js";
|
|
12
|
+
import re from "./question-backdrop/question-backdrop.js";
|
|
13
|
+
import oe from "./subjective-review.js";
|
|
14
|
+
import ne from "./system-intros/advanced-practice-intro.js";
|
|
15
|
+
import ce from "./system-intros/basic-practice-intro.js";
|
|
16
|
+
import ae from "./system-intros/exit-ticket-intro.js";
|
|
17
|
+
import se from "./system-intros/regular-practice-intro.js";
|
|
18
|
+
import { QuestionContainerWrapper as le, StimulusReview as me, QuestionContainer as ue, QuestionWrapper as fe, LessonOverviewBanner as he, CueCanvasWrapper as de, Hint as ge, Solution as Ee } from "./worksheet-question-styled.js";
|
|
19
|
+
const Me = Xt(
|
|
20
20
|
({
|
|
21
21
|
userType: c,
|
|
22
|
-
signedRequest:
|
|
22
|
+
signedRequest: Ct,
|
|
23
23
|
worksheetCompleted: g,
|
|
24
24
|
question: n,
|
|
25
25
|
response: e,
|
|
26
|
-
nextQuestionId:
|
|
27
|
-
isActive:
|
|
26
|
+
nextQuestionId: v,
|
|
27
|
+
isActive: w,
|
|
28
28
|
isHidden: A,
|
|
29
29
|
canRender: V,
|
|
30
30
|
loggerRef: M,
|
|
31
31
|
appended: a,
|
|
32
32
|
maxQuestionWidth: X,
|
|
33
|
-
behavior:
|
|
34
|
-
layout:
|
|
35
|
-
actionbarHeight:
|
|
33
|
+
behavior: P,
|
|
34
|
+
layout: j,
|
|
35
|
+
actionbarHeight: Wt,
|
|
36
36
|
learnosity: b,
|
|
37
|
-
intersectionObserver:
|
|
38
|
-
background:
|
|
39
|
-
onMediaStateChange:
|
|
40
|
-
onMarkForReview:
|
|
41
|
-
userId:
|
|
42
|
-
onPublishStrokes:
|
|
43
|
-
onReceiveStrokes:
|
|
44
|
-
isScribblingEnabled:
|
|
37
|
+
intersectionObserver: G,
|
|
38
|
+
background: Y = "paper",
|
|
39
|
+
onMediaStateChange: yt,
|
|
40
|
+
onMarkForReview: Bt,
|
|
41
|
+
userId: xt,
|
|
42
|
+
onPublishStrokes: Z,
|
|
43
|
+
onReceiveStrokes: J,
|
|
44
|
+
isScribblingEnabled: k,
|
|
45
45
|
initialStrokesData: O,
|
|
46
|
-
isCanvasEnabled:
|
|
47
|
-
onPublishMouseMove:
|
|
48
|
-
onSubscribeMouseMove:
|
|
49
|
-
setActiveQuestionId:
|
|
50
|
-
canResolveDoubt:
|
|
51
|
-
onResolveDoubt:
|
|
52
|
-
studentId:
|
|
53
|
-
responses:
|
|
54
|
-
subjectiveProps:
|
|
46
|
+
isCanvasEnabled: q,
|
|
47
|
+
onPublishMouseMove: tt,
|
|
48
|
+
onSubscribeMouseMove: et,
|
|
49
|
+
setActiveQuestionId: it,
|
|
50
|
+
canResolveDoubt: It,
|
|
51
|
+
onResolveDoubt: Lt,
|
|
52
|
+
studentId: Tt,
|
|
53
|
+
responses: At,
|
|
54
|
+
subjectiveProps: rt
|
|
55
55
|
}) => {
|
|
56
56
|
const C = p(
|
|
57
|
-
() =>
|
|
58
|
-
[
|
|
59
|
-
), [W,
|
|
60
|
-
validation:
|
|
57
|
+
() => Y === "paper" ? qt(n) : void 0,
|
|
58
|
+
[Y, n]
|
|
59
|
+
), [W, Mt] = T(), [ot, Ot] = T(), {
|
|
60
|
+
validation: nt,
|
|
61
61
|
review: N,
|
|
62
|
-
maximumAttempts:
|
|
62
|
+
maximumAttempts: ct,
|
|
63
63
|
canExceedAttempts: at,
|
|
64
|
-
teacherValidationEnabled:
|
|
64
|
+
teacherValidationEnabled: H,
|
|
65
65
|
solutionHidden: st
|
|
66
|
-
} =
|
|
66
|
+
} = P, { minQuestionHeight: Nt, topOffset: lt, questionsScrollable: y, renderQuestionHeader: Qt } = j, {
|
|
67
67
|
type: E,
|
|
68
68
|
response_id: r,
|
|
69
69
|
stimulus_review: _,
|
|
70
70
|
item_type: f,
|
|
71
|
-
instructor_stimulus:
|
|
72
|
-
metadata: { hints: h, solution: B, widget_reference:
|
|
73
|
-
item_reference:
|
|
74
|
-
question_number:
|
|
75
|
-
item_number:
|
|
76
|
-
item_display_number:
|
|
77
|
-
} = n, Ft = !!_, x = f === "overview",
|
|
71
|
+
instructor_stimulus: mt,
|
|
72
|
+
metadata: { hints: h, solution: B, widget_reference: ut },
|
|
73
|
+
item_reference: ft,
|
|
74
|
+
question_number: ht,
|
|
75
|
+
item_number: dt,
|
|
76
|
+
item_display_number: gt
|
|
77
|
+
} = n, Ft = !!_, x = f === "overview", m = te(mt), d = mt === "SystemIntro", Q = m || d, Et = e == null ? void 0 : e.responseEdited, zt = p(() => {
|
|
78
78
|
const t = [];
|
|
79
|
-
return
|
|
79
|
+
return Et && c === "TEACHER" && t.push("attempting"), a || t.push("hidden"), E === "hotspot" && t.push("correct-answers-hidden"), a && H && E === "clozetext" && (!m || c === "STUDENT" ? t.push("response-hidden") : t.push("response-code-hidden")), x && t.push("lesson-overview"), m && t.push("concept-intro"), d && t.push("system-intro"), t.join(" ");
|
|
80
80
|
}, [
|
|
81
81
|
a,
|
|
82
|
-
|
|
82
|
+
m,
|
|
83
83
|
x,
|
|
84
84
|
d,
|
|
85
85
|
E,
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
Et,
|
|
87
|
+
H,
|
|
88
88
|
c
|
|
89
|
-
]), F =
|
|
89
|
+
]), F = K({}), z = (e == null ? void 0 : e.hintsUsed) ?? 0, [_t] = T((e == null ? void 0 : e.validatedByTeacher) ?? !1), I = K(null), D = K(null), U = p(() => h == null ? void 0 : h.slice(0, z), [h, z]), $t = p(() => c === "TEACHER" || g ? !0 : !e || !e.response || e.responseEdited ? !1 : nt, [e, c, nt, g]), pt = p(() => {
|
|
90
90
|
if (c === "TEACHER") return !0;
|
|
91
91
|
if (N) {
|
|
92
92
|
const { attemptsHistory: t } = e ?? {};
|
|
93
|
-
return ((t == null ? void 0 : t.length) ?? 0) >=
|
|
93
|
+
return ((t == null ? void 0 : t.length) ?? 0) >= ct && !at;
|
|
94
94
|
}
|
|
95
95
|
return !1;
|
|
96
|
-
}, [at,
|
|
96
|
+
}, [at, ct, e, N, c]), Dt = p(
|
|
97
97
|
() => B && g && !st,
|
|
98
98
|
[st, B, g]
|
|
99
|
-
), [Rt,
|
|
99
|
+
), [Rt, Ut] = T({
|
|
100
100
|
width: 0,
|
|
101
101
|
height: 0
|
|
102
|
-
}),
|
|
103
|
-
|
|
102
|
+
}), Kt = Pt((t) => {
|
|
103
|
+
Ot(t);
|
|
104
104
|
}, []);
|
|
105
|
-
return
|
|
106
|
-
I.current &&
|
|
107
|
-
}, [
|
|
105
|
+
return R(() => {
|
|
106
|
+
I.current && G.observe(I.current);
|
|
107
|
+
}, [G]), R(() => {
|
|
108
108
|
if (a && (n.type === "clozeassociation" || n.type === "association" || n.type === "clozeformula")) {
|
|
109
109
|
const t = document.querySelectorAll(
|
|
110
110
|
`.widget-${n.response_id} .lrn_draggable`
|
|
111
111
|
);
|
|
112
112
|
let s = 0, o = 0;
|
|
113
|
-
t.forEach((
|
|
114
|
-
s = Math.max(s,
|
|
115
|
-
}),
|
|
113
|
+
t.forEach((l) => {
|
|
114
|
+
s = Math.max(s, l.clientWidth + 33), o = Math.max(o, l.clientHeight + 1);
|
|
115
|
+
}), Ut({
|
|
116
116
|
width: n.type !== "association" ? s : 0,
|
|
117
117
|
height: o
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
|
-
}, [a, n.response_id, n.type]),
|
|
121
|
-
if (a &&
|
|
120
|
+
}, [a, n.response_id, n.type]), R(() => {
|
|
121
|
+
if (a && $t) {
|
|
122
122
|
const t = b.question(r);
|
|
123
123
|
t && t.validate({
|
|
124
|
-
showCorrectAnswers:
|
|
124
|
+
showCorrectAnswers: pt
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
|
-
}, [a, b, r, N,
|
|
128
|
-
const t =
|
|
129
|
-
if (a && t && M.current && F.current[r] === void 0 && !
|
|
127
|
+
}, [a, b, r, N, pt, c, $t]), R(() => {
|
|
128
|
+
const t = D.current;
|
|
129
|
+
if (a && t && M.current && F.current[r] === void 0 && !m && !d) {
|
|
130
130
|
const s = t.clientWidth, o = t.querySelectorAll("*");
|
|
131
|
-
for (let
|
|
132
|
-
const u = o[
|
|
131
|
+
for (let l = 0; l < o.length; l++) {
|
|
132
|
+
const u = o[l];
|
|
133
133
|
if (u != null && u.closest(".resize-sensor"))
|
|
134
134
|
continue;
|
|
135
135
|
if (((u == null ? void 0 : u.clientWidth) ?? 0) > s) {
|
|
136
|
-
F.current[r] = !0, M.current(
|
|
137
|
-
item_reference:
|
|
138
|
-
widget_reference:
|
|
136
|
+
F.current[r] = !0, M.current(Jt.WORKSHEET_V3_GREATER_WIDTH_ELEMENT, {
|
|
137
|
+
item_reference: ft,
|
|
138
|
+
widget_reference: ut,
|
|
139
139
|
question_type: E,
|
|
140
|
-
question_number:
|
|
140
|
+
question_number: ht,
|
|
141
141
|
responseId: r,
|
|
142
|
-
item_number:
|
|
143
|
-
item_display_number:
|
|
142
|
+
item_number: dt,
|
|
143
|
+
item_display_number: gt
|
|
144
144
|
});
|
|
145
145
|
break;
|
|
146
146
|
}
|
|
@@ -149,27 +149,27 @@ const Oe = Xt(
|
|
|
149
149
|
}
|
|
150
150
|
}, [
|
|
151
151
|
a,
|
|
152
|
-
|
|
152
|
+
m,
|
|
153
153
|
d,
|
|
154
|
-
Et,
|
|
155
154
|
gt,
|
|
156
|
-
|
|
155
|
+
dt,
|
|
156
|
+
ft,
|
|
157
157
|
M,
|
|
158
158
|
E,
|
|
159
|
-
|
|
159
|
+
ht,
|
|
160
160
|
r,
|
|
161
|
-
|
|
162
|
-
]),
|
|
161
|
+
ut
|
|
162
|
+
]), R(() => {
|
|
163
163
|
const t = I.current, s = (o) => {
|
|
164
|
-
const
|
|
165
|
-
if (
|
|
164
|
+
const l = o.querySelector(".lrn_response_wrapper");
|
|
165
|
+
if (Q || !l)
|
|
166
166
|
return 0;
|
|
167
|
-
const u = o.getBoundingClientRect().bottom, S =
|
|
168
|
-
return $ <
|
|
167
|
+
const u = o.getBoundingClientRect().bottom, S = l.getBoundingClientRect().bottom, $ = Math.abs(u - S);
|
|
168
|
+
return $ < St ? St - $ : 0;
|
|
169
169
|
};
|
|
170
|
-
a && t &&
|
|
170
|
+
a && t && Mt((o) => {
|
|
171
171
|
var wt;
|
|
172
|
-
const S = ((wt = n.ui_style) == null ? void 0 : wt.type) === "floating-keyboard" && !(
|
|
172
|
+
const S = ((wt = n.ui_style) == null ? void 0 : wt.type) === "floating-keyboard" && !(H && E === "clozetext"), $ = t.clientHeight;
|
|
173
173
|
if ($ === 0)
|
|
174
174
|
return o;
|
|
175
175
|
if (!o)
|
|
@@ -180,24 +180,24 @@ const Oe = Xt(
|
|
|
180
180
|
$ + (S ? s(t) : 0)
|
|
181
181
|
);
|
|
182
182
|
return Math.abs(vt - o) > 4 ? vt : o;
|
|
183
|
-
}), (
|
|
184
|
-
}),
|
|
185
|
-
!y && !A &&
|
|
186
|
-
}, [A, y, r,
|
|
187
|
-
if (
|
|
183
|
+
}), (z || Ft || B && g) && b.renderMath("mathjax");
|
|
184
|
+
}), jt(() => {
|
|
185
|
+
!y && !A && bt(r);
|
|
186
|
+
}, [A, y, r, lt]), R(() => {
|
|
187
|
+
if (H && v && !_t && (e != null && e.validatedByTeacher)) {
|
|
188
188
|
const t = setTimeout(() => {
|
|
189
|
-
y ?
|
|
189
|
+
y ? bt(v) : it(v);
|
|
190
190
|
}, 1e3);
|
|
191
191
|
return () => {
|
|
192
192
|
clearTimeout(t);
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
195
|
}, [
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
196
|
+
v,
|
|
197
|
+
H,
|
|
198
|
+
_t,
|
|
199
199
|
y,
|
|
200
|
-
|
|
200
|
+
it,
|
|
201
201
|
e == null ? void 0 : e.validatedByTeacher
|
|
202
202
|
]), /* @__PURE__ */ L(
|
|
203
203
|
le,
|
|
@@ -205,14 +205,14 @@ const Oe = Xt(
|
|
|
205
205
|
"data-response-id": r,
|
|
206
206
|
className: `widget-${r}`,
|
|
207
207
|
ref: I,
|
|
208
|
-
$topOffset:
|
|
208
|
+
$topOffset: lt,
|
|
209
209
|
$flexDirection: _ ? "row" : "column",
|
|
210
210
|
$alignItems: _ ? "flex-start" : "center",
|
|
211
211
|
$hidden: A,
|
|
212
|
-
$marginBottom:
|
|
212
|
+
$marginBottom: kt,
|
|
213
213
|
children: [
|
|
214
214
|
_ && /* @__PURE__ */ i(
|
|
215
|
-
|
|
215
|
+
me,
|
|
216
216
|
{
|
|
217
217
|
dangerouslySetInnerHTML: {
|
|
218
218
|
__html: _
|
|
@@ -220,100 +220,97 @@ const Oe = Xt(
|
|
|
220
220
|
}
|
|
221
221
|
),
|
|
222
222
|
/* @__PURE__ */ L(
|
|
223
|
-
|
|
223
|
+
ue,
|
|
224
224
|
{
|
|
225
|
-
ref:
|
|
225
|
+
ref: D,
|
|
226
226
|
$width: _ ? "50%" : `${X}px`,
|
|
227
|
-
$minHeight: W ? Math.max(W - 72,
|
|
228
|
-
$isActive:
|
|
227
|
+
$minHeight: W ? Math.max(W - 72, ot ?? 0) : Nt,
|
|
228
|
+
$isActive: w,
|
|
229
229
|
$paperColor: C,
|
|
230
|
-
$opacity:
|
|
231
|
-
$imageHue: lt,
|
|
230
|
+
$opacity: w ? 1 : 0.2,
|
|
232
231
|
children: [
|
|
233
|
-
|
|
234
|
-
|
|
232
|
+
w && !!tt && !!et && q && /* @__PURE__ */ i(
|
|
233
|
+
Zt,
|
|
235
234
|
{
|
|
236
|
-
containerRef:
|
|
237
|
-
onPublish:
|
|
238
|
-
onSubscribe:
|
|
235
|
+
containerRef: D,
|
|
236
|
+
onPublish: tt,
|
|
237
|
+
onSubscribe: et,
|
|
239
238
|
responseId: r
|
|
240
239
|
}
|
|
241
240
|
),
|
|
242
241
|
/* @__PURE__ */ L(
|
|
243
|
-
|
|
242
|
+
fe,
|
|
244
243
|
{
|
|
245
|
-
className:
|
|
244
|
+
className: zt,
|
|
246
245
|
$dropzoneMinWidth: Rt.width,
|
|
247
246
|
$dropzoneMinHeight: Rt.height,
|
|
248
247
|
children: [
|
|
249
|
-
|
|
250
|
-
|
|
248
|
+
Qt && !(x || m || d) && /* @__PURE__ */ i(
|
|
249
|
+
ee,
|
|
251
250
|
{
|
|
252
251
|
userType: c,
|
|
253
252
|
question: n,
|
|
254
253
|
response: e,
|
|
255
|
-
behavior:
|
|
256
|
-
layout:
|
|
254
|
+
behavior: P,
|
|
255
|
+
layout: j,
|
|
257
256
|
paperColor: C,
|
|
258
|
-
onMarkForReview:
|
|
259
|
-
actionbarHeight:
|
|
260
|
-
canResolveDoubt:
|
|
261
|
-
onResolveDoubt:
|
|
257
|
+
onMarkForReview: Bt,
|
|
258
|
+
actionbarHeight: Wt,
|
|
259
|
+
canResolveDoubt: It,
|
|
260
|
+
onResolveDoubt: Lt,
|
|
262
261
|
worksheetCompleted: g
|
|
263
262
|
}
|
|
264
263
|
),
|
|
265
|
-
x && /* @__PURE__ */ i(
|
|
266
|
-
|
|
264
|
+
x && /* @__PURE__ */ i(he, { src: Gt.LESSON_OVERVIEW_BANNER }),
|
|
265
|
+
m && C && /* @__PURE__ */ i(re, { paperColor: C }),
|
|
267
266
|
d ? /* @__PURE__ */ L(Vt, { children: [
|
|
268
|
-
f === "practice-basic" && /* @__PURE__ */ i(
|
|
269
|
-
f === "practice-regular" && /* @__PURE__ */ i(
|
|
270
|
-
f === "exit-ticket" && /* @__PURE__ */ i(
|
|
271
|
-
(f == null ? void 0 : f.startsWith("advanced-")) && /* @__PURE__ */ i(
|
|
267
|
+
f === "practice-basic" && /* @__PURE__ */ i(ce, {}),
|
|
268
|
+
f === "practice-regular" && /* @__PURE__ */ i(se, {}),
|
|
269
|
+
f === "exit-ticket" && /* @__PURE__ */ i(ae, {}),
|
|
270
|
+
(f == null ? void 0 : f.startsWith("advanced-")) && /* @__PURE__ */ i(ne, {})
|
|
272
271
|
] }) : void 0,
|
|
273
272
|
/* @__PURE__ */ i(
|
|
274
|
-
|
|
273
|
+
ie,
|
|
275
274
|
{
|
|
276
|
-
signedRequest:
|
|
275
|
+
signedRequest: Ct,
|
|
277
276
|
appended: a,
|
|
278
277
|
question: n,
|
|
279
278
|
response: e == null ? void 0 : e.response,
|
|
280
|
-
canRender: V ||
|
|
279
|
+
canRender: V || w,
|
|
281
280
|
learnosity: b,
|
|
282
281
|
canForceAppend: c === "TEACHER",
|
|
283
|
-
isConceptIntro:
|
|
282
|
+
isConceptIntro: m,
|
|
284
283
|
simState: e == null ? void 0 : e.simState,
|
|
285
|
-
onMediaStateChange:
|
|
286
|
-
imageHue: lt,
|
|
287
|
-
isPuzzle: Q === -2
|
|
284
|
+
onMediaStateChange: yt
|
|
288
285
|
}
|
|
289
286
|
),
|
|
290
|
-
!
|
|
291
|
-
|
|
287
|
+
!Q && q && Z && J && W !== void 0 && /* @__PURE__ */ i(de, { $canScribble: k, children: /* @__PURE__ */ i(
|
|
288
|
+
Yt,
|
|
292
289
|
{
|
|
293
290
|
canRender: V,
|
|
294
|
-
canScribble:
|
|
291
|
+
canScribble: k && w,
|
|
295
292
|
appended: a,
|
|
296
293
|
canvasId: r,
|
|
297
294
|
width: X,
|
|
298
|
-
height: Math.max(W,
|
|
299
|
-
onUpdateHeight:
|
|
300
|
-
onPublish:
|
|
301
|
-
onSubscribe:
|
|
302
|
-
userId:
|
|
295
|
+
height: Math.max(W, ot ?? 0),
|
|
296
|
+
onUpdateHeight: Kt,
|
|
297
|
+
onPublish: Z,
|
|
298
|
+
onSubscribe: J,
|
|
299
|
+
userId: xt,
|
|
303
300
|
initialData: O == null ? void 0 : O[r],
|
|
304
301
|
userType: c
|
|
305
302
|
}
|
|
306
303
|
) }),
|
|
307
|
-
!
|
|
308
|
-
|
|
304
|
+
!Q && U && U.length > 0 && /* @__PURE__ */ i(
|
|
305
|
+
Ht,
|
|
309
306
|
{
|
|
310
307
|
$background: "BLUE_1",
|
|
311
308
|
$gutterX: 1,
|
|
312
309
|
$gapX: 0.5,
|
|
313
310
|
$borderRadiusX: 0,
|
|
314
311
|
$borderColor: "BLUE_2",
|
|
315
|
-
children:
|
|
316
|
-
|
|
312
|
+
children: U.map((t, s) => /* @__PURE__ */ i(
|
|
313
|
+
ge,
|
|
317
314
|
{
|
|
318
315
|
dangerouslySetInnerHTML: {
|
|
319
316
|
__html: `<span style="color: #DA5107; font-weight: 600;">Hint${((h == null ? void 0 : h.length) ?? 0) > 1 ? ` ${s + 1}` : ""}:</span> ${t}`
|
|
@@ -323,8 +320,8 @@ const Oe = Xt(
|
|
|
323
320
|
))
|
|
324
321
|
}
|
|
325
322
|
),
|
|
326
|
-
|
|
327
|
-
|
|
323
|
+
Dt && /* @__PURE__ */ i(
|
|
324
|
+
Ht,
|
|
328
325
|
{
|
|
329
326
|
$background: "YELLOW_1",
|
|
330
327
|
$gutterX: 1,
|
|
@@ -332,7 +329,7 @@ const Oe = Xt(
|
|
|
332
329
|
$borderRadiusX: 0,
|
|
333
330
|
$borderColor: "YELLOW_2",
|
|
334
331
|
children: /* @__PURE__ */ i(
|
|
335
|
-
|
|
332
|
+
Ee,
|
|
336
333
|
{
|
|
337
334
|
dangerouslySetInnerHTML: {
|
|
338
335
|
__html: `<div style="color: #DA5107; font-weight: 600;">Solution:</div>${B}`
|
|
@@ -341,16 +338,16 @@ const Oe = Xt(
|
|
|
341
338
|
)
|
|
342
339
|
}
|
|
343
340
|
),
|
|
344
|
-
!!
|
|
345
|
-
|
|
341
|
+
!!rt && /* @__PURE__ */ i(
|
|
342
|
+
oe,
|
|
346
343
|
{
|
|
347
|
-
responses:
|
|
344
|
+
responses: At,
|
|
348
345
|
response: e,
|
|
349
|
-
nextQuestionId:
|
|
346
|
+
nextQuestionId: v,
|
|
350
347
|
responseId: r,
|
|
351
|
-
studentId:
|
|
348
|
+
studentId: Tt,
|
|
352
349
|
userType: c,
|
|
353
|
-
...
|
|
350
|
+
...rt
|
|
354
351
|
}
|
|
355
352
|
)
|
|
356
353
|
]
|
|
@@ -365,6 +362,6 @@ const Oe = Xt(
|
|
|
365
362
|
}
|
|
366
363
|
);
|
|
367
364
|
export {
|
|
368
|
-
|
|
365
|
+
Me as default
|
|
369
366
|
};
|
|
370
367
|
//# sourceMappingURL=worksheet-question.js.map
|