@pie-element/math-inline 13.0.1-next.20261004041321 → 13.0.1-next.20261004165705
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/browser/author/index.js +2609 -2609
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/delivery/index.js +1 -1
- package/dist/browser/{dist-BEJysvRr.js → dist-C03rewVe.js} +2166 -2164
- package/dist/browser/dist-C03rewVe.js.map +1 -0
- package/dist/browser/editor-runtime/author/index.js +765 -765
- package/dist/browser/editor-runtime/author/index.js.map +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +1 -1
- package/dist/browser/editor-runtime/{dist-DIm9dTla.js → dist-rT_vppci.js} +2166 -2164
- package/dist/browser/editor-runtime/dist-rT_vppci.js.map +1 -0
- package/dist/browser/editor-runtime/{main-BRzLaKHg.js → main-DFt-m8c7.js} +188 -184
- package/dist/browser/editor-runtime/main-DFt-m8c7.js.map +1 -0
- package/dist/browser/editor-runtime/print/index.js +2 -2
- package/dist/browser/{main-Y4QqyTGp.js → main-CGx3EYDa.js} +188 -184
- package/dist/browser/main-CGx3EYDa.js.map +1 -0
- package/dist/browser/print/index.js +2 -2
- package/dist/delivery/__tests__/page-unique-ids.test.d.ts +1 -0
- package/dist/delivery/main.js +90 -90
- package/dist/delivery/simple-question-block.js +18 -18
- package/dist/index.iife.js +43 -43
- package/module/print.js +2181 -2175
- package/module/print.js.map +1 -1
- package/package.json +7 -7
- package/dist/browser/dist-BEJysvRr.js.map +0 -1
- package/dist/browser/editor-runtime/dist-DIm9dTla.js.map +0 -1
- package/dist/browser/editor-runtime/main-BRzLaKHg.js.map +0 -1
- package/dist/browser/main-Y4QqyTGp.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-DY7j01NX.js";
|
|
2
2
|
import { a as t, p as n, t as r } from "./dist-uNfb-nEm.js";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { jsx as
|
|
6
|
-
import
|
|
3
|
+
import { At as i, C as a, H as o, L as s, M as c, R as l, S as u, T as d, _ as ee, f as te, ft as f, g as p, gt as m, h, m as g, mt as _, n as v, pt as y, u as b, v as x, w as S } from "./dist-C03rewVe.js";
|
|
4
|
+
import C, { useRef as w } from "react";
|
|
5
|
+
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
6
|
+
import D from "react-dom";
|
|
7
7
|
//#region ../../lib-react/correct-answer-toggle/dist/expander.js
|
|
8
|
-
var
|
|
8
|
+
var O = /* @__PURE__ */ e(i(), 1), k = "height ease-in 300ms, opacity ease-in 300ms", A = m("div")(() => ({
|
|
9
9
|
position: "relative",
|
|
10
10
|
height: 0,
|
|
11
11
|
overflow: "hidden",
|
|
@@ -13,7 +13,7 @@ var E = /* @__PURE__ */ e(h(), 1), D = "height ease-in 300ms, opacity ease-in 30
|
|
|
13
13
|
visibility: "hidden",
|
|
14
14
|
width: 0,
|
|
15
15
|
"&.enter": {
|
|
16
|
-
transition:
|
|
16
|
+
transition: k,
|
|
17
17
|
opacity: 1,
|
|
18
18
|
height: "auto",
|
|
19
19
|
width: "auto",
|
|
@@ -27,7 +27,7 @@ var E = /* @__PURE__ */ e(h(), 1), D = "height ease-in 300ms, opacity ease-in 30
|
|
|
27
27
|
minHeight: "25px"
|
|
28
28
|
},
|
|
29
29
|
"&.exit": {
|
|
30
|
-
transition:
|
|
30
|
+
transition: k,
|
|
31
31
|
opacity: 0,
|
|
32
32
|
height: 0,
|
|
33
33
|
visibility: "visible",
|
|
@@ -39,9 +39,9 @@ var E = /* @__PURE__ */ e(h(), 1), D = "height ease-in 300ms, opacity ease-in 30
|
|
|
39
39
|
height: 0,
|
|
40
40
|
width: 0
|
|
41
41
|
}
|
|
42
|
-
})),
|
|
43
|
-
let { show: t, children: n, className: r } = e, i =
|
|
44
|
-
return /* @__PURE__ */
|
|
42
|
+
})), j = (e) => {
|
|
43
|
+
let { show: t, children: n, className: r } = e, i = w(null);
|
|
44
|
+
return /* @__PURE__ */ T(_, {
|
|
45
45
|
nodeRef: i,
|
|
46
46
|
in: t,
|
|
47
47
|
appear: !0,
|
|
@@ -53,53 +53,57 @@ var E = /* @__PURE__ */ e(h(), 1), D = "height ease-in 300ms, opacity ease-in 30
|
|
|
53
53
|
exit: "exit",
|
|
54
54
|
exitDone: "exit-done"
|
|
55
55
|
},
|
|
56
|
-
children: /* @__PURE__ */
|
|
56
|
+
children: /* @__PURE__ */ T(A, {
|
|
57
57
|
ref: i,
|
|
58
58
|
className: r,
|
|
59
59
|
children: n
|
|
60
60
|
})
|
|
61
61
|
});
|
|
62
62
|
};
|
|
63
|
-
|
|
64
|
-
show:
|
|
65
|
-
className:
|
|
66
|
-
children:
|
|
63
|
+
j.propTypes = {
|
|
64
|
+
show: O.default.bool.isRequired,
|
|
65
|
+
className: O.default.string,
|
|
66
|
+
children: O.default.oneOfType([O.default.arrayOf(O.default.node), O.default.node]).isRequired
|
|
67
67
|
};
|
|
68
68
|
//#endregion
|
|
69
69
|
//#region ../../lib-react/icons/dist/correct-response-icon.js
|
|
70
|
-
var
|
|
70
|
+
var M = ({ bgFill: e, fgFill: t }) => /* @__PURE__ */ E("svg", {
|
|
71
|
+
"aria-hidden": "true",
|
|
72
|
+
focusable: "false",
|
|
71
73
|
preserveAspectRatio: "xMinYMin meet",
|
|
72
74
|
version: "1.1",
|
|
73
75
|
viewBox: "-283 359 34 35",
|
|
74
76
|
style: { enableBackground: "new -283 359 34 35" },
|
|
75
77
|
children: [
|
|
76
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ T("circle", {
|
|
77
79
|
cx: "-266",
|
|
78
80
|
cy: "375.9",
|
|
79
81
|
r: "14",
|
|
80
82
|
fill: e
|
|
81
83
|
}),
|
|
82
|
-
/* @__PURE__ */
|
|
84
|
+
/* @__PURE__ */ T("path", {
|
|
83
85
|
d: "M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z\n M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z",
|
|
84
86
|
fill: e
|
|
85
87
|
}),
|
|
86
|
-
/* @__PURE__ */
|
|
88
|
+
/* @__PURE__ */ T("polygon", {
|
|
87
89
|
points: "-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6",
|
|
88
90
|
fill: t
|
|
89
91
|
})
|
|
90
92
|
]
|
|
91
93
|
});
|
|
92
|
-
|
|
93
|
-
bgFill:
|
|
94
|
-
fgFill:
|
|
94
|
+
M.propTypes = {
|
|
95
|
+
bgFill: O.default.string.isRequired,
|
|
96
|
+
fgFill: O.default.string.isRequired
|
|
95
97
|
};
|
|
96
|
-
var
|
|
98
|
+
var N = ({ bgFill: e, fgFill: t, borderFill: n }) => /* @__PURE__ */ E("svg", {
|
|
99
|
+
"aria-hidden": "true",
|
|
100
|
+
focusable: "false",
|
|
97
101
|
preserveAspectRatio: "xMinYMin meet",
|
|
98
102
|
version: "1.1",
|
|
99
103
|
viewBox: "-129.5 127 34 35",
|
|
100
104
|
style: { enableBackground: "new -129.5 127 34 35" },
|
|
101
105
|
children: [
|
|
102
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ T("path", {
|
|
103
107
|
style: {
|
|
104
108
|
fill: "#D0CAC5",
|
|
105
109
|
stroke: "#E6E3E0",
|
|
@@ -108,7 +112,7 @@ var j = ({ bgFill: e, fgFill: t, borderFill: n }) => /* @__PURE__ */ T("svg", {
|
|
|
108
112
|
},
|
|
109
113
|
d: "M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5\n C-97.4,153.5-104.3,160.4-112.9,160.4z"
|
|
110
114
|
}),
|
|
111
|
-
/* @__PURE__ */
|
|
115
|
+
/* @__PURE__ */ T("path", {
|
|
112
116
|
style: {
|
|
113
117
|
fill: "#B3ABA4",
|
|
114
118
|
stroke: "#CDC7C2",
|
|
@@ -117,61 +121,61 @@ var j = ({ bgFill: e, fgFill: t, borderFill: n }) => /* @__PURE__ */ T("svg", {
|
|
|
117
121
|
},
|
|
118
122
|
d: "M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z"
|
|
119
123
|
}),
|
|
120
|
-
/* @__PURE__ */
|
|
124
|
+
/* @__PURE__ */ T("circle", {
|
|
121
125
|
cx: "-114.2",
|
|
122
126
|
cy: "143.5",
|
|
123
127
|
r: "14",
|
|
124
128
|
fill: e
|
|
125
129
|
}),
|
|
126
|
-
/* @__PURE__ */
|
|
130
|
+
/* @__PURE__ */ T("path", {
|
|
127
131
|
d: "M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z\n M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z",
|
|
128
132
|
fill: n
|
|
129
133
|
}),
|
|
130
|
-
/* @__PURE__ */
|
|
134
|
+
/* @__PURE__ */ T("polygon", {
|
|
131
135
|
points: "-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2",
|
|
132
136
|
fill: t
|
|
133
137
|
})
|
|
134
138
|
]
|
|
135
139
|
});
|
|
136
|
-
|
|
137
|
-
bgFill:
|
|
138
|
-
fgFill:
|
|
139
|
-
borderFill:
|
|
140
|
+
N.propTypes = {
|
|
141
|
+
bgFill: O.default.string.isRequired,
|
|
142
|
+
fgFill: O.default.string.isRequired,
|
|
143
|
+
borderFill: O.default.string.isRequired
|
|
140
144
|
};
|
|
141
|
-
var
|
|
145
|
+
var ne = m("div")(({ size: e }) => ({
|
|
142
146
|
width: e || "25px",
|
|
143
147
|
height: e || "25px"
|
|
144
|
-
})),
|
|
148
|
+
})), P = ({ open: e, size: t }) => /* @__PURE__ */ T(ne, {
|
|
145
149
|
size: t,
|
|
146
|
-
children: e ? /* @__PURE__ */
|
|
150
|
+
children: e ? /* @__PURE__ */ T(M, {
|
|
147
151
|
bgFill: "#bce2ff",
|
|
148
152
|
fgFill: "#1a9cff"
|
|
149
|
-
}) : /* @__PURE__ */
|
|
153
|
+
}) : /* @__PURE__ */ T(N, {
|
|
150
154
|
bgFill: "white",
|
|
151
155
|
fgFill: "#1a9cff",
|
|
152
156
|
borderFill: "#bce2ff"
|
|
153
157
|
})
|
|
154
158
|
});
|
|
155
|
-
|
|
156
|
-
open:
|
|
157
|
-
size:
|
|
158
|
-
},
|
|
159
|
+
P.propTypes = {
|
|
160
|
+
open: O.default.bool,
|
|
161
|
+
size: O.default.string
|
|
162
|
+
}, P.defaultProps = { open: !1 };
|
|
159
163
|
//#endregion
|
|
160
164
|
//#region ../../lib-react/correct-answer-toggle/dist/index.js
|
|
161
|
-
function
|
|
165
|
+
function F(e) {
|
|
162
166
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
163
167
|
}
|
|
164
|
-
function
|
|
165
|
-
return !e ||
|
|
168
|
+
function I(e, t) {
|
|
169
|
+
return !e || F(e) ? e : F(e.default) ? e.default : t && F(e[t]) ? e[t] : t && F(e[t]?.default) ? e[t].default : e;
|
|
166
170
|
}
|
|
167
|
-
var
|
|
171
|
+
var re = I(S, "Readable") || I(z.Readable, "Readable"), L = x, R = L.default, z = R && typeof R == "object" ? R : L, { translator: B } = n, ie = {
|
|
168
172
|
WebkitTouchCallout: "none",
|
|
169
173
|
WebkitUserSelect: "none",
|
|
170
174
|
KhtmlUserSelect: "none",
|
|
171
175
|
MozUserSelect: "none",
|
|
172
176
|
msUserSelect: "none",
|
|
173
177
|
userSelect: "none"
|
|
174
|
-
},
|
|
178
|
+
}, V = m("div")(() => ({
|
|
175
179
|
width: "100%",
|
|
176
180
|
cursor: "pointer"
|
|
177
181
|
})), H = m("div")(() => ({
|
|
@@ -183,9 +187,9 @@ var I = F(x, "Readable") || F(z.Readable, "Readable"), L = b, R = L.default, z =
|
|
|
183
187
|
minWidth: "140px",
|
|
184
188
|
alignSelf: "center",
|
|
185
189
|
verticalAlign: "middle",
|
|
186
|
-
color: `var(--correct-answer-toggle-label-color, ${
|
|
190
|
+
color: `var(--correct-answer-toggle-label-color, ${y.text()})`,
|
|
187
191
|
fontWeight: "normal",
|
|
188
|
-
...
|
|
192
|
+
...ie
|
|
189
193
|
})), W = m("div")(() => ({
|
|
190
194
|
position: "absolute",
|
|
191
195
|
width: "25px",
|
|
@@ -199,20 +203,20 @@ var I = F(x, "Readable") || F(z.Readable, "Readable"), L = b, R = L.default, z =
|
|
|
199
203
|
opacity: "0",
|
|
200
204
|
transition: "opacity 0.3s ease-in"
|
|
201
205
|
}
|
|
202
|
-
})),
|
|
206
|
+
})), ae = m("div")(() => ({
|
|
203
207
|
width: "25px",
|
|
204
208
|
marginRight: "5px",
|
|
205
209
|
display: "flex",
|
|
206
210
|
alignItems: "center"
|
|
207
|
-
})),
|
|
211
|
+
})), oe = class e extends C.Component {
|
|
208
212
|
static propTypes = {
|
|
209
|
-
onToggle:
|
|
210
|
-
toggled:
|
|
211
|
-
show:
|
|
212
|
-
hideMessage:
|
|
213
|
-
showMessage:
|
|
214
|
-
className:
|
|
215
|
-
language:
|
|
213
|
+
onToggle: O.default.func,
|
|
214
|
+
toggled: O.default.bool,
|
|
215
|
+
show: O.default.bool,
|
|
216
|
+
hideMessage: O.default.string,
|
|
217
|
+
showMessage: O.default.string,
|
|
218
|
+
className: O.default.string,
|
|
219
|
+
language: O.default.string
|
|
216
220
|
};
|
|
217
221
|
static defaultProps = {
|
|
218
222
|
showMessage: "Show correct answer",
|
|
@@ -221,7 +225,7 @@ var I = F(x, "Readable") || F(z.Readable, "Readable"), L = b, R = L.default, z =
|
|
|
221
225
|
toggled: !1
|
|
222
226
|
};
|
|
223
227
|
constructor(t) {
|
|
224
|
-
super(t), this.state = { show: t.show }, this.openIconRef =
|
|
228
|
+
super(t), this.state = { show: t.show }, this.openIconRef = C.createRef(), this.closedIconRef = C.createRef(), e.defaultProps = {
|
|
225
229
|
...e.defaultProps,
|
|
226
230
|
showMessage: B.t("common:showCorrectAnswer", { lng: t.language }),
|
|
227
231
|
hideMessage: B.t("common:hideCorrectAnswer", { lng: t.language })
|
|
@@ -242,14 +246,14 @@ var I = F(x, "Readable") || F(z.Readable, "Readable"), L = b, R = L.default, z =
|
|
|
242
246
|
}
|
|
243
247
|
render() {
|
|
244
248
|
let { className: e, toggled: t, hideMessage: n, showMessage: r } = this.props;
|
|
245
|
-
return /* @__PURE__ */
|
|
249
|
+
return /* @__PURE__ */ T(V, {
|
|
246
250
|
className: e,
|
|
247
|
-
children: /* @__PURE__ */
|
|
251
|
+
children: /* @__PURE__ */ T(j, {
|
|
248
252
|
show: this.state.show,
|
|
249
|
-
children: /* @__PURE__ */
|
|
253
|
+
children: /* @__PURE__ */ E(H, {
|
|
250
254
|
onClick: this.onClick.bind(this),
|
|
251
255
|
onTouchEnd: this.onTouch.bind(this),
|
|
252
|
-
children: [/* @__PURE__ */
|
|
256
|
+
children: [/* @__PURE__ */ E(ae, { children: [/* @__PURE__ */ T(_, {
|
|
253
257
|
nodeRef: this.openIconRef,
|
|
254
258
|
timeout: 400,
|
|
255
259
|
in: t,
|
|
@@ -260,11 +264,11 @@ var I = F(x, "Readable") || F(z.Readable, "Readable"), L = b, R = L.default, z =
|
|
|
260
264
|
exit: "exit",
|
|
261
265
|
exitActive: "exit-active"
|
|
262
266
|
},
|
|
263
|
-
children: /* @__PURE__ */
|
|
267
|
+
children: /* @__PURE__ */ T(W, {
|
|
264
268
|
ref: this.openIconRef,
|
|
265
|
-
children: /* @__PURE__ */
|
|
269
|
+
children: /* @__PURE__ */ T(P, { open: t }, "correct-open")
|
|
266
270
|
})
|
|
267
|
-
}), /* @__PURE__ */
|
|
271
|
+
}), /* @__PURE__ */ T(_, {
|
|
268
272
|
nodeRef: this.closedIconRef,
|
|
269
273
|
timeout: 5e3,
|
|
270
274
|
in: !t,
|
|
@@ -275,13 +279,13 @@ var I = F(x, "Readable") || F(z.Readable, "Readable"), L = b, R = L.default, z =
|
|
|
275
279
|
exit: "exit",
|
|
276
280
|
exitActive: "exit-active"
|
|
277
281
|
},
|
|
278
|
-
children: /* @__PURE__ */
|
|
282
|
+
children: /* @__PURE__ */ T(W, {
|
|
279
283
|
ref: this.closedIconRef,
|
|
280
|
-
children: /* @__PURE__ */
|
|
284
|
+
children: /* @__PURE__ */ T(P, { open: t }, "correct-closed")
|
|
281
285
|
})
|
|
282
|
-
})] }), /* @__PURE__ */
|
|
286
|
+
})] }), /* @__PURE__ */ T(re, {
|
|
283
287
|
false: !0,
|
|
284
|
-
children: /* @__PURE__ */
|
|
288
|
+
children: /* @__PURE__ */ T(U, {
|
|
285
289
|
"aria-hidden": !this.state.show,
|
|
286
290
|
children: t ? n : r
|
|
287
291
|
})
|
|
@@ -290,17 +294,17 @@ var I = F(x, "Readable") || F(z.Readable, "Readable"), L = b, R = L.default, z =
|
|
|
290
294
|
})
|
|
291
295
|
});
|
|
292
296
|
}
|
|
293
|
-
},
|
|
297
|
+
}, G = {
|
|
294
298
|
advanced: "Advanced Multi",
|
|
295
299
|
simple: "Simple"
|
|
296
|
-
},
|
|
300
|
+
}, se = m("div")(({ theme: e }) => ({
|
|
297
301
|
marginTop: e.spacing(2),
|
|
298
302
|
marginBottom: e.spacing(2),
|
|
299
303
|
padding: e.spacing(1)
|
|
300
|
-
})),
|
|
301
|
-
color:
|
|
302
|
-
background:
|
|
303
|
-
border: t ? `2px solid ${
|
|
304
|
+
})), ce = m("div", { shouldForwardProp: (e) => !["isCorrect", "isIncorrect"].includes(e) })(({ theme: e, isCorrect: t, isIncorrect: n }) => ({
|
|
305
|
+
color: y.text(),
|
|
306
|
+
background: y.background(),
|
|
307
|
+
border: t ? `2px solid ${y.correct()} !important` : n ? `2px solid ${y.incorrect()} !important` : `1px solid ${y.primaryLight()}`,
|
|
304
308
|
width: "fit-content",
|
|
305
309
|
fontSize: "1rem",
|
|
306
310
|
padding: t || n ? e.spacing(1) : e.spacing(.5),
|
|
@@ -322,23 +326,23 @@ if (typeof document < "u") {
|
|
|
322
326
|
padding: 8px;
|
|
323
327
|
}
|
|
324
328
|
.response-editor.mq-math-mode {
|
|
325
|
-
border: 1px solid ${
|
|
329
|
+
border: 1px solid ${y.primaryLight()};
|
|
326
330
|
}
|
|
327
331
|
`, document.head.appendChild(t);
|
|
328
332
|
}
|
|
329
333
|
}
|
|
330
|
-
var
|
|
334
|
+
var le = class extends C.Component {
|
|
331
335
|
static propTypes = {
|
|
332
|
-
onSimpleResponseChange:
|
|
333
|
-
model:
|
|
334
|
-
emptyResponse:
|
|
335
|
-
session:
|
|
336
|
-
showCorrect:
|
|
337
|
-
onSubFieldFocus:
|
|
338
|
-
showKeypad:
|
|
336
|
+
onSimpleResponseChange: O.default.func,
|
|
337
|
+
model: O.default.object.isRequired,
|
|
338
|
+
emptyResponse: O.default.bool,
|
|
339
|
+
session: O.default.object.isRequired,
|
|
340
|
+
showCorrect: O.default.bool,
|
|
341
|
+
onSubFieldFocus: O.default.func.isRequired,
|
|
342
|
+
showKeypad: O.default.bool.isRequired
|
|
339
343
|
};
|
|
340
344
|
constructor(e) {
|
|
341
|
-
super(e), this.mathToolBarId =
|
|
345
|
+
super(e), this.mathToolBarId = o("math-toolbar");
|
|
342
346
|
}
|
|
343
347
|
mathToolBarContainsTarget = (e) => document.getElementById(this.mathToolBarId).contains(e.target);
|
|
344
348
|
handleClick = (e) => {
|
|
@@ -354,15 +358,15 @@ var ce = class extends S.Component {
|
|
|
354
358
|
let { model: e, showCorrect: t, session: n, emptyResponse: r, onSimpleResponseChange: i, showKeypad: a } = this.props, { config: o, disabled: s, correctness: c } = e || {};
|
|
355
359
|
if (!o) return;
|
|
356
360
|
let l = c && c.correct, { responses: u, equationEditor: d } = o;
|
|
357
|
-
return /* @__PURE__ */
|
|
361
|
+
return /* @__PURE__ */ T(se, {
|
|
358
362
|
"data-keypad": !0,
|
|
359
|
-
children: t || s ? /* @__PURE__ */
|
|
363
|
+
children: t || s ? /* @__PURE__ */ T(ce, {
|
|
360
364
|
isIncorrect: !r && !l && !t,
|
|
361
365
|
isCorrect: !r && (l || t),
|
|
362
|
-
children: /* @__PURE__ */
|
|
363
|
-
}) : /* @__PURE__ */
|
|
366
|
+
children: /* @__PURE__ */ T(g.Static, { latex: t ? u && u.length && u[0].answer : n.response || "" })
|
|
367
|
+
}) : /* @__PURE__ */ T("div", {
|
|
364
368
|
id: this.mathToolBarId,
|
|
365
|
-
children: /* @__PURE__ */
|
|
369
|
+
children: /* @__PURE__ */ T(v, {
|
|
366
370
|
classNames: { editor: "response-editor" },
|
|
367
371
|
latex: n.response,
|
|
368
372
|
keypadMode: d,
|
|
@@ -385,8 +389,8 @@ function K(e) {
|
|
|
385
389
|
function q(e, t) {
|
|
386
390
|
return !e || K(e) ? e : K(e.default) ? e.default : t && K(e[t]) ? e[t] : t && K(e[t]?.default) ? e[t].default : e;
|
|
387
391
|
}
|
|
388
|
-
var
|
|
389
|
-
function
|
|
392
|
+
var ue = q(c, "UiLayout") || q(X.UiLayout, "UiLayout"), J = q(d, "PreviewPrompt") || q(X.PreviewPrompt, "PreviewPrompt"), de = q(S, "Readable") || q(X.Readable, "Readable"), fe = q(s, "Collapsible") || q(X.Collapsible, "Collapsible"), pe = q(f, "Feedback") || q(X.Feedback, "Feedback"), me = x, Y = me.default, X = Y && typeof Y == "object" ? Y : me, { translator: Z } = n, he = !1, ge = /\\newline/g, Q = /{{response}}/gm, _e = 6, ve = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
393
|
+
function ye(e = []) {
|
|
390
394
|
return e.map((e) => ({
|
|
391
395
|
name: e,
|
|
392
396
|
latex: e,
|
|
@@ -394,7 +398,7 @@ function ve(e = []) {
|
|
|
394
398
|
label: e
|
|
395
399
|
}));
|
|
396
400
|
}
|
|
397
|
-
function
|
|
401
|
+
function be(e, t) {
|
|
398
402
|
let n = e;
|
|
399
403
|
for (; n !== null;) {
|
|
400
404
|
if (t && n === t) return !0;
|
|
@@ -402,10 +406,10 @@ function ye(e, t) {
|
|
|
402
406
|
}
|
|
403
407
|
return !1;
|
|
404
408
|
}
|
|
405
|
-
function
|
|
409
|
+
function xe(e = [], t) {
|
|
406
410
|
return Math.floor(e.length / 5) * 30 + (t === "miscellaneous" ? 600 : 500);
|
|
407
411
|
}
|
|
408
|
-
function
|
|
412
|
+
function Se(e, t) {
|
|
409
413
|
let { config: n, disabled: r } = e || {}, { expression: i, responses: a, printMode: o, alwaysShowCorrect: s } = n || {};
|
|
410
414
|
if (n && i) {
|
|
411
415
|
let e = i;
|
|
@@ -418,10 +422,10 @@ function xe(e, t) {
|
|
|
418
422
|
return `\\MathQuillMathField[r${n++}]{${e.repeat(3)}}`;
|
|
419
423
|
}
|
|
420
424
|
return r ? `\\embed{answerBlock}[r${n++}]` : `\\MathQuillMathField[r${n++}]{${e && e.value || ""}}`;
|
|
421
|
-
}).replace(
|
|
425
|
+
}).replace(ge, "\\embed{newLine}[]");
|
|
422
426
|
}
|
|
423
427
|
}
|
|
424
|
-
function
|
|
428
|
+
function Ce(e, t) {
|
|
425
429
|
let n = {};
|
|
426
430
|
if (t.config && t.config.expression) {
|
|
427
431
|
let r = 1;
|
|
@@ -431,15 +435,15 @@ function Se(e, t) {
|
|
|
431
435
|
}
|
|
432
436
|
return n;
|
|
433
437
|
}
|
|
434
|
-
var
|
|
438
|
+
var we = class extends C.Component {
|
|
435
439
|
static propTypes = {
|
|
436
|
-
session:
|
|
437
|
-
onSessionChange:
|
|
438
|
-
model:
|
|
440
|
+
session: O.default.object.isRequired,
|
|
441
|
+
onSessionChange: O.default.func,
|
|
442
|
+
model: O.default.object.isRequired
|
|
439
443
|
};
|
|
440
444
|
constructor(e) {
|
|
441
445
|
super(e);
|
|
442
|
-
let { model: t, session: n } = e, r =
|
|
446
|
+
let { model: t, session: n } = e, r = Ce(n, t);
|
|
443
447
|
this.state = {
|
|
444
448
|
session: {
|
|
445
449
|
...e.session,
|
|
@@ -447,12 +451,12 @@ var Ce = class extends S.Component {
|
|
|
447
451
|
},
|
|
448
452
|
activeAnswerBlock: "",
|
|
449
453
|
showCorrect: this.props.model.config.alwaysShowCorrect || !1,
|
|
450
|
-
tooltipContainerRef:
|
|
451
|
-
};
|
|
454
|
+
tooltipContainerRef: C.createRef()
|
|
455
|
+
}, this.instructionsIdPrefix = o("math-inline-instructions");
|
|
452
456
|
}
|
|
453
457
|
UNSAFE_componentWillMount() {
|
|
454
|
-
typeof window < "u" && (
|
|
455
|
-
let t =
|
|
458
|
+
typeof window < "u" && (he ||= (p("answerBlock", (e) => {
|
|
459
|
+
let t = Te();
|
|
456
460
|
return {
|
|
457
461
|
htmlString: `<div class="${t.blockContainer}">
|
|
458
462
|
<div class="${t.blockResponse}" id="${e}Index">R</div>
|
|
@@ -471,9 +475,9 @@ var Ce = class extends S.Component {
|
|
|
471
475
|
let n = this.root.querySelector(`#${t}`), i = this.root.querySelector(`#${t}Index`);
|
|
472
476
|
if (n) {
|
|
473
477
|
let a = r[t];
|
|
474
|
-
|
|
478
|
+
h(n, a && a.value || ""), e.view && (n.parentElement.parentElement.classList.remove("correct"), n.parentElement.parentElement.classList.remove("incorrect")), i.textContent = "R";
|
|
475
479
|
}
|
|
476
|
-
}),
|
|
480
|
+
}), l(this.root);
|
|
477
481
|
};
|
|
478
482
|
countResponseOccurrences(e) {
|
|
479
483
|
let t = e?.match(/\{\{response\}\}/g);
|
|
@@ -483,7 +487,7 @@ var Ce = class extends S.Component {
|
|
|
483
487
|
let { config: t } = this.props.model, { config: n = {} } = e.model || {}, { session: i } = this.props, { session: a = {} } = e || {};
|
|
484
488
|
if (i && a && !r(i.answers, a.answers) && this.setState({ session: {
|
|
485
489
|
...a,
|
|
486
|
-
answers:
|
|
490
|
+
answers: Ce(a, this.props.model)
|
|
487
491
|
} }), t.note && t.language && t.language !== n.language && t.note === Z.t("mathInline.primaryCorrectWithAlternates", { lng: t.language }) && (t.note = Z.t("mathInline.primaryCorrectWithAlternates", { lng: n.language })), (t.env && t.env.mode !== "evaluate" || n.env && n.env.mode !== "evaluate") && this.setState({
|
|
488
492
|
...this.state.session,
|
|
489
493
|
showCorrect: !1
|
|
@@ -503,14 +507,14 @@ var Ce = class extends S.Component {
|
|
|
503
507
|
return !n || !i;
|
|
504
508
|
}
|
|
505
509
|
componentDidMount() {
|
|
506
|
-
this.handleAnswerBlockDomUpdate(), this.updateAria(), setTimeout(() =>
|
|
510
|
+
this.handleAnswerBlockDomUpdate(), this.updateAria(), setTimeout(() => l(this.root), 100);
|
|
507
511
|
}
|
|
508
512
|
componentDidUpdate(e, t) {
|
|
509
513
|
this.handleAnswerBlockDomUpdate(), e.model?.config?.responseType !== this.props.model?.config?.responseType && this.updateAria();
|
|
510
514
|
}
|
|
511
515
|
updateAria = () => {
|
|
512
516
|
this.root && (this.root.querySelectorAll(".mq-selectable").forEach((e) => e.setAttribute("aria-hidden", "true")), this.root.querySelectorAll("textarea").forEach((e, t) => {
|
|
513
|
-
let n =
|
|
517
|
+
let n = `${this.instructionsIdPrefix}-${t}`, r = e.closest(".mq-textarea");
|
|
514
518
|
if (r) {
|
|
515
519
|
let t = r.querySelector(`#${n}`);
|
|
516
520
|
t || (t = document.createElement("span"), t.id = n, t.className = "sr-only", t.textContent = "This field supports both keypad and keyboard input. Use the keyboard to access and interact with the on-screen math keypad, which accepts LaTeX markup. Use the down arrow key to open the keypad and navigate its buttons. Use the escape key to close the keypad and return to the input field.", r.insertBefore(t, e)), e.setAttribute("aria-describedby", n);
|
|
@@ -527,7 +531,7 @@ var Ce = class extends S.Component {
|
|
|
527
531
|
}, 0);
|
|
528
532
|
};
|
|
529
533
|
handleKeyDown = (e, t) => {
|
|
530
|
-
let n =
|
|
534
|
+
let n = be(e.target, this.root), r = this.mqStatic && this.mqStatic.inputRef?.current ? this.mqStatic.inputRef?.current.contains(document.activeElement) : !!document.activeElement?.closest(".mq-editable-field"), { key: i, type: a } = e;
|
|
531
535
|
r && (i === "ArrowDown" || a === "click" || a === "touchstart") ? this.state.activeAnswerBlock !== t && n && (this.cleanupKeyDownListener(), this.setState({ activeAnswerBlock: t }, () => {
|
|
532
536
|
this.onSubFieldFocus(t), i === "ArrowDown" && this.focusFirstKeypadElement();
|
|
533
537
|
})) : e.key === "Escape" && this.setState({ activeAnswerBlock: "" });
|
|
@@ -580,7 +584,7 @@ var Ce = class extends S.Component {
|
|
|
580
584
|
this.setState({ showCorrect: e }, this.handleAnswerBlockDomUpdate);
|
|
581
585
|
};
|
|
582
586
|
subFieldChanged = (e, t) => {
|
|
583
|
-
if (
|
|
587
|
+
if (ee(), e) {
|
|
584
588
|
let n = window.scrollX, r = window.scrollY;
|
|
585
589
|
this.setState((n) => ({ session: {
|
|
586
590
|
...n.session,
|
|
@@ -620,57 +624,57 @@ var Ce = class extends S.Component {
|
|
|
620
624
|
};
|
|
621
625
|
setTooltipRef(e) {
|
|
622
626
|
setTimeout(() => {
|
|
623
|
-
if (e &&
|
|
627
|
+
if (e && ve) {
|
|
624
628
|
let e = document.querySelector("[role='tooltip']");
|
|
625
629
|
e && e.firstChild.setAttribute("tabindex", "-1");
|
|
626
630
|
}
|
|
627
631
|
}, 1);
|
|
628
632
|
}
|
|
629
633
|
render() {
|
|
630
|
-
let { model: e } = this.props, { activeAnswerBlock: n, showCorrect: r, session:
|
|
634
|
+
let { model: e } = this.props, { activeAnswerBlock: n, showCorrect: r, session: i, tooltipContainerRef: o } = this.state, { config: s, correctness: c, disabled: l, extraCSSRules: d, view: ee, teacherInstructions: f, rationale: p, feedback: m, animationsDisabled: h, printMode: _, alwaysShowCorrect: v, language: x } = e || {};
|
|
631
635
|
if (!s) return null;
|
|
632
|
-
let { showNote: S, note: C, prompt:
|
|
636
|
+
let { showNote: S, note: C, prompt: w, responses: O, responseType: k, equationEditor: A, customKeys: j, id: M, env: { mode: N, role: ne } = {} } = s || {}, P = (r || N === "view" && ne === "instructor") && S && C, F = t(O), I = !F && c && c.correctness !== "correct", re = l && c, L = ye(j), R = c && c.correct, z = Se(e, this.state) || "", B = l && !c, ie = _ && !v, V = p && (a(p) || u(p)), H = f && (a(f) || u(f)), U = /* @__PURE__ */ T(Pe, { children: /* @__PURE__ */ T(g.Static, {
|
|
633
637
|
className: "static-math",
|
|
634
638
|
ref: (e) => {
|
|
635
639
|
e && (this.mqStatic = e);
|
|
636
640
|
},
|
|
637
|
-
latex:
|
|
641
|
+
latex: z,
|
|
638
642
|
language: x,
|
|
639
643
|
onSubFieldChange: this.subFieldChanged,
|
|
640
644
|
getFieldName: this.getFieldName,
|
|
641
645
|
setInput: this.setInput,
|
|
642
646
|
onSubFieldFocus: this.onSubFieldFocus,
|
|
643
647
|
onBlur: this.onBlur
|
|
644
|
-
}) }),
|
|
645
|
-
|
|
646
|
-
|
|
648
|
+
}) }), W = /* @__PURE__ */ E(ke, { children: [
|
|
649
|
+
N === "gather" && /* @__PURE__ */ T(Fe, { children: "Math Equation Response Question" }),
|
|
650
|
+
B && H && (h ? /* @__PURE__ */ T("div", { dangerouslySetInnerHTML: { __html: f } }) : /* @__PURE__ */ T($, {
|
|
647
651
|
labels: {
|
|
648
652
|
hidden: "Show Teacher Instructions",
|
|
649
653
|
visible: "Hide Teacher Instructions"
|
|
650
654
|
},
|
|
651
|
-
children: /* @__PURE__ */
|
|
655
|
+
children: /* @__PURE__ */ T("div", { dangerouslySetInnerHTML: { __html: f } })
|
|
652
656
|
})),
|
|
653
|
-
|
|
654
|
-
|
|
657
|
+
w && /* @__PURE__ */ T(Oe, { children: /* @__PURE__ */ T(J, { prompt: w }) }),
|
|
658
|
+
ie ? U : /* @__PURE__ */ T(de, {
|
|
655
659
|
false: !0,
|
|
656
|
-
children: /* @__PURE__ */
|
|
660
|
+
children: /* @__PURE__ */ E(Ne, {
|
|
657
661
|
tabIndex: 0,
|
|
658
|
-
children: [
|
|
662
|
+
children: [k === G.simple && /* @__PURE__ */ T(le, {
|
|
659
663
|
onSimpleResponseChange: this.onSimpleResponseChange,
|
|
660
664
|
showCorrect: r,
|
|
661
665
|
emptyResponse: F,
|
|
662
666
|
model: e,
|
|
663
|
-
session:
|
|
667
|
+
session: i,
|
|
664
668
|
onSubFieldFocus: this.onSubFieldFocus,
|
|
665
669
|
showKeypad: !!n
|
|
666
|
-
}),
|
|
670
|
+
}), k === G.advanced && /* @__PURE__ */ T(Me, {
|
|
667
671
|
ref: o,
|
|
668
|
-
isIncorrect: !F && !
|
|
669
|
-
isCorrect: !F && (
|
|
670
|
-
showCorrectness: !F &&
|
|
672
|
+
isIncorrect: !F && !R && !r,
|
|
673
|
+
isCorrect: !F && (R || r),
|
|
674
|
+
showCorrectness: !F && l && c && !ee,
|
|
671
675
|
correctAnswerShown: r,
|
|
672
|
-
printCorrect:
|
|
673
|
-
children: /* @__PURE__ */
|
|
676
|
+
printCorrect: _ && v,
|
|
677
|
+
children: /* @__PURE__ */ T(b, {
|
|
674
678
|
ref: (e) => this.setTooltipRef(e),
|
|
675
679
|
enterTouchDelay: 0,
|
|
676
680
|
interactive: !0,
|
|
@@ -720,21 +724,21 @@ var Ce = class extends S.Component {
|
|
|
720
724
|
boxShadow: "none"
|
|
721
725
|
} }
|
|
722
726
|
},
|
|
723
|
-
title: Object.keys(
|
|
727
|
+
title: Object.keys(i.answers).map((e) => e === n && !(r || l) && /* @__PURE__ */ T(je, {
|
|
724
728
|
"data-keypad": !0,
|
|
725
|
-
style: { width:
|
|
726
|
-
children: /* @__PURE__ */
|
|
727
|
-
additionalKeys:
|
|
728
|
-
mode:
|
|
729
|
+
style: { width: xe(L, A) },
|
|
730
|
+
children: /* @__PURE__ */ T(te, {
|
|
731
|
+
additionalKeys: L,
|
|
732
|
+
mode: A || _e,
|
|
729
733
|
onClick: this.onClick
|
|
730
734
|
})
|
|
731
735
|
}, e) || null),
|
|
732
|
-
children: /* @__PURE__ */
|
|
736
|
+
children: /* @__PURE__ */ T("div", { children: /* @__PURE__ */ T(g.Static, {
|
|
733
737
|
className: "static-math",
|
|
734
738
|
ref: (e) => {
|
|
735
739
|
e && (this.mqStatic = e);
|
|
736
740
|
},
|
|
737
|
-
latex:
|
|
741
|
+
latex: z,
|
|
738
742
|
language: x,
|
|
739
743
|
onSubFieldChange: this.subFieldChanged,
|
|
740
744
|
getFieldName: this.getFieldName,
|
|
@@ -746,31 +750,31 @@ var Ce = class extends S.Component {
|
|
|
746
750
|
})]
|
|
747
751
|
})
|
|
748
752
|
}),
|
|
749
|
-
|
|
750
|
-
|
|
753
|
+
B && P && /* @__PURE__ */ T(Ae, { dangerouslySetInnerHTML: { __html: `<strong>Note:</strong> ${C}` } }),
|
|
754
|
+
B && V && (h ? /* @__PURE__ */ T("div", { dangerouslySetInnerHTML: { __html: p } }) : /* @__PURE__ */ T(fe, {
|
|
751
755
|
labels: {
|
|
752
756
|
hidden: "Show Rationale",
|
|
753
757
|
visible: "Hide Rationale"
|
|
754
758
|
},
|
|
755
|
-
children: /* @__PURE__ */
|
|
759
|
+
children: /* @__PURE__ */ T("div", { dangerouslySetInnerHTML: { __html: p } })
|
|
756
760
|
}))
|
|
757
761
|
] });
|
|
758
|
-
return
|
|
762
|
+
return re && (I || H || V || m) ? /* @__PURE__ */ T(Ee, {
|
|
759
763
|
extraCSSRules: d,
|
|
760
764
|
ref: (e) => {
|
|
761
|
-
let t =
|
|
765
|
+
let t = D.findDOMNode(e);
|
|
762
766
|
this.root = t || this.root;
|
|
763
767
|
},
|
|
764
|
-
children: /* @__PURE__ */
|
|
768
|
+
children: /* @__PURE__ */ T(De, {
|
|
765
769
|
interactive: !0,
|
|
766
770
|
enterTouchDelay: 0,
|
|
767
771
|
placement: "bottom-start",
|
|
768
772
|
slotProps: {
|
|
769
773
|
tooltip: { sx: (e) => ({
|
|
770
|
-
background: `${
|
|
771
|
-
color:
|
|
774
|
+
background: `${y.primaryLight()} !important`,
|
|
775
|
+
color: y.text(),
|
|
772
776
|
padding: e.spacing(2),
|
|
773
|
-
border: `1px solid ${
|
|
777
|
+
border: `1px solid ${y.secondary()}`,
|
|
774
778
|
fontSize: "16px",
|
|
775
779
|
"& :not(.MathJax) > table tr": { "&:nth-child(2n)": { backgroundColor: "unset !important" } }
|
|
776
780
|
}) },
|
|
@@ -782,52 +786,52 @@ var Ce = class extends S.Component {
|
|
|
782
786
|
}]
|
|
783
787
|
}
|
|
784
788
|
},
|
|
785
|
-
title: /* @__PURE__ */
|
|
786
|
-
/* @__PURE__ */
|
|
789
|
+
title: /* @__PURE__ */ E("div", { children: [
|
|
790
|
+
/* @__PURE__ */ T(ke, { children: I && /* @__PURE__ */ T(Ie, {
|
|
787
791
|
language: x,
|
|
788
792
|
show: !0,
|
|
789
793
|
toggled: r,
|
|
790
794
|
onToggle: this.toggleShowCorrect
|
|
791
795
|
}) }),
|
|
792
|
-
|
|
796
|
+
H && /* @__PURE__ */ T($, {
|
|
793
797
|
labels: {
|
|
794
798
|
hidden: "Show Teacher Instructions",
|
|
795
799
|
visible: "Hide Teacher Instructions"
|
|
796
800
|
},
|
|
797
|
-
children: /* @__PURE__ */
|
|
801
|
+
children: /* @__PURE__ */ T(J, { prompt: f })
|
|
798
802
|
}, "collapsible-teacher-instructions"),
|
|
799
|
-
P &&
|
|
803
|
+
P && a(C) && /* @__PURE__ */ T($, {
|
|
800
804
|
labels: {
|
|
801
805
|
hidden: Z.t("common:showNote", { lng: x }),
|
|
802
806
|
visible: Z.t("common:hideNote", { lng: x })
|
|
803
807
|
},
|
|
804
|
-
children: /* @__PURE__ */
|
|
808
|
+
children: /* @__PURE__ */ T(J, { prompt: C })
|
|
805
809
|
}, "collapsible-note"),
|
|
806
|
-
|
|
810
|
+
V && /* @__PURE__ */ T($, {
|
|
807
811
|
labels: {
|
|
808
812
|
hidden: "Show Rationale",
|
|
809
813
|
visible: "Hide Rationale"
|
|
810
814
|
},
|
|
811
|
-
children: /* @__PURE__ */
|
|
815
|
+
children: /* @__PURE__ */ T(J, { prompt: p })
|
|
812
816
|
}, "collapsible-rationale"),
|
|
813
|
-
|
|
814
|
-
correctness:
|
|
815
|
-
feedback:
|
|
817
|
+
m && /* @__PURE__ */ T(pe, {
|
|
818
|
+
correctness: c.correctness,
|
|
819
|
+
feedback: m
|
|
816
820
|
})
|
|
817
821
|
] }),
|
|
818
|
-
children:
|
|
822
|
+
children: W
|
|
819
823
|
})
|
|
820
|
-
}) : /* @__PURE__ */
|
|
821
|
-
id:
|
|
824
|
+
}) : /* @__PURE__ */ T(Ee, {
|
|
825
|
+
id: M,
|
|
822
826
|
extraCSSRules: d,
|
|
823
827
|
ref: (e) => {
|
|
824
|
-
let t =
|
|
828
|
+
let t = D.findDOMNode(e);
|
|
825
829
|
this.root = t || this.root;
|
|
826
830
|
},
|
|
827
|
-
children:
|
|
831
|
+
children: W
|
|
828
832
|
});
|
|
829
833
|
}
|
|
830
|
-
},
|
|
834
|
+
}, Te = () => ({
|
|
831
835
|
blockContainer: "block-container",
|
|
832
836
|
blockResponse: "block-response",
|
|
833
837
|
blockMath: "block-math"
|
|
@@ -856,8 +860,8 @@ if (typeof document < "u") {
|
|
|
856
860
|
flex-basis: auto;
|
|
857
861
|
}
|
|
858
862
|
.block-math {
|
|
859
|
-
color: ${
|
|
860
|
-
background-color: ${
|
|
863
|
+
color: ${y.text()};
|
|
864
|
+
background-color: ${y.background()};
|
|
861
865
|
padding: 4px !important;
|
|
862
866
|
display: flex;
|
|
863
867
|
align-items: center;
|
|
@@ -876,32 +880,32 @@ if (typeof document < "u") {
|
|
|
876
880
|
overflow: hidden;
|
|
877
881
|
}
|
|
878
882
|
.static-math > .mq-root-block > .mq-editable-field {
|
|
879
|
-
border-color: ${
|
|
883
|
+
border-color: ${y.text()};
|
|
880
884
|
}
|
|
881
885
|
`, document.head.appendChild(t);
|
|
882
886
|
}
|
|
883
887
|
}
|
|
884
|
-
var
|
|
885
|
-
color:
|
|
886
|
-
backgroundColor:
|
|
888
|
+
var Ee = m(ue)(() => ({
|
|
889
|
+
color: y.text(),
|
|
890
|
+
backgroundColor: y.background(),
|
|
887
891
|
display: "inline-block"
|
|
888
|
-
})),
|
|
892
|
+
})), De = m(b)({}), Oe = m("div")(({ theme: e }) => ({ marginBottom: e.spacing(2) })), ke = m("div")({
|
|
889
893
|
width: "100%",
|
|
890
894
|
position: "relative",
|
|
891
|
-
backgroundColor:
|
|
892
|
-
color:
|
|
893
|
-
}),
|
|
895
|
+
backgroundColor: y.background(),
|
|
896
|
+
color: y.text()
|
|
897
|
+
}), Ae = m("div")(({ theme: e }) => ({ paddingBottom: e.spacing(2) })), $ = m(fe)(({ theme: e }) => ({ marginBottom: e.spacing(2) })), je = m("div")(({ theme: e }) => ({
|
|
894
898
|
zIndex: 10,
|
|
895
899
|
minWidth: "400px",
|
|
896
900
|
marginTop: e.spacing(2)
|
|
897
|
-
})),
|
|
901
|
+
})), Me = m("div", { shouldForwardProp: (e) => ![
|
|
898
902
|
"isIncorrect",
|
|
899
903
|
"isCorrect",
|
|
900
904
|
"showCorrectness",
|
|
901
905
|
"correctAnswerShown",
|
|
902
906
|
"printCorrect"
|
|
903
907
|
].includes(e) })(({ theme: e, isIncorrect: t, isCorrect: n, showCorrectness: r, correctAnswerShown: i, printCorrect: a }) => {
|
|
904
|
-
let o = t ?
|
|
908
|
+
let o = t ? y.incorrect() : n ? y.correct() : void 0;
|
|
905
909
|
return {
|
|
906
910
|
maxWidth: "fit-content",
|
|
907
911
|
padding: e.spacing(.25),
|
|
@@ -911,7 +915,7 @@ var Te = m(le)(() => ({
|
|
|
911
915
|
padding: e.spacing(1),
|
|
912
916
|
letterSpacing: "0.5px"
|
|
913
917
|
},
|
|
914
|
-
...a && { border: `2px solid ${
|
|
918
|
+
...a && { border: `2px solid ${y.correct()} !important` },
|
|
915
919
|
"& .mq-math-mode": {
|
|
916
920
|
"& .mq-root-block": {
|
|
917
921
|
paddingRight: "0 !important",
|
|
@@ -924,7 +928,7 @@ var Te = m(le)(() => ({
|
|
|
924
928
|
"& sup": { top: 0 }
|
|
925
929
|
}
|
|
926
930
|
};
|
|
927
|
-
}),
|
|
931
|
+
}), Ne = m("div")({
|
|
928
932
|
position: "relative",
|
|
929
933
|
"& .mq-overarrow-inner": {
|
|
930
934
|
border: "none !important",
|
|
@@ -954,21 +958,21 @@ var Te = m(le)(() => ({
|
|
|
954
958
|
paddingTop: "1.5px !important"
|
|
955
959
|
},
|
|
956
960
|
"& .mq-parallelogram": { lineHeight: .85 }
|
|
957
|
-
}),
|
|
961
|
+
}), Pe = m("div")(({ theme: e }) => ({
|
|
958
962
|
marginBottom: e.spacing(1),
|
|
959
963
|
pointerEvents: "none"
|
|
960
|
-
})),
|
|
964
|
+
})), Fe = m("h2")({
|
|
961
965
|
position: "absolute",
|
|
962
966
|
left: "-10000px",
|
|
963
967
|
top: "auto",
|
|
964
968
|
width: "1px",
|
|
965
969
|
height: "1px",
|
|
966
970
|
overflow: "hidden"
|
|
967
|
-
}),
|
|
968
|
-
color:
|
|
971
|
+
}), Ie = m(oe)(({ theme: e }) => ({
|
|
972
|
+
color: y.text(),
|
|
969
973
|
marginBottom: e.spacing(2)
|
|
970
974
|
}));
|
|
971
975
|
//#endregion
|
|
972
|
-
export {
|
|
976
|
+
export { we as t };
|
|
973
977
|
|
|
974
|
-
//# sourceMappingURL=main-
|
|
978
|
+
//# sourceMappingURL=main-CGx3EYDa.js.map
|