@pie-element/math-inline 12.1.1-next.15 → 12.1.1-next.17

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.
@@ -1,11 +1,11 @@
1
- import { a as e, t, y as n } from "./dist-BTyrpsXL.js";
2
- import { C as r, L as i, M as a, Ot as o, S as s, T as c, _ as l, dt as u, f as d, ft as f, h as ee, m as p, mt as m, n as h, p as g, u as te, ut as _, v, w as y, z as b } from "./dist-gZPCFLwA.js";
3
- import { t as x } from "./dist-D9ARZhQk.js";
4
- import S, { useRef as C } from "react";
5
- import { jsx as w, jsxs as T } from "react/jsx-runtime";
6
- import ne from "react-dom";
1
+ import { a as e, t, y as n } from "./dist--pvq7WNe.js";
2
+ import { C as r, L as i, M as a, Ot as o, R as s, S as c, T as l, _ as u, dt as d, f as ee, ft as f, g as te, h as p, m, mt as h, n as g, u as ne, ut as _, v, w as y } from "./dist-D8taXDhz.js";
3
+ import { t as b } from "./dist-DiGNNRzu.js";
4
+ import x, { useRef as S } from "react";
5
+ import { jsx as C, jsxs as w } from "react/jsx-runtime";
6
+ import T from "react-dom";
7
7
  //#region ../../lib-react/correct-answer-toggle/dist/expander.js
8
- var E = /* @__PURE__ */ n(o(), 1), D = "height ease-in 300ms, opacity ease-in 300ms", O = m("div")(() => ({
8
+ var E = /* @__PURE__ */ n(o(), 1), D = "height ease-in 300ms, opacity ease-in 300ms", O = h("div")(() => ({
9
9
  position: "relative",
10
10
  height: 0,
11
11
  overflow: "hidden",
@@ -40,8 +40,8 @@ var E = /* @__PURE__ */ n(o(), 1), D = "height ease-in 300ms, opacity ease-in 30
40
40
  width: 0
41
41
  }
42
42
  })), k = (e) => {
43
- let { show: t, children: n, className: r } = e, i = C(null);
44
- return /* @__PURE__ */ w(f, {
43
+ let { show: t, children: n, className: r } = e, i = S(null);
44
+ return /* @__PURE__ */ C(f, {
45
45
  nodeRef: i,
46
46
  in: t,
47
47
  appear: !0,
@@ -53,7 +53,7 @@ var E = /* @__PURE__ */ n(o(), 1), D = "height ease-in 300ms, opacity ease-in 30
53
53
  exit: "exit",
54
54
  exitDone: "exit-done"
55
55
  },
56
- children: /* @__PURE__ */ w(O, {
56
+ children: /* @__PURE__ */ C(O, {
57
57
  ref: i,
58
58
  className: r,
59
59
  children: n
@@ -67,23 +67,23 @@ k.propTypes = {
67
67
  };
68
68
  //#endregion
69
69
  //#region ../../lib-react/icons/dist/correct-response-icon.js
70
- var A = ({ bgFill: e, fgFill: t }) => /* @__PURE__ */ T("svg", {
70
+ var A = ({ bgFill: e, fgFill: t }) => /* @__PURE__ */ w("svg", {
71
71
  preserveAspectRatio: "xMinYMin meet",
72
72
  version: "1.1",
73
73
  viewBox: "-283 359 34 35",
74
74
  style: { enableBackground: "new -283 359 34 35" },
75
75
  children: [
76
- /* @__PURE__ */ w("circle", {
76
+ /* @__PURE__ */ C("circle", {
77
77
  cx: "-266",
78
78
  cy: "375.9",
79
79
  r: "14",
80
80
  fill: e
81
81
  }),
82
- /* @__PURE__ */ w("path", {
82
+ /* @__PURE__ */ C("path", {
83
83
  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
84
  fill: e
85
85
  }),
86
- /* @__PURE__ */ w("polygon", {
86
+ /* @__PURE__ */ C("polygon", {
87
87
  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
88
  fill: t
89
89
  })
@@ -93,13 +93,13 @@ A.propTypes = {
93
93
  bgFill: E.default.string.isRequired,
94
94
  fgFill: E.default.string.isRequired
95
95
  };
96
- var j = ({ bgFill: e, fgFill: t, borderFill: n }) => /* @__PURE__ */ T("svg", {
96
+ var j = ({ bgFill: e, fgFill: t, borderFill: n }) => /* @__PURE__ */ w("svg", {
97
97
  preserveAspectRatio: "xMinYMin meet",
98
98
  version: "1.1",
99
99
  viewBox: "-129.5 127 34 35",
100
100
  style: { enableBackground: "new -129.5 127 34 35" },
101
101
  children: [
102
- /* @__PURE__ */ w("path", {
102
+ /* @__PURE__ */ C("path", {
103
103
  style: {
104
104
  fill: "#D0CAC5",
105
105
  stroke: "#E6E3E0",
@@ -108,7 +108,7 @@ var j = ({ bgFill: e, fgFill: t, borderFill: n }) => /* @__PURE__ */ T("svg", {
108
108
  },
109
109
  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
110
  }),
111
- /* @__PURE__ */ w("path", {
111
+ /* @__PURE__ */ C("path", {
112
112
  style: {
113
113
  fill: "#B3ABA4",
114
114
  stroke: "#CDC7C2",
@@ -117,17 +117,17 @@ var j = ({ bgFill: e, fgFill: t, borderFill: n }) => /* @__PURE__ */ T("svg", {
117
117
  },
118
118
  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
119
  }),
120
- /* @__PURE__ */ w("circle", {
120
+ /* @__PURE__ */ C("circle", {
121
121
  cx: "-114.2",
122
122
  cy: "143.5",
123
123
  r: "14",
124
124
  fill: e
125
125
  }),
126
- /* @__PURE__ */ w("path", {
126
+ /* @__PURE__ */ C("path", {
127
127
  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
128
  fill: n
129
129
  }),
130
- /* @__PURE__ */ w("polygon", {
130
+ /* @__PURE__ */ C("polygon", {
131
131
  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
132
  fill: t
133
133
  })
@@ -138,15 +138,15 @@ j.propTypes = {
138
138
  fgFill: E.default.string.isRequired,
139
139
  borderFill: E.default.string.isRequired
140
140
  };
141
- var M = m("div")(({ size: e }) => ({
141
+ var M = h("div")(({ size: e }) => ({
142
142
  width: e || "25px",
143
143
  height: e || "25px"
144
- })), N = ({ open: e, size: t }) => /* @__PURE__ */ w(M, {
144
+ })), N = ({ open: e, size: t }) => /* @__PURE__ */ C(M, {
145
145
  size: t,
146
- children: e ? /* @__PURE__ */ w(A, {
146
+ children: e ? /* @__PURE__ */ C(A, {
147
147
  bgFill: "#bce2ff",
148
148
  fgFill: "#1a9cff"
149
- }) : /* @__PURE__ */ w(j, {
149
+ }) : /* @__PURE__ */ C(j, {
150
150
  bgFill: "white",
151
151
  fgFill: "#1a9cff",
152
152
  borderFill: "#bce2ff"
@@ -164,29 +164,29 @@ function P(e) {
164
164
  function F(e, t) {
165
165
  return !e || P(e) ? e : P(e.default) ? e.default : t && P(e[t]) ? e[t] : t && P(e[t]?.default) ? e[t].default : e;
166
166
  }
167
- var I = F(y, "Readable") || F(z.Readable, "Readable"), L = v, R = L.default, z = R && typeof R == "object" ? R : L, { translator: B } = x, V = {
167
+ var I = F(y, "Readable") || F(z.Readable, "Readable"), L = v, R = L.default, z = R && typeof R == "object" ? R : L, { translator: B } = b, V = {
168
168
  WebkitTouchCallout: "none",
169
169
  WebkitUserSelect: "none",
170
170
  KhtmlUserSelect: "none",
171
171
  MozUserSelect: "none",
172
172
  msUserSelect: "none",
173
173
  userSelect: "none"
174
- }, re = m("div")(() => ({
174
+ }, re = h("div")(() => ({
175
175
  width: "100%",
176
176
  cursor: "pointer"
177
- })), H = m("div")(() => ({
177
+ })), H = h("div")(() => ({
178
178
  margin: "0 auto",
179
179
  textAlign: "center",
180
180
  display: "flex"
181
- })), U = m("div")(() => ({
181
+ })), U = h("div")(() => ({
182
182
  width: "fit-content",
183
183
  minWidth: "140px",
184
184
  alignSelf: "center",
185
185
  verticalAlign: "middle",
186
- color: `var(--correct-answer-toggle-label-color, ${u.text()})`,
186
+ color: `var(--correct-answer-toggle-label-color, ${d.text()})`,
187
187
  fontWeight: "normal",
188
188
  ...V
189
- })), W = m("div")(() => ({
189
+ })), W = h("div")(() => ({
190
190
  position: "absolute",
191
191
  width: "25px",
192
192
  "&.enter": { opacity: "0" },
@@ -199,12 +199,12 @@ var I = F(y, "Readable") || F(z.Readable, "Readable"), L = v, R = L.default, z =
199
199
  opacity: "0",
200
200
  transition: "opacity 0.3s ease-in"
201
201
  }
202
- })), G = m("div")(() => ({
202
+ })), G = h("div")(() => ({
203
203
  width: "25px",
204
204
  marginRight: "5px",
205
205
  display: "flex",
206
206
  alignItems: "center"
207
- })), ie = class e extends S.Component {
207
+ })), ie = class e extends x.Component {
208
208
  static propTypes = {
209
209
  onToggle: E.default.func,
210
210
  toggled: E.default.bool,
@@ -221,7 +221,7 @@ var I = F(y, "Readable") || F(z.Readable, "Readable"), L = v, R = L.default, z =
221
221
  toggled: !1
222
222
  };
223
223
  constructor(t) {
224
- super(t), this.state = { show: t.show }, this.openIconRef = S.createRef(), this.closedIconRef = S.createRef(), e.defaultProps = {
224
+ super(t), this.state = { show: t.show }, this.openIconRef = x.createRef(), this.closedIconRef = x.createRef(), e.defaultProps = {
225
225
  ...e.defaultProps,
226
226
  showMessage: B.t("common:showCorrectAnswer", { lng: t.language }),
227
227
  hideMessage: B.t("common:hideCorrectAnswer", { lng: t.language })
@@ -242,14 +242,14 @@ var I = F(y, "Readable") || F(z.Readable, "Readable"), L = v, R = L.default, z =
242
242
  }
243
243
  render() {
244
244
  let { className: e, toggled: t, hideMessage: n, showMessage: r } = this.props;
245
- return /* @__PURE__ */ w(re, {
245
+ return /* @__PURE__ */ C(re, {
246
246
  className: e,
247
- children: /* @__PURE__ */ w(k, {
247
+ children: /* @__PURE__ */ C(k, {
248
248
  show: this.state.show,
249
- children: /* @__PURE__ */ T(H, {
249
+ children: /* @__PURE__ */ w(H, {
250
250
  onClick: this.onClick.bind(this),
251
251
  onTouchEnd: this.onTouch.bind(this),
252
- children: [/* @__PURE__ */ T(G, { children: [/* @__PURE__ */ w(f, {
252
+ children: [/* @__PURE__ */ w(G, { children: [/* @__PURE__ */ C(f, {
253
253
  nodeRef: this.openIconRef,
254
254
  timeout: 400,
255
255
  in: t,
@@ -260,11 +260,11 @@ var I = F(y, "Readable") || F(z.Readable, "Readable"), L = v, R = L.default, z =
260
260
  exit: "exit",
261
261
  exitActive: "exit-active"
262
262
  },
263
- children: /* @__PURE__ */ w(W, {
263
+ children: /* @__PURE__ */ C(W, {
264
264
  ref: this.openIconRef,
265
- children: /* @__PURE__ */ w(N, { open: t }, "correct-open")
265
+ children: /* @__PURE__ */ C(N, { open: t }, "correct-open")
266
266
  })
267
- }), /* @__PURE__ */ w(f, {
267
+ }), /* @__PURE__ */ C(f, {
268
268
  nodeRef: this.closedIconRef,
269
269
  timeout: 5e3,
270
270
  in: !t,
@@ -275,13 +275,13 @@ var I = F(y, "Readable") || F(z.Readable, "Readable"), L = v, R = L.default, z =
275
275
  exit: "exit",
276
276
  exitActive: "exit-active"
277
277
  },
278
- children: /* @__PURE__ */ w(W, {
278
+ children: /* @__PURE__ */ C(W, {
279
279
  ref: this.closedIconRef,
280
- children: /* @__PURE__ */ w(N, { open: t }, "correct-closed")
280
+ children: /* @__PURE__ */ C(N, { open: t }, "correct-closed")
281
281
  })
282
- })] }), /* @__PURE__ */ w(I, {
282
+ })] }), /* @__PURE__ */ C(I, {
283
283
  false: !0,
284
- children: /* @__PURE__ */ w(U, {
284
+ children: /* @__PURE__ */ C(U, {
285
285
  "aria-hidden": !this.state.show,
286
286
  children: t ? n : r
287
287
  })
@@ -293,14 +293,14 @@ var I = F(y, "Readable") || F(z.Readable, "Readable"), L = v, R = L.default, z =
293
293
  }, ae = {
294
294
  advanced: "Advanced Multi",
295
295
  simple: "Simple"
296
- }, oe = m("div")(({ theme: e }) => ({
296
+ }, oe = h("div")(({ theme: e }) => ({
297
297
  marginTop: e.spacing(2),
298
298
  marginBottom: e.spacing(2),
299
299
  padding: e.spacing(1)
300
- })), se = m("div", { shouldForwardProp: (e) => !["isCorrect", "isIncorrect"].includes(e) })(({ theme: e, isCorrect: t, isIncorrect: n }) => ({
301
- color: u.text(),
302
- background: u.background(),
303
- border: t ? `2px solid ${u.correct()} !important` : n ? `2px solid ${u.incorrect()} !important` : `1px solid ${u.primaryLight()}`,
300
+ })), se = h("div", { shouldForwardProp: (e) => !["isCorrect", "isIncorrect"].includes(e) })(({ theme: e, isCorrect: t, isIncorrect: n }) => ({
301
+ color: d.text(),
302
+ background: d.background(),
303
+ border: t ? `2px solid ${d.correct()} !important` : n ? `2px solid ${d.incorrect()} !important` : `1px solid ${d.primaryLight()}`,
304
304
  width: "fit-content",
305
305
  fontSize: "1rem",
306
306
  padding: t || n ? e.spacing(1) : e.spacing(.5),
@@ -322,12 +322,12 @@ if (typeof document < "u") {
322
322
  padding: 8px;
323
323
  }
324
324
  .response-editor.mq-math-mode {
325
- border: 1px solid ${u.primaryLight()};
325
+ border: 1px solid ${d.primaryLight()};
326
326
  }
327
327
  `, document.head.appendChild(t);
328
328
  }
329
329
  }
330
- var ce = class extends S.Component {
330
+ var ce = class extends x.Component {
331
331
  static propTypes = {
332
332
  onSimpleResponseChange: E.default.func,
333
333
  model: E.default.object.isRequired,
@@ -354,15 +354,15 @@ var ce = class extends S.Component {
354
354
  let { model: e, showCorrect: t, session: n, emptyResponse: r, onSimpleResponseChange: i, showKeypad: a } = this.props, { config: o, disabled: s, correctness: c } = e || {};
355
355
  if (!o) return;
356
356
  let l = c && c.correct, { responses: u, equationEditor: d } = o;
357
- return /* @__PURE__ */ w(oe, {
357
+ return /* @__PURE__ */ C(oe, {
358
358
  "data-keypad": !0,
359
- children: t || s ? /* @__PURE__ */ w(se, {
359
+ children: t || s ? /* @__PURE__ */ C(se, {
360
360
  isIncorrect: !r && !l && !t,
361
361
  isCorrect: !r && (l || t),
362
- children: /* @__PURE__ */ w(p.Static, { latex: t ? u && u.length && u[0].answer : n.response || "" })
363
- }) : /* @__PURE__ */ w("div", {
362
+ children: /* @__PURE__ */ C(m.Static, { latex: t ? u && u.length && u[0].answer : n.response || "" })
363
+ }) : /* @__PURE__ */ C("div", {
364
364
  id: this.mathToolBarId,
365
- children: /* @__PURE__ */ w(h, {
365
+ children: /* @__PURE__ */ C(g, {
366
366
  classNames: { editor: "response-editor" },
367
367
  latex: n.response,
368
368
  keypadMode: d,
@@ -385,7 +385,7 @@ function K(e) {
385
385
  function q(e, t) {
386
386
  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
387
  }
388
- var le = q(a, "UiLayout") || q(X.UiLayout, "UiLayout"), J = q(c, "PreviewPrompt") || q(X.PreviewPrompt, "PreviewPrompt"), ue = q(y, "Readable") || q(X.Readable, "Readable"), de = q(i, "Collapsible") || q(X.Collapsible, "Collapsible"), fe = q(_, "Feedback") || q(X.Feedback, "Feedback"), pe = v, Y = pe.default, X = Y && typeof Y == "object" ? Y : pe, { translator: Z } = x, me = !1, he = /\\newline/g, Q = /{{response}}/gm, ge = 6, _e = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
388
+ var le = q(a, "UiLayout") || q(X.UiLayout, "UiLayout"), J = q(l, "PreviewPrompt") || q(X.PreviewPrompt, "PreviewPrompt"), ue = q(y, "Readable") || q(X.Readable, "Readable"), de = q(i, "Collapsible") || q(X.Collapsible, "Collapsible"), fe = q(_, "Feedback") || q(X.Feedback, "Feedback"), pe = v, Y = pe.default, X = Y && typeof Y == "object" ? Y : pe, { translator: Z } = b, me = !1, he = /\\newline/g, Q = /{{response}}/gm, ge = 6, _e = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
389
389
  function ve(e = []) {
390
390
  return e.map((e) => ({
391
391
  name: e,
@@ -431,7 +431,7 @@ function Se(e, t) {
431
431
  }
432
432
  return n;
433
433
  }
434
- var Ce = class extends S.Component {
434
+ var Ce = class extends x.Component {
435
435
  static propTypes = {
436
436
  session: E.default.object.isRequired,
437
437
  onSessionChange: E.default.func,
@@ -447,11 +447,11 @@ var Ce = class extends S.Component {
447
447
  },
448
448
  activeAnswerBlock: "",
449
449
  showCorrect: this.props.model.config.alwaysShowCorrect || !1,
450
- tooltipContainerRef: S.createRef()
450
+ tooltipContainerRef: x.createRef()
451
451
  };
452
452
  }
453
453
  UNSAFE_componentWillMount() {
454
- typeof window < "u" && (me ||= (g("answerBlock", (e) => {
454
+ typeof window < "u" && (me ||= (te("answerBlock", (e) => {
455
455
  let t = we();
456
456
  return {
457
457
  htmlString: `<div class="${t.blockContainer}">
@@ -471,9 +471,9 @@ var Ce = class extends S.Component {
471
471
  let n = this.root.querySelector(`#${t}`), i = this.root.querySelector(`#${t}Index`);
472
472
  if (n) {
473
473
  let a = r[t];
474
- d(n, a && a.value || ""), e.view && (n.parentElement.parentElement.classList.remove("correct"), n.parentElement.parentElement.classList.remove("incorrect")), i.textContent = "R";
474
+ p(n, a && a.value || ""), e.view && (n.parentElement.parentElement.classList.remove("correct"), n.parentElement.parentElement.classList.remove("incorrect")), i.textContent = "R";
475
475
  }
476
- }), b(this.root);
476
+ }), s(this.root);
477
477
  };
478
478
  countResponseOccurrences(e) {
479
479
  let t = e?.match(/\{\{response\}\}/g);
@@ -503,7 +503,7 @@ var Ce = class extends S.Component {
503
503
  return !r || !i;
504
504
  }
505
505
  componentDidMount() {
506
- this.handleAnswerBlockDomUpdate(), this.updateAria(), setTimeout(() => b(this.root), 100);
506
+ this.handleAnswerBlockDomUpdate(), this.updateAria(), setTimeout(() => s(this.root), 100);
507
507
  }
508
508
  componentDidUpdate(e, t) {
509
509
  this.handleAnswerBlockDomUpdate(), e.model?.config?.responseType !== this.props.model?.config?.responseType && this.updateAria();
@@ -581,7 +581,7 @@ var Ce = class extends S.Component {
581
581
  this.setState({ showCorrect: e }, this.handleAnswerBlockDomUpdate);
582
582
  };
583
583
  subFieldChanged = (e, t) => {
584
- if (l(), e) {
584
+ if (u(), e) {
585
585
  let n = window.scrollX, r = window.scrollY;
586
586
  this.setState((n) => ({ session: {
587
587
  ...n.session,
@@ -628,9 +628,9 @@ var Ce = class extends S.Component {
628
628
  }, 1);
629
629
  }
630
630
  render() {
631
- let { model: t } = this.props, { activeAnswerBlock: n, showCorrect: i, session: a, tooltipContainerRef: o } = this.state, { config: c, correctness: l, disabled: d, extraCSSRules: f, view: m, teacherInstructions: h, rationale: g, feedback: _, animationsDisabled: v, printMode: y, alwaysShowCorrect: b, language: x } = t || {};
632
- if (!c) return null;
633
- let { showNote: S, note: C, prompt: E, responses: D, responseType: O, equationEditor: k, customKeys: A, id: j, env: { mode: M, role: N } = {} } = c || {}, P = (i || M === "view" && N === "instructor") && S && C, F = e(D), I = !F && l && l.correctness !== "correct", L = d && l, R = ve(A), z = l && l.correct, B = xe(t, this.state) || "", V = d && !l, re = y && !b, H = g && (r(g) || s(g)), U = h && (r(h) || s(h)), W = /* @__PURE__ */ w(Ne, { children: /* @__PURE__ */ w(p.Static, {
631
+ let { model: t } = this.props, { activeAnswerBlock: n, showCorrect: i, session: a, tooltipContainerRef: o } = this.state, { config: s, correctness: l, disabled: u, extraCSSRules: f, view: te, teacherInstructions: p, rationale: h, feedback: g, animationsDisabled: _, printMode: v, alwaysShowCorrect: y, language: b } = t || {};
632
+ if (!s) return null;
633
+ let { showNote: x, note: S, prompt: E, responses: D, responseType: O, equationEditor: k, customKeys: A, id: j, env: { mode: M, role: N } = {} } = s || {}, P = (i || M === "view" && N === "instructor") && x && S, F = e(D), I = !F && l && l.correctness !== "correct", L = u && l, R = ve(A), z = l && l.correct, B = xe(t, this.state) || "", V = u && !l, re = v && !y, H = h && (r(h) || c(h)), U = p && (r(p) || c(p)), W = /* @__PURE__ */ C(Ne, { children: /* @__PURE__ */ C(m.Static, {
634
634
  className: "static-math",
635
635
  ref: (e) => {
636
636
  e && (this.mqStatic = e);
@@ -641,21 +641,21 @@ var Ce = class extends S.Component {
641
641
  setInput: this.setInput,
642
642
  onSubFieldFocus: this.onSubFieldFocus,
643
643
  onBlur: this.onBlur
644
- }) }), G = /* @__PURE__ */ T(Oe, { children: [
645
- M === "gather" && /* @__PURE__ */ w(Pe, { children: "Math Equation Response Question" }),
646
- V && U && (v ? /* @__PURE__ */ w("div", { dangerouslySetInnerHTML: { __html: h } }) : /* @__PURE__ */ w($, {
644
+ }) }), G = /* @__PURE__ */ w(Oe, { children: [
645
+ M === "gather" && /* @__PURE__ */ C(Pe, { children: "Math Equation Response Question" }),
646
+ V && U && (_ ? /* @__PURE__ */ C("div", { dangerouslySetInnerHTML: { __html: p } }) : /* @__PURE__ */ C($, {
647
647
  labels: {
648
648
  hidden: "Show Teacher Instructions",
649
649
  visible: "Hide Teacher Instructions"
650
650
  },
651
- children: /* @__PURE__ */ w("div", { dangerouslySetInnerHTML: { __html: h } })
651
+ children: /* @__PURE__ */ C("div", { dangerouslySetInnerHTML: { __html: p } })
652
652
  })),
653
- E && /* @__PURE__ */ w(De, { children: /* @__PURE__ */ w(J, { prompt: E }) }),
654
- re ? W : /* @__PURE__ */ w(ue, {
653
+ E && /* @__PURE__ */ C(De, { children: /* @__PURE__ */ C(J, { prompt: E }) }),
654
+ re ? W : /* @__PURE__ */ C(ue, {
655
655
  false: !0,
656
- children: /* @__PURE__ */ T(Me, {
656
+ children: /* @__PURE__ */ w(Me, {
657
657
  tabIndex: 0,
658
- children: [O === ae.simple && /* @__PURE__ */ w(ce, {
658
+ children: [O === ae.simple && /* @__PURE__ */ C(ce, {
659
659
  onSimpleResponseChange: this.onSimpleResponseChange,
660
660
  showCorrect: i,
661
661
  emptyResponse: F,
@@ -663,14 +663,14 @@ var Ce = class extends S.Component {
663
663
  session: a,
664
664
  onSubFieldFocus: this.onSubFieldFocus,
665
665
  showKeypad: !!n
666
- }), O === ae.advanced && /* @__PURE__ */ w(je, {
666
+ }), O === ae.advanced && /* @__PURE__ */ C(je, {
667
667
  ref: o,
668
668
  isIncorrect: !F && !z && !i,
669
669
  isCorrect: !F && (z || i),
670
- showCorrectness: !F && d && l && !m,
670
+ showCorrectness: !F && u && l && !te,
671
671
  correctAnswerShown: i,
672
- printCorrect: y && b,
673
- children: /* @__PURE__ */ w(te, {
672
+ printCorrect: v && y,
673
+ children: /* @__PURE__ */ C(ne, {
674
674
  ref: (e) => this.setTooltipRef(e),
675
675
  enterTouchDelay: 0,
676
676
  interactive: !0,
@@ -720,16 +720,16 @@ var Ce = class extends S.Component {
720
720
  boxShadow: "none"
721
721
  } }
722
722
  },
723
- title: Object.keys(a.answers).map((e) => e === n && !(i || d) && /* @__PURE__ */ w(Ae, {
723
+ title: Object.keys(a.answers).map((e) => e === n && !(i || u) && /* @__PURE__ */ C(Ae, {
724
724
  "data-keypad": !0,
725
725
  style: { width: be(R, k) },
726
- children: /* @__PURE__ */ w(ee, {
726
+ children: /* @__PURE__ */ C(ee, {
727
727
  additionalKeys: R,
728
728
  mode: k || ge,
729
729
  onClick: this.onClick
730
730
  })
731
731
  }, e) || null),
732
- children: /* @__PURE__ */ w("div", { children: /* @__PURE__ */ w(p.Static, {
732
+ children: /* @__PURE__ */ C("div", { children: /* @__PURE__ */ C(m.Static, {
733
733
  className: "static-math",
734
734
  ref: (e) => {
735
735
  e && (this.mqStatic = e);
@@ -745,31 +745,31 @@ var Ce = class extends S.Component {
745
745
  })]
746
746
  })
747
747
  }),
748
- V && P && /* @__PURE__ */ w(ke, { dangerouslySetInnerHTML: { __html: `<strong>Note:</strong> ${C}` } }),
749
- V && H && (v ? /* @__PURE__ */ w("div", { dangerouslySetInnerHTML: { __html: g } }) : /* @__PURE__ */ w(de, {
748
+ V && P && /* @__PURE__ */ C(ke, { dangerouslySetInnerHTML: { __html: `<strong>Note:</strong> ${S}` } }),
749
+ V && H && (_ ? /* @__PURE__ */ C("div", { dangerouslySetInnerHTML: { __html: h } }) : /* @__PURE__ */ C(de, {
750
750
  labels: {
751
751
  hidden: "Show Rationale",
752
752
  visible: "Hide Rationale"
753
753
  },
754
- children: /* @__PURE__ */ w("div", { dangerouslySetInnerHTML: { __html: g } })
754
+ children: /* @__PURE__ */ C("div", { dangerouslySetInnerHTML: { __html: h } })
755
755
  }))
756
756
  ] });
757
- return L && (I || U || H || _) ? /* @__PURE__ */ w(Te, {
757
+ return L && (I || U || H || g) ? /* @__PURE__ */ C(Te, {
758
758
  extraCSSRules: f,
759
759
  ref: (e) => {
760
- let t = ne.findDOMNode(e);
760
+ let t = T.findDOMNode(e);
761
761
  this.root = t || this.root;
762
762
  },
763
- children: /* @__PURE__ */ w(Ee, {
763
+ children: /* @__PURE__ */ C(Ee, {
764
764
  interactive: !0,
765
765
  enterTouchDelay: 0,
766
766
  placement: "bottom-start",
767
767
  slotProps: {
768
768
  tooltip: { sx: (e) => ({
769
- background: `${u.primaryLight()} !important`,
770
- color: u.text(),
769
+ background: `${d.primaryLight()} !important`,
770
+ color: d.text(),
771
771
  padding: e.spacing(2),
772
- border: `1px solid ${u.secondary()}`,
772
+ border: `1px solid ${d.secondary()}`,
773
773
  fontSize: "16px",
774
774
  "& :not(.MathJax) > table tr": { "&:nth-child(2n)": { backgroundColor: "unset !important" } }
775
775
  }) },
@@ -781,46 +781,46 @@ var Ce = class extends S.Component {
781
781
  }]
782
782
  }
783
783
  },
784
- title: /* @__PURE__ */ T("div", { children: [
785
- /* @__PURE__ */ w(Oe, { children: I && /* @__PURE__ */ w(Fe, {
786
- language: x,
784
+ title: /* @__PURE__ */ w("div", { children: [
785
+ /* @__PURE__ */ C(Oe, { children: I && /* @__PURE__ */ C(Fe, {
786
+ language: b,
787
787
  show: !0,
788
788
  toggled: i,
789
789
  onToggle: this.toggleShowCorrect
790
790
  }) }),
791
- U && /* @__PURE__ */ w($, {
791
+ U && /* @__PURE__ */ C($, {
792
792
  labels: {
793
793
  hidden: "Show Teacher Instructions",
794
794
  visible: "Hide Teacher Instructions"
795
795
  },
796
- children: /* @__PURE__ */ w(J, { prompt: h })
796
+ children: /* @__PURE__ */ C(J, { prompt: p })
797
797
  }, "collapsible-teacher-instructions"),
798
- P && r(C) && /* @__PURE__ */ w($, {
798
+ P && r(S) && /* @__PURE__ */ C($, {
799
799
  labels: {
800
- hidden: Z.t("common:showNote", { lng: x }),
801
- visible: Z.t("common:hideNote", { lng: x })
800
+ hidden: Z.t("common:showNote", { lng: b }),
801
+ visible: Z.t("common:hideNote", { lng: b })
802
802
  },
803
- children: /* @__PURE__ */ w(J, { prompt: C })
803
+ children: /* @__PURE__ */ C(J, { prompt: S })
804
804
  }, "collapsible-note"),
805
- H && /* @__PURE__ */ w($, {
805
+ H && /* @__PURE__ */ C($, {
806
806
  labels: {
807
807
  hidden: "Show Rationale",
808
808
  visible: "Hide Rationale"
809
809
  },
810
- children: /* @__PURE__ */ w(J, { prompt: g })
810
+ children: /* @__PURE__ */ C(J, { prompt: h })
811
811
  }, "collapsible-rationale"),
812
- _ && /* @__PURE__ */ w(fe, {
812
+ g && /* @__PURE__ */ C(fe, {
813
813
  correctness: l.correctness,
814
- feedback: _
814
+ feedback: g
815
815
  })
816
816
  ] }),
817
817
  children: G
818
818
  })
819
- }) : /* @__PURE__ */ w(Te, {
819
+ }) : /* @__PURE__ */ C(Te, {
820
820
  id: j,
821
821
  extraCSSRules: f,
822
822
  ref: (e) => {
823
- let t = ne.findDOMNode(e);
823
+ let t = T.findDOMNode(e);
824
824
  this.root = t || this.root;
825
825
  },
826
826
  children: G
@@ -855,8 +855,8 @@ if (typeof document < "u") {
855
855
  flex-basis: auto;
856
856
  }
857
857
  .block-math {
858
- color: ${u.text()};
859
- background-color: ${u.background()};
858
+ color: ${d.text()};
859
+ background-color: ${d.background()};
860
860
  padding: 4px !important;
861
861
  display: flex;
862
862
  align-items: center;
@@ -875,32 +875,32 @@ if (typeof document < "u") {
875
875
  overflow: hidden;
876
876
  }
877
877
  .static-math > .mq-root-block > .mq-editable-field {
878
- border-color: ${u.text()};
878
+ border-color: ${d.text()};
879
879
  }
880
880
  `, document.head.appendChild(t);
881
881
  }
882
882
  }
883
- var Te = m(le)(() => ({
884
- color: u.text(),
885
- backgroundColor: u.background(),
883
+ var Te = h(le)(() => ({
884
+ color: d.text(),
885
+ backgroundColor: d.background(),
886
886
  display: "inline-block"
887
- })), Ee = m(te)({}), De = m("div")(({ theme: e }) => ({ marginBottom: e.spacing(2) })), Oe = m("div")({
887
+ })), Ee = h(ne)({}), De = h("div")(({ theme: e }) => ({ marginBottom: e.spacing(2) })), Oe = h("div")({
888
888
  width: "100%",
889
889
  position: "relative",
890
- backgroundColor: u.background(),
891
- color: u.text()
892
- }), ke = m("div")(({ theme: e }) => ({ paddingBottom: e.spacing(2) })), $ = m(de)(({ theme: e }) => ({ marginBottom: e.spacing(2) })), Ae = m("div")(({ theme: e }) => ({
890
+ backgroundColor: d.background(),
891
+ color: d.text()
892
+ }), ke = h("div")(({ theme: e }) => ({ paddingBottom: e.spacing(2) })), $ = h(de)(({ theme: e }) => ({ marginBottom: e.spacing(2) })), Ae = h("div")(({ theme: e }) => ({
893
893
  zIndex: 10,
894
894
  minWidth: "400px",
895
895
  marginTop: e.spacing(2)
896
- })), je = m("div", { shouldForwardProp: (e) => ![
896
+ })), je = h("div", { shouldForwardProp: (e) => ![
897
897
  "isIncorrect",
898
898
  "isCorrect",
899
899
  "showCorrectness",
900
900
  "correctAnswerShown",
901
901
  "printCorrect"
902
902
  ].includes(e) })(({ theme: e, isIncorrect: t, isCorrect: n, showCorrectness: r, correctAnswerShown: i, printCorrect: a }) => {
903
- let o = t ? u.incorrect() : n ? u.correct() : void 0;
903
+ let o = t ? d.incorrect() : n ? d.correct() : void 0;
904
904
  return {
905
905
  maxWidth: "fit-content",
906
906
  padding: e.spacing(.25),
@@ -910,7 +910,7 @@ var Te = m(le)(() => ({
910
910
  padding: e.spacing(1),
911
911
  letterSpacing: "0.5px"
912
912
  },
913
- ...a && { border: `2px solid ${u.correct()} !important` },
913
+ ...a && { border: `2px solid ${d.correct()} !important` },
914
914
  "& .mq-math-mode": {
915
915
  "& .mq-root-block": {
916
916
  paddingRight: "0 !important",
@@ -923,7 +923,7 @@ var Te = m(le)(() => ({
923
923
  "& sup": { top: 0 }
924
924
  }
925
925
  };
926
- }), Me = m("div")({
926
+ }), Me = h("div")({
927
927
  position: "relative",
928
928
  "& .mq-overarrow-inner": {
929
929
  border: "none !important",
@@ -953,21 +953,21 @@ var Te = m(le)(() => ({
953
953
  paddingTop: "1.5px !important"
954
954
  },
955
955
  "& .mq-parallelogram": { lineHeight: .85 }
956
- }), Ne = m("div")(({ theme: e }) => ({
956
+ }), Ne = h("div")(({ theme: e }) => ({
957
957
  marginBottom: e.spacing(1),
958
958
  pointerEvents: "none"
959
- })), Pe = m("h2")({
959
+ })), Pe = h("h2")({
960
960
  position: "absolute",
961
961
  left: "-10000px",
962
962
  top: "auto",
963
963
  width: "1px",
964
964
  height: "1px",
965
965
  overflow: "hidden"
966
- }), Fe = m(ie)(({ theme: e }) => ({
967
- color: u.text(),
966
+ }), Fe = h(ie)(({ theme: e }) => ({
967
+ color: d.text(),
968
968
  marginBottom: e.spacing(2)
969
969
  }));
970
970
  //#endregion
971
971
  export { Ce as t };
972
972
 
973
- //# sourceMappingURL=main-DIAGtm9r.js.map
973
+ //# sourceMappingURL=main-AjqUtC75.js.map