@pie-element/math-inline 13.0.6-next.20261015154938 → 13.0.6-next.20261018193205
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/ar-BqNzXqee.js +10 -0
- package/dist/browser/ar-BqNzXqee.js.map +1 -0
- package/dist/browser/ar-D_FEShJJ.js +9 -0
- package/dist/browser/ar-D_FEShJJ.js.map +1 -0
- package/dist/browser/author/index.js +3846 -3846
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/controller/index.js +1 -1
- package/dist/browser/cy-BSU8zN7o.js +9 -0
- package/dist/browser/cy-BSU8zN7o.js.map +1 -0
- package/dist/browser/cy-DXHfeEPl.js +10 -0
- package/dist/browser/cy-DXHfeEPl.js.map +1 -0
- package/dist/browser/delivery/index.js +2 -2
- package/dist/browser/{dist-BHHPmy0B.js → dist-wLr8qNGy.js} +3226 -2887
- package/dist/browser/dist-wLr8qNGy.js.map +1 -0
- package/dist/browser/editor-runtime/ar-BqNzXqee.js +10 -0
- package/dist/browser/editor-runtime/ar-BqNzXqee.js.map +1 -0
- package/dist/browser/editor-runtime/ar-D_FEShJJ.js +9 -0
- package/dist/browser/editor-runtime/ar-D_FEShJJ.js.map +1 -0
- package/dist/browser/editor-runtime/author/index.js +984 -984
- package/dist/browser/editor-runtime/author/index.js.map +1 -1
- package/dist/browser/editor-runtime/controller/index.js +1 -1
- package/dist/browser/editor-runtime/cy-BSU8zN7o.js +9 -0
- package/dist/browser/editor-runtime/cy-BSU8zN7o.js.map +1 -0
- package/dist/browser/editor-runtime/cy-DXHfeEPl.js +10 -0
- package/dist/browser/editor-runtime/cy-DXHfeEPl.js.map +1 -0
- package/dist/browser/editor-runtime/delivery/index.js +2 -2
- package/dist/browser/editor-runtime/{dist-B1WbtNIm.js → dist-CFIpidXS.js} +3226 -2887
- package/dist/browser/editor-runtime/dist-CFIpidXS.js.map +1 -0
- package/dist/browser/editor-runtime/en-AU-CiQqw5TO.js +10 -0
- package/dist/browser/editor-runtime/en-AU-CiQqw5TO.js.map +1 -0
- package/dist/browser/editor-runtime/en-AU-EDv7dyMF.js +9 -0
- package/dist/browser/editor-runtime/en-AU-EDv7dyMF.js.map +1 -0
- package/dist/browser/editor-runtime/en-GB-CIxcbK8V.js +10 -0
- package/dist/browser/editor-runtime/en-GB-CIxcbK8V.js.map +1 -0
- package/dist/browser/editor-runtime/en-GB-CcwNU8cM.js +9 -0
- package/dist/browser/editor-runtime/en-GB-CcwNU8cM.js.map +1 -0
- package/dist/browser/editor-runtime/es-BkpdVdfR.js +10 -0
- package/dist/browser/editor-runtime/es-BkpdVdfR.js.map +1 -0
- package/dist/browser/editor-runtime/es-IvhhD5u_.js +9 -0
- package/dist/browser/editor-runtime/es-IvhhD5u_.js.map +1 -0
- package/dist/browser/editor-runtime/fr-CA6sVLRK.js +9 -0
- package/dist/browser/editor-runtime/fr-CA6sVLRK.js.map +1 -0
- package/dist/browser/editor-runtime/fr-g_6bkXvN.js +10 -0
- package/dist/browser/editor-runtime/fr-g_6bkXvN.js.map +1 -0
- package/dist/browser/editor-runtime/ja-CMffjmdT.js +9 -0
- package/dist/browser/editor-runtime/ja-CMffjmdT.js.map +1 -0
- package/dist/browser/editor-runtime/ja-CZYIDe7s.js +10 -0
- package/dist/browser/editor-runtime/ja-CZYIDe7s.js.map +1 -0
- package/dist/browser/editor-runtime/ko-B1X_sPLJ.js +9 -0
- package/dist/browser/editor-runtime/ko-B1X_sPLJ.js.map +1 -0
- package/dist/browser/editor-runtime/ko-DbyyITWq.js +10 -0
- package/dist/browser/editor-runtime/ko-DbyyITWq.js.map +1 -0
- package/dist/browser/editor-runtime/{main-BO5Bc5oB.js → main-CuO1Hz4R.js} +178 -131
- package/dist/browser/editor-runtime/main-CuO1Hz4R.js.map +1 -0
- package/dist/browser/editor-runtime/print/index.js +3 -3
- package/dist/browser/editor-runtime/pt-C9jVBXgg.js +9 -0
- package/dist/browser/editor-runtime/pt-C9jVBXgg.js.map +1 -0
- package/dist/browser/editor-runtime/pt-CibqRFII.js +10 -0
- package/dist/browser/editor-runtime/pt-CibqRFII.js.map +1 -0
- package/dist/browser/editor-runtime/sv-9oZkC2a9.js +10 -0
- package/dist/browser/editor-runtime/sv-9oZkC2a9.js.map +1 -0
- package/dist/browser/editor-runtime/sv-CIiWPsen.js +9 -0
- package/dist/browser/editor-runtime/sv-CIiWPsen.js.map +1 -0
- package/dist/browser/editor-runtime/th-TH-Bx7pKAnj.js +10 -0
- package/dist/browser/editor-runtime/th-TH-Bx7pKAnj.js.map +1 -0
- package/dist/browser/editor-runtime/th-TH-TkJ9Y04q.js +9 -0
- package/dist/browser/editor-runtime/th-TH-TkJ9Y04q.js.map +1 -0
- package/dist/browser/editor-runtime/zh-DI5Ex6Qs.js +10 -0
- package/dist/browser/editor-runtime/zh-DI5Ex6Qs.js.map +1 -0
- package/dist/browser/editor-runtime/zh-oWK6SDV0.js +9 -0
- package/dist/browser/editor-runtime/zh-oWK6SDV0.js.map +1 -0
- package/dist/browser/en-AU-CiQqw5TO.js +10 -0
- package/dist/browser/en-AU-CiQqw5TO.js.map +1 -0
- package/dist/browser/en-AU-EDv7dyMF.js +9 -0
- package/dist/browser/en-AU-EDv7dyMF.js.map +1 -0
- package/dist/browser/en-GB-CIxcbK8V.js +10 -0
- package/dist/browser/en-GB-CIxcbK8V.js.map +1 -0
- package/dist/browser/en-GB-CcwNU8cM.js +9 -0
- package/dist/browser/en-GB-CcwNU8cM.js.map +1 -0
- package/dist/browser/es-BkpdVdfR.js +10 -0
- package/dist/browser/es-BkpdVdfR.js.map +1 -0
- package/dist/browser/es-IvhhD5u_.js +9 -0
- package/dist/browser/es-IvhhD5u_.js.map +1 -0
- package/dist/browser/fr-CA6sVLRK.js +9 -0
- package/dist/browser/fr-CA6sVLRK.js.map +1 -0
- package/dist/browser/fr-g_6bkXvN.js +10 -0
- package/dist/browser/fr-g_6bkXvN.js.map +1 -0
- package/dist/browser/ja-CMffjmdT.js +9 -0
- package/dist/browser/ja-CMffjmdT.js.map +1 -0
- package/dist/browser/ja-CZYIDe7s.js +10 -0
- package/dist/browser/ja-CZYIDe7s.js.map +1 -0
- package/dist/browser/ko-B1X_sPLJ.js +9 -0
- package/dist/browser/ko-B1X_sPLJ.js.map +1 -0
- package/dist/browser/ko-DbyyITWq.js +10 -0
- package/dist/browser/ko-DbyyITWq.js.map +1 -0
- package/dist/browser/{main-CjEk0ct_.js → main-qc9k2bIv.js} +178 -131
- package/dist/browser/main-qc9k2bIv.js.map +1 -0
- package/dist/browser/print/index.js +3 -3
- package/dist/browser/pt-C9jVBXgg.js +9 -0
- package/dist/browser/pt-C9jVBXgg.js.map +1 -0
- package/dist/browser/pt-CibqRFII.js +10 -0
- package/dist/browser/pt-CibqRFII.js.map +1 -0
- package/dist/browser/sv-9oZkC2a9.js +10 -0
- package/dist/browser/sv-9oZkC2a9.js.map +1 -0
- package/dist/browser/sv-CIiWPsen.js +9 -0
- package/dist/browser/sv-CIiWPsen.js.map +1 -0
- package/dist/browser/th-TH-Bx7pKAnj.js +10 -0
- package/dist/browser/th-TH-Bx7pKAnj.js.map +1 -0
- package/dist/browser/th-TH-TkJ9Y04q.js +9 -0
- package/dist/browser/th-TH-TkJ9Y04q.js.map +1 -0
- package/dist/browser/zh-DI5Ex6Qs.js +10 -0
- package/dist/browser/zh-DI5Ex6Qs.js.map +1 -0
- package/dist/browser/zh-oWK6SDV0.js +9 -0
- package/dist/browser/zh-oWK6SDV0.js.map +1 -0
- package/dist/index.iife.js +49 -49
- package/dist/schemas/configuration.schema.json +1 -1
- package/dist/schemas/model.schema.json +1 -1
- package/dist/schemas/session.schema.json +1 -1
- package/module/print.js +10276 -9820
- package/module/print.js.map +1 -1
- package/package.json +8 -8
- package/dist/browser/dist-BHHPmy0B.js.map +0 -1
- package/dist/browser/editor-runtime/dist-B1WbtNIm.js.map +0 -1
- package/dist/browser/editor-runtime/main-BO5Bc5oB.js.map +0 -1
- package/dist/browser/main-CjEk0ct_.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-DY7j01NX.js";
|
|
2
2
|
import { d as t, p as n, t as r } from "./dist-Fa1nzZ4V.js";
|
|
3
|
-
import { C as i, H as a, L as o, M as s,
|
|
4
|
-
import
|
|
3
|
+
import { C as i, H as a, L as o, M as s, Mt as c, R as l, S as u, T as d, _ as f, f as ee, ft as p, g as m, gt as h, h as g, ht as _, m as v, mt as y, n as b, pt as x, u as te, v as S, vt as C, w } from "./dist-wLr8qNGy.js";
|
|
4
|
+
import T, { useRef as ne } from "react";
|
|
5
5
|
import { jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
6
|
-
import
|
|
6
|
+
import re from "react-dom";
|
|
7
7
|
//#region ../../lib-react/correct-answer-toggle/dist/expander.js
|
|
8
|
-
var O = /* @__PURE__ */ e(
|
|
8
|
+
var O = /* @__PURE__ */ e(c(), 1), k = "height ease-in 300ms, opacity ease-in 300ms", A = C("div")(() => ({
|
|
9
9
|
position: "relative",
|
|
10
10
|
height: 0,
|
|
11
11
|
overflow: "hidden",
|
|
@@ -40,8 +40,8 @@ var O = /* @__PURE__ */ e(_(), 1), k = "height ease-in 300ms, opacity ease-in 30
|
|
|
40
40
|
width: 0
|
|
41
41
|
}
|
|
42
42
|
})), j = (e) => {
|
|
43
|
-
let { show: t, children: n, className: r } = e, i =
|
|
44
|
-
return /* @__PURE__ */ E(
|
|
43
|
+
let { show: t, children: n, className: r } = e, i = ne(null);
|
|
44
|
+
return /* @__PURE__ */ E(h, {
|
|
45
45
|
nodeRef: i,
|
|
46
46
|
in: t,
|
|
47
47
|
appear: !0,
|
|
@@ -66,8 +66,64 @@ j.propTypes = {
|
|
|
66
66
|
children: O.default.oneOfType([O.default.arrayOf(O.default.node), O.default.node]).isRequired
|
|
67
67
|
};
|
|
68
68
|
//#endregion
|
|
69
|
-
//#region ../../lib-react/
|
|
70
|
-
var
|
|
69
|
+
//#region ../../lib-react/correct-answer-toggle/dist/i18n/index.js
|
|
70
|
+
var ie = _({
|
|
71
|
+
packageName: "@pie-lib/correct-answer-toggle",
|
|
72
|
+
source: {
|
|
73
|
+
showCorrectAnswer: "Show correct answer",
|
|
74
|
+
hideCorrectAnswer: "Hide correct answer"
|
|
75
|
+
},
|
|
76
|
+
loaders: {
|
|
77
|
+
es: () => import(
|
|
78
|
+
/* webpackMode: "eager" */
|
|
79
|
+
"./es-IvhhD5u_.js"
|
|
80
|
+
),
|
|
81
|
+
"th-TH": () => import(
|
|
82
|
+
/* webpackMode: "eager" */
|
|
83
|
+
"./th-TH-TkJ9Y04q.js"
|
|
84
|
+
),
|
|
85
|
+
"en-GB": () => import(
|
|
86
|
+
/* webpackMode: "eager" */
|
|
87
|
+
"./en-GB-CcwNU8cM.js"
|
|
88
|
+
),
|
|
89
|
+
"en-AU": () => import(
|
|
90
|
+
/* webpackMode: "eager" */
|
|
91
|
+
"./en-AU-EDv7dyMF.js"
|
|
92
|
+
),
|
|
93
|
+
fr: () => import(
|
|
94
|
+
/* webpackMode: "eager" */
|
|
95
|
+
"./fr-CA6sVLRK.js"
|
|
96
|
+
),
|
|
97
|
+
ar: () => import(
|
|
98
|
+
/* webpackMode: "eager" */
|
|
99
|
+
"./ar-D_FEShJJ.js"
|
|
100
|
+
),
|
|
101
|
+
pt: () => import(
|
|
102
|
+
/* webpackMode: "eager" */
|
|
103
|
+
"./pt-C9jVBXgg.js"
|
|
104
|
+
),
|
|
105
|
+
ko: () => import(
|
|
106
|
+
/* webpackMode: "eager" */
|
|
107
|
+
"./ko-B1X_sPLJ.js"
|
|
108
|
+
),
|
|
109
|
+
ja: () => import(
|
|
110
|
+
/* webpackMode: "eager" */
|
|
111
|
+
"./ja-CMffjmdT.js"
|
|
112
|
+
),
|
|
113
|
+
zh: () => import(
|
|
114
|
+
/* webpackMode: "eager" */
|
|
115
|
+
"./zh-oWK6SDV0.js"
|
|
116
|
+
),
|
|
117
|
+
cy: () => import(
|
|
118
|
+
/* webpackMode: "eager" */
|
|
119
|
+
"./cy-BSU8zN7o.js"
|
|
120
|
+
),
|
|
121
|
+
sv: () => import(
|
|
122
|
+
/* webpackMode: "eager" */
|
|
123
|
+
"./sv-CIiWPsen.js"
|
|
124
|
+
)
|
|
125
|
+
}
|
|
126
|
+
}), M = ({ bgFill: e, fgFill: t }) => /* @__PURE__ */ D("svg", {
|
|
71
127
|
"aria-hidden": "true",
|
|
72
128
|
focusable: "false",
|
|
73
129
|
preserveAspectRatio: "xMinYMin meet",
|
|
@@ -142,7 +198,7 @@ N.propTypes = {
|
|
|
142
198
|
fgFill: O.default.string.isRequired,
|
|
143
199
|
borderFill: O.default.string.isRequired
|
|
144
200
|
};
|
|
145
|
-
var P =
|
|
201
|
+
var P = C("div")(({ size: e }) => ({
|
|
146
202
|
width: e || "25px",
|
|
147
203
|
height: e || "25px"
|
|
148
204
|
})), F = ({ open: e, size: t }) => /* @__PURE__ */ E(P, {
|
|
@@ -168,17 +224,17 @@ function I(e) {
|
|
|
168
224
|
function L(e, t) {
|
|
169
225
|
return !e || I(e) ? e : I(e.default) ? e.default : t && I(e[t]) ? e[t] : t && I(e[t]?.default) ? e[t].default : e;
|
|
170
226
|
}
|
|
171
|
-
var R = S, z = R.default,
|
|
227
|
+
var R = S, z = R.default, ae = z && typeof z == "object" ? z : R, B = L(w, "Readable") || L(ae.Readable, "Readable"), V = {
|
|
172
228
|
WebkitTouchCallout: "none",
|
|
173
229
|
WebkitUserSelect: "none",
|
|
174
230
|
KhtmlUserSelect: "none",
|
|
175
231
|
MozUserSelect: "none",
|
|
176
232
|
msUserSelect: "none",
|
|
177
233
|
userSelect: "none"
|
|
178
|
-
},
|
|
234
|
+
}, oe = C("div")(() => ({
|
|
179
235
|
width: "100%",
|
|
180
236
|
cursor: "pointer"
|
|
181
|
-
})),
|
|
237
|
+
})), H = C("button")(() => ({
|
|
182
238
|
margin: "0 auto",
|
|
183
239
|
textAlign: "center",
|
|
184
240
|
display: "flex",
|
|
@@ -194,15 +250,15 @@ var R = S, z = R.default, B = z && typeof z == "object" ? z : R, V = L(C, "Reada
|
|
|
194
250
|
outline: `2px solid ${y.buttonFocusOutline()}`,
|
|
195
251
|
outlineOffset: "-2px"
|
|
196
252
|
}
|
|
197
|
-
})),
|
|
253
|
+
})), se = C("div")(() => ({
|
|
198
254
|
width: "fit-content",
|
|
199
255
|
minWidth: "140px",
|
|
200
256
|
alignSelf: "center",
|
|
201
257
|
verticalAlign: "middle",
|
|
202
258
|
color: `var(--correct-answer-toggle-label-color, ${y.text()})`,
|
|
203
259
|
fontWeight: "normal",
|
|
204
|
-
...
|
|
205
|
-
})),
|
|
260
|
+
...V
|
|
261
|
+
})), U = C("div")(() => ({
|
|
206
262
|
position: "absolute",
|
|
207
263
|
width: "25px",
|
|
208
264
|
"&.enter": { opacity: "0" },
|
|
@@ -215,12 +271,12 @@ var R = S, z = R.default, B = z && typeof z == "object" ? z : R, V = L(C, "Reada
|
|
|
215
271
|
opacity: "0",
|
|
216
272
|
transition: "opacity 0.3s ease-in"
|
|
217
273
|
}
|
|
218
|
-
})),
|
|
274
|
+
})), ce = C("div")(() => ({
|
|
219
275
|
width: "25px",
|
|
220
276
|
marginRight: "5px",
|
|
221
277
|
display: "flex",
|
|
222
278
|
alignItems: "center"
|
|
223
|
-
})),
|
|
279
|
+
})), le = class extends T.Component {
|
|
224
280
|
static propTypes = {
|
|
225
281
|
onToggle: O.default.func,
|
|
226
282
|
toggled: O.default.bool,
|
|
@@ -231,43 +287,34 @@ var R = S, z = R.default, B = z && typeof z == "object" ? z : R, V = L(C, "Reada
|
|
|
231
287
|
language: O.default.string
|
|
232
288
|
};
|
|
233
289
|
static defaultProps = {
|
|
234
|
-
showMessage: "Show correct answer",
|
|
235
|
-
hideMessage: "Hide correct answer",
|
|
236
290
|
show: !1,
|
|
237
291
|
toggled: !1
|
|
238
292
|
};
|
|
239
|
-
constructor(
|
|
240
|
-
super(
|
|
241
|
-
...e.defaultProps,
|
|
242
|
-
showMessage: H.t("common:showCorrectAnswer", { lng: t.language }),
|
|
243
|
-
hideMessage: H.t("common:hideCorrectAnswer", { lng: t.language })
|
|
244
|
-
};
|
|
293
|
+
constructor(e) {
|
|
294
|
+
super(e), this.state = { show: e.show }, this.openIconRef = T.createRef(), this.closedIconRef = T.createRef();
|
|
245
295
|
}
|
|
296
|
+
relabel = () => this.forceUpdate();
|
|
246
297
|
onClick() {
|
|
247
298
|
this.props.onToggle(!this.props.toggled);
|
|
248
299
|
}
|
|
249
300
|
onTouch(e) {
|
|
250
301
|
e.preventDefault(), this.props.onToggle(!this.props.toggled);
|
|
251
302
|
}
|
|
252
|
-
UNSAFE_componentWillReceiveProps(
|
|
253
|
-
this.setState({ show:
|
|
254
|
-
...e.defaultProps,
|
|
255
|
-
showMessage: H.t("common:showCorrectAnswer", { lng: t.language }),
|
|
256
|
-
hideMessage: H.t("common:hideCorrectAnswer", { lng: t.language })
|
|
257
|
-
});
|
|
303
|
+
UNSAFE_componentWillReceiveProps(e) {
|
|
304
|
+
this.setState({ show: e.show });
|
|
258
305
|
}
|
|
259
306
|
render() {
|
|
260
|
-
let { className: e, toggled: t,
|
|
261
|
-
return /* @__PURE__ */ E(
|
|
307
|
+
let { className: e, toggled: t, language: n } = this.props, r = ie.forLocale(n, this.relabel), i = this.props.hideMessage ?? r.t("hideCorrectAnswer"), a = this.props.showMessage ?? r.t("showCorrectAnswer");
|
|
308
|
+
return /* @__PURE__ */ E(oe, {
|
|
262
309
|
className: e,
|
|
263
310
|
children: /* @__PURE__ */ E(j, {
|
|
264
311
|
show: this.state.show,
|
|
265
|
-
children: /* @__PURE__ */ D(
|
|
312
|
+
children: /* @__PURE__ */ D(H, {
|
|
266
313
|
type: "button",
|
|
267
314
|
"aria-pressed": !!t,
|
|
268
315
|
onClick: this.onClick.bind(this),
|
|
269
316
|
onTouchEnd: this.onTouch.bind(this),
|
|
270
|
-
children: [/* @__PURE__ */ D(
|
|
317
|
+
children: [/* @__PURE__ */ D(ce, { children: [/* @__PURE__ */ E(h, {
|
|
271
318
|
nodeRef: this.openIconRef,
|
|
272
319
|
timeout: 400,
|
|
273
320
|
in: t,
|
|
@@ -278,11 +325,11 @@ var R = S, z = R.default, B = z && typeof z == "object" ? z : R, V = L(C, "Reada
|
|
|
278
325
|
exit: "exit",
|
|
279
326
|
exitActive: "exit-active"
|
|
280
327
|
},
|
|
281
|
-
children: /* @__PURE__ */ E(
|
|
328
|
+
children: /* @__PURE__ */ E(U, {
|
|
282
329
|
ref: this.openIconRef,
|
|
283
330
|
children: /* @__PURE__ */ E(F, { open: t }, "correct-open")
|
|
284
331
|
})
|
|
285
|
-
}), /* @__PURE__ */ E(
|
|
332
|
+
}), /* @__PURE__ */ E(h, {
|
|
286
333
|
nodeRef: this.closedIconRef,
|
|
287
334
|
timeout: 5e3,
|
|
288
335
|
in: !t,
|
|
@@ -293,29 +340,29 @@ var R = S, z = R.default, B = z && typeof z == "object" ? z : R, V = L(C, "Reada
|
|
|
293
340
|
exit: "exit",
|
|
294
341
|
exitActive: "exit-active"
|
|
295
342
|
},
|
|
296
|
-
children: /* @__PURE__ */ E(
|
|
343
|
+
children: /* @__PURE__ */ E(U, {
|
|
297
344
|
ref: this.closedIconRef,
|
|
298
345
|
children: /* @__PURE__ */ E(F, { open: t }, "correct-closed")
|
|
299
346
|
})
|
|
300
|
-
})] }), /* @__PURE__ */ E(
|
|
347
|
+
})] }), /* @__PURE__ */ E(B, {
|
|
301
348
|
false: !0,
|
|
302
|
-
children: /* @__PURE__ */ E(
|
|
349
|
+
children: /* @__PURE__ */ E(se, {
|
|
303
350
|
"aria-hidden": !this.state.show,
|
|
304
|
-
children: t ?
|
|
351
|
+
children: t ? i : a
|
|
305
352
|
})
|
|
306
353
|
})]
|
|
307
354
|
})
|
|
308
355
|
})
|
|
309
356
|
});
|
|
310
357
|
}
|
|
311
|
-
},
|
|
358
|
+
}, W = {
|
|
312
359
|
advanced: "Advanced Multi",
|
|
313
360
|
simple: "Simple"
|
|
314
|
-
},
|
|
361
|
+
}, ue = C("div")(({ theme: e }) => ({
|
|
315
362
|
marginTop: e.spacing(2),
|
|
316
363
|
marginBottom: e.spacing(2),
|
|
317
364
|
padding: e.spacing(1)
|
|
318
|
-
})),
|
|
365
|
+
})), de = C("div", { shouldForwardProp: (e) => !["isCorrect", "isIncorrect"].includes(e) })(({ theme: e, isCorrect: t, isIncorrect: n }) => ({
|
|
319
366
|
color: y.text(),
|
|
320
367
|
background: y.background(),
|
|
321
368
|
border: t ? `2px solid ${y.correct()} !important` : n ? `2px solid ${y.incorrect()} !important` : `1px solid ${y.primaryLight()}`,
|
|
@@ -345,7 +392,7 @@ if (typeof document < "u") {
|
|
|
345
392
|
`, document.head.appendChild(t);
|
|
346
393
|
}
|
|
347
394
|
}
|
|
348
|
-
var
|
|
395
|
+
var fe = class extends T.Component {
|
|
349
396
|
static propTypes = {
|
|
350
397
|
onSimpleResponseChange: O.default.func,
|
|
351
398
|
model: O.default.object.isRequired,
|
|
@@ -372,9 +419,9 @@ var ue = class extends w.Component {
|
|
|
372
419
|
let { model: e, showCorrect: t, session: n, emptyResponse: r, onSimpleResponseChange: i, showKeypad: a } = this.props, { config: o, disabled: s, correctness: c } = e || {};
|
|
373
420
|
if (!o) return;
|
|
374
421
|
let l = c && c.correct, { responses: u, equationEditor: d } = o;
|
|
375
|
-
return /* @__PURE__ */ E(
|
|
422
|
+
return /* @__PURE__ */ E(ue, {
|
|
376
423
|
"data-keypad": !0,
|
|
377
|
-
children: t || s ? /* @__PURE__ */ E(
|
|
424
|
+
children: t || s ? /* @__PURE__ */ E(de, {
|
|
378
425
|
isIncorrect: !r && !l && !t,
|
|
379
426
|
isCorrect: !r && (l || t),
|
|
380
427
|
children: /* @__PURE__ */ E(v.Static, { latex: t ? u && u.length && u[0].answer : n.response || "" })
|
|
@@ -397,14 +444,14 @@ var ue = class extends w.Component {
|
|
|
397
444
|
};
|
|
398
445
|
//#endregion
|
|
399
446
|
//#region src/delivery/main.tsx
|
|
400
|
-
function
|
|
447
|
+
function G(e) {
|
|
401
448
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
402
449
|
}
|
|
403
|
-
function
|
|
404
|
-
return !e ||
|
|
450
|
+
function K(e, t) {
|
|
451
|
+
return !e || G(e) ? e : G(e.default) ? e.default : t && G(e[t]) ? e[t] : t && G(e[t]?.default) ? e[t].default : e;
|
|
405
452
|
}
|
|
406
|
-
var
|
|
407
|
-
function
|
|
453
|
+
var pe = S, q = pe.default, J = q && typeof q == "object" ? q : pe, me = K(s, "UiLayout") || K(J.UiLayout, "UiLayout"), Y = K(d, "PreviewPrompt") || K(J.PreviewPrompt, "PreviewPrompt"), he = K(w, "Readable") || K(J.Readable, "Readable"), ge = K(o, "Collapsible") || K(J.Collapsible, "Collapsible"), _e = K(p, "Feedback") || K(J.Feedback, "Feedback"), { translator: X } = n, ve = !1, ye = /\\newline/g, Z = /{{response}}/gm, be = 6, xe = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
454
|
+
function Se(e = []) {
|
|
408
455
|
return e.map((e) => ({
|
|
409
456
|
name: e,
|
|
410
457
|
latex: e,
|
|
@@ -412,7 +459,7 @@ function be(e = []) {
|
|
|
412
459
|
label: e
|
|
413
460
|
}));
|
|
414
461
|
}
|
|
415
|
-
function
|
|
462
|
+
function Ce(e, t) {
|
|
416
463
|
let n = e;
|
|
417
464
|
for (; n !== null;) {
|
|
418
465
|
if (t && n === t) return !0;
|
|
@@ -420,36 +467,36 @@ function xe(e, t) {
|
|
|
420
467
|
}
|
|
421
468
|
return !1;
|
|
422
469
|
}
|
|
423
|
-
function
|
|
470
|
+
function we(e = [], t) {
|
|
424
471
|
return Math.floor(e.length / 5) * 30 + (t === "miscellaneous" ? 600 : 500);
|
|
425
472
|
}
|
|
426
|
-
function
|
|
473
|
+
function Te(e, t) {
|
|
427
474
|
let { config: n, disabled: r } = e || {}, { expression: i, responses: a, printMode: o, alwaysShowCorrect: s } = n || {};
|
|
428
475
|
if (n && i) {
|
|
429
476
|
let e = i;
|
|
430
477
|
if (t.showCorrect) return a && a.length && a[0].answer;
|
|
431
478
|
let n = 1;
|
|
432
|
-
return (e || "").replace(
|
|
479
|
+
return (e || "").replace(Z, function() {
|
|
433
480
|
let e = t.session.answers[`r${n}`];
|
|
434
481
|
if (o && !s) {
|
|
435
482
|
let e = "\\ \\ ".repeat(30) + "\\newline ";
|
|
436
483
|
return `\\MathQuillMathField[r${n++}]{${e.repeat(3)}}`;
|
|
437
484
|
}
|
|
438
485
|
return r ? `\\embed{answerBlock}[r${n++}]` : `\\MathQuillMathField[r${n++}]{${e && e.value || ""}}`;
|
|
439
|
-
}).replace(
|
|
486
|
+
}).replace(ye, "\\embed{newLine}[]");
|
|
440
487
|
}
|
|
441
488
|
}
|
|
442
|
-
function
|
|
489
|
+
function Ee(e, t) {
|
|
443
490
|
let n = {};
|
|
444
491
|
if (t.config && t.config.expression) {
|
|
445
492
|
let r = 1;
|
|
446
|
-
(t.config.expression || "").replace(
|
|
493
|
+
(t.config.expression || "").replace(Z, () => {
|
|
447
494
|
n[`r${r}`] = { value: e && e.answers && e.answers[`r${r}`] && e.answers[`r${r}`].value || "" }, r += 1;
|
|
448
495
|
});
|
|
449
496
|
}
|
|
450
497
|
return n;
|
|
451
498
|
}
|
|
452
|
-
var
|
|
499
|
+
var De = class extends T.Component {
|
|
453
500
|
static propTypes = {
|
|
454
501
|
session: O.default.object.isRequired,
|
|
455
502
|
onSessionChange: O.default.func,
|
|
@@ -457,7 +504,7 @@ var Te = class extends w.Component {
|
|
|
457
504
|
};
|
|
458
505
|
constructor(e) {
|
|
459
506
|
super(e);
|
|
460
|
-
let { model: t, session: n } = e, r =
|
|
507
|
+
let { model: t, session: n } = e, r = Ee(n, t);
|
|
461
508
|
this.state = {
|
|
462
509
|
session: {
|
|
463
510
|
...e.session,
|
|
@@ -465,12 +512,12 @@ var Te = class extends w.Component {
|
|
|
465
512
|
},
|
|
466
513
|
activeAnswerBlock: "",
|
|
467
514
|
showCorrect: this.props.model.config.alwaysShowCorrect || !1,
|
|
468
|
-
tooltipContainerRef:
|
|
515
|
+
tooltipContainerRef: T.createRef()
|
|
469
516
|
}, this.instructionsIdPrefix = a("math-inline-instructions");
|
|
470
517
|
}
|
|
471
518
|
UNSAFE_componentWillMount() {
|
|
472
|
-
typeof window < "u" && (
|
|
473
|
-
let t =
|
|
519
|
+
typeof window < "u" && (ve ||= (m("answerBlock", (e) => {
|
|
520
|
+
let t = Oe();
|
|
474
521
|
return {
|
|
475
522
|
htmlString: `<div class="${t.blockContainer}">
|
|
476
523
|
<div class="${t.blockResponse}" data-answer-block-index="${e}">R</div>
|
|
@@ -489,9 +536,9 @@ var Te = class extends w.Component {
|
|
|
489
536
|
let n = this.root.querySelector(`[data-answer-block="${t}"]`), i = this.root.querySelector(`[data-answer-block-index="${t}"]`);
|
|
490
537
|
if (n) {
|
|
491
538
|
let a = r[t];
|
|
492
|
-
|
|
539
|
+
g(n, a && a.value || ""), e.view && (n.parentElement.parentElement.classList.remove("correct"), n.parentElement.parentElement.classList.remove("incorrect")), i.textContent = "R";
|
|
493
540
|
}
|
|
494
|
-
}),
|
|
541
|
+
}), l(this.root);
|
|
495
542
|
};
|
|
496
543
|
countResponseOccurrences(e) {
|
|
497
544
|
let t = e?.match(/\{\{response\}\}/g);
|
|
@@ -501,13 +548,13 @@ var Te = class extends w.Component {
|
|
|
501
548
|
let { config: n } = this.props.model, { config: r = {} } = e.model || {}, { session: i } = this.props, { session: a = {} } = e || {};
|
|
502
549
|
if (i && a && !t(i.answers, a.answers) && this.setState({ session: {
|
|
503
550
|
...a,
|
|
504
|
-
answers:
|
|
505
|
-
} }), n.note && n.language && n.language !== r.language && n.note ===
|
|
551
|
+
answers: Ee(a, this.props.model)
|
|
552
|
+
} }), n.note && n.language && n.language !== r.language && n.note === X.t("mathInline.primaryCorrectWithAlternates", { lng: n.language }) && (n.note = X.t("mathInline.primaryCorrectWithAlternates", { lng: r.language })), (n.env && n.env.mode !== "evaluate" || r.env && r.env.mode !== "evaluate") && this.setState({
|
|
506
553
|
...this.state.session,
|
|
507
554
|
showCorrect: !1
|
|
508
555
|
}), r.alwaysShowCorrect && this.setState({ showCorrect: !0 }), this.countResponseOccurrences(n.expression) < this.countResponseOccurrences(r.expression) && setTimeout(() => this.updateAria(), 100), n && n.responses && n.responses.length !== r.responses.length || !n && r && r.responses || n && r && n.expression !== r.expression) {
|
|
509
556
|
let e = {}, t = this.state.session.answers, n = 1;
|
|
510
|
-
(r.expression || "").replace(
|
|
557
|
+
(r.expression || "").replace(Z, () => {
|
|
511
558
|
e[`r${n}`] = { value: t && t[`r${n}`] && t[`r${n}`].value || "" }, n++;
|
|
512
559
|
}), this.setState((t) => ({ session: {
|
|
513
560
|
...t.session,
|
|
@@ -521,7 +568,7 @@ var Te = class extends w.Component {
|
|
|
521
568
|
return !r || !i;
|
|
522
569
|
}
|
|
523
570
|
componentDidMount() {
|
|
524
|
-
this.handleAnswerBlockDomUpdate(), this.updateAria(), setTimeout(() =>
|
|
571
|
+
this.handleAnswerBlockDomUpdate(), this.updateAria(), setTimeout(() => l(this.root), 100);
|
|
525
572
|
}
|
|
526
573
|
componentDidUpdate(e, t) {
|
|
527
574
|
this.handleAnswerBlockDomUpdate(), (e.model?.config?.responseType !== this.props.model?.config?.responseType || e.model?.language !== this.props.model?.language) && this.updateAria();
|
|
@@ -529,7 +576,7 @@ var Te = class extends w.Component {
|
|
|
529
576
|
updateAria = () => {
|
|
530
577
|
if (this.root) {
|
|
531
578
|
this.root.querySelectorAll(".mq-selectable").forEach((e) => e.setAttribute("aria-hidden", "true"));
|
|
532
|
-
let e =
|
|
579
|
+
let e = X.t("mathInline.keypadInstructions", { lng: this.props.model?.language });
|
|
533
580
|
this.root.querySelectorAll("textarea").forEach((t, n) => {
|
|
534
581
|
let r = `${this.instructionsIdPrefix}-${n}`, i = t.closest(".mq-textarea");
|
|
535
582
|
if (i) {
|
|
@@ -549,7 +596,7 @@ var Te = class extends w.Component {
|
|
|
549
596
|
}, 0);
|
|
550
597
|
};
|
|
551
598
|
handleKeyDown = (e, t) => {
|
|
552
|
-
let n =
|
|
599
|
+
let n = Ce(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;
|
|
553
600
|
r && (i === "ArrowDown" || a === "click" || a === "touchstart") ? this.state.activeAnswerBlock !== t && n && (this.cleanupKeyDownListener(), this.setState({ activeAnswerBlock: t }, () => {
|
|
554
601
|
this.onSubFieldFocus(t), i === "ArrowDown" && this.focusFirstKeypadElement();
|
|
555
602
|
})) : e.key === "Escape" && this.setState({ activeAnswerBlock: "" });
|
|
@@ -602,7 +649,7 @@ var Te = class extends w.Component {
|
|
|
602
649
|
this.setState({ showCorrect: e }, this.handleAnswerBlockDomUpdate);
|
|
603
650
|
};
|
|
604
651
|
subFieldChanged = (e, t) => {
|
|
605
|
-
if (
|
|
652
|
+
if (f(), e) {
|
|
606
653
|
let n = window.scrollX, r = window.scrollY;
|
|
607
654
|
this.setState((n) => ({ session: {
|
|
608
655
|
...n.session,
|
|
@@ -642,52 +689,52 @@ var Te = class extends w.Component {
|
|
|
642
689
|
};
|
|
643
690
|
setTooltipRef(e) {
|
|
644
691
|
setTimeout(() => {
|
|
645
|
-
if (e &&
|
|
692
|
+
if (e && xe) {
|
|
646
693
|
let e = document.querySelector("[role='tooltip']");
|
|
647
694
|
e && e.firstChild.setAttribute("tabindex", "-1");
|
|
648
695
|
}
|
|
649
696
|
}, 1);
|
|
650
697
|
}
|
|
651
698
|
render() {
|
|
652
|
-
let { model: e } = this.props, { activeAnswerBlock: t, showCorrect: n, session: a, tooltipContainerRef: o } = this.state, { config: s, correctness: c, disabled:
|
|
699
|
+
let { model: e } = this.props, { activeAnswerBlock: t, showCorrect: n, session: a, tooltipContainerRef: o } = this.state, { config: s, correctness: c, disabled: l, extraCSSRules: d, view: f, teacherInstructions: p, rationale: m, feedback: h, animationsDisabled: g, printMode: _, alwaysShowCorrect: b, language: S } = e || {};
|
|
653
700
|
if (!s) return null;
|
|
654
|
-
let { showNote: C, note: w, prompt: T, responses:
|
|
701
|
+
let { showNote: C, note: w, prompt: T, responses: ne, responseType: O, equationEditor: k, customKeys: A, env: { mode: j, role: ie } = {} } = s || {}, M = (n || j === "view" && ie === "instructor") && C && w, N = r(ne), P = !N && c && c.correctness !== "correct", F = l && c, I = Se(A), L = c && c.correct, R = Te(e, this.state) || "", z = l && !c, ae = _ && !b, B = m && (i(m) || u(m)), V = p && (i(p) || u(p)), oe = /* @__PURE__ */ E(Ie, { children: /* @__PURE__ */ E(v.Static, {
|
|
655
702
|
className: "static-math",
|
|
656
703
|
ref: (e) => {
|
|
657
704
|
e && (this.mqStatic = e);
|
|
658
705
|
},
|
|
659
|
-
latex:
|
|
706
|
+
latex: R,
|
|
660
707
|
language: S,
|
|
661
708
|
onSubFieldChange: this.subFieldChanged,
|
|
662
709
|
getFieldName: this.getFieldName,
|
|
663
710
|
setInput: this.setInput,
|
|
664
711
|
onSubFieldFocus: this.onSubFieldFocus,
|
|
665
712
|
onBlur: this.onBlur
|
|
666
|
-
}) }),
|
|
667
|
-
|
|
668
|
-
|
|
713
|
+
}) }), H = /* @__PURE__ */ D(je, { children: [
|
|
714
|
+
j === "gather" && /* @__PURE__ */ E(Le, { children: X.t("mathInline.mathEquationResponseQuestion", { lng: S }) }),
|
|
715
|
+
z && V && (g ? /* @__PURE__ */ E("div", { dangerouslySetInnerHTML: { __html: x(p) } }) : /* @__PURE__ */ E($, {
|
|
669
716
|
labels: {
|
|
670
|
-
hidden:
|
|
671
|
-
visible:
|
|
717
|
+
hidden: X.t("common:showTeacherInstructions", { lng: S }),
|
|
718
|
+
visible: X.t("common:hideTeacherInstructions", { lng: S })
|
|
672
719
|
},
|
|
673
720
|
children: /* @__PURE__ */ E("div", { dangerouslySetInnerHTML: { __html: x(p) } })
|
|
674
721
|
})),
|
|
675
|
-
T && /* @__PURE__ */ E(
|
|
676
|
-
|
|
722
|
+
T && /* @__PURE__ */ E(Ae, { children: /* @__PURE__ */ E(Y, { prompt: T }) }),
|
|
723
|
+
ae ? oe : /* @__PURE__ */ E(he, {
|
|
677
724
|
false: !0,
|
|
678
|
-
children: /* @__PURE__ */ D(
|
|
725
|
+
children: /* @__PURE__ */ D(Fe, { children: [O === W.simple && /* @__PURE__ */ E(fe, {
|
|
679
726
|
onSimpleResponseChange: this.onSimpleResponseChange,
|
|
680
727
|
showCorrect: n,
|
|
681
|
-
emptyResponse:
|
|
728
|
+
emptyResponse: N,
|
|
682
729
|
model: e,
|
|
683
730
|
session: a,
|
|
684
731
|
onSubFieldFocus: this.onSubFieldFocus,
|
|
685
732
|
showKeypad: !!t
|
|
686
|
-
}),
|
|
733
|
+
}), O === W.advanced && /* @__PURE__ */ E(Pe, {
|
|
687
734
|
ref: o,
|
|
688
|
-
isIncorrect: !
|
|
689
|
-
isCorrect: !
|
|
690
|
-
showCorrectness: !
|
|
735
|
+
isIncorrect: !N && !L && !n,
|
|
736
|
+
isCorrect: !N && (L || n),
|
|
737
|
+
showCorrectness: !N && l && c && !f,
|
|
691
738
|
correctAnswerShown: n,
|
|
692
739
|
printCorrect: _ && b,
|
|
693
740
|
children: /* @__PURE__ */ E(te, {
|
|
@@ -740,12 +787,12 @@ var Te = class extends w.Component {
|
|
|
740
787
|
boxShadow: "none"
|
|
741
788
|
} }
|
|
742
789
|
},
|
|
743
|
-
title: Object.keys(a.answers).map((e) => e === t && !(n ||
|
|
790
|
+
title: Object.keys(a.answers).map((e) => e === t && !(n || l) && /* @__PURE__ */ E(Ne, {
|
|
744
791
|
"data-keypad": !0,
|
|
745
|
-
style: { width:
|
|
792
|
+
style: { width: we(I, k) },
|
|
746
793
|
children: /* @__PURE__ */ E(ee, {
|
|
747
|
-
additionalKeys:
|
|
748
|
-
mode:
|
|
794
|
+
additionalKeys: I,
|
|
795
|
+
mode: k || be,
|
|
749
796
|
onClick: this.onClick
|
|
750
797
|
})
|
|
751
798
|
}, e) || null),
|
|
@@ -754,7 +801,7 @@ var Te = class extends w.Component {
|
|
|
754
801
|
ref: (e) => {
|
|
755
802
|
e && (this.mqStatic = e);
|
|
756
803
|
},
|
|
757
|
-
latex:
|
|
804
|
+
latex: R,
|
|
758
805
|
language: S,
|
|
759
806
|
onSubFieldChange: this.subFieldChanged,
|
|
760
807
|
getFieldName: this.getFieldName,
|
|
@@ -765,22 +812,22 @@ var Te = class extends w.Component {
|
|
|
765
812
|
})
|
|
766
813
|
})] })
|
|
767
814
|
}),
|
|
768
|
-
|
|
769
|
-
|
|
815
|
+
z && M && /* @__PURE__ */ E(Me, { dangerouslySetInnerHTML: { __html: `<strong>Note:</strong> ${x(w)}` } }),
|
|
816
|
+
z && B && (g ? /* @__PURE__ */ E("div", { dangerouslySetInnerHTML: { __html: x(m) } }) : /* @__PURE__ */ E(ge, {
|
|
770
817
|
labels: {
|
|
771
|
-
hidden:
|
|
772
|
-
visible:
|
|
818
|
+
hidden: X.t("common:showRationale", { lng: S }),
|
|
819
|
+
visible: X.t("common:hideRationale", { lng: S })
|
|
773
820
|
},
|
|
774
821
|
children: /* @__PURE__ */ E("div", { dangerouslySetInnerHTML: { __html: x(m) } })
|
|
775
822
|
}))
|
|
776
823
|
] });
|
|
777
|
-
return
|
|
824
|
+
return F && (P || V || B || h) ? /* @__PURE__ */ E(Q, {
|
|
778
825
|
extraCSSRules: d,
|
|
779
826
|
ref: (e) => {
|
|
780
|
-
let t =
|
|
827
|
+
let t = re.findDOMNode(e);
|
|
781
828
|
this.root = t || this.root;
|
|
782
829
|
},
|
|
783
|
-
children: /* @__PURE__ */ E(
|
|
830
|
+
children: /* @__PURE__ */ E(ke, {
|
|
784
831
|
interactive: !0,
|
|
785
832
|
enterTouchDelay: 0,
|
|
786
833
|
placement: "bottom-start",
|
|
@@ -802,50 +849,50 @@ var Te = class extends w.Component {
|
|
|
802
849
|
}
|
|
803
850
|
},
|
|
804
851
|
title: /* @__PURE__ */ D("div", { children: [
|
|
805
|
-
/* @__PURE__ */ E(
|
|
852
|
+
/* @__PURE__ */ E(je, { children: P && /* @__PURE__ */ E(Re, {
|
|
806
853
|
language: S,
|
|
807
854
|
show: !0,
|
|
808
855
|
toggled: n,
|
|
809
856
|
onToggle: this.toggleShowCorrect
|
|
810
857
|
}) }),
|
|
811
|
-
|
|
858
|
+
V && /* @__PURE__ */ E($, {
|
|
812
859
|
labels: {
|
|
813
|
-
hidden:
|
|
814
|
-
visible:
|
|
860
|
+
hidden: X.t("common:showTeacherInstructions", { lng: S }),
|
|
861
|
+
visible: X.t("common:hideTeacherInstructions", { lng: S })
|
|
815
862
|
},
|
|
816
|
-
children: /* @__PURE__ */ E(
|
|
863
|
+
children: /* @__PURE__ */ E(Y, { prompt: p })
|
|
817
864
|
}, "collapsible-teacher-instructions"),
|
|
818
|
-
|
|
865
|
+
M && i(w) && /* @__PURE__ */ E($, {
|
|
819
866
|
labels: {
|
|
820
|
-
hidden:
|
|
821
|
-
visible:
|
|
867
|
+
hidden: X.t("common:showNote", { lng: S }),
|
|
868
|
+
visible: X.t("common:hideNote", { lng: S })
|
|
822
869
|
},
|
|
823
|
-
children: /* @__PURE__ */ E(
|
|
870
|
+
children: /* @__PURE__ */ E(Y, { prompt: w })
|
|
824
871
|
}, "collapsible-note"),
|
|
825
|
-
|
|
872
|
+
B && /* @__PURE__ */ E($, {
|
|
826
873
|
labels: {
|
|
827
|
-
hidden:
|
|
828
|
-
visible:
|
|
874
|
+
hidden: X.t("common:showRationale", { lng: S }),
|
|
875
|
+
visible: X.t("common:hideRationale", { lng: S })
|
|
829
876
|
},
|
|
830
|
-
children: /* @__PURE__ */ E(
|
|
877
|
+
children: /* @__PURE__ */ E(Y, { prompt: m })
|
|
831
878
|
}, "collapsible-rationale"),
|
|
832
|
-
h && /* @__PURE__ */ E(
|
|
879
|
+
h && /* @__PURE__ */ E(_e, {
|
|
833
880
|
correctness: c.correctness,
|
|
834
881
|
feedback: h
|
|
835
882
|
})
|
|
836
883
|
] }),
|
|
837
|
-
children:
|
|
884
|
+
children: H
|
|
838
885
|
})
|
|
839
|
-
}) : /* @__PURE__ */ E(
|
|
886
|
+
}) : /* @__PURE__ */ E(Q, {
|
|
840
887
|
extraCSSRules: d,
|
|
841
888
|
ref: (e) => {
|
|
842
|
-
let t =
|
|
889
|
+
let t = re.findDOMNode(e);
|
|
843
890
|
this.root = t || this.root;
|
|
844
891
|
},
|
|
845
|
-
children:
|
|
892
|
+
children: H
|
|
846
893
|
});
|
|
847
894
|
}
|
|
848
|
-
},
|
|
895
|
+
}, Oe = () => ({
|
|
849
896
|
blockContainer: "block-container",
|
|
850
897
|
blockResponse: "block-response",
|
|
851
898
|
blockMath: "block-math"
|
|
@@ -899,20 +946,20 @@ if (typeof document < "u") {
|
|
|
899
946
|
`, document.head.appendChild(t);
|
|
900
947
|
}
|
|
901
948
|
}
|
|
902
|
-
var
|
|
949
|
+
var Q = C(me)(() => ({
|
|
903
950
|
color: y.text(),
|
|
904
951
|
backgroundColor: y.background(),
|
|
905
952
|
display: "inline-block"
|
|
906
|
-
})),
|
|
953
|
+
})), ke = C(te)({}), Ae = C("div")(({ theme: e }) => ({ marginBottom: e.spacing(2) })), je = C("div")({
|
|
907
954
|
width: "100%",
|
|
908
955
|
position: "relative",
|
|
909
956
|
backgroundColor: y.background(),
|
|
910
957
|
color: y.text()
|
|
911
|
-
}),
|
|
958
|
+
}), Me = C("div")(({ theme: e }) => ({ paddingBottom: e.spacing(2) })), $ = C(ge)(({ theme: e }) => ({ marginBottom: e.spacing(2) })), Ne = C("div")(({ theme: e }) => ({
|
|
912
959
|
zIndex: 10,
|
|
913
960
|
minWidth: "400px",
|
|
914
961
|
marginTop: e.spacing(2)
|
|
915
|
-
})),
|
|
962
|
+
})), Pe = C("div", { shouldForwardProp: (e) => ![
|
|
916
963
|
"isIncorrect",
|
|
917
964
|
"isCorrect",
|
|
918
965
|
"showCorrectness",
|
|
@@ -942,7 +989,7 @@ var De = f(fe)(() => ({
|
|
|
942
989
|
"& sup": { top: 0 }
|
|
943
990
|
}
|
|
944
991
|
};
|
|
945
|
-
}),
|
|
992
|
+
}), Fe = C("div")({
|
|
946
993
|
position: "relative",
|
|
947
994
|
"& .mq-overarrow-inner": {
|
|
948
995
|
border: "none !important",
|
|
@@ -972,21 +1019,21 @@ var De = f(fe)(() => ({
|
|
|
972
1019
|
paddingTop: "1.5px !important"
|
|
973
1020
|
},
|
|
974
1021
|
"& .mq-parallelogram": { lineHeight: .85 }
|
|
975
|
-
}),
|
|
1022
|
+
}), Ie = C("div")(({ theme: e }) => ({
|
|
976
1023
|
marginBottom: e.spacing(1),
|
|
977
1024
|
pointerEvents: "none"
|
|
978
|
-
})),
|
|
1025
|
+
})), Le = C("h2")({
|
|
979
1026
|
position: "absolute",
|
|
980
1027
|
left: "-10000px",
|
|
981
1028
|
top: "auto",
|
|
982
1029
|
width: "1px",
|
|
983
1030
|
height: "1px",
|
|
984
1031
|
overflow: "hidden"
|
|
985
|
-
}),
|
|
1032
|
+
}), Re = C(le)(({ theme: e }) => ({
|
|
986
1033
|
color: y.text(),
|
|
987
1034
|
marginBottom: e.spacing(2)
|
|
988
1035
|
}));
|
|
989
1036
|
//#endregion
|
|
990
|
-
export {
|
|
1037
|
+
export { De as t };
|
|
991
1038
|
|
|
992
|
-
//# sourceMappingURL=main-
|
|
1039
|
+
//# sourceMappingURL=main-qc9k2bIv.js.map
|