@pie-element/inline-dropdown 10.1.2-next.3 → 10.1.2-next.31

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.
Files changed (38) hide show
  1. package/author.js +2 -0
  2. package/dist/author/index.d.ts +1 -0
  3. package/dist/author/index.js +5 -2
  4. package/dist/author/inline-dropdown-toolbar.d.ts +1 -0
  5. package/dist/author/inline-dropdown-toolbar.js +18 -20
  6. package/dist/author/main.js +1 -1
  7. package/dist/author/markupUtils.js +1 -1
  8. package/dist/browser/{Close-mCudNyrp.js → Close-DhYHlTPF.js} +2676 -2626
  9. package/dist/browser/Close-DhYHlTPF.js.map +1 -0
  10. package/dist/browser/assets/Symbola-4c507403.woff2 +0 -0
  11. package/dist/browser/author/index.js +28270 -38789
  12. package/dist/browser/author/index.js.map +1 -1
  13. package/dist/browser/controller/index.js +5 -5
  14. package/dist/browser/controller/index.js.map +1 -1
  15. package/dist/browser/delivery/index.js +298 -208
  16. package/dist/browser/delivery/index.js.map +1 -1
  17. package/dist/browser/{dist-CAsDMEWi.js → dist-BJd6t-uW.js} +6 -2
  18. package/dist/browser/dist-BJd6t-uW.js.map +1 -0
  19. package/dist/browser/editor-runtime/Close-BhcweAD6.js +9081 -0
  20. package/dist/browser/editor-runtime/Close-BhcweAD6.js.map +1 -0
  21. package/dist/browser/editor-runtime/assets/Symbola-4c507403.woff2 +0 -0
  22. package/dist/browser/editor-runtime/author/index.js +19553 -0
  23. package/dist/browser/editor-runtime/author/index.js.map +1 -0
  24. package/dist/browser/editor-runtime/controller/index.js +196 -0
  25. package/dist/browser/editor-runtime/controller/index.js.map +1 -0
  26. package/dist/browser/editor-runtime/delivery/index.js +2804 -0
  27. package/dist/browser/editor-runtime/delivery/index.js.map +1 -0
  28. package/dist/browser/editor-runtime/dist-BJd6t-uW.js +137 -0
  29. package/dist/browser/editor-runtime/dist-BJd6t-uW.js.map +1 -0
  30. package/dist/browser/editor-runtime/rolldown-runtime-CHQKHQ89.js +32 -0
  31. package/dist/browser/rolldown-runtime-CWhphoD1.js +32 -0
  32. package/dist/delivery/index.js +2 -2
  33. package/dist/delivery/inline-dropdown.js +1 -1
  34. package/dist/index.iife.js +34 -34
  35. package/package.json +34 -25
  36. package/dist/browser/Close-mCudNyrp.js.map +0 -1
  37. package/dist/browser/dist-CAsDMEWi.js.map +0 -1
  38. package/dist/browser/inline-dropdown.css +0 -2
@@ -1,5 +1,6 @@
1
- import { Ft as e, L as t, Nt as n, Rt as r, S as i, a, d as o, f as s, ft as c, ht as l, i as u, j as d, k as f, m as p, n as m, o as h, p as g, pt as _, t as v, v as y, w as b } from "../Close-mCudNyrp.js";
2
- import { _ as x, o as S } from "../dist-CAsDMEWi.js";
1
+ import { i as e } from "../rolldown-runtime-CWhphoD1.js";
2
+ import { It as t, L as n, Lt as r, S as i, a, d as o, dt as s, f as c, i as l, j as u, k as d, m as f, n as p, o as m, p as h, pt as g, t as _, ut as v, v as y, w as b } from "../Close-DhYHlTPF.js";
3
+ import { _ as x, o as S } from "../dist-BJd6t-uW.js";
3
4
  import C, { useRef as w } from "react";
4
5
  import { createRoot as T } from "react-dom/client";
5
6
  import E from "react-dom";
@@ -34,7 +35,7 @@ var te = class e extends CustomEvent {
34
35
  }
35
36
  }), this.component = t, this.complete = n;
36
37
  }
37
- }, k = /* @__PURE__ */ r(n(), 1), re = "height ease-in 300ms, opacity ease-in 300ms", ie = l("div")(() => ({
38
+ }, k = /* @__PURE__ */ e(t(), 1), re = "height ease-in 300ms, opacity ease-in 300ms", ie = g("div")(() => ({
38
39
  position: "relative",
39
40
  height: 0,
40
41
  overflow: "hidden",
@@ -70,7 +71,7 @@ var te = class e extends CustomEvent {
70
71
  }
71
72
  })), ae = (e) => {
72
73
  let { show: t, children: n, className: r } = e, i = w(null);
73
- return /* @__PURE__ */ D(_, {
74
+ return /* @__PURE__ */ D(s, {
74
75
  nodeRef: i,
75
76
  in: t,
76
77
  appear: !0,
@@ -167,7 +168,7 @@ se.propTypes = {
167
168
  fgFill: k.default.string.isRequired,
168
169
  borderFill: k.default.string.isRequired
169
170
  };
170
- var ce = l("div")(({ size: e }) => ({
171
+ var ce = g("div")(({ size: e }) => ({
171
172
  width: e || "25px",
172
173
  height: e || "25px"
173
174
  })), A = ({ open: e, size: t }) => /* @__PURE__ */ D(ce, {
@@ -186,7 +187,7 @@ A.propTypes = {
186
187
  size: k.default.string
187
188
  }, A.defaultProps = { open: !1 };
188
189
  //#endregion
189
- //#region ../../lib-react/translator/dist/en.js
190
+ //#region ../../shared/translator/dist/en.js
190
191
  var le = {
191
192
  translation: {
192
193
  categorize: {
@@ -249,6 +250,23 @@ var le = {
249
250
  reset: "Reset"
250
251
  },
251
252
  mathInline: { primaryCorrectWithAlternates: "Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct." },
253
+ mcPopulatedBlank: {
254
+ answerChoices: "Answer choices",
255
+ blankLabel: "blank",
256
+ emptyBlank: "(blank)",
257
+ blankPreSelectionHint: "The answer you choose will appear on the blank line above.",
258
+ correctAnswerSelected: "Correct answer selected",
259
+ incorrectAnswerSelected: "Incorrect answer selected",
260
+ selectedAnswerImage: "Selected answer image",
261
+ choiceImage: "Choice {{id}}",
262
+ clickToEnableAutoplay: "Click to enable audio autoplay",
263
+ audioResourceUnavailable: "Audio is enabled but no playable audio URL is configured.",
264
+ listen: "Listen",
265
+ listenSilentAlt: "Repeat instructions",
266
+ listenPlayingAlt: "Instructions are playing",
267
+ printAudio: "Audio:",
268
+ printTranscript: "Transcript:"
269
+ },
252
270
  multipleChoice: {
253
271
  minSelections: "Select at least {{minSelections}}.",
254
272
  maxSelections_one: "Only {{maxSelections}} answer is allowed.",
@@ -261,6 +279,38 @@ var le = {
261
279
  correctAnswerNotSelected: "Correct Answer Not Selected",
262
280
  incorrectSelection: "Incorrect Selection",
263
281
  key: "Key"
282
+ },
283
+ simpleCloze: {
284
+ correctAnswerShown: "Correct answer",
285
+ correct: "Correct",
286
+ incorrect: "Incorrect",
287
+ unanswered: "No answer",
288
+ placeholder: "Enter your answer...",
289
+ answerInput: "Your answer",
290
+ printCorrectAnswer: "Correct answer:",
291
+ printAnswerBlank: "Answer blank"
292
+ },
293
+ vennClassification: {
294
+ tray: "Tiles to classify",
295
+ unknownTarget: "unknown",
296
+ cancelled: "Cancelled",
297
+ returnedToTray: "{{name}} returned to tray",
298
+ placedIn: "{{name}} placed in {{target}}",
299
+ pickedUp: "Picked up {{name}}",
300
+ pickedUpWithKeyboard: "Picked up {{name}}, drop target: {{target}}. Use arrow keys to choose a drop target, Enter to drop, Escape to cancel.",
301
+ dropTarget: "Drop target: {{target}}",
302
+ unsupportedCircles_one: "This diagram cannot be shown: it has {{count}} circle, and only {{supported}} are supported.",
303
+ unsupportedCircles_other: "This diagram cannot be shown: it has {{count}} circles, and only {{supported}} are supported.",
304
+ setNumber: "Set {{number}}",
305
+ regionOnly: "{{set}} only",
306
+ regionNeither: "Neither {{first}} nor {{second}}",
307
+ regionNoneOf: "None of {{sets}}",
308
+ regionAndSeparator: " and ",
309
+ tileFallbackName: "Tile",
310
+ tileNotPlaced: "not placed",
311
+ tileInRegion: "in {{region}}",
312
+ tileCorrect: "correct",
313
+ tileIncorrect: "incorrect"
264
314
  }
265
315
  },
266
316
  common: {
@@ -270,6 +320,8 @@ var le = {
270
320
  incorrect: "Incorrect",
271
321
  showCorrectAnswer: "Show correct answer",
272
322
  hideCorrectAnswer: "Hide correct answer",
323
+ showTeacherInstructions: "Show Teacher Instructions",
324
+ hideTeacherInstructions: "Hide Teacher Instructions",
273
325
  commonCorrectAnswerWithAlternates: "Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.",
274
326
  warning: "Warning",
275
327
  showNote: "Show Note",
@@ -338,6 +390,23 @@ var le = {
338
390
  reset: "Reiniciar"
339
391
  },
340
392
  mathInline: { primaryCorrectWithAlternates: "Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas." },
393
+ mcPopulatedBlank: {
394
+ answerChoices: "Opciones de respuesta",
395
+ blankLabel: "espacio en blanco",
396
+ emptyBlank: "(en blanco)",
397
+ blankPreSelectionHint: "La respuesta que elijas aparecerá en la línea en blanco de arriba.",
398
+ correctAnswerSelected: "Respuesta correcta seleccionada",
399
+ incorrectAnswerSelected: "Respuesta incorrecta seleccionada",
400
+ selectedAnswerImage: "Imagen de la respuesta seleccionada",
401
+ choiceImage: "Opción {{id}}",
402
+ clickToEnableAutoplay: "Haz clic para activar la reproducción automática del audio",
403
+ audioResourceUnavailable: "El audio está activado, pero no hay una URL de audio reproducible configurada.",
404
+ listen: "Escuchar",
405
+ listenSilentAlt: "Escuchar. Repetir las instrucciones.",
406
+ listenPlayingAlt: "Escuchar. Estas son las instrucciones.",
407
+ printAudio: "Audio:",
408
+ printTranscript: "Transcripción:"
409
+ },
341
410
  multipleChoice: {
342
411
  minSelections: "Seleccione al menos {{minSelections}}.",
343
412
  maxSelections_one: "Sólo se permite {{maxSelections}} respuesta.",
@@ -350,15 +419,49 @@ var le = {
350
419
  correctAnswerNotSelected: "Respuesta Correcta No Seleccionada",
351
420
  incorrectSelection: "Selección Incorrecta",
352
421
  key: "Clave"
422
+ },
423
+ simpleCloze: {
424
+ correctAnswerShown: "Respuesta correcta",
425
+ correct: "Correcto",
426
+ incorrect: "Incorrecto",
427
+ unanswered: "Sin respuesta",
428
+ placeholder: "Escribe tu respuesta...",
429
+ answerInput: "Tu respuesta",
430
+ printCorrectAnswer: "Respuesta correcta:",
431
+ printAnswerBlank: "Espacio para la respuesta"
432
+ },
433
+ vennClassification: {
434
+ tray: "Fichas para clasificar",
435
+ unknownTarget: "desconocido",
436
+ cancelled: "Cancelado",
437
+ returnedToTray: "Se devolvió {{name}} a la bandeja",
438
+ placedIn: "Se colocó {{name}} en {{target}}",
439
+ pickedUp: "Se tomó {{name}}",
440
+ pickedUpWithKeyboard: "Se tomó {{name}}, destino: {{target}}. Usa las flechas para elegir un destino, Enter para soltar y Escape para cancelar.",
441
+ dropTarget: "Destino: {{target}}",
442
+ unsupportedCircles_one: "No se puede mostrar este diagrama: tiene {{count}} círculo, y solo se admiten {{supported}}.",
443
+ unsupportedCircles_other: "No se puede mostrar este diagrama: tiene {{count}} círculos, y solo se admiten {{supported}}.",
444
+ setNumber: "Conjunto {{number}}",
445
+ regionOnly: "Solo {{set}}",
446
+ regionNeither: "Ni {{first}} ni {{second}}",
447
+ regionNoneOf: "Ninguno de {{sets}}",
448
+ regionAndSeparator: " y ",
449
+ tileFallbackName: "Ficha",
450
+ tileNotPlaced: "sin colocar",
451
+ tileInRegion: "en {{region}}",
452
+ tileCorrect: "correcta",
453
+ tileIncorrect: "incorrecta"
353
454
  }
354
455
  },
355
456
  common: {
356
457
  undo: "Deshacer",
357
458
  clearAll: "Borrar todo",
358
- correct: "Correct",
359
- incorrect: "Incorrect",
459
+ correct: "Correcto",
460
+ incorrect: "Incorrecto",
360
461
  showCorrectAnswer: "Mostrar respuesta correcta",
361
462
  hideCorrectAnswer: "Ocultar respuesta correcta",
463
+ showTeacherInstructions: "Mostrar instrucciones para el maestro",
464
+ hideTeacherInstructions: "Ocultar instrucciones para el maestro",
362
465
  commonCorrectAnswerWithAlternates: "Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.",
363
466
  warning: "Advertencia",
364
467
  showNote: "Mostrar Nota",
@@ -977,7 +1080,7 @@ var je = {}, V = (e) => !j(e) && typeof e != "boolean" && typeof e != "number",
977
1080
  init(e = {}) {
978
1081
  e.interpolation ||= { escapeValue: !0 };
979
1082
  let { escape: t, escapeValue: n, useRawValueToEscape: r, prefix: i, prefixEscaped: a, suffix: o, suffixEscaped: s, formatSeparator: c, unescapeSuffix: l, unescapePrefix: u, nestingPrefix: d, nestingPrefixEscaped: f, nestingSuffix: p, nestingSuffixEscaped: m, nestingOptionsSeparator: h, maxReplaces: g, alwaysFormat: _ } = e.interpolation;
980
- this.escape = t === void 0 ? xe : t, this.escapeValue = n === void 0 ? !0 : n, this.useRawValueToEscape = r === void 0 ? !1 : r, this.prefix = i ? F(i) : a || "{{", this.suffix = o ? F(o) : s || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = d ? F(d) : f || F("$t("), this.nestingSuffix = p ? F(p) : m || F(")"), this.nestingOptionsSeparator = h || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = _ === void 0 ? !1 : _, this.resetRegExp();
1083
+ this.escape = t === void 0 ? xe : t, this.escapeValue = n === void 0 || n, this.useRawValueToEscape = r !== void 0 && r, this.prefix = i ? F(i) : a || "{{", this.suffix = o ? F(o) : s || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = d ? F(d) : f || F("$t("), this.nestingSuffix = p ? F(p) : m || F(")"), this.nestingOptionsSeparator = h || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = _ !== void 0 && _, this.resetRegExp();
981
1084
  }
982
1085
  reset() {
983
1086
  this.options && this.init(this.options);
@@ -1566,11 +1669,11 @@ var je = {}, V = (e) => !j(e) && typeof e != "boolean" && typeof e != "number",
1566
1669
  }
1567
1670
  }.createInstance();
1568
1671
  //#endregion
1569
- //#region ../../lib-react/translator/dist/index.js
1672
+ //#region ../../shared/translator/dist/index.js
1570
1673
  W.createInstance, W.dir, W.init, W.loadResources, W.reloadResources, W.use, W.changeLanguage, W.getFixedT, W.t, W.exists, W.setDefaultNamespace, W.hasLoadedNamespace, W.loadNamespaces, W.loadLanguages, W.init({
1571
1674
  fallbackLng: "en",
1572
1675
  lng: "en",
1573
- debug: !0,
1676
+ showSupportNotice: !1,
1574
1677
  resources: {
1575
1678
  en: le,
1576
1679
  es: ue
@@ -1616,29 +1719,29 @@ function G(e) {
1616
1719
  function $e(e, t) {
1617
1720
  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;
1618
1721
  }
1619
- var et = $e(g, "Readable") || $e(rt.Readable, "Readable"), tt = a, nt = tt.default, rt = nt && typeof nt == "object" ? nt : tt, { translator: K } = Qe, it = {
1722
+ var et = $e(h, "Readable") || $e(rt.Readable, "Readable"), tt = a, nt = tt.default, rt = nt && typeof nt == "object" ? nt : tt, { translator: K } = Qe, it = {
1620
1723
  WebkitTouchCallout: "none",
1621
1724
  WebkitUserSelect: "none",
1622
1725
  KhtmlUserSelect: "none",
1623
1726
  MozUserSelect: "none",
1624
1727
  msUserSelect: "none",
1625
1728
  userSelect: "none"
1626
- }, at = l("div")(() => ({
1729
+ }, at = g("div")(() => ({
1627
1730
  width: "100%",
1628
1731
  cursor: "pointer"
1629
- })), ot = l("div")(() => ({
1732
+ })), ot = g("div")(() => ({
1630
1733
  margin: "0 auto",
1631
1734
  textAlign: "center",
1632
1735
  display: "flex"
1633
- })), st = l("div")(() => ({
1736
+ })), st = g("div")(() => ({
1634
1737
  width: "fit-content",
1635
1738
  minWidth: "140px",
1636
1739
  alignSelf: "center",
1637
1740
  verticalAlign: "middle",
1638
- color: `var(--correct-answer-toggle-label-color, ${c.text()})`,
1741
+ color: `var(--correct-answer-toggle-label-color, ${v.text()})`,
1639
1742
  fontWeight: "normal",
1640
1743
  ...it
1641
- })), ct = l("div")(() => ({
1744
+ })), ct = g("div")(() => ({
1642
1745
  position: "absolute",
1643
1746
  width: "25px",
1644
1747
  "&.enter": { opacity: "0" },
@@ -1651,7 +1754,7 @@ var et = $e(g, "Readable") || $e(rt.Readable, "Readable"), tt = a, nt = tt.defau
1651
1754
  opacity: "0",
1652
1755
  transition: "opacity 0.3s ease-in"
1653
1756
  }
1654
- })), lt = l("div")(() => ({
1757
+ })), lt = g("div")(() => ({
1655
1758
  width: "25px",
1656
1759
  marginRight: "5px",
1657
1760
  display: "flex",
@@ -1701,7 +1804,7 @@ var et = $e(g, "Readable") || $e(rt.Readable, "Readable"), tt = a, nt = tt.defau
1701
1804
  children: /* @__PURE__ */ O(ot, {
1702
1805
  onClick: this.onClick.bind(this),
1703
1806
  onTouchEnd: this.onTouch.bind(this),
1704
- children: [/* @__PURE__ */ O(lt, { children: [/* @__PURE__ */ D(_, {
1807
+ children: [/* @__PURE__ */ O(lt, { children: [/* @__PURE__ */ D(s, {
1705
1808
  nodeRef: this.openIconRef,
1706
1809
  timeout: 400,
1707
1810
  in: t,
@@ -1716,7 +1819,7 @@ var et = $e(g, "Readable") || $e(rt.Readable, "Readable"), tt = a, nt = tt.defau
1716
1819
  ref: this.openIconRef,
1717
1820
  children: /* @__PURE__ */ D(A, { open: t }, "correct-open")
1718
1821
  })
1719
- }), /* @__PURE__ */ D(_, {
1822
+ }), /* @__PURE__ */ D(s, {
1720
1823
  nodeRef: this.closedIconRef,
1721
1824
  timeout: 5e3,
1722
1825
  in: !t,
@@ -1795,16 +1898,16 @@ var mt = /* @__PURE__ */ q(((e, t) => {
1795
1898
  mt();
1796
1899
  //#endregion
1797
1900
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/toUpperFirst.js
1798
- var ht = /* @__PURE__ */ q(((e, t) => {
1901
+ var J = /* @__PURE__ */ q(((e, t) => {
1799
1902
  t.exports = function(e) {
1800
1903
  return e.length ? e.charAt(0).toUpperCase() + e.substring(1) : e;
1801
1904
  };
1802
1905
  }));
1803
- ht();
1906
+ J();
1804
1907
  //#endregion
1805
1908
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixInfo.js
1806
- var gt = /* @__PURE__ */ q(((e, t) => {
1807
- var n = ht(), r = /^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/, i = typeof document > "u" ? {} : document.documentElement.style;
1909
+ var ht = /* @__PURE__ */ q(((e, t) => {
1910
+ var n = J(), r = /^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/, i = typeof document > "u" ? {} : document.documentElement.style;
1808
1911
  t.exports = (function() {
1809
1912
  var e = (function() {
1810
1913
  for (var e in i) if (r.test(e)) return e.match(r)[0];
@@ -1821,54 +1924,54 @@ var gt = /* @__PURE__ */ q(((e, t) => {
1821
1924
  };
1822
1925
  })();
1823
1926
  }));
1824
- gt();
1927
+ ht();
1825
1928
  //#endregion
1826
1929
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/hyphenRe.js
1827
- var _t = /* @__PURE__ */ q(((e, t) => {
1930
+ var gt = /* @__PURE__ */ q(((e, t) => {
1828
1931
  t.exports = /[-\s]+(.)?/g;
1829
1932
  }));
1830
- _t();
1933
+ gt();
1831
1934
  //#endregion
1832
1935
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/camelize.js
1833
- var vt = /* @__PURE__ */ q(((e, t) => {
1936
+ var _t = /* @__PURE__ */ q(((e, t) => {
1834
1937
  var n = function(e, t) {
1835
1938
  return t ? t.toUpperCase() : "";
1836
- }, r = _t();
1939
+ }, r = gt();
1837
1940
  t.exports = function(e) {
1838
1941
  return e ? e.replace(r, n) : "";
1839
1942
  };
1840
1943
  }));
1841
- vt();
1944
+ _t();
1842
1945
  //#endregion
1843
1946
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/separate.js
1844
- var yt = /* @__PURE__ */ q(((e, t) => {
1947
+ var vt = /* @__PURE__ */ q(((e, t) => {
1845
1948
  var n = /::/g, r = /([A-Z]+)([A-Z][a-z])/g, i = /([a-z\d])([A-Z])/g, a = /_/g;
1846
1949
  t.exports = function(e, t) {
1847
1950
  return e ? e.replace(n, "/").replace(r, "$1_$2").replace(i, "$1_$2").replace(a, t || "-") : "";
1848
1951
  };
1849
1952
  }));
1850
- yt();
1953
+ vt();
1851
1954
  //#endregion
1852
1955
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/hyphenate.js
1853
- var bt = /* @__PURE__ */ q(((e, t) => {
1854
- var n = yt();
1956
+ var yt = /* @__PURE__ */ q(((e, t) => {
1957
+ var n = vt();
1855
1958
  t.exports = function(e) {
1856
1959
  return n(e).toLowerCase();
1857
1960
  };
1858
1961
  }));
1859
- bt();
1962
+ yt();
1860
1963
  //#endregion
1861
1964
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/toLowerFirst.js
1862
- var xt = /* @__PURE__ */ q(((e, t) => {
1965
+ var bt = /* @__PURE__ */ q(((e, t) => {
1863
1966
  t.exports = function(e) {
1864
1967
  return e.length ? e.charAt(0).toLowerCase() + e.substring(1) : e;
1865
1968
  };
1866
1969
  }));
1867
- xt();
1970
+ bt();
1868
1971
  //#endregion
1869
1972
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixer.js
1870
- var St = /* @__PURE__ */ q(((e, t) => {
1871
- var n = vt(), r = bt(), i = xt(), a = ht(), o = gt(), s = pt(), c = typeof document > "u" ? {} : document.documentElement.style;
1973
+ var xt = /* @__PURE__ */ q(((e, t) => {
1974
+ var n = _t(), r = yt(), i = bt(), a = J(), o = ht(), s = pt(), c = typeof document > "u" ? {} : document.documentElement.style;
1872
1975
  t.exports = function(e) {
1873
1976
  return function(t, l) {
1874
1977
  l ||= {};
@@ -1885,45 +1988,45 @@ var St = /* @__PURE__ */ q(((e, t) => {
1885
1988
  };
1886
1989
  };
1887
1990
  }));
1888
- St();
1991
+ xt();
1889
1992
  //#endregion
1890
1993
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/cssPrefix.js
1891
- var Ct = /* @__PURE__ */ q(((e, t) => {
1892
- t.exports = St()();
1994
+ var St = /* @__PURE__ */ q(((e, t) => {
1995
+ t.exports = xt()();
1893
1996
  }));
1894
- Ct();
1997
+ St();
1895
1998
  //#endregion
1896
1999
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/hasOwn.js
1897
- var wt = /* @__PURE__ */ q(((e, t) => {
2000
+ var Ct = /* @__PURE__ */ q(((e, t) => {
1898
2001
  var n = Object.prototype.hasOwnProperty;
1899
2002
  t.exports = function(e, t) {
1900
2003
  return n.call(e, t);
1901
2004
  };
1902
2005
  }));
1903
- wt();
2006
+ Ct();
1904
2007
  //#endregion
1905
2008
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/isObject.js
1906
- var Tt = /* @__PURE__ */ q(((e, t) => {
2009
+ var wt = /* @__PURE__ */ q(((e, t) => {
1907
2010
  var n = Object.prototype.toString;
1908
2011
  t.exports = function(e) {
1909
2012
  return !!e && n.call(e) === "[object Object]";
1910
2013
  };
1911
2014
  }));
1912
- Tt();
2015
+ wt();
1913
2016
  //#endregion
1914
2017
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/isFunction.js
1915
- var Et = /* @__PURE__ */ q(((e, t) => {
2018
+ var Tt = /* @__PURE__ */ q(((e, t) => {
1916
2019
  var n = Object.prototype.toString;
1917
2020
  t.exports = function(e) {
1918
2021
  return n.apply(e) === "[object Function]";
1919
2022
  };
1920
2023
  }));
1921
- Et();
2024
+ Tt();
1922
2025
  //#endregion
1923
2026
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/toStyleObject.js
1924
- var Dt = /* @__PURE__ */ q(((e, t) => {
1925
- gt();
1926
- var n = Ct(), r = bt(), i = vt(), a = wt(), o = Tt(), s = Et(), c = function(e, t, r, i) {
2027
+ var Et = /* @__PURE__ */ q(((e, t) => {
2028
+ ht();
2029
+ var n = St(), r = yt(), i = _t(), a = Ct(), o = wt(), s = Tt(), c = function(e, t, r, i) {
1927
2030
  n(t).forEach(function(t) {
1928
2031
  e[i ? i(t) : t] = r;
1929
2032
  });
@@ -1963,11 +2066,11 @@ var Dt = /* @__PURE__ */ q(((e, t) => {
1963
2066
  };
1964
2067
  t.exports = d;
1965
2068
  }));
1966
- Dt();
2069
+ Et();
1967
2070
  //#endregion
1968
2071
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/toStyleString.js
1969
- var Ot = /* @__PURE__ */ q(((e, t) => {
1970
- var n = Dt(), r = wt();
2072
+ var Dt = /* @__PURE__ */ q(((e, t) => {
2073
+ var n = Et(), r = Ct();
1971
2074
  t.exports = function(e, t) {
1972
2075
  e = n(e, t);
1973
2076
  var i = [], a;
@@ -1975,25 +2078,25 @@ var Ot = /* @__PURE__ */ q(((e, t) => {
1975
2078
  return i.join("; ");
1976
2079
  };
1977
2080
  }));
1978
- Ot();
2081
+ Dt();
1979
2082
  //#endregion
1980
2083
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/index.js
1981
- var kt = /* @__PURE__ */ q(((e, t) => {
2084
+ var Ot = /* @__PURE__ */ q(((e, t) => {
1982
2085
  t.exports = {
1983
2086
  prefixProperties: pt(),
1984
2087
  cssUnitless: mt(),
1985
- object: Dt(),
1986
- string: Ot()
2088
+ object: Et(),
2089
+ string: Dt()
1987
2090
  };
1988
2091
  }));
1989
- kt();
2092
+ Ot();
1990
2093
  //#endregion
1991
2094
  //#region ../../lib-react/mask-markup/dist/serialization.js
1992
- var At = /* @__PURE__ */ r(d(), 1), jt = kt(), Mt = (0, At.default)("@pie-lib:mask-markup:serialization"), Nt = ["span"], Pt = [
2095
+ var kt = /* @__PURE__ */ e(u(), 1), At = Ot(), jt = (0, kt.default)("@pie-lib:mask-markup:serialization"), Mt = ["span"], Nt = [
1993
2096
  "em",
1994
2097
  "strong",
1995
2098
  "u"
1996
- ], Ft = 3, It = 8, Lt = 1, Rt = (e) => {
2099
+ ], Pt = 3, Ft = 8, It = 1, Lt = (e) => {
1997
2100
  if (!e.attributes || e.attributes.length <= 0) return;
1998
2101
  let t = {}, n;
1999
2102
  for (n = 0; n < e.attributes.length; n++) {
@@ -2001,44 +2104,44 @@ var At = /* @__PURE__ */ r(d(), 1), jt = kt(), Mt = (0, At.default)("@pie-lib:ma
2001
2104
  t[r.name] = r.value;
2002
2105
  }
2003
2106
  return t;
2004
- }, zt = (e) => Nt.includes(e) ? "inline" : Pt.includes(e) ? "mark" : "block", Bt = (e) => {
2107
+ }, Rt = (e) => Mt.includes(e) ? "inline" : Nt.includes(e) ? "mark" : "block", zt = (e) => {
2005
2108
  let t = /([\w-]*)\s*:\s*([^;]*)/g, n, r = {};
2006
2109
  for (; n = t.exec(e);) r[n[1]] = n[2].trim();
2007
2110
  return r;
2008
- }, Vt = (e) => (0, jt.object)(e, {
2111
+ }, Bt = (e) => (0, At.object)(e, {
2009
2112
  camelize: !0,
2010
2113
  addUnits: !1
2011
- }), Ht = (e, t) => Vt(Bt(e.getAttribute(t))), Ut = (e, t, n) => {
2114
+ }), Vt = (e, t) => Bt(zt(e.getAttribute(t))), Ht = (e, t, n) => {
2012
2115
  let r = e.getAttribute(n);
2013
2116
  return delete t.class, r;
2014
- }, Wt = (e) => (t, n) => {
2117
+ }, Ut = (e) => (t, n) => {
2015
2118
  if (!e.getAttribute) return t;
2016
2119
  if (e.getAttribute(n)) switch (n) {
2017
2120
  case "style":
2018
- t.style = Ht(e, n);
2121
+ t.style = Vt(e, n);
2019
2122
  break;
2020
2123
  case "class":
2021
- t.className = Ut(e, t, n);
2124
+ t.className = Ht(e, t, n);
2022
2125
  break;
2023
2126
  default:
2024
2127
  t[n] = e.getAttribute(n);
2025
2128
  break;
2026
2129
  }
2027
2130
  return t;
2028
- }, Gt = [
2131
+ }, Wt = [
2029
2132
  "border",
2030
2133
  "class",
2031
2134
  "style"
2032
- ], Kt = {
2135
+ ], Gt = {
2033
2136
  b: "bold",
2034
2137
  em: "italic",
2035
2138
  u: "underline",
2036
2139
  s: "strikethrough",
2037
2140
  code: "code",
2038
2141
  strong: "strong"
2039
- }, qt = (e, t = []) => {
2040
- if (e.nodeType === It) return null;
2041
- if (e.nodeType === Ft) {
2142
+ }, Kt = (e, t = []) => {
2143
+ if (e.nodeType === Ft) return null;
2144
+ if (e.nodeType === Pt) {
2042
2145
  let n = { text: e.textContent };
2043
2146
  return t.length > 0 && (n.marks = t.map((e) => ({
2044
2147
  type: e,
@@ -2048,19 +2151,19 @@ var At = /* @__PURE__ */ r(d(), 1), jt = kt(), Mt = (0, At.default)("@pie-lib:ma
2048
2151
  leaves: [n]
2049
2152
  };
2050
2153
  }
2051
- if (e.nodeType === Lt) {
2052
- let n = e.tagName.toLowerCase(), r = Kt[n];
2053
- if (r) return Mt("[deserialize] mark: ", r), {
2154
+ if (e.nodeType === It) {
2155
+ let n = e.tagName.toLowerCase(), r = Gt[n];
2156
+ if (r) return jt("[deserialize] mark: ", r), {
2054
2157
  _flatten: !0,
2055
- nodes: Jt(e.childNodes, [...t, r])
2158
+ nodes: qt(e.childNodes, [...t, r])
2056
2159
  };
2057
2160
  if (n === "math") return {
2058
2161
  isMath: !0,
2059
2162
  nodes: [e]
2060
2163
  };
2061
- let i = Rt(e) || {};
2164
+ let i = Lt(e) || {};
2062
2165
  n === "audio" && i.controls === "" && (i.controls = !0);
2063
- let a = Gt.reduce(Wt(e), { ...i }), o = zt(n), s = Jt(e.childNodes, t);
2166
+ let a = Wt.reduce(Ut(e), { ...i }), o = Rt(n), s = qt(e.childNodes, t);
2064
2167
  return {
2065
2168
  object: o,
2066
2169
  type: n,
@@ -2072,14 +2175,14 @@ var At = /* @__PURE__ */ r(d(), 1), jt = kt(), Mt = (0, At.default)("@pie-lib:ma
2072
2175
  };
2073
2176
  }
2074
2177
  return null;
2075
- }, Jt = (e, t = []) => {
2178
+ }, qt = (e, t = []) => {
2076
2179
  let n = [];
2077
2180
  for (let r = 0; r < e.length; r++) {
2078
- let i = qt(e[r], t);
2181
+ let i = Kt(e[r], t);
2079
2182
  i !== null && (i._flatten && i.nodes ? n.push(...i.nodes) : n.push(i));
2080
2183
  }
2081
2184
  return n;
2082
- }, Yt = (e) => {
2185
+ }, Jt = (e) => {
2083
2186
  if (!e || !e.trim()) return {
2084
2187
  object: "value",
2085
2188
  document: {
@@ -2094,7 +2197,7 @@ var At = /* @__PURE__ */ r(d(), 1), jt = kt(), Mt = (0, At.default)("@pie-lib:ma
2094
2197
  }]
2095
2198
  }
2096
2199
  };
2097
- let t = Jt(new DOMParser().parseFromString(e, "text/html").body.childNodes);
2200
+ let t = qt(new DOMParser().parseFromString(e, "text/html").body.childNodes);
2098
2201
  return !t.some((e) => e.object === "block" || e.object === "inline") && t.length > 0 && (t = [{
2099
2202
  object: "block",
2100
2203
  type: "span",
@@ -2115,19 +2218,19 @@ var At = /* @__PURE__ */ r(d(), 1), jt = kt(), Mt = (0, At.default)("@pie-lib:ma
2115
2218
  nodes: t
2116
2219
  }
2117
2220
  };
2118
- }, Xt = l("div")(({ theme: e }) => ({
2221
+ }, Yt = g("div")(({ theme: e }) => ({
2119
2222
  paddingTop: e.spacing(.5),
2120
2223
  paddingBottom: e.spacing(.5)
2121
- })), Zt = l("span")(() => ({
2224
+ })), Xt = g("span")(() => ({
2122
2225
  display: "inline-block",
2123
2226
  width: ".75em"
2124
- })), Qt = ["tbody", "tr"], $t = (e, t) => {
2227
+ })), Zt = ["tbody", "tr"], Qt = (e, t) => {
2125
2228
  let n = t.trim() === "", r = e && e.type;
2126
- if (!(n && Qt.includes(r))) return t;
2127
- }, en = (e) => {
2229
+ if (!(n && Zt.includes(r))) return t;
2230
+ }, $t = (e) => {
2128
2231
  let t = e.leaves.find((e) => x(e, "marks", []).length);
2129
- return t ? t.marks[0] : null;
2130
- }, tn = (e, t, n, r, i, a) => {
2232
+ return t ? t.marks : null;
2233
+ }, en = (e, t, n, r, i, a) => {
2131
2234
  if (!t) return null;
2132
2235
  let o = [];
2133
2236
  return (e.nodes || []).forEach((e, s) => {
@@ -2137,26 +2240,22 @@ var At = /* @__PURE__ */ r(d(), 1), jt = kt(), Mt = (0, At.default)("@pie-lib:ma
2137
2240
  let i = r(e, t, n);
2138
2241
  if (i) {
2139
2242
  let t = e.data?.dataset?.component === "blank";
2140
- t && o.push(/* @__PURE__ */ D(Zt, {}, `spacer-${s}`)), o.push(i), t && o.push(/* @__PURE__ */ D(Zt, {}, `spacer-${s}`));
2243
+ t && o.push(/* @__PURE__ */ D(Xt, {}, `spacer-${s}-before`)), o.push(i), t && o.push(/* @__PURE__ */ D(Xt, {}, `spacer-${s}-after`));
2141
2244
  return;
2142
2245
  }
2143
2246
  }
2144
2247
  if (e.object === "text") {
2145
2248
  let t = e.leaves.reduce((e, t) => {
2146
- let n = t.text, r = $t(i, n);
2249
+ let n = t.text, r = Qt(i, n);
2147
2250
  return r ? e + r : e;
2148
- }, ""), n = en(e);
2149
- if (n) {
2150
- let e;
2151
- for (e in Kt) if (Kt[e] === n.type) {
2152
- let n = e;
2153
- o.push(/* @__PURE__ */ D(n, { children: t }, c));
2154
- break;
2155
- }
2251
+ }, ""), n = $t(e);
2252
+ if (n?.length > 0) {
2253
+ let e = n.map((e) => Object.keys(Gt).find((t) => Gt[t] === e.type)).filter(Boolean);
2254
+ e.length > 0 ? o.push(e.reduceRight((e, t, n) => /* @__PURE__ */ D(t, { children: e }, `${c}-${t}-${n}`), t)) : o.push(t);
2156
2255
  } else t.length > 0 && o.push(t);
2157
2256
  } else {
2158
- let i = tn(e, t, n, r, e, a);
2159
- if (e.type === "p" || e.type === "paragraph") o.push(/* @__PURE__ */ D(Xt, { children: i }, c));
2257
+ let i = en(e, t, n, r, e, a);
2258
+ if (e.type === "p" || e.type === "paragraph") o.push(/* @__PURE__ */ D(Yt, { children: i }, c));
2160
2259
  else {
2161
2260
  let t = e.type;
2162
2261
  e.nodes && e.nodes.length > 0 ? o.push(/* @__PURE__ */ D(t, {
@@ -2166,14 +2265,14 @@ var At = /* @__PURE__ */ r(d(), 1), jt = kt(), Mt = (0, At.default)("@pie-lib:ma
2166
2265
  }
2167
2266
  }
2168
2267
  }), o;
2169
- }, nn = l("div")(() => ({
2268
+ }, tn = g("div")(() => ({
2170
2269
  display: "initial",
2171
2270
  "&:not(.MathJax) table": { borderCollapse: "collapse" },
2172
2271
  "&:not(.MathJax) table td, &:not(.MathJax) table th": {
2173
2272
  padding: "8px 12px",
2174
2273
  textAlign: "left"
2175
2274
  }
2176
- })), rn = class extends C.Component {
2275
+ })), nn = class extends C.Component {
2177
2276
  constructor(e) {
2178
2277
  super(e), this.internalContainerRef = C.createRef();
2179
2278
  }
@@ -2186,8 +2285,8 @@ var At = /* @__PURE__ */ r(d(), 1), jt = kt(), Mt = (0, At.default)("@pie-lib:ma
2186
2285
  containerRef: k.default.oneOfType([k.default.func, k.default.shape({ current: k.default.instanceOf(Element) })])
2187
2286
  };
2188
2287
  componentDidMount() {
2189
- let t = this.props.containerRef || this.internalContainerRef;
2190
- t.current && typeof e == "function" && e(t.current);
2288
+ let e = this.props.containerRef || this.internalContainerRef;
2289
+ e.current && typeof r == "function" && r(e.current);
2191
2290
  }
2192
2291
  handleChange = (e, t) => {
2193
2292
  let n = {
@@ -2197,16 +2296,16 @@ var At = /* @__PURE__ */ r(d(), 1), jt = kt(), Mt = (0, At.default)("@pie-lib:ma
2197
2296
  this.props.onChange(n);
2198
2297
  };
2199
2298
  render() {
2200
- let { value: e, layout: t, elementType: n, containerRef: r } = this.props, i = tn(t, e, this.handleChange, this.props.renderChildren, null, n);
2201
- return /* @__PURE__ */ D(nn, {
2299
+ let { value: e, layout: t, elementType: n, containerRef: r } = this.props, i = en(t, e, this.handleChange, this.props.renderChildren, null, n);
2300
+ return /* @__PURE__ */ D(tn, {
2202
2301
  ref: r || this.internalContainerRef,
2203
2302
  children: i
2204
2303
  });
2205
2304
  }
2206
- }, an = (e, t) => {
2305
+ }, rn = (e, t) => {
2207
2306
  let { markup: n } = ft(e, t);
2208
- return Yt(n).document;
2209
- }, on = (e, t) => class extends C.Component {
2307
+ return Jt(n).document;
2308
+ }, an = (e, t) => class extends C.Component {
2210
2309
  static propTypes = {
2211
2310
  markup: k.default.string,
2212
2311
  layout: k.default.object,
@@ -2228,8 +2327,8 @@ var At = /* @__PURE__ */ r(d(), 1), jt = kt(), Mt = (0, At.default)("@pie-lib:ma
2228
2327
  }
2229
2328
  }
2230
2329
  render() {
2231
- let { markup: n, layout: r, value: i, onChange: a, elementType: o } = this.props, s = r || an(n, e);
2232
- return /* @__PURE__ */ D(rn, {
2330
+ let { markup: n, layout: r, value: i, onChange: a, elementType: o } = this.props, s = r || rn(n, e);
2331
+ return /* @__PURE__ */ D(nn, {
2233
2332
  containerRef: this.containerRef,
2234
2333
  elementType: o,
2235
2334
  layout: s,
@@ -2238,21 +2337,21 @@ var At = /* @__PURE__ */ r(d(), 1), jt = kt(), Mt = (0, At.default)("@pie-lib:ma
2238
2337
  renderChildren: t(this.props)
2239
2338
  });
2240
2339
  }
2241
- }, sn = t(/*#__PURE__*/ D("path", { d: "m7 10 5 5 5-5z" }), "ArrowDropDown"), cn = t(/*#__PURE__*/ D("path", { d: "m7 14 5-5 5 5z" }), "ArrowDropUp");
2340
+ }, on = n(/*#__PURE__*/ D("path", { d: "m7 10 5 5 5-5z" }), "ArrowDropDown"), sn = n(/*#__PURE__*/ D("path", { d: "m7 14 5-5 5 5z" }), "ArrowDropUp");
2242
2341
  //#endregion
2243
2342
  //#region ../../lib-react/mask-markup/dist/components/dropdown.js
2244
- function J(e) {
2343
+ function Y(e) {
2245
2344
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
2246
2345
  }
2247
- function ln(e, t) {
2248
- return !e || J(e) ? e : J(e.default) ? e.default : t && J(e[t]) ? e[t] : t && J(e[t]?.default) ? e[t].default : e;
2346
+ function cn(e, t) {
2347
+ 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;
2249
2348
  }
2250
- var un = ln(h, "InlineMenu") || ln(fn.InlineMenu, "InlineMenu"), dn = a, Y = dn.default, fn = Y && typeof Y == "object" ? Y : dn, pn = l(b)(() => ({
2251
- color: c.text(),
2252
- border: `1px solid ${c.borderGray()}`,
2349
+ var ln = cn(m, "InlineMenu") || cn(fn.InlineMenu, "InlineMenu"), un = a, dn = un.default, fn = dn && typeof dn == "object" ? dn : un, pn = v.v("pie"), mn = g(b)(() => ({
2350
+ color: v.text(),
2351
+ border: `1px solid ${v.borderGray()}`,
2253
2352
  borderRadius: "4px",
2254
2353
  justifyContent: "space-between",
2255
- backgroundColor: c.background(),
2354
+ backgroundColor: v.background(),
2256
2355
  position: "relative",
2257
2356
  height: "45px",
2258
2357
  width: "fit-content",
@@ -2264,37 +2363,28 @@ var un = ln(h, "InlineMenu") || ln(fn.InlineMenu, "InlineMenu"), dn = a, Y = dn.
2264
2363
  right: "4px",
2265
2364
  top: "calc(50% - 12px)",
2266
2365
  pointerEvents: "none",
2267
- color: c.text(),
2366
+ color: v.text(),
2268
2367
  marginLeft: "5px"
2269
2368
  },
2270
2369
  "&.Mui-focused": {
2271
- outline: `3px solid ${c.tertiary()}`,
2370
+ outline: `3px solid ${v.tertiary()}`,
2272
2371
  outlineOffset: "2px",
2273
2372
  borderWidth: "3px"
2274
2373
  },
2275
2374
  "&.disabledCorrect": {
2276
2375
  borderWidth: "2px",
2277
- borderColor: c.correct(),
2278
- color: `${c.text()} !important`
2376
+ borderColor: v.correct(),
2377
+ color: `${v.text()} !important`
2279
2378
  },
2280
2379
  "&.disabledIncorrect": {
2281
2380
  borderWidth: "2px",
2282
- borderColor: c.incorrectWithIcon(),
2283
- color: `${c.text()} !important`
2381
+ borderColor: v.incorrectWithIcon(),
2382
+ color: `${v.text()} !important`
2284
2383
  }
2285
- })), mn = l(un)(() => ({
2286
- backgroundColor: c.background(),
2287
- border: `1px solid ${c.correct()} !important`,
2288
- "&:hover": {
2289
- border: `1px solid ${c.text()} `,
2290
- borderColor: "initial"
2291
- },
2292
- "&:focus": {
2293
- border: `1px solid ${c.text()}`,
2294
- borderColor: "initial"
2295
- },
2384
+ })), hn = g(ln)(() => ({
2385
+ "& .MuiPaper-root": { backgroundColor: pn("background", v.defaults.WHITE) },
2296
2386
  "& .MuiList-root": { padding: 0 }
2297
- })), hn = l(m)(() => ({
2387
+ })), gn = g(p)(() => ({
2298
2388
  height: 24,
2299
2389
  overflow: "hidden",
2300
2390
  fontSize: "1rem",
@@ -2302,42 +2392,42 @@ var un = ln(h, "InlineMenu") || ln(fn.InlineMenu, "InlineMenu"), dn = a, Y = dn.
2302
2392
  fontFamily: "inherit",
2303
2393
  lineHeight: "1.5em",
2304
2394
  whiteSpace: "nowrap",
2305
- color: c.text(),
2306
- backgroundColor: c.background(),
2395
+ color: v.text(),
2396
+ backgroundColor: v.background(),
2307
2397
  "&.Mui-focusVisible": {
2308
- outline: `3px solid ${c.tertiary()}`,
2398
+ outline: `3px solid ${v.tertiary()}`,
2309
2399
  outlineOffset: "-1px",
2310
- color: c.text(),
2311
- backgroundColor: c.background()
2400
+ color: v.text(),
2401
+ backgroundColor: v.background()
2312
2402
  },
2313
2403
  "&:hover": {
2314
- color: c.text(),
2315
- backgroundColor: c.dropdownBackground()
2404
+ color: v.text(),
2405
+ backgroundColor: v.dropdownBackground()
2316
2406
  },
2317
2407
  boxSizing: "border-box",
2318
2408
  padding: "16px 8px",
2319
2409
  borderRadius: "4px",
2320
2410
  "&.selected": {
2321
- color: `${c.text()} !important`,
2322
- backgroundColor: `${c.background()} !important`,
2411
+ color: `${v.text()} !important`,
2412
+ backgroundColor: `${v.background()} !important`,
2323
2413
  "&:hover": {
2324
- color: c.text(),
2325
- backgroundColor: `${c.dropdownBackground()} !important`
2414
+ color: v.text(),
2415
+ backgroundColor: `${v.dropdownBackground()} !important`
2326
2416
  }
2327
2417
  }
2328
- })), gn = l("span")(() => ({ fontSize: "max(1rem, 14px)" })), _n = l("span")(() => ({
2418
+ })), _n = g("span")(() => ({ fontSize: "max(1rem, 14px)" })), vn = g("span")(() => ({
2329
2419
  fontSize: "max(1rem, 14px)",
2330
2420
  flexShrink: 0,
2331
2421
  paddingLeft: "8px"
2332
- })), vn = l(y)(() => ({
2422
+ })), yn = g(y)(() => ({
2333
2423
  position: "absolute",
2334
2424
  left: "-10000px",
2335
2425
  top: "auto",
2336
2426
  width: "1px",
2337
2427
  height: "1px",
2338
2428
  overflow: "hidden"
2339
- })), yn = l(u)(() => ({
2340
- color: `${c.white()} !important`,
2429
+ })), bn = g(l)(() => ({
2430
+ color: `${v.white()} !important`,
2341
2431
  position: "absolute",
2342
2432
  top: "-8px !important",
2343
2433
  left: "-8px",
@@ -2345,10 +2435,10 @@ var un = ln(h, "InlineMenu") || ln(fn.InlineMenu, "InlineMenu"), dn = a, Y = dn.
2345
2435
  borderRadius: "50%",
2346
2436
  fontSize: "16px",
2347
2437
  padding: "2px",
2348
- "&.correct": { backgroundColor: c.correct() },
2349
- "&.incorrect": { backgroundColor: c.incorrectWithIcon() }
2350
- })), bn = l(v)(() => ({
2351
- color: `${c.white()} !important`,
2438
+ "&.correct": { backgroundColor: v.correct() },
2439
+ "&.incorrect": { backgroundColor: v.incorrectWithIcon() }
2440
+ })), xn = g(_)(() => ({
2441
+ color: `${v.white()} !important`,
2352
2442
  position: "absolute",
2353
2443
  top: "-8px !important",
2354
2444
  left: "-8px",
@@ -2356,9 +2446,9 @@ var un = ln(h, "InlineMenu") || ln(fn.InlineMenu, "InlineMenu"), dn = a, Y = dn.
2356
2446
  borderRadius: "50%",
2357
2447
  fontSize: "16px",
2358
2448
  padding: "2px",
2359
- "&.correct": { backgroundColor: c.correct() },
2360
- "&.incorrect": { backgroundColor: c.incorrectWithIcon() }
2361
- })), xn = class extends C.Component {
2449
+ "&.correct": { backgroundColor: v.correct() },
2450
+ "&.incorrect": { backgroundColor: v.incorrectWithIcon() }
2451
+ })), Sn = class extends C.Component {
2362
2452
  static propTypes = {
2363
2453
  id: k.default.string,
2364
2454
  value: k.default.string,
@@ -2384,17 +2474,17 @@ var un = ln(h, "InlineMenu") || ln(fn.InlineMenu, "InlineMenu"), dn = a, Y = dn.
2384
2474
  componentDidMount() {
2385
2475
  this.hiddenRef.current && this.state.menuWidth === null && this.setState({ menuWidth: this.hiddenRef.current.clientWidth });
2386
2476
  }
2387
- componentDidUpdate(t, n) {
2388
- let r = this.hiddenRef.current;
2389
- if (!n.anchorEl && this.state.anchorEl && this.elementRefs.forEach((t) => {
2390
- if (!t) return;
2391
- let n = t.querySelector("[data-latex], [data-raw]"), r = t.querySelector("mjx-container"), i = t.querySelector("[data-math-handled=\"true\"]");
2392
- n && (!i || !r) && e(t);
2393
- }), r) {
2394
- let t = r.clientWidth;
2395
- t !== this.state.menuWidth && (this.elementRefs.forEach((t) => {
2396
- t && e(t);
2397
- }), e(r), this.setState({ menuWidth: t }));
2477
+ componentDidUpdate(e, t) {
2478
+ let n = this.hiddenRef.current;
2479
+ if (!t.anchorEl && this.state.anchorEl && this.elementRefs.forEach((e) => {
2480
+ if (!e) return;
2481
+ let t = e.querySelector("[data-latex], [data-raw]"), n = e.querySelector("mjx-container"), i = e.querySelector("[data-math-handled=\"true\"]");
2482
+ t && (!i || !n) && r(e);
2483
+ }), n) {
2484
+ let e = n.clientWidth;
2485
+ e !== this.state.menuWidth && (this.elementRefs.forEach((e) => {
2486
+ e && r(e);
2487
+ }), r(n), this.setState({ menuWidth: e }));
2398
2488
  }
2399
2489
  }
2400
2490
  handleClick = (e) => {
@@ -2442,7 +2532,7 @@ var un = ln(h, "InlineMenu") || ln(fn.InlineMenu, "InlineMenu"), dn = a, Y = dn.
2442
2532
  let { id: e, correct: t, disabled: n, value: r, choices: i, showCorrectAnswer: a, singleQuery: o, correctValue: s } = this.props, { anchorEl: c } = this.state, l = !!c, u = `dropdown-button-${e}`, d = `dropdown-menu-${e}`, f = `dropdown-value-${e}`, p;
2443
2533
  this.elementRefs = [], n && t !== void 0 && (p = t || a ? "disabledCorrect" : "disabledIncorrect");
2444
2534
  let m = parseInt(e, 10) + 1, h = o ? "Query-label" : `Query-label-${m}`, g = o ? "Query" : `Query ${m}`, _ = null;
2445
- return n && t !== void 0 && (_ = t || a ? /* @__PURE__ */ D(yn, { className: "correct" }) : /* @__PURE__ */ D(bn, { className: "incorrect" })), /* @__PURE__ */ O(ee, { children: [
2535
+ return n && t !== void 0 && (_ = t || a ? /* @__PURE__ */ D(bn, { className: "correct" }) : /* @__PURE__ */ D(xn, { className: "incorrect" })), /* @__PURE__ */ O(ee, { children: [
2446
2536
  /* @__PURE__ */ D("div", {
2447
2537
  ref: this.hiddenRef,
2448
2538
  style: {
@@ -2453,19 +2543,19 @@ var un = ln(h, "InlineMenu") || ln(fn.InlineMenu, "InlineMenu"), dn = a, Y = dn.
2453
2543
  },
2454
2544
  tabIndex: -1,
2455
2545
  "aria-hidden": "true",
2456
- children: (i || []).map((e, t) => /* @__PURE__ */ D(hn, {
2546
+ children: (i || []).map((e, t) => /* @__PURE__ */ D(gn, {
2457
2547
  tabIndex: -1,
2458
2548
  "aria-hidden": "true",
2459
- children: /* @__PURE__ */ D(gn, { dangerouslySetInnerHTML: { __html: e.label } })
2549
+ children: /* @__PURE__ */ D(_n, { dangerouslySetInnerHTML: { __html: e.label } })
2460
2550
  }, t))
2461
2551
  }),
2462
- /* @__PURE__ */ D(vn, {
2552
+ /* @__PURE__ */ D(yn, {
2463
2553
  id: h,
2464
2554
  tabIndex: -1,
2465
2555
  "aria-hidden": "true",
2466
2556
  children: g
2467
2557
  }),
2468
- /* @__PURE__ */ O(pn, {
2558
+ /* @__PURE__ */ O(mn, {
2469
2559
  ref: this.buttonRef,
2470
2560
  style: {
2471
2561
  ...this.state.menuWidth && { minWidth: `calc(${this.state.menuWidth}px + 8px)` },
@@ -2485,15 +2575,15 @@ var un = ln(h, "InlineMenu") || ln(fn.InlineMenu, "InlineMenu"), dn = a, Y = dn.
2485
2575
  "aria-labelledby": f,
2486
2576
  children: [
2487
2577
  _,
2488
- /* @__PURE__ */ D(gn, {
2578
+ /* @__PURE__ */ D(_n, {
2489
2579
  id: f,
2490
2580
  ref: this.previewRef,
2491
2581
  dangerouslySetInnerHTML: { __html: s || (l && this.state.previewValue ? this.getLabel(i, this.state.previewValue) : this.getLabel(i, r) || "") }
2492
2582
  }),
2493
- D(l ? cn : sn, {})
2583
+ D(l ? sn : on, {})
2494
2584
  ]
2495
2585
  }),
2496
- /* @__PURE__ */ D(mn, {
2586
+ /* @__PURE__ */ D(hn, {
2497
2587
  id: d,
2498
2588
  anchorEl: c,
2499
2589
  keepMounted: !0,
@@ -2525,7 +2615,7 @@ var un = ln(h, "InlineMenu") || ln(fn.InlineMenu, "InlineMenu"), dn = a, Y = dn.
2525
2615
  },
2526
2616
  children: (i || []).map((t, n) => {
2527
2617
  let i = `dropdown-option-${e}-${n}`;
2528
- return /* @__PURE__ */ O(hn, {
2618
+ return /* @__PURE__ */ O(gn, {
2529
2619
  id: i,
2530
2620
  className: t.value === r ? "selected" : "",
2531
2621
  selected: t.value === r,
@@ -2534,20 +2624,20 @@ var un = ln(h, "InlineMenu") || ln(fn.InlineMenu, "InlineMenu"), dn = a, Y = dn.
2534
2624
  role: "option",
2535
2625
  "aria-selected": this.state.highlightedOptionId === i ? "true" : void 0,
2536
2626
  onMouseOver: () => this.handleHover(n),
2537
- children: [/* @__PURE__ */ D(gn, {
2627
+ children: [/* @__PURE__ */ D(_n, {
2538
2628
  ref: (e) => this.elementRefs[n] = e,
2539
2629
  dangerouslySetInnerHTML: { __html: t.label }
2540
- }), /* @__PURE__ */ D(_n, { dangerouslySetInnerHTML: { __html: t.value === r ? " &check;" : "" } })]
2630
+ }), /* @__PURE__ */ D(vn, { dangerouslySetInnerHTML: { __html: t.value === r ? " &check;" : "" } })]
2541
2631
  }, `${t.label}-${n}`);
2542
2632
  })
2543
2633
  })
2544
2634
  ] });
2545
2635
  }
2546
- }, Sn = on("dropdown", (e) => (t, n, r) => {
2636
+ }, Cn = an("dropdown", (e) => (t, n, r) => {
2547
2637
  let i = t.data && t.data.dataset || {};
2548
2638
  if (i.component === "dropdown") {
2549
2639
  let { choices: a, disabled: o, feedback: s, showCorrectAnswer: c } = e, l = a && a[i.id] && a[i.id].find((e) => e.correct), u = c ? l && l.value : n[i.id];
2550
- return /* @__PURE__ */ D(xn, {
2640
+ return /* @__PURE__ */ D(Sn, {
2551
2641
  correct: s && s[i.id] && s[i.id] === "correct",
2552
2642
  disabled: o || c,
2553
2643
  value: u,
@@ -2568,23 +2658,23 @@ function X(e) {
2568
2658
  function Z(e, t) {
2569
2659
  return !e || X(e) ? e : X(e.default) ? e.default : t && X(e[t]) ? e[t] : t && X(e[t]?.default) ? e[t].default : e;
2570
2660
  }
2571
- var Cn = Z(i, "UiLayout") || Z($.UiLayout, "UiLayout"), Q = Z(p, "PreviewPrompt") || Z($.PreviewPrompt, "PreviewPrompt"), wn = Z(f, "Collapsible") || Z($.Collapsible, "Collapsible"), Tn = a, En = Tn.default, $ = En && typeof En == "object" ? En : Tn, Dn = l(Cn)({
2572
- color: c.text(),
2573
- backgroundColor: c.background()
2574
- }), On = l(wn)(({ theme: e }) => ({ marginBottom: e.spacing(2) })), kn = l("div")(({ theme: e }) => ({ "&:not(:last-child)": { marginBottom: e.spacing(2) } })), An = l("div")({
2661
+ var wn = Z(i, "UiLayout") || Z($.UiLayout, "UiLayout"), Q = Z(f, "PreviewPrompt") || Z($.PreviewPrompt, "PreviewPrompt"), Tn = Z(d, "Collapsible") || Z($.Collapsible, "Collapsible"), En = a, Dn = En.default, $ = Dn && typeof Dn == "object" ? Dn : En, On = g(wn)({
2662
+ color: v.text(),
2663
+ backgroundColor: v.background()
2664
+ }), kn = g(Tn)(({ theme: e }) => ({ marginBottom: e.spacing(2) })), An = g("div")(({ theme: e }) => ({ "&:not(:last-child)": { marginBottom: e.spacing(2) } })), jn = g("div")({
2575
2665
  display: "flex",
2576
2666
  whiteSpace: "break-spaces"
2577
- }), jn = l("div")(({ correct: e }) => ({
2667
+ }), Mn = g("div")(({ correct: e }) => ({
2578
2668
  display: "flex",
2579
- ...e ? { color: c.correct() } : { color: c.incorrectWithIcon() }
2580
- })), Mn = l("h2")({
2669
+ ...e ? { color: v.correct() } : { color: v.incorrectWithIcon() }
2670
+ })), Nn = g("h2")({
2581
2671
  position: "absolute",
2582
2672
  left: "-10000px",
2583
2673
  top: "auto",
2584
2674
  width: "1px",
2585
2675
  height: "1px",
2586
2676
  overflow: "hidden"
2587
- }), Nn = class extends C.Component {
2677
+ }), Pn = class extends C.Component {
2588
2678
  static propTypes = {
2589
2679
  prompt: k.default.string,
2590
2680
  disabled: k.default.bool,
@@ -2606,19 +2696,19 @@ var Cn = Z(i, "UiLayout") || Z($.UiLayout, "UiLayout"), Q = Z(p, "PreviewPrompt"
2606
2696
  S(e.feedback) && this.setState({ showCorrectAnswer: !1 });
2607
2697
  }
2608
2698
  componentDidUpdate() {
2609
- e(E.findDOMNode(this));
2699
+ r(E.findDOMNode(this));
2610
2700
  }
2611
2701
  toggleShowCorrect = () => {
2612
2702
  this.setState({ showCorrectAnswer: !this.state.showCorrectAnswer });
2613
2703
  };
2614
2704
  render() {
2615
- let { showCorrectAnswer: e } = this.state, { prompt: t, mode: n, model: r, rationale: i, teacherInstructions: a, choices: c, displayType: l, language: u } = this.props, { extraCSSRules: d } = r || {}, f = n === "evaluate", p = !1, m = i && (s(i) || o(i)), h = a && (s(a) || o(a)), g = (Object.keys(c) || []).map((e) => (c[e] || []).reduce((e, t) => (t.rationale && s(t.rationale) && (p = !0, e.push(t)), e), []));
2616
- return /* @__PURE__ */ O(Dn, {
2705
+ let { showCorrectAnswer: e } = this.state, { prompt: t, mode: n, model: r, rationale: i, teacherInstructions: a, choices: s, displayType: l, language: u } = this.props, { extraCSSRules: d } = r || {}, f = n === "evaluate", p = !1, m = i && (c(i) || o(i)), h = a && (c(a) || o(a)), g = (Object.keys(s) || []).map((e) => (s[e] || []).reduce((e, t) => (t.rationale && c(t.rationale) && (p = !0, e.push(t)), e), []));
2706
+ return /* @__PURE__ */ O(On, {
2617
2707
  extraCSSRules: d,
2618
2708
  style: { display: `${l}` },
2619
2709
  children: [
2620
- n === "gather" && /* @__PURE__ */ D(Mn, { children: "Inline Dropdown Question" }),
2621
- h && /* @__PURE__ */ D(On, {
2710
+ n === "gather" && /* @__PURE__ */ D(Nn, { children: "Inline Dropdown Question" }),
2711
+ h && /* @__PURE__ */ D(kn, {
2622
2712
  labels: {
2623
2713
  hidden: "Show Teacher Instructions",
2624
2714
  visible: "Hide Teacher Instructions"
@@ -2632,21 +2722,21 @@ var Cn = Z(i, "UiLayout") || Z($.UiLayout, "UiLayout"), Q = Z(p, "PreviewPrompt"
2632
2722
  onToggle: this.toggleShowCorrect,
2633
2723
  language: u
2634
2724
  }),
2635
- /* @__PURE__ */ D(Sn, {
2725
+ /* @__PURE__ */ D(Cn, {
2636
2726
  ...this.props,
2637
2727
  showCorrectAnswer: e
2638
2728
  }),
2639
- p && /* @__PURE__ */ D(On, {
2729
+ p && /* @__PURE__ */ D(kn, {
2640
2730
  labels: {
2641
2731
  hidden: "Show Rationale for choices",
2642
2732
  visible: "Hide Rationale for choices"
2643
2733
  },
2644
- children: g.map((e, t) => /* @__PURE__ */ D(kn, { children: e?.length > 0 && e.map((e) => /* @__PURE__ */ O(An, { children: [/* @__PURE__ */ D(jn, {
2734
+ children: g.map((e, t) => /* @__PURE__ */ D(An, { children: e?.length > 0 && e.map((e) => /* @__PURE__ */ O(jn, { children: [/* @__PURE__ */ D(Mn, {
2645
2735
  correct: e.correct,
2646
2736
  dangerouslySetInnerHTML: { __html: `${e.label}: ` }
2647
2737
  }), /* @__PURE__ */ D(Q, { prompt: e.rationale })] }, e.label)) }, t))
2648
2738
  }),
2649
- m && /* @__PURE__ */ D(wn, {
2739
+ m && /* @__PURE__ */ D(Tn, {
2650
2740
  labels: {
2651
2741
  hidden: "Show Rationale",
2652
2742
  visible: "Hide Rationale"
@@ -2656,7 +2746,7 @@ var Cn = Z(i, "UiLayout") || Z($.UiLayout, "UiLayout"), Q = Z(p, "PreviewPrompt"
2656
2746
  ]
2657
2747
  });
2658
2748
  }
2659
- }, Pn = class extends HTMLElement {
2749
+ }, Fn = class extends HTMLElement {
2660
2750
  constructor() {
2661
2751
  super(), this._model = null, this._session = null, this._root = null;
2662
2752
  }
@@ -2675,7 +2765,7 @@ var Cn = Z(i, "UiLayout") || Z($.UiLayout, "UiLayout"), Q = Z(p, "PreviewPrompt"
2675
2765
  }
2676
2766
  _render = () => {
2677
2767
  if (this._model && this._session) {
2678
- let t = C.createElement(Nn, {
2768
+ let e = C.createElement(Pn, {
2679
2769
  model: this._model,
2680
2770
  prompt: this._model.prompt,
2681
2771
  rationale: this._model.rationale,
@@ -2690,8 +2780,8 @@ var Cn = Z(i, "UiLayout") || Z($.UiLayout, "UiLayout"), Q = Z(p, "PreviewPrompt"
2690
2780
  language: this._model.language,
2691
2781
  onChange: this.changeSession
2692
2782
  });
2693
- this.setLangAttribute(), this._root ||= T(this), this._root.render(t), queueMicrotask(() => {
2694
- e(this);
2783
+ this.setLangAttribute(), this._root ||= T(this), this._root.render(e), queueMicrotask(() => {
2784
+ r(this);
2695
2785
  });
2696
2786
  }
2697
2787
  };
@@ -2705,10 +2795,10 @@ var Cn = Z(i, "UiLayout") || Z($.UiLayout, "UiLayout"), Q = Z(p, "PreviewPrompt"
2705
2795
  this.setAttribute("aria-label", "Inline Dropdown Question"), this.setAttribute("role", "region"), this._render();
2706
2796
  }
2707
2797
  disconnectedCallback() {
2708
- this._root && this._root.unmount();
2798
+ this._root &&= (this._root.unmount(), null);
2709
2799
  }
2710
2800
  };
2711
2801
  //#endregion
2712
- export { Pn as default };
2802
+ export { Fn as default };
2713
2803
 
2714
2804
  //# sourceMappingURL=index.js.map