@pie-element/placement-ordering 14.1.2-next.32 → 14.1.2-next.34

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,5 +1,5 @@
1
1
  import { A as e, C as t, _ as n, b as r, g as i, l as a, r as o, t as s, u as c, v as l } from "../browser-0nthm_zo.js";
2
- import { Lt as u, Rt as d, T as f, at as p, c as m, ct as h, dt as g, ft as _, l as v, lt as y, mt as b, n as x, ot as S, s as C, st as w, t as ee, u as T, ut as E, v as D } from "../drag-provider-DeiwQ8qp.js";
2
+ import { Lt as u, T as d, at as f, c as p, ct as m, dt as h, ft as g, l as _, lt as v, mt as y, n as b, ot as x, s as S, st as C, t as w, u as T, ut as ee, v as E, zt as D } from "../drag-provider-y_FDVLLA.js";
3
3
  import { t as O } from "../dist-DCmVXYeO.js";
4
4
  import k, { createElement as A, useRef as j } from "react";
5
5
  import { createRoot as M } from "react-dom/client";
@@ -116,7 +116,7 @@ re.propTypes = {
116
116
  fgFill: L.default.string.isRequired,
117
117
  borderFill: L.default.string.isRequired
118
118
  };
119
- var ie = b("div")(({ size: e }) => ({
119
+ var ie = y("div")(({ size: e }) => ({
120
120
  width: e || "25px",
121
121
  height: e || "25px"
122
122
  })), B = ({ open: e, size: t }) => /* @__PURE__ */ P(ie, {
@@ -136,7 +136,7 @@ B.propTypes = {
136
136
  }, B.defaultProps = { open: !1 };
137
137
  //#endregion
138
138
  //#region ../../lib-react/correct-answer-toggle/dist/expander.js
139
- var ae = "height ease-in 300ms, opacity ease-in 300ms", oe = b("div")(() => ({
139
+ var ae = "height ease-in 300ms, opacity ease-in 300ms", oe = y("div")(() => ({
140
140
  position: "relative",
141
141
  height: 0,
142
142
  overflow: "hidden",
@@ -172,7 +172,7 @@ var ae = "height ease-in 300ms, opacity ease-in 300ms", oe = b("div")(() => ({
172
172
  }
173
173
  })), se = (e) => {
174
174
  let { show: t, children: n, className: r } = e, i = j(null);
175
- return /* @__PURE__ */ P(S, {
175
+ return /* @__PURE__ */ P(x, {
176
176
  nodeRef: i,
177
177
  in: t,
178
178
  appear: !0,
@@ -204,29 +204,29 @@ function V(e) {
204
204
  function ce(e, t) {
205
205
  return !e || V(e) ? e : V(e.default) ? e.default : t && V(e[t]) ? e[t] : t && V(e[t]?.default) ? e[t].default : e;
206
206
  }
207
- var le = ce(v, "Readable") || ce(ue.Readable, "Readable"), H = x, U = H.default, ue = U && typeof U == "object" ? U : H, { translator: W } = O, de = {
207
+ var le = ce(_, "Readable") || ce(ue.Readable, "Readable"), H = b, U = H.default, ue = U && typeof U == "object" ? U : H, { translator: W } = O, de = {
208
208
  WebkitTouchCallout: "none",
209
209
  WebkitUserSelect: "none",
210
210
  KhtmlUserSelect: "none",
211
211
  MozUserSelect: "none",
212
212
  msUserSelect: "none",
213
213
  userSelect: "none"
214
- }, fe = b("div")(() => ({
214
+ }, fe = y("div")(() => ({
215
215
  width: "100%",
216
216
  cursor: "pointer"
217
- })), pe = b("div")(() => ({
217
+ })), pe = y("div")(() => ({
218
218
  margin: "0 auto",
219
219
  textAlign: "center",
220
220
  display: "flex"
221
- })), me = b("div")(() => ({
221
+ })), me = y("div")(() => ({
222
222
  width: "fit-content",
223
223
  minWidth: "140px",
224
224
  alignSelf: "center",
225
225
  verticalAlign: "middle",
226
- color: `var(--correct-answer-toggle-label-color, ${w.text()})`,
226
+ color: `var(--correct-answer-toggle-label-color, ${C.text()})`,
227
227
  fontWeight: "normal",
228
228
  ...de
229
- })), G = b("div")(() => ({
229
+ })), G = y("div")(() => ({
230
230
  position: "absolute",
231
231
  width: "25px",
232
232
  "&.enter": { opacity: "0" },
@@ -239,7 +239,7 @@ var le = ce(v, "Readable") || ce(ue.Readable, "Readable"), H = x, U = H.default,
239
239
  opacity: "0",
240
240
  transition: "opacity 0.3s ease-in"
241
241
  }
242
- })), he = b("div")(() => ({
242
+ })), he = y("div")(() => ({
243
243
  width: "25px",
244
244
  marginRight: "5px",
245
245
  display: "flex",
@@ -289,7 +289,7 @@ var le = ce(v, "Readable") || ce(ue.Readable, "Readable"), H = x, U = H.default,
289
289
  children: /* @__PURE__ */ F(pe, {
290
290
  onClick: this.onClick.bind(this),
291
291
  onTouchEnd: this.onTouch.bind(this),
292
- children: [/* @__PURE__ */ F(he, { children: [/* @__PURE__ */ P(S, {
292
+ children: [/* @__PURE__ */ F(he, { children: [/* @__PURE__ */ P(x, {
293
293
  nodeRef: this.openIconRef,
294
294
  timeout: 400,
295
295
  in: t,
@@ -304,7 +304,7 @@ var le = ce(v, "Readable") || ce(ue.Readable, "Readable"), H = x, U = H.default,
304
304
  ref: this.openIconRef,
305
305
  children: /* @__PURE__ */ P(B, { open: t }, "correct-open")
306
306
  })
307
- }), /* @__PURE__ */ P(S, {
307
+ }), /* @__PURE__ */ P(x, {
308
308
  nodeRef: this.closedIconRef,
309
309
  timeout: 5e3,
310
310
  in: !t,
@@ -348,7 +348,7 @@ function ve() {
348
348
  }
349
349
  //#endregion
350
350
  //#region ../../lib-react/drag/dist/placeholder.js
351
- var ye = b("div")(({ theme: e }) => ({
351
+ var ye = y("div")(({ theme: e }) => ({
352
352
  "&.placeholder": {
353
353
  WebkitTouchCallout: "none",
354
354
  WebkitUserSelect: "none",
@@ -358,22 +358,22 @@ var ye = b("div")(({ theme: e }) => ({
358
358
  userSelect: "none",
359
359
  width: "100%",
360
360
  height: "100%",
361
- background: w.white(),
361
+ background: C.white(),
362
362
  transition: "background-color 200ms linear, border-color 200ms linear",
363
363
  boxSizing: "border-box",
364
364
  display: "grid",
365
365
  gridRowGap: e.spacing(1),
366
366
  gridColumnGap: e.spacing(1),
367
367
  padding: e.spacing(1),
368
- border: `2px dashed ${w.black()}`
368
+ border: `2px dashed ${C.black()}`
369
369
  },
370
370
  "&.placeholderDisabled": {
371
371
  boxShadow: "none",
372
- background: w.white()
372
+ background: C.white()
373
373
  },
374
374
  "&.over": {
375
- border: `1px solid ${w.border()}`,
376
- backgroundColor: w.backgroundDark()
375
+ border: `1px solid ${C.border()}`,
376
+ backgroundColor: C.backgroundDark()
377
377
  },
378
378
  "&.board": {
379
379
  padding: e.spacing(1),
@@ -384,7 +384,7 @@ var ye = b("div")(({ theme: e }) => ({
384
384
  justifyContent: "center",
385
385
  overflow: "hidden",
386
386
  touchAction: "none",
387
- backgroundColor: w.surface()
387
+ backgroundColor: C.surface()
388
388
  },
389
389
  "&.categorizeBoard": {
390
390
  padding: e.spacing(.5),
@@ -395,7 +395,7 @@ var ye = b("div")(({ theme: e }) => ({
395
395
  justifyContent: "center",
396
396
  overflow: "hidden",
397
397
  touchAction: "none",
398
- backgroundColor: w.surface()
398
+ backgroundColor: C.surface()
399
399
  },
400
400
  "&.verticalPool": {
401
401
  display: "flex",
@@ -407,7 +407,7 @@ var ye = b("div")(({ theme: e }) => ({
407
407
  let e = a.rowsRepeatValue || "1fr";
408
408
  p.gridTemplateRows = `repeat(${a.rows}, ${e})`;
409
409
  }
410
- i === "choice" && (p.border = `1px solid ${w.borderLight()}`, p.background = w.surface());
410
+ i === "choice" && (p.border = `1px solid ${C.borderLight()}`, p.background = C.surface());
411
411
  let m = c ? "categorizeBoard" : "board";
412
412
  return /* @__PURE__ */ P(ye, {
413
413
  style: {
@@ -438,7 +438,7 @@ be.propTypes = {
438
438
  };
439
439
  //#endregion
440
440
  //#region src/delivery/tile.tsx
441
- var xe = (0, I.default)("pie-elements:placement-ordering:tile"), Se = b("div")(({ theme: e }) => ({
441
+ var xe = (0, I.default)("pie-elements:placement-ordering:tile"), Se = y("div")(({ theme: e }) => ({
442
442
  width: "100%",
443
443
  fontSize: e.typography.fontSize + 4,
444
444
  textAlign: "center",
@@ -455,33 +455,33 @@ Ce.propTypes = {
455
455
  isOver: L.default.bool,
456
456
  disabled: L.default.bool
457
457
  };
458
- var we = b("div")(({ theme: e, isDragging: t, isSelected: n, isOver: r, disabled: i, outcome: a, label: o, type: s }) => ({
458
+ var we = y("div")(({ theme: e, isDragging: t, isSelected: n, isOver: r, disabled: i, outcome: a, label: o, type: s }) => ({
459
459
  cursor: i ? "not-allowed" : "grab",
460
460
  width: "100%",
461
461
  height: "100%",
462
462
  padding: "10px",
463
463
  boxSizing: "border-box",
464
464
  overflow: "hidden",
465
- border: s === "choice" || s === "target" ? `1px solid ${w.border()}` : "1px solid transparent",
466
- backgroundColor: s === "choice" || s === "target" ? w.background() : "transparent",
465
+ border: s === "choice" || s === "target" ? `1px solid ${C.border()}` : "1px solid transparent",
466
+ backgroundColor: s === "choice" || s === "target" ? C.background() : "transparent",
467
467
  transition: s === "choice" || s === "target" ? "background-color 150ms ease, border-color 150ms ease, opacity 150ms ease" : "none",
468
468
  pointerEvents: "none",
469
469
  userSelect: "none",
470
470
  ...(s === "choice" || s === "target") && { "&:hover": {
471
- backgroundColor: i ? w.background() : w.secondary(),
472
- borderColor: i ? w.disabled() : e.palette.primary.main,
471
+ backgroundColor: i ? C.background() : C.secondary(),
472
+ borderColor: i ? C.disabled() : e.palette.primary.main,
473
473
  transform: i ? "none" : "scale(1.02)"
474
474
  } },
475
475
  ...(s === "choice" || s === "target") && r && !i && {
476
476
  opacity: .4,
477
- backgroundColor: w.primaryLight(),
477
+ backgroundColor: C.primaryLight(),
478
478
  borderColor: e.palette.primary.main,
479
479
  borderStyle: "dashed",
480
480
  transform: "scale(1.05)"
481
481
  },
482
482
  ...(s === "choice" || s === "target") && (t || n) && !i && {
483
483
  opacity: .6,
484
- backgroundColor: w.secondaryLight(),
484
+ backgroundColor: C.secondaryLight(),
485
485
  transform: "scale(1.05) rotate(2deg)",
486
486
  boxShadow: "0 8px 16px rgba(0,0,0,0.2)",
487
487
  cursor: "grabbing"
@@ -489,12 +489,12 @@ var we = b("div")(({ theme: e, isDragging: t, isSelected: n, isOver: r, disabled
489
489
  ...(s === "choice" || s === "target") && i && {
490
490
  cursor: "not-allowed",
491
491
  "&:hover": {
492
- backgroundColor: w.background(),
492
+ backgroundColor: C.background(),
493
493
  transform: "none"
494
494
  }
495
495
  },
496
- ...(s === "choice" || s === "target") && a === "incorrect" && { border: `1px solid ${w.incorrect()}` },
497
- ...(s === "choice" || s === "target") && a === "correct" && { border: `1px solid ${w.correct()}` },
496
+ ...(s === "choice" || s === "target") && a === "incorrect" && { border: `1px solid ${C.incorrect()}` },
497
+ ...(s === "choice" || s === "target") && a === "correct" && { border: `1px solid ${C.correct()}` },
498
498
  ...!o && {
499
499
  border: "none",
500
500
  "&:hover": { backgroundColor: "unset" }
@@ -517,21 +517,21 @@ var we = b("div")(({ theme: e, isDragging: t, isSelected: n, isOver: r, disabled
517
517
  dangerouslySetInnerHTML: { __html: o }
518
518
  });
519
519
  }, K = (e) => {
520
- let { label: t, type: n, id: r, empty: i, disabled: a, outcome: o, index: s, guideIndex: c, instanceId: l, draggable: u, tileIndex: d, selectedChoice: f, onChoiceClick: p, onPlacementClick: m } = e, h = `tile-${n}-${r ?? "empty"}-${d}-${l}`, v = `drop-${n}-${r ?? "empty"}-${d}-${l}`, y = {
520
+ let { label: t, type: n, id: r, empty: i, disabled: a, outcome: o, index: s, guideIndex: c, instanceId: l, draggable: u, tileIndex: d, selectedChoice: f, onChoiceClick: p, onPlacementClick: m } = e, _ = `tile-${n}-${r ?? "empty"}-${d}-${l}`, v = `drop-${n}-${r ?? "empty"}-${d}-${l}`, y = {
521
521
  id: r,
522
522
  type: n,
523
523
  instanceId: l,
524
524
  value: t,
525
525
  index: s
526
- }, { attributes: b, listeners: x, setNodeRef: S, transform: C, isDragging: w } = g({
527
- id: h,
526
+ }, { attributes: b, listeners: x, setNodeRef: S, transform: C, isDragging: w } = h({
527
+ id: _,
528
528
  data: y,
529
529
  disabled: !u || a
530
- }), { setNodeRef: ee, isOver: T } = _({
530
+ }), { setNodeRef: T, isOver: ee } = g({
531
531
  id: v,
532
532
  data: y,
533
533
  disabled: w
534
- }), E = !!f && f.type === y.type && f.id === y.id && f.index === y.index, [D, O] = k.useState(!1), A = !!f && !a, j = T || n === "target" && A && D, M = () => {
534
+ }), E = !!f && f.type === y.type && f.id === y.id && f.index === y.index, [D, O] = k.useState(!1), A = !!f && !a, j = ee || n === "target" && A && D, M = () => {
535
535
  a || (n === "choice" ? f?.type === "target" ? m?.(y) : u && p?.(y) : n === "target" && (E ? p?.(y) : f ? m?.(y) : u && p?.(y)));
536
536
  }, N = !(u && !a) && !a && A, F = (e) => {
537
537
  (e.code === "Space" || e.code === "Enter") && (e.preventDefault(), M());
@@ -545,7 +545,7 @@ var we = b("div")(({ theme: e, isDragging: t, isSelected: n, isOver: r, disabled
545
545
  };
546
546
  }, []);
547
547
  let te = (e) => {
548
- I.current = e, S(e), ee(e);
548
+ I.current = e, S(e), T(e);
549
549
  };
550
550
  xe("[render], props: ", e);
551
551
  let L = n === "target" ? `target-${s}` : n === "choice" ? `choice-${r}` : null, R = L ? `${l}:${L}` : void 0;
@@ -632,21 +632,21 @@ var q = {
632
632
  key: n
633
633
  }));
634
634
  return t.propTypes = { ...q }, t;
635
- }, Oe = b("div")(({ theme: e, includeTargets: t }) => ({
635
+ }, Oe = y("div")(({ theme: e, includeTargets: t }) => ({
636
636
  display: "grid",
637
637
  paddingBottom: e.spacing(2),
638
638
  ...t && { gridGap: "10px" }
639
- })), ke = b("div")({ textAlign: "center" }), Ae = b("div")({
639
+ })), ke = y("div")({ textAlign: "center" }), Ae = y("div")({
640
640
  textAlign: "center",
641
641
  gridRow: "3/4"
642
- }), je = b("div")(({ includeTargets: e }) => ({
642
+ }), je = y("div")(({ includeTargets: e }) => ({
643
643
  gridAutoFlow: "column",
644
644
  display: "grid",
645
645
  ...e && { gridGap: "10px" }
646
- })), Me = b("div")({
646
+ })), Me = y("div")({
647
647
  gridColumn: "1/2",
648
648
  textAlign: "center"
649
- }), Ne = b("div")({
649
+ }), Ne = y("div")({
650
650
  gridColumn: "2/3",
651
651
  textAlign: "center"
652
652
  }), Pe = class extends k.Component {
@@ -781,9 +781,9 @@ var He = (e, t) => {
781
781
  let n = (e) => e.map((e) => JSON.stringify(e)).sort(), r = n(e), i = n(t), a = r.every((e, t) => e === i[t]), o = e.every((e, n) => JSON.stringify(e) === JSON.stringify(t[n]));
782
782
  return a && !o;
783
783
  }, Ue = (e, { active: t, context: n, currentCoordinates: r }) => {
784
- let { code: i } = e, a = i === "Tab", o = i === h.Down || i === h.Up || i === h.Left || i === h.Right;
784
+ let { code: i } = e, a = i === "Tab", o = i === m.Down || i === m.Up || i === m.Left || i === m.Right;
785
785
  if (!a && !o) return;
786
- if (o) return y(e, {
786
+ if (o) return v(e, {
787
787
  context: n,
788
788
  currentCoordinates: r
789
789
  });
@@ -796,11 +796,11 @@ var He = (e, t) => {
796
796
  }, p = {
797
797
  x: r.x + f.x,
798
798
  y: r.y + f.y
799
- }, m = u?.get(t)?.data?.current?.id, g = d?.rect?.current?.initial, _ = typeof t == "string" ? t.replace(/^tile-/, "drop-") : void 0, v = [], b;
799
+ }, h = u?.get(t)?.data?.current?.id, g = d?.rect?.current?.initial, _ = typeof t == "string" ? t.replace(/^tile-/, "drop-") : void 0, y = [], b;
800
800
  for (let [e, t] of c) {
801
801
  let n = t?.data?.current, r = e === _;
802
802
  if (t?.disabled && !r) continue;
803
- let i = n?.type === "choice" && n?.id === m;
803
+ let i = n?.type === "choice" && n?.id === h;
804
804
  if (n?.type === "choice" && !i) continue;
805
805
  let a = (r ? g : null) || s.get(e);
806
806
  if (!a) continue;
@@ -815,17 +815,17 @@ var He = (e, t) => {
815
815
  },
816
816
  center: o
817
817
  };
818
- i ? b = c : v.push(c);
818
+ i ? b = c : y.push(c);
819
819
  }
820
- if (v.length === 0 && !b) return r;
820
+ if (y.length === 0 && !b) return r;
821
821
  let x = e.shiftKey;
822
- v.sort((e, t) => Math.abs(e.center.y - t.center.y) > 10 ? e.center.y - t.center.y : e.center.x - t.center.x), b && v.push(b);
822
+ y.sort((e, t) => Math.abs(e.center.y - t.center.y) > 10 ? e.center.y - t.center.y : e.center.x - t.center.x), b && y.push(b);
823
823
  let S = 0, C = Infinity;
824
- for (let e = 0; e < v.length; e++) {
825
- let t = We(p, v[e].center);
824
+ for (let e = 0; e < y.length; e++) {
825
+ let t = We(p, y[e].center);
826
826
  t < C && (C = t, S = e);
827
827
  }
828
- return v[x ? (S - 1 + v.length) % v.length : (S + 1) % v.length].dropPosition;
828
+ return y[x ? (S - 1 + y.length) % y.length : (S + 1) % y.length].dropPosition;
829
829
  }, We = (e, t) => Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2);
830
830
  //#endregion
831
831
  //#region src/delivery/placement-ordering.tsx
@@ -835,7 +835,7 @@ function Y(e) {
835
835
  function X(e, t) {
836
836
  return !e || Y(e) ? e : Y(e.default) ? e.default : t && Y(e[t]) ? e[t] : t && Y(e[t]?.default) ? e[t].default : e;
837
837
  }
838
- var Ge = X(D, "UiLayout") || X($.UiLayout, "UiLayout"), Z = X(T, "PreviewPrompt") || X($.PreviewPrompt, "PreviewPrompt"), Ke = X(p, "Feedback") || X($.Feedback, "Feedback"), qe = X(f, "Collapsible") || X($.Collapsible, "Collapsible"), Je = x, Q = Je.default, $ = Q && typeof Q == "object" ? Q : Je, Ye = 250, Xe = (e, t) => {
838
+ var Ge = X(E, "UiLayout") || X($.UiLayout, "UiLayout"), Z = X(T, "PreviewPrompt") || X($.PreviewPrompt, "PreviewPrompt"), Ke = X(f, "Feedback") || X($.Feedback, "Feedback"), qe = X(d, "Collapsible") || X($.Collapsible, "Collapsible"), Je = b, Q = Je.default, $ = Q && typeof Q == "object" ? Q : Je, Ye = 250, Xe = (e, t) => {
839
839
  if (!e || !t) return !1;
840
840
  let n = t.left + t.width / 2, r = t.top + t.height / 2;
841
841
  return n >= e.left && n <= e.right && r >= e.top && r <= e.bottom;
@@ -847,23 +847,23 @@ var Ge = X(D, "UiLayout") || X($.UiLayout, "UiLayout"), Z = X(T, "PreviewPrompt"
847
847
  end: ["Space", "Enter"]
848
848
  },
849
849
  accessibility: { screenReaderInstructions: { draggable: "Press Space or Enter to pick up this answer choice. Once picked up, use Tab or Shift+Tab to cycle through response areas, or use arrow keys to move it freely. Press Space or Enter to drop, or Escape to cancel." } }
850
- } : {}, { translator: Qe } = O, $e = (0, I.default)("pie-elements:placement-ordering"), et = b("div")({
851
- color: w.text(),
852
- backgroundColor: w.background(),
850
+ } : {}, { translator: Qe } = O, $e = (0, I.default)("pie-elements:placement-ordering"), et = y("div")({
851
+ color: C.text(),
852
+ backgroundColor: C.background(),
853
853
  display: "flex",
854
854
  flexDirection: "column",
855
855
  alignItems: "center",
856
856
  boxSizing: "border-box"
857
- }), tt = b("div")({
857
+ }), tt = y("div")({
858
858
  alignSelf: "stretch",
859
859
  maxWidth: "100%",
860
860
  overflowX: "auto",
861
861
  overflowY: "hidden"
862
- }), nt = b("div")({
862
+ }), nt = y("div")({
863
863
  display: "flex",
864
864
  justifyContent: "center",
865
865
  minWidth: "min-content"
866
- }), rt = b("div")(({ theme: e }) => ({ paddingBottom: e.spacing(1) })), it = b("div")(({ theme: e }) => ({ paddingBottom: e.spacing(2) })), at = b(ge)(({ theme: e }) => ({ paddingBottom: e.spacing(1) })), ot = b(qe)(({ theme: e }) => ({
866
+ }), rt = y("div")(({ theme: e }) => ({ paddingBottom: e.spacing(1) })), it = y("div")(({ theme: e }) => ({ paddingBottom: e.spacing(2) })), at = y(ge)(({ theme: e }) => ({ paddingBottom: e.spacing(1) })), ot = y(qe)(({ theme: e }) => ({
867
867
  marginBottom: e.spacing(2),
868
868
  alignSelf: "flex-start"
869
869
  })), st = (e) => {
@@ -902,7 +902,7 @@ var ct = class extends k.Component {
902
902
  }
903
903
  toggleCorrect = (e) => this.setState({ showingCorrect: e });
904
904
  componentDidUpdate() {
905
- d(N.findDOMNode(this));
905
+ D(N.findDOMNode(this));
906
906
  }
907
907
  validateSession = ({ model: e, session: t }, n = !1) => {
908
908
  let { config: r, choices: i } = e || {}, { includeTargets: a } = r || {}, s = i.map((e) => e.id), { value: c } = t || {}, u;
@@ -1032,12 +1032,12 @@ var ct = class extends k.Component {
1032
1032
  this.isClickSoonAfterDragEnd() || this.placeSelectedChoice(e);
1033
1033
  };
1034
1034
  render() {
1035
- let { model: e } = this.props, { correctResponse: t, correctness: n, extraCSSRules: r, prompt: i, rationale: a, feedback: o, config: s, note: c, showNote: l, env: u, disabled: d, teacherInstructions: f, language: p } = e, h = t && t.length > 0, { showingCorrect: g } = this.state, _ = s || {
1035
+ let { model: e } = this.props, { correctResponse: t, correctness: n, extraCSSRules: r, prompt: i, rationale: a, feedback: o, config: s, note: c, showNote: l, env: u, disabled: d, teacherInstructions: f, language: m } = e, h = t && t.length > 0, { showingCorrect: g } = this.state, _ = s || {
1036
1036
  orientation: "vertical",
1037
1037
  includeTargets: !0
1038
- }, { orientation: v, includeTargets: y } = _, b = v === "vertical", x = this.createOrdering(), { mode: S, role: T } = u || {}, D = b ? Fe : Pe, O = (g || S === "view" && T === "instructor") && l && c, k = a && (m(a) || C(a)), A = f && (m(f) || C(f)), j = {
1039
- color: w.text(),
1040
- backgroundColor: w.background(),
1038
+ }, { orientation: v, includeTargets: y } = _, b = v === "vertical", x = this.createOrdering(), { mode: T, role: E } = u || {}, D = b ? Fe : Pe, O = (g || T === "view" && E === "instructor") && l && c, k = a && (p(a) || S(a)), A = f && (p(f) || S(f)), j = {
1039
+ color: C.text(),
1040
+ backgroundColor: C.background(),
1041
1041
  display: "flex",
1042
1042
  flexDirection: "column",
1043
1043
  alignItems: "center",
@@ -1048,11 +1048,11 @@ var ct = class extends k.Component {
1048
1048
  onChoiceClick: this.onChoiceClick,
1049
1049
  onPlacementClick: this.onPlacementClick
1050
1050
  } : {};
1051
- return /* @__PURE__ */ P(ee, {
1051
+ return /* @__PURE__ */ P(w, {
1052
1052
  onDragStart: this.onDragStart,
1053
1053
  onDragEnd: this.onDragEnd,
1054
1054
  onDragCancel: this.onDragCancel,
1055
- collisionDetection: E,
1055
+ collisionDetection: ee,
1056
1056
  modifiers: [ne],
1057
1057
  ...Ze(y),
1058
1058
  children: /* @__PURE__ */ P(et, { children: /* @__PURE__ */ F(Ge, {
@@ -1072,7 +1072,7 @@ var ct = class extends k.Component {
1072
1072
  show: h,
1073
1073
  toggled: g,
1074
1074
  onToggle: this.toggleCorrect,
1075
- language: p
1075
+ language: m
1076
1076
  }),
1077
1077
  /* @__PURE__ */ P(tt, { children: /* @__PURE__ */ P(nt, { children: /* @__PURE__ */ P(st, {
1078
1078
  instanceId: this.instanceId,
@@ -1127,7 +1127,7 @@ var ct = class extends k.Component {
1127
1127
  }
1128
1128
  _scheduleMathRender = () => {
1129
1129
  this._mathRenderPending || (this._mathRenderPending = !0, requestAnimationFrame(() => {
1130
- this._mathObserver && this._mathObserver.disconnect(), d(this), this._mathRenderPending = !1, setTimeout(() => {
1130
+ this._mathObserver && this._mathObserver.disconnect(), D(this), this._mathRenderPending = !1, setTimeout(() => {
1131
1131
  this._mathObserver && this._mathObserver.observe(this, {
1132
1132
  childList: !0,
1133
1133
  subtree: !0