@cuemath/leap 3.5.47-gg6 → 3.5.48-link.0
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/line-icons/icons/bulb.js +10 -10
- package/dist/assets/line-icons/icons/bulb.js.map +1 -1
- package/dist/assets/line-icons/icons/hand.js.map +1 -1
- package/dist/assets/line-icons/icons/scribble.js +36 -13
- package/dist/assets/line-icons/icons/scribble.js.map +1 -1
- package/dist/assets/line-icons/icons/sticker.js +9 -9
- package/dist/assets/line-icons/icons/sticker.js.map +1 -1
- package/dist/features/analytics-events/whitelist-events.js +14 -16
- package/dist/features/analytics-events/whitelist-events.js.map +1 -1
- package/dist/features/circle-games/games/web-view/web-view-analytics-events.js.map +1 -1
- package/dist/features/cue-canvas/sidebar/puzzles/api/get-puzzles.js.map +1 -1
- package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js +6 -6
- package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js.map +1 -1
- package/dist/features/journey/hooks/use-home-page-journey/recent-chapters-mock.js +2 -2
- package/dist/features/journey/hooks/use-home-page-journey/recent-chapters-mock.js.map +1 -1
- package/dist/features/journey/mocks/chapter-page-journey-mock-data.js +29 -64
- package/dist/features/journey/mocks/chapter-page-journey-mock-data.js.map +1 -1
- package/dist/features/milestone/milestone-tests/tests-creation/test-stages/test-preview/test-preview.js +9 -9
- package/dist/features/milestone/milestone-tests/tests-creation/test-stages/test-preview/test-preview.js.map +1 -1
- package/dist/features/trial-session/comps/school-goals/school-goals-styled.js +8 -5
- package/dist/features/trial-session/comps/school-goals/school-goals-styled.js.map +1 -1
- package/dist/features/trial-session/comps/school-goals/school-goals-view.js +35 -32
- package/dist/features/trial-session/comps/school-goals/school-goals-view.js.map +1 -1
- package/dist/features/trial-session/comps/school-goals/school-goals.js +47 -45
- package/dist/features/trial-session/comps/school-goals/school-goals.js.map +1 -1
- package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js +44 -51
- package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js.map +1 -1
- package/dist/features/trial-session/comps/test-prep/test-prep.js +39 -46
- package/dist/features/trial-session/comps/test-prep/test-prep.js.map +1 -1
- package/dist/features/trial-session/comps/trial-circle-game/trial-circle-game.js +120 -144
- package/dist/features/trial-session/comps/trial-circle-game/trial-circle-game.js.map +1 -1
- package/dist/features/trial-session/helper.js +49 -54
- package/dist/features/trial-session/helper.js.map +1 -1
- package/dist/features/trial-session/hooks/use-slide-config-update.js +65 -62
- package/dist/features/trial-session/hooks/use-slide-config-update.js.map +1 -1
- package/dist/features/trial-session/trial-session-view.js +45 -48
- package/dist/features/trial-session/trial-session-view.js.map +1 -1
- package/dist/features/ui/tabs/tabs.js +15 -15
- package/dist/features/ui/tabs/tabs.js.map +1 -1
- package/dist/features/worksheet/learnosity-preloader/learnosity-preloader.js +1 -0
- package/dist/features/worksheet/learnosity-preloader/learnosity-preloader.js.map +1 -1
- package/dist/features/worksheet/worksheet/constants.js +13 -12
- package/dist/features/worksheet/worksheet/constants.js.map +1 -1
- package/dist/features/worksheet/worksheet/question-tips.js +100 -0
- package/dist/features/worksheet/worksheet/question-tips.js.map +1 -0
- package/dist/features/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.js +109 -40
- package/dist/features/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-behavior-helper.js +7 -7
- package/dist/features/worksheet/worksheet/worksheet-behavior-helper.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-calculator/worksheet-calculator.js +4 -4
- package/dist/features/worksheet/worksheet/worksheet-calculator/worksheet-calculator.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/subjective-styled.js +22 -17
- package/dist/features/worksheet/worksheet/worksheet-question/subjective-styled.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js +24 -23
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +220 -192
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/scribble-switch.js +53 -0
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/scribble-switch.js.map +1 -0
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/use-handler-callbacks.js +103 -73
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/use-handler-callbacks.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js +251 -213
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-sidebar/navigator.js +20 -33
- package/dist/features/worksheet/worksheet/worksheet-sidebar/navigator.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-sidebar/question-guide.js +112 -0
- package/dist/features/worksheet/worksheet/worksheet-sidebar/question-guide.js.map +1 -0
- package/dist/features/worksheet/worksheet/worksheet-sidebar/sidebar.js +61 -0
- package/dist/features/worksheet/worksheet/worksheet-sidebar/sidebar.js.map +1 -0
- package/dist/features/worksheet/worksheet/worksheet-sidebar/worksheet-sidebar-styled.js +91 -0
- package/dist/features/worksheet/worksheet/worksheet-sidebar/worksheet-sidebar-styled.js.map +1 -0
- package/dist/features/worksheet/worksheet/worksheet-store.js +132 -138
- package/dist/features/worksheet/worksheet/worksheet-store.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-styled.js +83 -29
- package/dist/features/worksheet/worksheet/worksheet-styled.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-summary-controller/worksheet-summary-controller.js +24 -45
- package/dist/features/worksheet/worksheet/worksheet-summary-controller/worksheet-summary-controller.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-types.js +2 -3
- package/dist/features/worksheet/worksheet/worksheet-types.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-view.js +99 -88
- package/dist/features/worksheet/worksheet/worksheet-view.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet.js +95 -96
- package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js +29 -29
- package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js +1 -1
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js +24 -24
- package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js.map +1 -1
- package/dist/index.d.ts +14 -32
- package/dist/index.js +745 -760
- package/dist/index.js.map +1 -1
- package/dist/types/models/worksheet.js +1 -2
- package/dist/types/models/worksheet.js.map +1 -1
- package/package.json +1 -1
- package/dist/assets/line-icons/icons/chevron-up.js +0 -28
- package/dist/assets/line-icons/icons/chevron-up.js.map +0 -1
- package/dist/assets/line-icons/icons/close.js +0 -28
- package/dist/assets/line-icons/icons/close.js.map +0 -1
- package/dist/assets/line-icons/icons/cursor2.js +0 -24
- package/dist/assets/line-icons/icons/cursor2.js.map +0 -1
- package/dist/assets/line-icons/icons/hints.js +0 -25
- package/dist/assets/line-icons/icons/hints.js.map +0 -1
- package/dist/assets/line-icons/icons/question-feedback.js +0 -30
- package/dist/assets/line-icons/icons/question-feedback.js.map +0 -1
- package/dist/assets/line-icons/icons/teaching-tools.js +0 -40
- package/dist/assets/line-icons/icons/teaching-tools.js.map +0 -1
- package/dist/assets/line-icons/icons/tval-question.js +0 -32
- package/dist/assets/line-icons/icons/tval-question.js.map +0 -1
- package/dist/features/trial-session/comps/trial-circle-game/trial-circle-game-analytics-events.js +0 -11
- package/dist/features/trial-session/comps/trial-circle-game/trial-circle-game-analytics-events.js.map +0 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-tools/questions-toolbar/questions-toolbar-styled.js +0 -49
- package/dist/features/worksheet/worksheet/worksheet-questions-tools/questions-toolbar/questions-toolbar-styled.js.map +0 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-tools/questions-toolbar/questions-toolbar.js +0 -184
- package/dist/features/worksheet/worksheet/worksheet-questions-tools/questions-toolbar/questions-toolbar.js.map +0 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-tools/scribble-switch.js +0 -65
- package/dist/features/worksheet/worksheet/worksheet-questions-tools/scribble-switch.js.map +0 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-tools/worksheet-questions-styled.js +0 -9
- package/dist/features/worksheet/worksheet/worksheet-questions-tools/worksheet-questions-styled.js.map +0 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-tools/worksheet-questions-tools.js +0 -38
- package/dist/features/worksheet/worksheet/worksheet-questions-tools/worksheet-questions-tools.js.map +0 -1
- package/dist/features/worksheet/worksheet/worksheet-teaching-tools/worksheet-teaching-tools-styled.js +0 -19
- package/dist/features/worksheet/worksheet/worksheet-teaching-tools/worksheet-teaching-tools-styled.js.map +0 -1
- package/dist/features/worksheet/worksheet/worksheet-teaching-tools/worksheet-teaching-tools.js +0 -66
- package/dist/features/worksheet/worksheet/worksheet-teaching-tools/worksheet-teaching-tools.js.map +0 -1
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { memo 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
|
|
19
|
-
import { useWorksheetStore as
|
|
20
|
-
const
|
|
21
|
-
question:
|
|
1
|
+
import { jsxs as I, jsx as o, Fragment as Le } from "react/jsx-runtime";
|
|
2
|
+
import { memo as Ae, useMemo as g, useState as O, useRef as z, useCallback as Be, useEffect as R, useLayoutEffect as Ne } from "react";
|
|
3
|
+
import { IMAGES as Oe } from "../../../../assets/images/images.js";
|
|
4
|
+
import ze from "../../../cue-canvas/cue-canvas.js";
|
|
5
|
+
import je from "../../../pointer-sync/pointer.js";
|
|
6
|
+
import Se from "../../../ui/layout/flex-view.js";
|
|
7
|
+
import Fe from "../../constants/events.js";
|
|
8
|
+
import { QUESTIONS_GAP as Ue, LEARNOSITY_KEYBOARD_HEIGHT as ye } from "../constants.js";
|
|
9
|
+
import { getPaperColorByQuestion as Ke, isConceptIntroWidget as Ve, scrollToQuestion as Xe } from "../worksheet-helpers.js";
|
|
10
|
+
import Ge from "./header/header.js";
|
|
11
|
+
import Ye from "./learnosity-question.js";
|
|
12
|
+
import Ze from "./question-backdrop/question-backdrop.js";
|
|
13
|
+
import Je from "./subjective-review.js";
|
|
14
|
+
import qe from "./system-intros/advanced-practice-intro.js";
|
|
15
|
+
import et from "./system-intros/basic-practice-intro.js";
|
|
16
|
+
import tt from "./system-intros/exit-ticket-intro.js";
|
|
17
|
+
import ot from "./system-intros/regular-practice-intro.js";
|
|
18
|
+
import { QuestionContainerWrapper as it, StimulusReview as nt, QuestionContainer as rt, QuestionWrapper as st, LessonOverviewBanner as at, CueCanvasWrapper as ct, Hint as ut, Solution as lt } from "./worksheet-question-styled.js";
|
|
19
|
+
import { useWorksheetStore as dt } from "../hooks/use-worksheet-store.js";
|
|
20
|
+
const Tt = Ae(function({
|
|
21
|
+
question: r,
|
|
22
22
|
response: t,
|
|
23
|
-
nextQuestionId:
|
|
24
|
-
isActive:
|
|
25
|
-
isHidden:
|
|
26
|
-
canRender:
|
|
23
|
+
nextQuestionId: Re,
|
|
24
|
+
isActive: v,
|
|
25
|
+
isHidden: W,
|
|
26
|
+
canRender: j,
|
|
27
27
|
appended: s,
|
|
28
|
-
intersectionObserver:
|
|
28
|
+
intersectionObserver: F
|
|
29
29
|
}) {
|
|
30
30
|
const {
|
|
31
|
-
behavior:
|
|
32
|
-
layout:
|
|
31
|
+
behavior: _,
|
|
32
|
+
layout: U,
|
|
33
33
|
userType: c,
|
|
34
|
-
responses:
|
|
35
|
-
maxQuestionWidth:
|
|
36
|
-
actionbarHeight:
|
|
37
|
-
worksheetCompleted:
|
|
38
|
-
learnosity:
|
|
39
|
-
onPublishStrokes:
|
|
40
|
-
onReceiveStrokes:
|
|
41
|
-
initialStrokesData:
|
|
34
|
+
responses: _e,
|
|
35
|
+
maxQuestionWidth: K,
|
|
36
|
+
actionbarHeight: $e,
|
|
37
|
+
worksheetCompleted: E,
|
|
38
|
+
learnosity: $,
|
|
39
|
+
onPublishStrokes: V,
|
|
40
|
+
onReceiveStrokes: X,
|
|
41
|
+
initialStrokesData: x,
|
|
42
42
|
onPublishMouseMove: G,
|
|
43
|
-
onSubscribeMouseMove:
|
|
44
|
-
canResolveDoubt:
|
|
45
|
-
onResolveDoubt:
|
|
46
|
-
userId:
|
|
47
|
-
studentId:
|
|
48
|
-
subjectiveProps:
|
|
43
|
+
onSubscribeMouseMove: Y,
|
|
44
|
+
canResolveDoubt: we,
|
|
45
|
+
onResolveDoubt: Ce,
|
|
46
|
+
userId: He,
|
|
47
|
+
studentId: Me,
|
|
48
|
+
subjectiveProps: Z,
|
|
49
49
|
loggerRef: T,
|
|
50
|
-
isScribblingEnabled:
|
|
51
|
-
} =
|
|
50
|
+
isScribblingEnabled: J
|
|
51
|
+
} = dt((e) => ({
|
|
52
52
|
behavior: e.behavior,
|
|
53
53
|
layout: e.layout,
|
|
54
54
|
userType: e.userType,
|
|
@@ -69,254 +69,282 @@ const Ht = Qe(function({
|
|
|
69
69
|
subjectiveProps: e.subjectiveProps,
|
|
70
70
|
loggerRef: e.loggerRef,
|
|
71
71
|
isScribblingEnabled: e.scribblingEnabled
|
|
72
|
-
})), { background:
|
|
73
|
-
() =>
|
|
74
|
-
[
|
|
75
|
-
), [C,
|
|
72
|
+
})), { background: q = "paper" } = U, w = g(
|
|
73
|
+
() => q === "paper" ? Ke(r) : void 0,
|
|
74
|
+
[q, r]
|
|
75
|
+
), [C, Ie] = O(), [ee, We] = O(), {
|
|
76
|
+
validation: te,
|
|
77
|
+
review: k,
|
|
78
|
+
maximumAttempts: Q,
|
|
79
|
+
canExceedAttempts: oe,
|
|
80
|
+
teacherValidationEnabled: D,
|
|
81
|
+
solutionHidden: ie
|
|
82
|
+
} = _, { minQuestionHeight: xe, topOffset: ne, questionsScrollable: re, renderQuestionHeader: Te, imageHue: se } = U, {
|
|
76
83
|
type: p,
|
|
77
|
-
response_id:
|
|
78
|
-
stimulus_review:
|
|
79
|
-
item_type:
|
|
80
|
-
instructor_stimulus:
|
|
81
|
-
metadata: { hints:
|
|
82
|
-
item_reference:
|
|
83
|
-
question_number:
|
|
84
|
-
item_number:
|
|
85
|
-
item_display_number:
|
|
86
|
-
} =
|
|
84
|
+
response_id: i,
|
|
85
|
+
stimulus_review: S,
|
|
86
|
+
item_type: m,
|
|
87
|
+
instructor_stimulus: ae,
|
|
88
|
+
metadata: { hints: h, solution: P, widget_reference: ce },
|
|
89
|
+
item_reference: ue,
|
|
90
|
+
question_number: le,
|
|
91
|
+
item_number: de,
|
|
92
|
+
item_display_number: me
|
|
93
|
+
} = r, H = m === "overview", l = Ve(ae), f = ae === "SystemIntro", L = l || f, he = t == null ? void 0 : t.responseEdited, ke = g(() => {
|
|
87
94
|
const e = [];
|
|
88
|
-
return
|
|
95
|
+
return he && c === "TEACHER" && e.push("attempting"), s || e.push("hidden"), p === "hotspot" && e.push("correct-answers-hidden"), s && D && p === "clozetext" && (!l || c === "STUDENT" ? e.push("response-hidden") : e.push("response-code-hidden")), H && e.push("lesson-overview"), l && e.push("concept-intro"), f && e.push("system-intro"), e.join(" ");
|
|
89
96
|
}, [
|
|
90
97
|
s,
|
|
91
98
|
l,
|
|
92
|
-
|
|
99
|
+
H,
|
|
93
100
|
f,
|
|
94
101
|
p,
|
|
95
|
-
|
|
96
|
-
|
|
102
|
+
he,
|
|
103
|
+
D,
|
|
97
104
|
c
|
|
98
|
-
]), A = z({}),
|
|
105
|
+
]), A = z({}), fe = (t == null ? void 0 : t.hintsUsed) ?? 0, M = z(null), B = z(null), N = g(() => h == null ? void 0 : h.slice(0, fe), [h, fe]), pe = g(() => c === "TEACHER" || E ? !0 : !t || !t.response || t.responseEdited ? !1 : te, [t, c, te, E]), be = g(() => {
|
|
99
106
|
if (c === "TEACHER") return !0;
|
|
100
107
|
if (k) {
|
|
101
108
|
const { attemptsHistory: e } = t ?? {};
|
|
102
|
-
return ((e == null ? void 0 : e.length) ?? 0) >= Q && !
|
|
109
|
+
return ((e == null ? void 0 : e.length) ?? 0) >= Q && !oe;
|
|
103
110
|
}
|
|
104
111
|
return !1;
|
|
105
|
-
}, [
|
|
112
|
+
}, [oe, Q, t, k, c]), Qe = g(
|
|
113
|
+
() => P && E && !ie,
|
|
114
|
+
[ie, P, E]
|
|
115
|
+
), [ge, De] = O({
|
|
106
116
|
width: 0,
|
|
107
117
|
height: 0
|
|
108
|
-
}),
|
|
109
|
-
|
|
118
|
+
}), Pe = Be((e) => {
|
|
119
|
+
We(e);
|
|
110
120
|
}, []);
|
|
111
121
|
return R(() => {
|
|
112
|
-
|
|
113
|
-
}, [
|
|
114
|
-
if (s && (
|
|
122
|
+
M.current && F.observe(M.current);
|
|
123
|
+
}, [F]), R(() => {
|
|
124
|
+
if (s && (r.type === "clozeassociation" || r.type === "association" || r.type === "clozeformula")) {
|
|
115
125
|
const e = document.querySelectorAll(
|
|
116
|
-
`.widget-${
|
|
126
|
+
`.widget-${r.response_id} .lrn_draggable`
|
|
117
127
|
);
|
|
118
|
-
let a = 0,
|
|
128
|
+
let a = 0, n = 0;
|
|
119
129
|
e.forEach((u) => {
|
|
120
|
-
a = Math.max(a, u.clientWidth + 33),
|
|
121
|
-
}),
|
|
122
|
-
width:
|
|
123
|
-
height:
|
|
130
|
+
a = Math.max(a, u.clientWidth + 33), n = Math.max(n, u.clientHeight + 1);
|
|
131
|
+
}), De({
|
|
132
|
+
width: r.type !== "association" ? a : 0,
|
|
133
|
+
height: n
|
|
124
134
|
});
|
|
125
135
|
}
|
|
126
|
-
}, [s,
|
|
127
|
-
if (s &&
|
|
128
|
-
const e =
|
|
136
|
+
}, [s, r.response_id, r.type]), R(() => {
|
|
137
|
+
if (s && pe) {
|
|
138
|
+
const e = $.question(i);
|
|
129
139
|
e && e.validate({
|
|
130
|
-
showCorrectAnswers:
|
|
140
|
+
showCorrectAnswers: be
|
|
131
141
|
});
|
|
132
142
|
}
|
|
133
|
-
}, [s,
|
|
143
|
+
}, [s, $, i, k, be, c, pe]), R(() => {
|
|
134
144
|
const e = B.current;
|
|
135
|
-
if (s && e && T.current && A.current[
|
|
136
|
-
const a = e.clientWidth,
|
|
137
|
-
for (let u = 0; u <
|
|
138
|
-
const
|
|
139
|
-
if (
|
|
145
|
+
if (s && e && T.current && A.current[i] === void 0 && !l && !f) {
|
|
146
|
+
const a = e.clientWidth, n = e.querySelectorAll("*");
|
|
147
|
+
for (let u = 0; u < n.length; u++) {
|
|
148
|
+
const d = n[u];
|
|
149
|
+
if (d != null && d.closest(".resize-sensor"))
|
|
140
150
|
continue;
|
|
141
|
-
if (((
|
|
142
|
-
A.current[
|
|
143
|
-
item_reference:
|
|
144
|
-
widget_reference:
|
|
151
|
+
if (((d == null ? void 0 : d.clientWidth) ?? 0) > a) {
|
|
152
|
+
A.current[i] = !0, T.current(Fe.WORKSHEET_V3_GREATER_WIDTH_ELEMENT, {
|
|
153
|
+
item_reference: ue,
|
|
154
|
+
widget_reference: ce,
|
|
145
155
|
question_type: p,
|
|
146
|
-
question_number:
|
|
147
|
-
responseId:
|
|
148
|
-
item_number:
|
|
149
|
-
item_display_number:
|
|
156
|
+
question_number: le,
|
|
157
|
+
responseId: i,
|
|
158
|
+
item_number: de,
|
|
159
|
+
item_display_number: me
|
|
150
160
|
});
|
|
151
161
|
break;
|
|
152
162
|
}
|
|
153
163
|
}
|
|
154
|
-
A.current[
|
|
164
|
+
A.current[i] = !1;
|
|
155
165
|
}
|
|
156
166
|
}, [
|
|
157
167
|
s,
|
|
158
168
|
l,
|
|
159
169
|
f,
|
|
160
|
-
|
|
170
|
+
me,
|
|
171
|
+
de,
|
|
161
172
|
ue,
|
|
162
|
-
ae,
|
|
163
173
|
T,
|
|
164
174
|
p,
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
175
|
+
le,
|
|
176
|
+
i,
|
|
177
|
+
ce
|
|
168
178
|
]), R(() => {
|
|
169
|
-
const e =
|
|
170
|
-
const u =
|
|
171
|
-
if (
|
|
179
|
+
const e = M.current, a = (n) => {
|
|
180
|
+
const u = n.querySelector(".lrn_response_wrapper");
|
|
181
|
+
if (L || !u)
|
|
172
182
|
return 0;
|
|
173
|
-
const
|
|
174
|
-
return b <
|
|
183
|
+
const d = n.getBoundingClientRect().bottom, y = u.getBoundingClientRect().bottom, b = Math.abs(d - y);
|
|
184
|
+
return b < ye ? ye - b : 0;
|
|
175
185
|
};
|
|
176
|
-
s && e &&
|
|
177
|
-
var
|
|
178
|
-
const
|
|
186
|
+
s && e && Ie((n) => {
|
|
187
|
+
var Ee;
|
|
188
|
+
const y = ((Ee = r.ui_style) == null ? void 0 : Ee.type) === "floating-keyboard" && !(D && p === "clozetext"), b = e.clientHeight;
|
|
179
189
|
if (b === 0)
|
|
180
|
-
return
|
|
181
|
-
if (!
|
|
190
|
+
return n;
|
|
191
|
+
if (!n)
|
|
182
192
|
return Math.ceil(
|
|
183
|
-
b + (
|
|
193
|
+
b + (y ? a(e) : 0)
|
|
184
194
|
);
|
|
185
|
-
const
|
|
186
|
-
b + (
|
|
195
|
+
const ve = Math.ceil(
|
|
196
|
+
b + (y ? a(e) : 0)
|
|
187
197
|
);
|
|
188
|
-
return Math.abs(
|
|
189
|
-
}),
|
|
190
|
-
}),
|
|
191
|
-
!
|
|
192
|
-
}, [
|
|
193
|
-
|
|
198
|
+
return Math.abs(ve - n) > 4 ? ve : n;
|
|
199
|
+
}), $.renderMath("mathjax");
|
|
200
|
+
}), Ne(() => {
|
|
201
|
+
!re && !W && Xe(i);
|
|
202
|
+
}, [W, re, i, ne]), /* @__PURE__ */ I(
|
|
203
|
+
it,
|
|
194
204
|
{
|
|
195
|
-
"data-response-id":
|
|
196
|
-
className: `widget-${
|
|
197
|
-
ref:
|
|
198
|
-
$topOffset:
|
|
199
|
-
$flexDirection:
|
|
200
|
-
$alignItems:
|
|
201
|
-
$hidden:
|
|
202
|
-
$marginBottom:
|
|
205
|
+
"data-response-id": i,
|
|
206
|
+
className: `widget-${i}`,
|
|
207
|
+
ref: M,
|
|
208
|
+
$topOffset: ne,
|
|
209
|
+
$flexDirection: S ? "row" : "column",
|
|
210
|
+
$alignItems: S ? "flex-start" : "center",
|
|
211
|
+
$hidden: W,
|
|
212
|
+
$marginBottom: Ue,
|
|
203
213
|
children: [
|
|
204
|
-
|
|
205
|
-
|
|
214
|
+
S && /* @__PURE__ */ o(
|
|
215
|
+
nt,
|
|
206
216
|
{
|
|
207
217
|
dangerouslySetInnerHTML: {
|
|
208
|
-
__html:
|
|
218
|
+
__html: S
|
|
209
219
|
}
|
|
210
220
|
}
|
|
211
221
|
),
|
|
212
|
-
/* @__PURE__ */
|
|
213
|
-
|
|
222
|
+
/* @__PURE__ */ I(
|
|
223
|
+
rt,
|
|
214
224
|
{
|
|
215
225
|
ref: B,
|
|
216
|
-
$width:
|
|
217
|
-
$minHeight: C ? Math.max(C - 72,
|
|
218
|
-
$isActive:
|
|
226
|
+
$width: S ? "50%" : `${K}px`,
|
|
227
|
+
$minHeight: C ? Math.max(C - 72, ee ?? 0) : xe,
|
|
228
|
+
$isActive: v,
|
|
219
229
|
$paperColor: w,
|
|
220
|
-
$opacity:
|
|
221
|
-
$imageHue:
|
|
230
|
+
$opacity: v ? 1 : 0.2,
|
|
231
|
+
$imageHue: se,
|
|
222
232
|
children: [
|
|
223
|
-
|
|
224
|
-
|
|
233
|
+
v && !!G && !!Y && !!_.canvasEnabled && /* @__PURE__ */ o(
|
|
234
|
+
je,
|
|
225
235
|
{
|
|
226
236
|
containerRef: B,
|
|
227
237
|
onPublish: G,
|
|
228
|
-
onSubscribe:
|
|
229
|
-
responseId:
|
|
238
|
+
onSubscribe: Y,
|
|
239
|
+
responseId: i
|
|
230
240
|
}
|
|
231
241
|
),
|
|
232
|
-
/* @__PURE__ */
|
|
233
|
-
|
|
242
|
+
/* @__PURE__ */ I(
|
|
243
|
+
st,
|
|
234
244
|
{
|
|
235
|
-
className:
|
|
236
|
-
$dropzoneMinWidth:
|
|
237
|
-
$dropzoneMinHeight:
|
|
245
|
+
className: ke,
|
|
246
|
+
$dropzoneMinWidth: ge.width,
|
|
247
|
+
$dropzoneMinHeight: ge.height,
|
|
238
248
|
children: [
|
|
239
|
-
|
|
240
|
-
|
|
249
|
+
Te && !(H || l || f) && /* @__PURE__ */ o(
|
|
250
|
+
Ge,
|
|
241
251
|
{
|
|
242
|
-
question:
|
|
252
|
+
question: r,
|
|
243
253
|
response: t,
|
|
244
|
-
behavior:
|
|
254
|
+
behavior: _,
|
|
245
255
|
paperColor: w,
|
|
246
|
-
actionbarHeight:
|
|
247
|
-
canResolveDoubt:
|
|
248
|
-
onResolveDoubt:
|
|
249
|
-
worksheetCompleted:
|
|
256
|
+
actionbarHeight: $e,
|
|
257
|
+
canResolveDoubt: we,
|
|
258
|
+
onResolveDoubt: Ce,
|
|
259
|
+
worksheetCompleted: E
|
|
250
260
|
}
|
|
251
261
|
),
|
|
252
|
-
|
|
253
|
-
l && w && /* @__PURE__ */
|
|
254
|
-
f ? /* @__PURE__ */
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
(
|
|
262
|
+
H && /* @__PURE__ */ o(at, { src: Oe.LESSON_OVERVIEW_BANNER }),
|
|
263
|
+
l && w && /* @__PURE__ */ o(Ze, { paperColor: w }),
|
|
264
|
+
f ? /* @__PURE__ */ I(Le, { children: [
|
|
265
|
+
m === "practice-basic" && /* @__PURE__ */ o(et, {}),
|
|
266
|
+
m === "practice-regular" && /* @__PURE__ */ o(ot, {}),
|
|
267
|
+
m === "exit-ticket" && /* @__PURE__ */ o(tt, {}),
|
|
268
|
+
(m == null ? void 0 : m.startsWith("advanced-")) && /* @__PURE__ */ o(qe, {})
|
|
259
269
|
] }) : void 0,
|
|
260
|
-
/* @__PURE__ */
|
|
261
|
-
|
|
270
|
+
/* @__PURE__ */ o(
|
|
271
|
+
Ye,
|
|
262
272
|
{
|
|
263
273
|
appended: s,
|
|
264
|
-
question:
|
|
274
|
+
question: r,
|
|
265
275
|
response: t == null ? void 0 : t.response,
|
|
266
|
-
canRender:
|
|
267
|
-
learnosity:
|
|
276
|
+
canRender: j || v,
|
|
277
|
+
learnosity: $,
|
|
268
278
|
canForceAppend: c === "TEACHER",
|
|
269
279
|
isConceptIntro: l,
|
|
270
280
|
simState: t == null ? void 0 : t.simState,
|
|
271
|
-
imageHue:
|
|
281
|
+
imageHue: se,
|
|
272
282
|
isPuzzle: Q === -2
|
|
273
283
|
}
|
|
274
284
|
),
|
|
275
|
-
!
|
|
276
|
-
|
|
285
|
+
!L && !!_.canvasEnabled && V && X && C !== void 0 && /* @__PURE__ */ o(ct, { $canScribble: J, children: /* @__PURE__ */ o(
|
|
286
|
+
ze,
|
|
277
287
|
{
|
|
278
|
-
canRender:
|
|
279
|
-
canScribble:
|
|
288
|
+
canRender: j,
|
|
289
|
+
canScribble: J && v,
|
|
280
290
|
appended: s,
|
|
281
|
-
canvasId:
|
|
282
|
-
width:
|
|
283
|
-
height: Math.max(C,
|
|
284
|
-
onUpdateHeight:
|
|
285
|
-
onPublish:
|
|
286
|
-
onSubscribe:
|
|
287
|
-
userId:
|
|
288
|
-
initialData:
|
|
291
|
+
canvasId: i,
|
|
292
|
+
width: K,
|
|
293
|
+
height: Math.max(C, ee ?? 0),
|
|
294
|
+
onUpdateHeight: Pe,
|
|
295
|
+
onPublish: V,
|
|
296
|
+
onSubscribe: X,
|
|
297
|
+
userId: He,
|
|
298
|
+
initialData: x == null ? void 0 : x[i],
|
|
289
299
|
userType: c
|
|
290
300
|
}
|
|
291
301
|
) }),
|
|
292
|
-
!
|
|
293
|
-
|
|
302
|
+
!L && N && N.length > 0 && /* @__PURE__ */ o(
|
|
303
|
+
Se,
|
|
294
304
|
{
|
|
295
305
|
$background: "BLUE_1",
|
|
296
306
|
$gutterX: 1,
|
|
297
307
|
$gapX: 0.5,
|
|
298
308
|
$borderRadiusX: 0,
|
|
299
309
|
$borderColor: "BLUE_2",
|
|
300
|
-
children:
|
|
301
|
-
|
|
310
|
+
children: N.map((e, a) => /* @__PURE__ */ o(
|
|
311
|
+
ut,
|
|
302
312
|
{
|
|
303
313
|
dangerouslySetInnerHTML: {
|
|
304
|
-
__html: `<span style="color: #DA5107; font-weight: 600;">Hint${((
|
|
314
|
+
__html: `<span style="color: #DA5107; font-weight: 600;">Hint${((h == null ? void 0 : h.length) ?? 0) > 1 ? ` ${a + 1}` : ""}:</span> ${e}`
|
|
305
315
|
}
|
|
306
316
|
},
|
|
307
317
|
e
|
|
308
318
|
))
|
|
309
319
|
}
|
|
310
320
|
),
|
|
311
|
-
|
|
312
|
-
|
|
321
|
+
Qe && /* @__PURE__ */ o(
|
|
322
|
+
Se,
|
|
323
|
+
{
|
|
324
|
+
$background: "YELLOW_1",
|
|
325
|
+
$gutterX: 1,
|
|
326
|
+
$gapX: 0.875,
|
|
327
|
+
$borderRadiusX: 0,
|
|
328
|
+
$borderColor: "YELLOW_2",
|
|
329
|
+
children: /* @__PURE__ */ o(
|
|
330
|
+
lt,
|
|
331
|
+
{
|
|
332
|
+
dangerouslySetInnerHTML: {
|
|
333
|
+
__html: `<div style="color: #DA5107; font-weight: 600;">Solution:</div>${P}`
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
)
|
|
337
|
+
}
|
|
338
|
+
),
|
|
339
|
+
!!Z && /* @__PURE__ */ o(
|
|
340
|
+
Je,
|
|
313
341
|
{
|
|
314
|
-
responses:
|
|
342
|
+
responses: _e,
|
|
315
343
|
response: t,
|
|
316
|
-
nextQuestionId:
|
|
317
|
-
responseId:
|
|
318
|
-
studentId:
|
|
319
|
-
...
|
|
344
|
+
nextQuestionId: Re,
|
|
345
|
+
responseId: i,
|
|
346
|
+
studentId: Me,
|
|
347
|
+
...Z
|
|
320
348
|
}
|
|
321
349
|
)
|
|
322
350
|
]
|
|
@@ -330,6 +358,6 @@ const Ht = Qe(function({
|
|
|
330
358
|
);
|
|
331
359
|
});
|
|
332
360
|
export {
|
|
333
|
-
|
|
361
|
+
Tt as default
|
|
334
362
|
};
|
|
335
363
|
//# sourceMappingURL=worksheet-question.js.map
|