@pie-element/categorize 13.1.2-next.0 → 13.1.2-next.2

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 (126) hide show
  1. package/dist/author/design/builder.js +1 -1
  2. package/dist/browser/author/index.js +361 -367
  3. package/dist/browser/author/index.js.map +1 -1
  4. package/dist/browser/controller/index.js +1 -1
  5. package/dist/browser/controller/index.js.map +1 -1
  6. package/dist/browser/delivery/index.js +4 -4
  7. package/dist/browser/{dist-BsrA0RFp.js → dist-BINEJ0Vp.js} +277 -1261
  8. package/dist/browser/dist-BINEJ0Vp.js.map +1 -0
  9. package/dist/browser/{dist-BaJrqHFp.js → dist-DDCLQ8jp.js} +11286 -11667
  10. package/dist/browser/dist-DDCLQ8jp.js.map +1 -0
  11. package/dist/controller/index.js +34 -34
  12. package/dist/index.iife.js +34 -34
  13. package/dist/runtime-support.d.ts +12 -0
  14. package/dist/runtime-support.js +12 -0
  15. package/package.json +15 -12
  16. package/dist/browser/dist-BaJrqHFp.js.map +0 -1
  17. package/dist/browser/dist-BsrA0RFp.js.map +0 -1
  18. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +0 -6
  19. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +0 -16
  20. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +0 -16
  21. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +0 -6
  22. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +0 -16
  23. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +0 -6
  24. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +0 -6
  25. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +0 -14
  26. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
  27. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +0 -5
  28. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +0 -6
  29. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +0 -7
  30. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +0 -10
  31. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +0 -15
  32. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +0 -7
  33. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +0 -10
  34. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +0 -8
  35. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +0 -8
  36. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +0 -8
  37. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +0 -12
  38. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +0 -57
  39. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +0 -14
  40. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
  41. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
  42. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +0 -9
  43. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +0 -9
  44. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +0 -11
  45. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +0 -9
  46. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +0 -11
  47. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +0 -12
  48. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +0 -13
  49. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +0 -7
  50. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +0 -8
  51. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
  52. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +0 -10
  53. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +0 -8
  54. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +0 -8
  55. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +0 -8
  56. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +0 -8
  57. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +0 -8
  58. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +0 -14
  59. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +0 -8
  60. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +0 -8
  61. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +0 -5
  62. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +0 -10
  63. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +0 -4
  64. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +0 -9
  65. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +0 -9
  66. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +0 -8
  67. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +0 -9
  68. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +0 -5
  69. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +0 -14
  70. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +0 -10
  71. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +0 -11
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +0 -23
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +0 -6
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +0 -7
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +0 -7
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +0 -13
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +0 -9
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +0 -9
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +0 -8
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +0 -33
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +0 -9
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +0 -8
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +0 -7
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +0 -11
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +0 -8
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +0 -6
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +0 -9
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +0 -8
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +0 -7
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +0 -8
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +0 -13
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +0 -8
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +0 -7
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +0 -7
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +0 -8
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +0 -5
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +0 -5
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +0 -8
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +0 -9
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +0 -7
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +0 -8
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +0 -5
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +0 -7
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +0 -7
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +0 -6
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +0 -6
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +0 -16
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +0 -15
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +0 -8
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +0 -6
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +0 -10
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +0 -4
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +0 -8
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +0 -6
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +0 -21
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +0 -11
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +0 -7
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +0 -7
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +0 -7
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +0 -7
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +0 -9
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +0 -9
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +0 -6
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +0 -6
@@ -1,17 +1,11 @@
1
- import { $ as e, a as t, c as n, d as r, et as i, g as a, i as o, it as s, l as c, n as l, o as u, r as d, s as f, u as p } from "../dist-BsrA0RFp.js";
2
- import { $ as m, A as h, B as g, D as _, E as v, F as y, H as b, I as ee, J as te, L as x, M as S, N as ne, P as C, Q as w, R as T, U as E, V as re, W as ie, X as ae, Y as oe, Z as se, _ as ce, a as le, b as D, c as O, d as k, et as ue, f as A, g as de, h as fe, i as pe, k as j, l as M, m as N, n as P, nt as me, o as he, p as ge, q as F, r as I, rt as L, s as R, t as z, tt as _e, u as ve, v as ye, y as B, z as be } from "../dist-BaJrqHFp.js";
1
+ import { D as e, M as t, O as n, a as r, b as i, c as a, d as o, i as s, l as c, n as l, o as u, r as d, s as f, u as p } from "../dist-BINEJ0Vp.js";
2
+ import { $ as m, A as h, B as g, D as _, E as v, F as y, H as b, I as x, J as ee, L as S, M as C, N as te, P as w, Q as T, R as E, U as D, V as ne, W as re, X as ie, Y as ae, Z as oe, _ as se, a as ce, b as O, c as k, d as A, et as le, f as j, g as ue, h as de, i as fe, k as M, l as pe, m as N, n as P, nt as me, o as he, p as ge, q as F, r as I, rt as L, s as R, t as z, tt as _e, u as ve, v as ye, y as B, z as be } from "../dist-DDCLQ8jp.js";
3
3
  import * as V from "react";
4
4
  import H from "react";
5
5
  import { createRoot as U } from "react-dom/client";
6
6
  import { jsx as W, jsxs as G } from "react/jsx-runtime";
7
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js
8
- var xe = 1, Se = 4;
9
- function Ce(e) {
10
- return a(e, xe | Se);
11
- }
12
- //#endregion
13
7
  //#region ../../lib-react/drag/dist/draggable-choice.js
14
- var K = /* @__PURE__ */ s(ue(), 1), we = F("div")(({ theme: e }) => ({
8
+ var K = /* @__PURE__ */ t(le(), 1), xe = F("div")(({ theme: e }) => ({
15
9
  backgroundColor: e.palette.background.paper,
16
10
  border: `solid 1px ${me[400]}`,
17
11
  padding: e.spacing(1),
@@ -23,7 +17,7 @@ var K = /* @__PURE__ */ s(ue(), 1), we = F("div")(({ theme: e }) => ({
23
17
  "& p *": { margin: 0 },
24
18
  "&:active": { cursor: "grabbing" }
25
19
  }));
26
- function Te({ choice: e, children: t, className: n, disabled: r, category: i, alternateResponseIndex: a, choiceIndex: o, onRemoveChoice: s, type: c, id: l }) {
20
+ function q({ choice: e, children: t, className: n, disabled: r, category: i, alternateResponseIndex: a, choiceIndex: o, onRemoveChoice: s, type: c, id: l }) {
27
21
  let { attributes: u, listeners: d, setNodeRef: f, isDragging: p } = ye({
28
22
  id: l || e.id,
29
23
  disabled: r,
@@ -41,7 +35,7 @@ function Te({ choice: e, children: t, className: n, disabled: r, category: i, al
41
35
  type: c
42
36
  }
43
37
  });
44
- return /* @__PURE__ */ W(we, {
38
+ return /* @__PURE__ */ W(xe, {
45
39
  ref: f,
46
40
  className: n,
47
41
  isDragging: p,
@@ -50,7 +44,7 @@ function Te({ choice: e, children: t, className: n, disabled: r, category: i, al
50
44
  children: t
51
45
  });
52
46
  }
53
- Te.propTypes = {
47
+ q.propTypes = {
54
48
  choice: K.default.shape({
55
49
  id: K.default.oneOfType([K.default.string, K.default.number]).isRequired,
56
50
  value: K.default.any
@@ -67,16 +61,16 @@ Te.propTypes = {
67
61
  };
68
62
  //#endregion
69
63
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/CardActions/cardActionsClasses.js
70
- function Ee(e) {
71
- return w("MuiCardActions", e);
64
+ function Se(e) {
65
+ return T("MuiCardActions", e);
72
66
  }
73
- se("MuiCardActions", ["root", "spacing"]);
67
+ oe("MuiCardActions", ["root", "spacing"]);
74
68
  //#endregion
75
69
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/CardActions/CardActions.js
76
- var De = (e) => {
70
+ var Ce = (e) => {
77
71
  let { classes: t, disableSpacing: n } = e;
78
- return oe({ root: ["root", !n && "spacing"] }, Ee, t);
79
- }, Oe = F("div", {
72
+ return ae({ root: ["root", !n && "spacing"] }, Se, t);
73
+ }, we = F("div", {
80
74
  name: "MuiCardActions",
81
75
  slot: "Root",
82
76
  overridesResolver: (e, t) => {
@@ -91,16 +85,16 @@ var De = (e) => {
91
85
  props: { disableSpacing: !1 },
92
86
  style: { "& > :not(style) ~ :not(style)": { marginLeft: 8 } }
93
87
  }]
94
- }), ke = /*#__PURE__*/ V.forwardRef(function(e, t) {
95
- let n = ie({
88
+ }), Te = /*#__PURE__*/ V.forwardRef(function(e, t) {
89
+ let n = re({
96
90
  props: e,
97
91
  name: "MuiCardActions"
98
92
  }), { disableSpacing: r = !1, className: i, ...a } = n, o = {
99
93
  ...n,
100
94
  disableSpacing: r
101
95
  };
102
- return /*#__PURE__*/ W(Oe, {
103
- className: m(De(o).root, i),
96
+ return /*#__PURE__*/ W(we, {
97
+ className: m(Ce(o).root, i),
104
98
  ownerState: o,
105
99
  ref: t,
106
100
  ...a
@@ -108,10 +102,10 @@ var De = (e) => {
108
102
  });
109
103
  //#endregion
110
104
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Tooltip/tooltipClasses.js
111
- function Ae(e) {
112
- return w("MuiTooltip", e);
105
+ function Ee(e) {
106
+ return T("MuiTooltip", e);
113
107
  }
114
- var q = se("MuiTooltip", [
108
+ var J = oe("MuiTooltip", [
115
109
  "popper",
116
110
  "popperInteractive",
117
111
  "popperArrow",
@@ -127,12 +121,12 @@ var q = se("MuiTooltip", [
127
121
  ]);
128
122
  //#endregion
129
123
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Tooltip/Tooltip.js
130
- function je(e) {
124
+ function De(e) {
131
125
  return Math.round(e * 1e5) / 1e5;
132
126
  }
133
- var Me = (e) => {
127
+ var Oe = (e) => {
134
128
  let { classes: t, disableInteractive: n, arrow: r, touch: i, placement: a } = e;
135
- return oe({
129
+ return ae({
136
130
  popper: [
137
131
  "popper",
138
132
  !n && "popperInteractive",
@@ -142,11 +136,11 @@ var Me = (e) => {
142
136
  "tooltip",
143
137
  r && "tooltipArrow",
144
138
  i && "touch",
145
- `tooltipPlacement${ee(a.split("-")[0])}`
139
+ `tooltipPlacement${x(a.split("-")[0])}`
146
140
  ],
147
141
  arrow: ["arrow"]
148
- }, Ae, t);
149
- }, Ne = F(k, {
142
+ }, Ee, t);
143
+ }, ke = F(A, {
150
144
  name: "MuiTooltip",
151
145
  slot: "Popper",
152
146
  overridesResolver: (e, t) => {
@@ -158,7 +152,7 @@ var Me = (e) => {
158
152
  !n.open && t.popperClose
159
153
  ];
160
154
  }
161
- })(T(({ theme: e }) => ({
155
+ })(E(({ theme: e }) => ({
162
156
  zIndex: (e.vars || e).zIndex.tooltip,
163
157
  pointerEvents: "none",
164
158
  variants: [
@@ -173,22 +167,22 @@ var Me = (e) => {
173
167
  {
174
168
  props: ({ ownerState: e }) => e.arrow,
175
169
  style: {
176
- [`&[data-popper-placement*="bottom"] .${q.arrow}`]: {
170
+ [`&[data-popper-placement*="bottom"] .${J.arrow}`]: {
177
171
  top: 0,
178
172
  marginTop: "-0.71em",
179
173
  "&::before": { transformOrigin: "0 100%" }
180
174
  },
181
- [`&[data-popper-placement*="top"] .${q.arrow}`]: {
175
+ [`&[data-popper-placement*="top"] .${J.arrow}`]: {
182
176
  bottom: 0,
183
177
  marginBottom: "-0.71em",
184
178
  "&::before": { transformOrigin: "100% 0" }
185
179
  },
186
- [`&[data-popper-placement*="right"] .${q.arrow}`]: {
180
+ [`&[data-popper-placement*="right"] .${J.arrow}`]: {
187
181
  height: "1em",
188
182
  width: "0.71em",
189
183
  "&::before": { transformOrigin: "100% 100%" }
190
184
  },
191
- [`&[data-popper-placement*="left"] .${q.arrow}`]: {
185
+ [`&[data-popper-placement*="left"] .${J.arrow}`]: {
192
186
  height: "1em",
193
187
  width: "0.71em",
194
188
  "&::before": { transformOrigin: "0 0" }
@@ -197,34 +191,34 @@ var Me = (e) => {
197
191
  },
198
192
  {
199
193
  props: ({ ownerState: e }) => e.arrow && !e.isRtl,
200
- style: { [`&[data-popper-placement*="right"] .${q.arrow}`]: {
194
+ style: { [`&[data-popper-placement*="right"] .${J.arrow}`]: {
201
195
  left: 0,
202
196
  marginLeft: "-0.71em"
203
197
  } }
204
198
  },
205
199
  {
206
200
  props: ({ ownerState: e }) => e.arrow && !!e.isRtl,
207
- style: { [`&[data-popper-placement*="right"] .${q.arrow}`]: {
201
+ style: { [`&[data-popper-placement*="right"] .${J.arrow}`]: {
208
202
  right: 0,
209
203
  marginRight: "-0.71em"
210
204
  } }
211
205
  },
212
206
  {
213
207
  props: ({ ownerState: e }) => e.arrow && !e.isRtl,
214
- style: { [`&[data-popper-placement*="left"] .${q.arrow}`]: {
208
+ style: { [`&[data-popper-placement*="left"] .${J.arrow}`]: {
215
209
  right: 0,
216
210
  marginRight: "-0.71em"
217
211
  } }
218
212
  },
219
213
  {
220
214
  props: ({ ownerState: e }) => e.arrow && !!e.isRtl,
221
- style: { [`&[data-popper-placement*="left"] .${q.arrow}`]: {
215
+ style: { [`&[data-popper-placement*="left"] .${J.arrow}`]: {
222
216
  left: 0,
223
217
  marginLeft: "-0.71em"
224
218
  } }
225
219
  }
226
220
  ]
227
- }))), Pe = F("div", {
221
+ }))), Ae = F("div", {
228
222
  name: "MuiTooltip",
229
223
  slot: "Tooltip",
230
224
  overridesResolver: (e, t) => {
@@ -233,10 +227,10 @@ var Me = (e) => {
233
227
  t.tooltip,
234
228
  n.touch && t.touch,
235
229
  n.arrow && t.tooltipArrow,
236
- t[`tooltipPlacement${ee(n.placement.split("-")[0])}`]
230
+ t[`tooltipPlacement${x(n.placement.split("-")[0])}`]
237
231
  ];
238
232
  }
239
- })(T(({ theme: e }) => ({
233
+ })(E(({ theme: e }) => ({
240
234
  backgroundColor: e.vars ? e.vars.palette.Tooltip.bg : e.alpha(e.palette.grey[700], .92),
241
235
  borderRadius: (e.vars || e).shape.borderRadius,
242
236
  color: (e.vars || e).palette.common.white,
@@ -247,13 +241,13 @@ var Me = (e) => {
247
241
  margin: 2,
248
242
  wordWrap: "break-word",
249
243
  fontWeight: e.typography.fontWeightMedium,
250
- [`.${q.popper}[data-popper-placement*="left"] &`]: { transformOrigin: "right center" },
251
- [`.${q.popper}[data-popper-placement*="right"] &`]: { transformOrigin: "left center" },
252
- [`.${q.popper}[data-popper-placement*="top"] &`]: {
244
+ [`.${J.popper}[data-popper-placement*="left"] &`]: { transformOrigin: "right center" },
245
+ [`.${J.popper}[data-popper-placement*="right"] &`]: { transformOrigin: "left center" },
246
+ [`.${J.popper}[data-popper-placement*="top"] &`]: {
253
247
  transformOrigin: "center bottom",
254
248
  marginBottom: "14px"
255
249
  },
256
- [`.${q.popper}[data-popper-placement*="bottom"] &`]: {
250
+ [`.${J.popper}[data-popper-placement*="bottom"] &`]: {
257
251
  transformOrigin: "center top",
258
252
  marginTop: "14px"
259
253
  },
@@ -270,51 +264,51 @@ var Me = (e) => {
270
264
  style: {
271
265
  padding: "8px 16px",
272
266
  fontSize: e.typography.pxToRem(14),
273
- lineHeight: `${je(16 / 14)}em`,
267
+ lineHeight: `${De(16 / 14)}em`,
274
268
  fontWeight: e.typography.fontWeightRegular
275
269
  }
276
270
  },
277
271
  {
278
272
  props: ({ ownerState: e }) => !e.isRtl,
279
273
  style: {
280
- [`.${q.popper}[data-popper-placement*="left"] &`]: { marginRight: "14px" },
281
- [`.${q.popper}[data-popper-placement*="right"] &`]: { marginLeft: "14px" }
274
+ [`.${J.popper}[data-popper-placement*="left"] &`]: { marginRight: "14px" },
275
+ [`.${J.popper}[data-popper-placement*="right"] &`]: { marginLeft: "14px" }
282
276
  }
283
277
  },
284
278
  {
285
279
  props: ({ ownerState: e }) => !e.isRtl && e.touch,
286
280
  style: {
287
- [`.${q.popper}[data-popper-placement*="left"] &`]: { marginRight: "24px" },
288
- [`.${q.popper}[data-popper-placement*="right"] &`]: { marginLeft: "24px" }
281
+ [`.${J.popper}[data-popper-placement*="left"] &`]: { marginRight: "24px" },
282
+ [`.${J.popper}[data-popper-placement*="right"] &`]: { marginLeft: "24px" }
289
283
  }
290
284
  },
291
285
  {
292
286
  props: ({ ownerState: e }) => !!e.isRtl,
293
287
  style: {
294
- [`.${q.popper}[data-popper-placement*="left"] &`]: { marginLeft: "14px" },
295
- [`.${q.popper}[data-popper-placement*="right"] &`]: { marginRight: "14px" }
288
+ [`.${J.popper}[data-popper-placement*="left"] &`]: { marginLeft: "14px" },
289
+ [`.${J.popper}[data-popper-placement*="right"] &`]: { marginRight: "14px" }
296
290
  }
297
291
  },
298
292
  {
299
293
  props: ({ ownerState: e }) => !!e.isRtl && e.touch,
300
294
  style: {
301
- [`.${q.popper}[data-popper-placement*="left"] &`]: { marginLeft: "24px" },
302
- [`.${q.popper}[data-popper-placement*="right"] &`]: { marginRight: "24px" }
295
+ [`.${J.popper}[data-popper-placement*="left"] &`]: { marginLeft: "24px" },
296
+ [`.${J.popper}[data-popper-placement*="right"] &`]: { marginRight: "24px" }
303
297
  }
304
298
  },
305
299
  {
306
300
  props: ({ ownerState: e }) => e.touch,
307
- style: { [`.${q.popper}[data-popper-placement*="top"] &`]: { marginBottom: "24px" } }
301
+ style: { [`.${J.popper}[data-popper-placement*="top"] &`]: { marginBottom: "24px" } }
308
302
  },
309
303
  {
310
304
  props: ({ ownerState: e }) => e.touch,
311
- style: { [`.${q.popper}[data-popper-placement*="bottom"] &`]: { marginTop: "24px" } }
305
+ style: { [`.${J.popper}[data-popper-placement*="bottom"] &`]: { marginTop: "24px" } }
312
306
  }
313
307
  ]
314
- }))), Fe = F("span", {
308
+ }))), je = F("span", {
315
309
  name: "MuiTooltip",
316
310
  slot: "Arrow"
317
- })(T(({ theme: e }) => ({
311
+ })(E(({ theme: e }) => ({
318
312
  overflow: "hidden",
319
313
  position: "absolute",
320
314
  width: "1em",
@@ -330,104 +324,104 @@ var Me = (e) => {
330
324
  backgroundColor: "currentColor",
331
325
  transform: "rotate(45deg)"
332
326
  }
333
- }))), Ie = !1, Le = new b(), Re = {
327
+ }))), Me = !1, Ne = new b(), Pe = {
334
328
  x: 0,
335
329
  y: 0
336
330
  };
337
- function ze(e, t) {
331
+ function Fe(e, t) {
338
332
  return (n, ...r) => {
339
333
  t && t(n, ...r), e(n, ...r);
340
334
  };
341
335
  }
342
- var Be = /*#__PURE__*/ V.forwardRef(function(e, t) {
343
- let n = ie({
336
+ var Ie = /*#__PURE__*/ V.forwardRef(function(e, t) {
337
+ let n = re({
344
338
  props: e,
345
339
  name: "MuiTooltip"
346
- }), { arrow: r = !1, children: i, classes: a, components: o = {}, componentsProps: s = {}, describeChild: c = !1, disableFocusListener: l = !1, disableHoverListener: u = !1, disableInteractive: d = !1, disableTouchListener: f = !1, enterDelay: p = 100, enterNextDelay: _ = 0, enterTouchDelay: v = 700, followCursor: y = !1, id: b, leaveDelay: ee = 0, leaveTouchDelay: w = 1500, onClose: T, onOpen: oe, open: se, placement: ce = "bottom", PopperComponent: le, PopperProps: D = {}, slotProps: O = {}, slots: ue = {}, title: A, TransitionComponent: de, TransitionProps: fe, ...pe } = n, j = /*#__PURE__*/ V.isValidElement(i) ? i : /*#__PURE__*/ W("span", { children: i }), M = te(), N = ae(), [P, me] = V.useState(), [he, ge] = V.useState(null), F = V.useRef(!1), I = d || y, L = E(), R = E(), z = E(), _e = E(), [ve, ye] = ne({
347
- controlled: se,
340
+ }), { arrow: r = !1, children: i, classes: a, components: o = {}, componentsProps: s = {}, describeChild: c = !1, disableFocusListener: l = !1, disableHoverListener: u = !1, disableInteractive: d = !1, disableTouchListener: f = !1, enterDelay: p = 100, enterNextDelay: _ = 0, enterTouchDelay: v = 700, followCursor: y = !1, id: b, leaveDelay: x = 0, leaveTouchDelay: T = 1500, onClose: E, onOpen: ae, open: oe, placement: se = "bottom", PopperComponent: ce, PopperProps: O = {}, slotProps: k = {}, slots: le = {}, title: j, TransitionComponent: ue, TransitionProps: de, ...fe } = n, M = /*#__PURE__*/ V.isValidElement(i) ? i : /*#__PURE__*/ W("span", { children: i }), pe = ee(), N = ie(), [P, me] = V.useState(), [he, ge] = V.useState(null), F = V.useRef(!1), I = d || y, L = D(), R = D(), z = D(), _e = D(), [ve, ye] = te({
341
+ controlled: oe,
348
342
  default: !1,
349
343
  name: "Tooltip",
350
344
  state: "open"
351
- }), B = ve, H = C(b), U = V.useRef(), xe = S(() => {
345
+ }), B = ve, H = w(b), U = V.useRef(), K = C(() => {
352
346
  U.current !== void 0 && (document.body.style.WebkitUserSelect = U.current, U.current = void 0), _e.clear();
353
347
  });
354
- V.useEffect(() => xe, [xe]);
355
- let Se = (e) => {
356
- Le.clear(), Ie = !0, ye(!0), oe && !B && oe(e);
357
- }, Ce = S((e) => {
358
- Le.start(800 + ee, () => {
359
- Ie = !1;
360
- }), ye(!1), T && B && T(e), L.start(M.transitions.duration.shortest, () => {
348
+ V.useEffect(() => K, [K]);
349
+ let xe = (e) => {
350
+ Ne.clear(), Me = !0, ye(!0), ae && !B && ae(e);
351
+ }, q = C((e) => {
352
+ Ne.start(800 + x, () => {
353
+ Me = !1;
354
+ }), ye(!1), E && B && E(e), L.start(pe.transitions.duration.shortest, () => {
361
355
  F.current = !1;
362
356
  });
363
- }), K = (e) => {
364
- F.current && e.type !== "touchstart" || (P && P.removeAttribute("title"), R.clear(), z.clear(), p || Ie && _ ? R.start(Ie ? _ : p, () => {
365
- Se(e);
366
- }) : Se(e));
367
- }, we = (e) => {
368
- R.clear(), z.start(ee, () => {
369
- Ce(e);
357
+ }), Se = (e) => {
358
+ F.current && e.type !== "touchstart" || (P && P.removeAttribute("title"), R.clear(), z.clear(), p || Me && _ ? R.start(Me ? _ : p, () => {
359
+ xe(e);
360
+ }) : xe(e));
361
+ }, Ce = (e) => {
362
+ R.clear(), z.start(x, () => {
363
+ q(e);
370
364
  });
371
- }, [, Te] = V.useState(!1), Ee = (e) => {
365
+ }, [, we] = V.useState(!1), Te = (e) => {
372
366
  let t = e?.target ?? P;
373
367
  if (!t || !h(t)) {
374
- Te(!1);
368
+ we(!1);
375
369
  let n = e ?? new Event("blur");
376
- !e && t && (Object.defineProperty(n, "target", { value: t }), Object.defineProperty(n, "currentTarget", { value: t })), we(n);
370
+ !e && t && (Object.defineProperty(n, "target", { value: t }), Object.defineProperty(n, "currentTarget", { value: t })), Ce(n);
377
371
  }
378
- }, De = (e) => {
379
- P || me(e.currentTarget), h(e.target) && (Te(!0), K(e));
380
- }, Oe = (e) => {
372
+ }, Ee = (e) => {
373
+ P || me(e.currentTarget), h(e.target) && (we(!0), Se(e));
374
+ }, J = (e) => {
381
375
  F.current = !0;
382
- let t = j.props;
376
+ let t = M.props;
383
377
  t.onTouchStart && t.onTouchStart(e);
384
- }, ke = (e) => {
385
- Oe(e), z.clear(), L.clear(), xe(), U.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", _e.start(v, () => {
386
- document.body.style.WebkitUserSelect = U.current, K(e);
378
+ }, De = (e) => {
379
+ J(e), z.clear(), L.clear(), K(), U.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", _e.start(v, () => {
380
+ document.body.style.WebkitUserSelect = U.current, Se(e);
387
381
  });
388
- }, Ae = (e) => {
389
- j.props.onTouchEnd && j.props.onTouchEnd(e), xe(), z.start(w, () => {
390
- Ce(e);
382
+ }, Ie = (e) => {
383
+ M.props.onTouchEnd && M.props.onTouchEnd(e), K(), z.start(T, () => {
384
+ q(e);
391
385
  });
392
386
  };
393
387
  V.useEffect(() => {
394
388
  if (!B) return;
395
389
  function e(e) {
396
- e.key === "Escape" && Ce(e);
390
+ e.key === "Escape" && q(e);
397
391
  }
398
392
  return document.addEventListener("keydown", e), () => {
399
393
  document.removeEventListener("keydown", e);
400
394
  };
401
- }, [Ce, B]);
402
- let q = g(re(j), me, t);
403
- !A && A !== 0 && (B = !1);
404
- let je = V.useRef(), Be = (e) => {
405
- let t = j.props;
406
- t.onMouseMove && t.onMouseMove(e), Re = {
395
+ }, [q, B]);
396
+ let Le = g(ne(M), me, t);
397
+ !j && j !== 0 && (B = !1);
398
+ let Re = V.useRef(), ze = (e) => {
399
+ let t = M.props;
400
+ t.onMouseMove && t.onMouseMove(e), Pe = {
407
401
  x: e.clientX,
408
402
  y: e.clientY
409
- }, je.current && je.current.update();
410
- }, J = {}, Ve = typeof A == "string";
411
- c ? (J.title = !B && Ve && !u ? A : null, J["aria-describedby"] = B ? H : null) : (J["aria-label"] = Ve ? A : null, J["aria-labelledby"] = B && !Ve ? H : null);
412
- let Y = {
413
- ...J,
414
- ...pe,
415
- ...j.props,
416
- className: m(pe.className, j.props.className),
417
- onTouchStart: Oe,
418
- ref: q,
419
- ...y ? { onMouseMove: Be } : {}
420
- }, He = {};
421
- f || (Y.onTouchStart = ke, Y.onTouchEnd = Ae), u || (Y.onMouseOver = ze(K, Y.onMouseOver), Y.onMouseLeave = ze(we, Y.onMouseLeave), I || (He.onMouseOver = K, He.onMouseLeave = we)), l || (Y.onFocus = ze(De, Y.onFocus), Y.onBlur = ze(Ee, Y.onBlur), I || (He.onFocus = De, He.onBlur = Ee));
403
+ }, Re.current && Re.current.update();
404
+ }, Y = {}, Be = typeof j == "string";
405
+ c ? (Y.title = !B && Be && !u ? j : null, Y["aria-describedby"] = B ? H : null) : (Y["aria-label"] = Be ? j : null, Y["aria-labelledby"] = B && !Be ? H : null);
422
406
  let X = {
407
+ ...Y,
408
+ ...fe,
409
+ ...M.props,
410
+ className: m(fe.className, M.props.className),
411
+ onTouchStart: J,
412
+ ref: Le,
413
+ ...y ? { onMouseMove: ze } : {}
414
+ }, Ve = {};
415
+ f || (X.onTouchStart = De, X.onTouchEnd = Ie), u || (X.onMouseOver = Fe(Se, X.onMouseOver), X.onMouseLeave = Fe(Ce, X.onMouseLeave), I || (Ve.onMouseOver = Se, Ve.onMouseLeave = Ce)), l || (X.onFocus = Fe(Ee, X.onFocus), X.onBlur = Fe(Te, X.onBlur), I || (Ve.onFocus = Ee, Ve.onBlur = Te));
416
+ let Z = {
423
417
  ...n,
424
418
  isRtl: N,
425
419
  arrow: r,
426
420
  disableInteractive: I,
427
- placement: ce,
428
- PopperComponentProp: le,
421
+ placement: se,
422
+ PopperComponentProp: ce,
429
423
  touch: F.current
430
- }, Z = typeof O.popper == "function" ? O.popper(X) : O.popper, Ue = V.useMemo(() => {
424
+ }, He = typeof k.popper == "function" ? k.popper(Z) : k.popper, Ue = V.useMemo(() => {
431
425
  let e = [{
432
426
  name: "arrow",
433
427
  enabled: !!he,
@@ -436,85 +430,85 @@ var Be = /*#__PURE__*/ V.forwardRef(function(e, t) {
436
430
  padding: 4
437
431
  }
438
432
  }];
439
- return D.popperOptions?.modifiers && (e = e.concat(D.popperOptions.modifiers)), Z?.popperOptions?.modifiers && (e = e.concat(Z.popperOptions.modifiers)), {
440
- ...D.popperOptions,
441
- ...Z?.popperOptions,
433
+ return O.popperOptions?.modifiers && (e = e.concat(O.popperOptions.modifiers)), He?.popperOptions?.modifiers && (e = e.concat(He.popperOptions.modifiers)), {
434
+ ...O.popperOptions,
435
+ ...He?.popperOptions,
442
436
  modifiers: e
443
437
  };
444
438
  }, [
445
439
  he,
446
- D.popperOptions,
447
- Z?.popperOptions
448
- ]), We = Me(X), Ge = typeof O.transition == "function" ? O.transition(X) : O.transition, Ke = {
440
+ O.popperOptions,
441
+ He?.popperOptions
442
+ ]), We = Oe(Z), Ge = typeof k.transition == "function" ? k.transition(Z) : k.transition, Ke = {
449
443
  slots: {
450
444
  popper: o.Popper,
451
- transition: o.Transition ?? de,
445
+ transition: o.Transition ?? ue,
452
446
  tooltip: o.Tooltip,
453
447
  arrow: o.Arrow,
454
- ...ue
448
+ ...le
455
449
  },
456
450
  slotProps: {
457
- arrow: O.arrow ?? s.arrow,
451
+ arrow: k.arrow ?? s.arrow,
458
452
  popper: {
459
- ...D,
460
- ...Z ?? s.popper
453
+ ...O,
454
+ ...He ?? s.popper
461
455
  },
462
- tooltip: O.tooltip ?? s.tooltip,
456
+ tooltip: k.tooltip ?? s.tooltip,
463
457
  transition: {
464
- ...fe,
458
+ ...de,
465
459
  ...Ge ?? s.transition
466
460
  }
467
461
  }
468
- }, [qe, Je] = x("popper", {
469
- elementType: Ne,
462
+ }, [qe, Je] = S("popper", {
463
+ elementType: ke,
470
464
  externalForwardedProps: Ke,
471
- ownerState: X,
472
- className: m(We.popper, D?.className)
473
- }), [Ye, Xe] = x("transition", {
465
+ ownerState: Z,
466
+ className: m(We.popper, O?.className)
467
+ }), [Ye, Xe] = S("transition", {
474
468
  elementType: be,
475
469
  externalForwardedProps: Ke,
476
- ownerState: X
477
- }), [Ze, Qe] = x("tooltip", {
478
- elementType: Pe,
470
+ ownerState: Z
471
+ }), [Ze, Qe] = S("tooltip", {
472
+ elementType: Ae,
479
473
  className: We.tooltip,
480
474
  externalForwardedProps: Ke,
481
- ownerState: X
482
- }), [$e, et] = x("arrow", {
483
- elementType: Fe,
475
+ ownerState: Z
476
+ }), [$e, et] = S("arrow", {
477
+ elementType: je,
484
478
  className: We.arrow,
485
479
  externalForwardedProps: Ke,
486
- ownerState: X,
480
+ ownerState: Z,
487
481
  ref: ge
488
482
  });
489
- return /*#__PURE__*/ G(V.Fragment, { children: [/*#__PURE__*/ V.cloneElement(j, Y), /*#__PURE__*/ W(qe, {
490
- as: le ?? k,
491
- placement: ce,
483
+ return /*#__PURE__*/ G(V.Fragment, { children: [/*#__PURE__*/ V.cloneElement(M, X), /*#__PURE__*/ W(qe, {
484
+ as: ce ?? A,
485
+ placement: se,
492
486
  anchorEl: y ? { getBoundingClientRect: () => ({
493
- top: Re.y,
494
- left: Re.x,
495
- right: Re.x,
496
- bottom: Re.y,
487
+ top: Pe.y,
488
+ left: Pe.x,
489
+ right: Pe.x,
490
+ bottom: Pe.y,
497
491
  width: 0,
498
492
  height: 0
499
493
  }) } : P,
500
- popperRef: je,
494
+ popperRef: Re,
501
495
  open: P ? B : !1,
502
496
  id: H,
503
497
  transition: !0,
504
- ...He,
498
+ ...Ve,
505
499
  ...Je,
506
500
  popperOptions: Ue,
507
501
  children: ({ TransitionProps: e }) => /*#__PURE__*/ W(Ye, {
508
- timeout: M.transitions.duration.shorter,
502
+ timeout: pe.transitions.duration.shorter,
509
503
  ...e,
510
504
  ...Xe,
511
505
  children: /*#__PURE__*/ G(Ze, {
512
506
  ...Qe,
513
- children: [A, r ? /*#__PURE__*/ W($e, { ...et }) : null]
507
+ children: [j, r ? /*#__PURE__*/ W($e, { ...et }) : null]
514
508
  })
515
509
  })
516
510
  })] });
517
- }), J = class e extends CustomEvent {
511
+ }), Le = class e extends CustomEvent {
518
512
  static {
519
513
  this.TYPE = "model.updated";
520
514
  }
@@ -527,7 +521,7 @@ var Be = /*#__PURE__*/ V.forwardRef(function(e, t) {
527
521
  }
528
522
  }), this.update = t, this.reset = n;
529
523
  }
530
- }, Ve = class e extends CustomEvent {
524
+ }, Re = class e extends CustomEvent {
531
525
  static {
532
526
  this.TYPE = "delete.image";
533
527
  }
@@ -540,7 +534,7 @@ var Be = /*#__PURE__*/ V.forwardRef(function(e, t) {
540
534
  }
541
535
  }), this.src = t, this.done = n;
542
536
  }
543
- }, Y = class e extends CustomEvent {
537
+ }, ze = class e extends CustomEvent {
544
538
  static {
545
539
  this.TYPE = "insert.image";
546
540
  }
@@ -550,7 +544,7 @@ var Be = /*#__PURE__*/ V.forwardRef(function(e, t) {
550
544
  detail: t
551
545
  }), this.handler = t;
552
546
  }
553
- }, He = class e extends CustomEvent {
547
+ }, Y = class e extends CustomEvent {
554
548
  static {
555
549
  this.TYPE = "delete.sound";
556
550
  }
@@ -563,7 +557,7 @@ var Be = /*#__PURE__*/ V.forwardRef(function(e, t) {
563
557
  }
564
558
  }), this.src = t, this.done = n;
565
559
  }
566
- }, X = class e extends CustomEvent {
560
+ }, Be = class e extends CustomEvent {
567
561
  static {
568
562
  this.TYPE = "insert.sound";
569
563
  }
@@ -573,17 +567,17 @@ var Be = /*#__PURE__*/ V.forwardRef(function(e, t) {
573
567
  detail: t
574
568
  }), this.handler = t;
575
569
  }
576
- }, Z = (e = {}, t = {}) => ({
570
+ }, X = (e = {}, t = {}) => ({
577
571
  ...t,
578
572
  ...e
579
- }), Ue = y(/*#__PURE__*/ W("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z" }), "Info"), We = F(R)({
573
+ }), Ve = y(/*#__PURE__*/ W("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z" }), "Info"), Z = F(R)({
580
574
  flex: "1",
581
575
  maxWidth: "100%"
582
- }), Ge = F("div")(({ theme: e }) => ({
576
+ }), He = F("div")(({ theme: e }) => ({
583
577
  display: "flex",
584
578
  justifyContent: "space-between",
585
579
  paddingBottom: e.spacing(1)
586
- })), Ke = class extends H.Component {
580
+ })), Ue = class extends H.Component {
587
581
  static propTypes = {
588
582
  configuration: K.default.object.isRequired,
589
583
  deleteFocusedEl: K.default.func,
@@ -613,7 +607,7 @@ var Be = /*#__PURE__*/ V.forwardRef(function(e, t) {
613
607
  }
614
608
  render() {
615
609
  let { onChange: e, configuration: t, label: n, deleteFocusedEl: r, disabled: i, imageSupport: a, toolbarOpts: o, spellCheck: s, error: c, maxImageWidth: l, maxImageHeight: u, uploadSoundSupport: d, mathMlOptions: f = {}, focusedEl: p, index: m } = this.props, { headers: h, baseInputConfiguration: g } = t;
616
- return /* @__PURE__ */ W(Ge, { children: /* @__PURE__ */ W(We, {
610
+ return /* @__PURE__ */ W(He, { children: /* @__PURE__ */ W(Z, {
617
611
  imageSupport: a,
618
612
  disabled: i,
619
613
  autoFocus: p != null && p === m,
@@ -621,7 +615,7 @@ var Be = /*#__PURE__*/ V.forwardRef(function(e, t) {
621
615
  label: "label",
622
616
  markup: n,
623
617
  onChange: e,
624
- pluginProps: Z(h?.inputConfiguration, g),
618
+ pluginProps: X(h?.inputConfiguration, g),
625
619
  toolbarOpts: o,
626
620
  spellCheck: s,
627
621
  error: c,
@@ -635,7 +629,7 @@ var Be = /*#__PURE__*/ V.forwardRef(function(e, t) {
635
629
  mathMlOptions: f
636
630
  }) });
637
631
  }
638
- }, qe = F(j)(({ theme: e }) => ({ height: e.spacing(4) })), Je = class extends H.Component {
632
+ }, We = F(M)(({ theme: e }) => ({ height: e.spacing(4) })), Ge = class extends H.Component {
639
633
  static propTypes = {
640
634
  label: K.default.string,
641
635
  onClick: K.default.func,
@@ -644,7 +638,7 @@ var Be = /*#__PURE__*/ V.forwardRef(function(e, t) {
644
638
  static defaultProps = { label: "Add" };
645
639
  render() {
646
640
  let { label: e, onClick: t, disabled: n } = this.props;
647
- return /* @__PURE__ */ W(qe, {
641
+ return /* @__PURE__ */ W(We, {
648
642
  onClick: t,
649
643
  disabled: n,
650
644
  size: "small",
@@ -653,34 +647,34 @@ var Be = /*#__PURE__*/ V.forwardRef(function(e, t) {
653
647
  children: e
654
648
  });
655
649
  }
656
- }, Ye = F(j)({
650
+ }, Ke = F(M)({
657
651
  margin: 0,
658
652
  padding: 0
659
- }), Xe = ({ label: e, onClick: t, disabled: n }) => /* @__PURE__ */ W(Ye, {
653
+ }), qe = ({ label: e, onClick: t, disabled: n }) => /* @__PURE__ */ W(Ke, {
660
654
  onClick: t,
661
655
  size: "small",
662
656
  color: "primary",
663
657
  disabled: n,
664
658
  children: e
665
- }), Ze = y(/*#__PURE__*/ W("path", { d: "M7 11v2h10v-2zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8" }), "RemoveCircleOutline");
659
+ }), Je = y(/*#__PURE__*/ W("path", { d: "M7 11v2h10v-2zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8" }), "RemoveCircleOutline");
666
660
  //#endregion
667
661
  //#region src/author/design/categories/choice-preview.tsx
668
- function Qe(e) {
662
+ function Ye(e) {
669
663
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
670
664
  }
671
- function $e(e, t) {
672
- return !e || Qe(e) ? e : Qe(e.default) ? e.default : t && Qe(e[t]) ? e[t] : t && Qe(e[t]?.default) ? e[t].default : e;
665
+ function Xe(e, t) {
666
+ return !e || Ye(e) ? e : Ye(e.default) ? e.default : t && Ye(e[t]) ? e[t] : t && Ye(e[t]?.default) ? e[t].default : e;
673
667
  }
674
- var et = $e(_, "HtmlAndMath") || $e(rt.HtmlAndMath, "HtmlAndMath"), tt = D, nt = tt.default, rt = nt && typeof nt == "object" ? nt : tt, it = F("div")({
668
+ var Ze = Xe(_, "HtmlAndMath") || Xe(et.HtmlAndMath, "HtmlAndMath"), Qe = O, $e = Qe.default, et = $e && typeof $e == "object" ? $e : Qe, tt = F("div")({
675
669
  position: "relative",
676
670
  overflow: "auto",
677
671
  touchAction: "none"
678
- }), at = F(ge)({
672
+ }), nt = F(ge)({
679
673
  position: "absolute",
680
674
  right: 0,
681
675
  top: 0,
682
676
  color: `${_e.tertiary()} !important`
683
- }), ot = class extends H.Component {
677
+ }), rt = class extends H.Component {
684
678
  static propTypes = {
685
679
  alternateResponseIndex: K.default.number,
686
680
  category: K.default.object,
@@ -695,7 +689,7 @@ var et = $e(_, "HtmlAndMath") || $e(rt.HtmlAndMath, "HtmlAndMath"), tt = D, nt =
695
689
  };
696
690
  render() {
697
691
  let { alternateResponseIndex: e, category: t, choice: n, choiceIndex: r } = this.props, i = t && t.id, a = e === void 0 ? `${n.id}-${i}-${r}` : `${n.id}-${i}-${r}-alt-${e}`;
698
- return /* @__PURE__ */ G(it, { children: [n ? /* @__PURE__ */ W(Te, {
692
+ return /* @__PURE__ */ G(tt, { children: [n ? /* @__PURE__ */ W(q, {
699
693
  alternateResponseIndex: e,
700
694
  category: t,
701
695
  choice: n,
@@ -704,17 +698,17 @@ var et = $e(_, "HtmlAndMath") || $e(rt.HtmlAndMath, "HtmlAndMath"), tt = D, nt =
704
698
  type: "choice-preview",
705
699
  id: a,
706
700
  categoryId: i,
707
- children: /* @__PURE__ */ W(et, { html: n?.content })
708
- }) : null, /* @__PURE__ */ W(at, {
701
+ children: /* @__PURE__ */ W(Ze, { html: n?.content })
702
+ }) : null, /* @__PURE__ */ W(nt, {
709
703
  "aria-label": "delete",
710
704
  onClick: this.delete,
711
705
  size: "large",
712
- children: /* @__PURE__ */ W(Ze, {})
706
+ children: /* @__PURE__ */ W(Je, {})
713
707
  })] });
714
708
  }
715
- }, st = /* @__PURE__ */ s(i(), 1);
716
- (0, st.default)("@pie-element:categorize:configure");
717
- var ct = F("div")(({ theme: e }) => ({
709
+ }, it = /* @__PURE__ */ t(n(), 1);
710
+ (0, it.default)("@pie-element:categorize:configure");
711
+ var at = F("div")(({ theme: e }) => ({
718
712
  display: "flex",
719
713
  alignItems: "center",
720
714
  justifyContent: "center",
@@ -722,20 +716,20 @@ var ct = F("div")(({ theme: e }) => ({
722
716
  color: `rgba(${e.palette.common.black}, 0.4)`,
723
717
  width: "100%",
724
718
  height: "100%"
725
- })), lt = () => /* @__PURE__ */ W(ct, { children: "Drag your correct answers here" }), ut = ({ alternateResponseIndex: e, category: t, choices: n, onDeleteChoice: r }) => /* @__PURE__ */ W(H.Fragment, { children: (n || []).map((n, i) => n && /* @__PURE__ */ W(ot, {
719
+ })), ot = () => /* @__PURE__ */ W(at, { children: "Drag your correct answers here" }), st = ({ alternateResponseIndex: e, category: t, choices: n, onDeleteChoice: r }) => /* @__PURE__ */ W(H.Fragment, { children: (n || []).map((n, i) => n && /* @__PURE__ */ W(rt, {
726
720
  alternateResponseIndex: e,
727
721
  category: t,
728
722
  choice: n,
729
723
  choiceIndex: i,
730
724
  onDelete: (e) => r(e, i)
731
725
  }, i)) });
732
- ut.propTypes = {
726
+ st.propTypes = {
733
727
  alternateResponseIndex: K.default.number,
734
728
  category: K.default.object,
735
729
  choices: K.default.array,
736
730
  onDeleteChoice: K.default.func
737
731
  };
738
- var dt = ({ alternateResponseIndex: e, category: t, choices: n, onDeleteChoice: r, categoryId: i, isAlternate: a }) => {
732
+ var ct = ({ alternateResponseIndex: e, category: t, choices: n, onDeleteChoice: r, categoryId: i, isAlternate: a }) => {
739
733
  let { setNodeRef: o, isOver: s } = B({
740
734
  id: `${i}-${a ? "alternate" : "standard"}`,
741
735
  data: {
@@ -748,14 +742,14 @@ var dt = ({ alternateResponseIndex: e, category: t, choices: n, onDeleteChoice:
748
742
  });
749
743
  return /* @__PURE__ */ W("div", {
750
744
  ref: o,
751
- children: /* @__PURE__ */ W(de, {
745
+ children: /* @__PURE__ */ W(ue, {
752
746
  isOver: s,
753
747
  extraStyles: {
754
748
  width: "100%",
755
749
  minHeight: "100px",
756
750
  height: "auto"
757
751
  },
758
- children: (n || []).length === 0 ? /* @__PURE__ */ W(lt, {}) : /* @__PURE__ */ W(ut, {
752
+ children: (n || []).length === 0 ? /* @__PURE__ */ W(ot, {}) : /* @__PURE__ */ W(st, {
759
753
  alternateResponseIndex: e,
760
754
  category: t,
761
755
  choices: n,
@@ -764,7 +758,7 @@ var dt = ({ alternateResponseIndex: e, category: t, choices: n, onDeleteChoice:
764
758
  })
765
759
  });
766
760
  };
767
- dt.propTypes = {
761
+ ct.propTypes = {
768
762
  alternateResponseIndex: K.default.number,
769
763
  category: K.default.object,
770
764
  choices: K.default.array,
@@ -772,19 +766,19 @@ dt.propTypes = {
772
766
  categoryId: K.default.string.isRequired,
773
767
  isAlternate: K.default.bool
774
768
  };
775
- var ft = N.withUid(dt), pt = F(ve, { shouldForwardProp: (e) => e !== "isDuplicated" })(({ theme: e, isDuplicated: t }) => ({
769
+ var lt = N.withUid(ct), ut = F(ve, { shouldForwardProp: (e) => e !== "isDuplicated" })(({ theme: e, isDuplicated: t }) => ({
776
770
  minWidth: "196px",
777
771
  padding: e.spacing(1),
778
772
  overflow: "visible",
779
773
  ...t && { border: "1px solid red" }
780
- })), mt = F(ke)(({ theme: e }) => ({ padding: `${e.spacing(1)} 0 0` })), ht = F("div")(({ theme: e }) => ({
774
+ })), dt = F(Te)(({ theme: e }) => ({ padding: `${e.spacing(1)} 0 0` })), ft = F("div")(({ theme: e }) => ({
781
775
  padding: e.spacing(2),
782
776
  "& p": { margin: 0 }
783
- })), gt = F("div")(({ theme: e }) => ({
777
+ })), pt = F("div")(({ theme: e }) => ({
784
778
  fontSize: e.typography.fontSize - 2,
785
779
  color: e.palette.error.main,
786
780
  paddingBottom: e.spacing(1)
787
- })), _t = class extends H.Component {
781
+ })), mt = class extends H.Component {
788
782
  static propTypes = {
789
783
  alternateResponseIndex: K.default.number,
790
784
  category: K.default.object.isRequired,
@@ -820,10 +814,10 @@ var ft = N.withUid(dt), pt = F(ve, { shouldForwardProp: (e) => e !== "isDuplicat
820
814
  };
821
815
  render() {
822
816
  let { alternateResponseIndex: e, category: t, configuration: n, deleteFocusedEl: r, focusedEl: i, index: a, error: o, isDuplicated: s, onDelete: c, onDeleteChoice: l, imageSupport: u, spellCheck: d, toolbarOpts: f, maxImageWidth: p, maxImageHeight: m, uploadSoundSupport: h, mathMlOptions: g = {} } = this.props;
823
- return /* @__PURE__ */ G(pt, {
817
+ return /* @__PURE__ */ G(ut, {
824
818
  isDuplicated: s,
825
819
  children: [
826
- /* @__PURE__ */ G("span", { children: [e || e === 0 ? /* @__PURE__ */ W(ht, { dangerouslySetInnerHTML: { __html: t.label } }) : /* @__PURE__ */ W(Ke, {
820
+ /* @__PURE__ */ G("span", { children: [e || e === 0 ? /* @__PURE__ */ W(ft, { dangerouslySetInnerHTML: { __html: t.label } }) : /* @__PURE__ */ W(Ue, {
827
821
  label: t.label,
828
822
  focusedEl: i,
829
823
  deleteFocusedEl: r,
@@ -840,8 +834,8 @@ var ft = N.withUid(dt), pt = F(ve, { shouldForwardProp: (e) => e !== "isDuplicat
840
834
  uploadSoundSupport: h,
841
835
  mathMlOptions: g,
842
836
  configuration: n
843
- }), o && /* @__PURE__ */ W(gt, { children: o })] }),
844
- /* @__PURE__ */ W(ft, {
837
+ }), o && /* @__PURE__ */ W(pt, { children: o })] }),
838
+ /* @__PURE__ */ W(lt, {
845
839
  alternateResponseIndex: e,
846
840
  category: t,
847
841
  choices: t.choices,
@@ -850,25 +844,25 @@ var ft = N.withUid(dt), pt = F(ve, { shouldForwardProp: (e) => e !== "isDuplicat
850
844
  extraStyles: { minHeight: "100px" },
851
845
  isAlternate: this.props.isAlternate
852
846
  }),
853
- c && /* @__PURE__ */ W(mt, { children: /* @__PURE__ */ W(Xe, {
847
+ c && /* @__PURE__ */ W(dt, { children: /* @__PURE__ */ W(qe, {
854
848
  label: "delete",
855
849
  onClick: c
856
850
  }) })
857
851
  ]
858
852
  });
859
853
  }
860
- }, vt = F("div")(({ theme: e }) => ({
854
+ }, ht = F("div")(({ theme: e }) => ({
861
855
  display: "flex",
862
856
  justifyContent: "space-between",
863
857
  marginBottom: e.spacing(1)
864
- })), yt = F("div")({
858
+ })), gt = F("div")({
865
859
  display: "flex",
866
860
  alignItems: "center"
867
- }), bt = F(Be)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
861
+ }), _t = F(Ie)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
868
862
  fontSize: e.typography.fontSize - 2,
869
863
  whiteSpace: "pre",
870
864
  maxWidth: "500px"
871
- } })), xt = class extends H.Component {
865
+ } })), vt = class extends H.Component {
872
866
  static propTypes = {
873
867
  buttonLabel: K.default.string,
874
868
  onAdd: K.default.func.isRequired,
@@ -881,54 +875,54 @@ var ft = N.withUid(dt), pt = F(ve, { shouldForwardProp: (e) => e !== "isDuplicat
881
875
  static defaultProps = {};
882
876
  render() {
883
877
  let { onAdd: e, label: t, buttonLabel: n, info: r, buttonDisabled: i, variant: a, tooltip: o } = this.props;
884
- return /* @__PURE__ */ G(vt, { children: [/* @__PURE__ */ G(yt, { children: [/* @__PURE__ */ W(A, {
878
+ return /* @__PURE__ */ G(ht, { children: [/* @__PURE__ */ G(gt, { children: [/* @__PURE__ */ W(j, {
885
879
  variant: a || "title",
886
880
  children: t
887
- }), r] }), /* @__PURE__ */ W(bt, {
881
+ }), r] }), /* @__PURE__ */ W(_t, {
888
882
  title: o || "",
889
883
  enterTouchDelay: 50,
890
884
  leaveTouchDelay: 3e3,
891
- children: /* @__PURE__ */ W("span", { children: /* @__PURE__ */ W(Je, {
885
+ children: /* @__PURE__ */ W("span", { children: /* @__PURE__ */ W(Ge, {
892
886
  onClick: e,
893
887
  label: n,
894
888
  disabled: i
895
889
  }) })
896
890
  })] });
897
891
  }
898
- }, St = (e) => {
892
+ }, yt = (e) => {
899
893
  let { minChoices: t, maxChoices: n, maxCategories: r } = e || {};
900
894
  return t ||= 1, "Validation requirements:" + ("\nThe choices content should not be empty and should be unique.\nThere should be at least 1 " + (r ? `and at most ${r} ` : "") + "category" + (r ? "s" : "") + " defined." + (t ? `\nThere should be at least ${t} choices defined.` : "") + (n ? `\nNo more than ${n} choices should be defined.` : "") + "\nAt least one token should be assigned to at least one category.");
901
895
  }, Q = {
902
896
  enabled: "Yes",
903
897
  disabled: "No",
904
898
  perChoice: "Set Per Choice"
905
- }, Ct = (e) => (e || []).reduce((e, t) => Math.max(e, t.length), 0), wt = (e) => {
899
+ }, bt = (e) => (e || []).reduce((e, t) => Math.max(e, t.length), 0), xt = (e) => {
906
900
  let { correctResponse: t = [] } = e || {};
907
901
  return t.reduce((e, t) => {
908
- let n = t?.choices?.length || 0, r = t?.alternateResponses || [], i = Math.max(n, Ct(r));
902
+ let n = t?.choices?.length || 0, r = t?.alternateResponses || [], i = Math.max(n, bt(r));
909
903
  return i > e ? i : e;
910
904
  }, 0);
911
905
  };
912
906
  //#endregion
913
907
  //#region src/author/design/categories/RowLabel.tsx
914
- function Tt(e) {
908
+ function St(e) {
915
909
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
916
910
  }
917
- function Et(e, t) {
918
- return !e || Tt(e) ? e : Tt(e.default) ? e.default : t && Tt(e[t]) ? e[t] : t && Tt(e[t]?.default) ? e[t].default : e;
911
+ function Ct(e, t) {
912
+ return !e || St(e) ? e : St(e.default) ? e.default : t && St(e[t]) ? e[t] : t && St(e[t]?.default) ? e[t].default : e;
919
913
  }
920
- var Dt = Et(v, "InputContainer") || Et(At.InputContainer, "InputContainer"), Ot = D, kt = Ot.default, At = kt && typeof kt == "object" ? kt : Ot, jt = F(Dt)(({ theme: e }) => ({
914
+ var wt = Ct(v, "InputContainer") || Ct(Dt.InputContainer, "InputContainer"), Tt = O, Et = Tt.default, Dt = Et && typeof Et == "object" ? Et : Tt, Ot = F(wt)(({ theme: e }) => ({
921
915
  width: "100%",
922
916
  paddingTop: e.spacing(1),
923
917
  marginTop: e.spacing(1)
924
- })), Mt = ({ categoriesPerRow: e, configuration: t, disabled: n, markup: r, imageSupport: i, onChange: a, toolbarOpts: o, spellCheck: s, maxImageWidth: c, maxImageHeight: l, uploadSoundSupport: u, mathMlOptions: d = {} }) => {
918
+ })), kt = ({ categoriesPerRow: e, configuration: t, disabled: n, markup: r, imageSupport: i, onChange: a, toolbarOpts: o, spellCheck: s, maxImageWidth: c, maxImageHeight: l, uploadSoundSupport: u, mathMlOptions: d = {} }) => {
925
919
  let { rowLabels: f, baseInputConfiguration: p } = t;
926
920
  return /* @__PURE__ */ W("div", {
927
921
  style: {
928
922
  gridColumn: `1/${e + 1}`,
929
923
  width: "100%"
930
924
  },
931
- children: /* @__PURE__ */ W(jt, {
925
+ children: /* @__PURE__ */ W(Ot, {
932
926
  label: "Row Label",
933
927
  children: /* @__PURE__ */ W(R, {
934
928
  disabled: n,
@@ -937,7 +931,7 @@ var Dt = Et(v, "InputContainer") || Et(At.InputContainer, "InputContainer"), Ot
937
931
  imageSupport: i,
938
932
  nonEmpty: !1,
939
933
  toolbarOpts: o,
940
- pluginProps: Z(f?.inputConfiguration, p),
934
+ pluginProps: X(f?.inputConfiguration, p),
941
935
  spellCheck: s,
942
936
  maxImageWidth: c,
943
937
  maxImageHeight: l,
@@ -947,19 +941,19 @@ var Dt = Et(v, "InputContainer") || Et(At.InputContainer, "InputContainer"), Ot
947
941
  })
948
942
  })
949
943
  });
950
- }, Nt = F("div")(({ theme: e }) => ({ marginBottom: e.spacing(3) })), Pt = F("div")(({ theme: e }) => ({
944
+ }, At = F("div")(({ theme: e }) => ({ marginBottom: e.spacing(3) })), jt = F("div")(({ theme: e }) => ({
951
945
  display: "grid",
952
946
  gridRowGap: e.spacing(1),
953
947
  gridColumnGap: e.spacing(1)
954
- })), Ft = F(Be)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
948
+ })), Mt = F(Ie)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
955
949
  fontSize: e.typography.fontSize - 2,
956
950
  whiteSpace: "pre",
957
951
  maxWidth: "500px"
958
- } })), It = F("div")(({ theme: e }) => ({
952
+ } })), Nt = F("div")(({ theme: e }) => ({
959
953
  fontSize: e.typography.fontSize - 2,
960
954
  color: e.palette.error.main,
961
955
  paddingTop: e.spacing(.5)
962
- })), Lt = class extends H.Component {
956
+ })), Pt = class extends H.Component {
963
957
  static propTypes = {
964
958
  defaultImageMaxHeight: K.default.number,
965
959
  defaultImageMaxWidth: K.default.number,
@@ -1016,18 +1010,18 @@ var Dt = Et(v, "InputContainer") || Et(At.InputContainer, "InputContainer"), Ot
1016
1010
  i.length < t ? i.push(e) : i[t] = e, this.props.onModelChanged({ rowLabels: i });
1017
1011
  };
1018
1012
  render() {
1019
- let { model: e, categories: t, imageSupport: n, uploadSoundSupport: r, toolbarOpts: i, spellCheck: a, configuration: o, defaultImageMaxHeight: s, defaultImageMaxWidth: c, mathMlOptions: l = {} } = this.props, { categoriesPerRow: u, rowLabels: d, errors: f } = e, { associationError: p, categoriesError: m, categoriesErrors: h } = f || {}, { maxCategories: g, maxImageWidth: _ = {}, maxImageHeight: v = {} } = o || {}, y = { gridTemplateColumns: `repeat(${u}, 1fr)` }, b = St(o);
1020
- return /* @__PURE__ */ G(Nt, { children: [
1021
- /* @__PURE__ */ W(xt, {
1013
+ let { model: e, categories: t, imageSupport: n, uploadSoundSupport: r, toolbarOpts: i, spellCheck: a, configuration: o, defaultImageMaxHeight: s, defaultImageMaxWidth: c, mathMlOptions: l = {} } = this.props, { categoriesPerRow: u, rowLabels: d, errors: f } = e, { associationError: p, categoriesError: m, categoriesErrors: h } = f || {}, { maxCategories: g, maxImageWidth: _ = {}, maxImageHeight: v = {} } = o || {}, y = { gridTemplateColumns: `repeat(${u}, 1fr)` }, b = yt(o);
1014
+ return /* @__PURE__ */ G(At, { children: [
1015
+ /* @__PURE__ */ W(vt, {
1022
1016
  label: "Categories",
1023
1017
  buttonLabel: "ADD A CATEGORY",
1024
1018
  onAdd: this.add,
1025
- info: /* @__PURE__ */ W(Ft, {
1019
+ info: /* @__PURE__ */ W(Mt, {
1026
1020
  disableFocusListener: !0,
1027
1021
  disableTouchListener: !0,
1028
1022
  placement: "right",
1029
1023
  title: b,
1030
- children: /* @__PURE__ */ W(Ue, {
1024
+ children: /* @__PURE__ */ W(Ve, {
1031
1025
  fontSize: "small",
1032
1026
  color: "primary",
1033
1027
  style: { marginLeft: "5px" }
@@ -1035,11 +1029,11 @@ var Dt = Et(v, "InputContainer") || Et(At.InputContainer, "InputContainer"), Ot
1035
1029
  }),
1036
1030
  buttonDisabled: g && t && g === t.length
1037
1031
  }),
1038
- /* @__PURE__ */ W(Pt, {
1032
+ /* @__PURE__ */ W(jt, {
1039
1033
  style: y,
1040
1034
  children: t.map((e, t) => {
1041
1035
  let f = t % u === 0, p = t / u;
1042
- return /* @__PURE__ */ G(H.Fragment, { children: [f && /* @__PURE__ */ W(Mt, {
1036
+ return /* @__PURE__ */ G(H.Fragment, { children: [f && /* @__PURE__ */ W(kt, {
1043
1037
  categoriesPerRow: u,
1044
1038
  disabled: !1,
1045
1039
  rowIndex: p,
@@ -1053,7 +1047,7 @@ var Dt = Et(v, "InputContainer") || Et(At.InputContainer, "InputContainer"), Ot
1053
1047
  uploadSoundSupport: r,
1054
1048
  mathMlOptions: l,
1055
1049
  configuration: o
1056
- }), /* @__PURE__ */ W(_t, {
1050
+ }), /* @__PURE__ */ W(mt, {
1057
1051
  imageSupport: n,
1058
1052
  focusedEl: this.state.focusedEl,
1059
1053
  deleteFocusedEl: this.deleteFocusedEl,
@@ -1073,15 +1067,15 @@ var Dt = Et(v, "InputContainer") || Et(At.InputContainer, "InputContainer"), Ot
1073
1067
  })] }, t);
1074
1068
  })
1075
1069
  }),
1076
- p && /* @__PURE__ */ W(It, { children: p }),
1077
- m && /* @__PURE__ */ W(It, { children: m })
1070
+ p && /* @__PURE__ */ W(Nt, { children: p }),
1071
+ m && /* @__PURE__ */ W(Nt, { children: m })
1078
1072
  ] });
1079
1073
  }
1080
- }, Rt = F("div")(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), zt = F("div")(({ theme: e }) => ({
1074
+ }, Ft = F("div")(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), It = F("div")(({ theme: e }) => ({
1081
1075
  display: "grid",
1082
1076
  gridRowGap: e.spacing(1),
1083
1077
  gridColumnGap: e.spacing(1)
1084
- })), Bt = F("div")({ gridColumn: "1 / 3" }), Vt = class extends H.Component {
1078
+ })), Lt = F("div")({ gridColumn: "1 / 3" }), Rt = class extends H.Component {
1085
1079
  static propTypes = {
1086
1080
  altIndex: K.default.number.isRequired,
1087
1081
  configuration: K.default.object,
@@ -1099,22 +1093,22 @@ var Dt = Et(v, "InputContainer") || Et(At.InputContainer, "InputContainer"), Ot
1099
1093
  spellCheck: K.default.bool
1100
1094
  };
1101
1095
  deleteChoiceFromCategory = (e, t, n) => {
1102
- let { model: i, altIndex: a, onModelChanged: o } = this.props;
1103
- o({ correctResponse: r(t.id, e.id, n, a, i.correctResponse) });
1096
+ let { model: r, altIndex: i, onModelChanged: a } = this.props;
1097
+ a({ correctResponse: o(t.id, e.id, n, i, r.correctResponse) });
1104
1098
  };
1105
1099
  render() {
1106
1100
  let { altIndex: e, model: t, configuration: n, categories: r, imageSupport: i, spellCheck: a, uploadSoundSupport: o, mathMlOptions: s = {} } = this.props, { categoriesPerRow: c, errors: l, rowLabels: u } = t, { duplicateAlternate: d } = l || {}, f = { gridTemplateColumns: `repeat(${c}, 1fr)` }, p = d ? d.index === e : !1;
1107
- return /* @__PURE__ */ W(Rt, { children: /* @__PURE__ */ W(zt, {
1101
+ return /* @__PURE__ */ W(Ft, { children: /* @__PURE__ */ W(It, {
1108
1102
  style: f,
1109
1103
  children: r.map((t, r) => {
1110
1104
  let l = r % c === 0, f = r / c;
1111
- return /* @__PURE__ */ G(H.Fragment, { children: [l && /* @__PURE__ */ W(Bt, {
1105
+ return /* @__PURE__ */ G(H.Fragment, { children: [l && /* @__PURE__ */ W(Lt, {
1112
1106
  style: {
1113
1107
  gridColumn: `1/${c + 1}`,
1114
1108
  width: "100%"
1115
1109
  },
1116
1110
  dangerouslySetInnerHTML: { __html: u[f] || "" }
1117
- }), /* @__PURE__ */ W(_t, {
1111
+ }), /* @__PURE__ */ W(mt, {
1118
1112
  alternateResponseIndex: e,
1119
1113
  imageSupport: i,
1120
1114
  isDuplicated: p && d.category === t.id,
@@ -1129,34 +1123,34 @@ var Dt = Et(v, "InputContainer") || Et(At.InputContainer, "InputContainer"), Ot
1129
1123
  })
1130
1124
  }) });
1131
1125
  }
1132
- }, Ht = y(/*#__PURE__*/ W("path", { d: "M20 9H4v2h16zM4 15h16v-2H4z" }), "DragHandle");
1126
+ }, zt = y(/*#__PURE__*/ W("path", { d: "M20 9H4v2h16zM4 15h16v-2H4z" }), "DragHandle");
1133
1127
  //#endregion
1134
1128
  //#region src/author/design/choices/choice.tsx
1135
- (0, st.default)("@pie-element:categorize:configure:choice");
1136
- var Ut = (e) => {
1129
+ (0, it.default)("@pie-element:categorize:configure:choice");
1130
+ var Bt = (e) => {
1137
1131
  if (e.lockChoiceOrder) return !0;
1138
1132
  let t = e.choice.categoryCount || 0;
1139
1133
  return t === 0 ? !0 : e.correctResponseCount < t;
1140
- }, Wt = F(ve)(({ theme: e }) => ({
1134
+ }, Vt = F(ve)(({ theme: e }) => ({
1141
1135
  minWidth: "196px",
1142
1136
  padding: e.spacing(1),
1143
1137
  overflow: "visible"
1144
- })), Gt = F(ke)({
1138
+ })), Ht = F(Te)({
1145
1139
  padding: 0,
1146
1140
  justifyContent: "space-between"
1147
- }), Kt = F("span", { shouldForwardProp: (e) => e !== "draggable" })(({ draggable: e }) => ({
1141
+ }), Ut = F("span", { shouldForwardProp: (e) => e !== "draggable" })(({ draggable: e }) => ({
1148
1142
  cursor: e ? "move" : "inherit",
1149
1143
  touchAction: "none"
1150
- })), qt = F("div")(({ theme: e }) => ({
1144
+ })), Wt = F("div")(({ theme: e }) => ({
1151
1145
  fontSize: e.typography.fontSize - 2,
1152
1146
  color: e.palette.error.main,
1153
1147
  paddingBottom: e.spacing(1)
1154
- })), Jt = ({ allowMultiplePlacements: e, configuration: t, choice: n, deleteFocusedEl: r, focusedEl: i, index: a, onDelete: o, onChange: s, correctResponseCount: c, lockChoiceOrder: l, imageSupport: u, spellCheck: d, toolbarOpts: f, error: p, maxImageWidth: m, maxImageHeight: h, uploadSoundSupport: g }) => {
1155
- let _ = Ut({
1148
+ })), Gt = ({ allowMultiplePlacements: e, configuration: t, choice: n, deleteFocusedEl: r, focusedEl: i, index: a, onDelete: o, onChange: s, correctResponseCount: c, lockChoiceOrder: l, imageSupport: u, spellCheck: d, toolbarOpts: f, error: p, maxImageWidth: m, maxImageHeight: h, uploadSoundSupport: g }) => {
1149
+ let _ = Bt({
1156
1150
  choice: n,
1157
1151
  correctResponseCount: c,
1158
1152
  lockChoiceOrder: l
1159
- }), { attributes: v, listeners: y, setNodeRef: b, isDragging: ee } = ye({
1153
+ }), { attributes: v, listeners: y, setNodeRef: b, isDragging: x } = ye({
1160
1154
  id: `choice-${n.id}`,
1161
1155
  data: {
1162
1156
  id: n.id,
@@ -1164,37 +1158,37 @@ var Ut = (e) => {
1164
1158
  type: "choice"
1165
1159
  },
1166
1160
  disabled: !_
1167
- }), { setNodeRef: te } = B({
1161
+ }), { setNodeRef: ee } = B({
1168
1162
  id: `choice-drop-${n.id}`,
1169
1163
  data: {
1170
1164
  id: n.id,
1171
1165
  index: a,
1172
1166
  type: "choice"
1173
1167
  }
1174
- }), x = (e) => {
1168
+ }), S = (e) => {
1175
1169
  n.content = e, s(n);
1176
- }, S = () => {
1170
+ }, C = () => {
1177
1171
  n.categoryCount === 1 ? n.categoryCount = 0 : n.categoryCount = 1, s(n);
1178
- }, ne = ((e) => e === Q.perChoice)(e);
1179
- return /* @__PURE__ */ G(Wt, {
1172
+ }, te = ((e) => e === Q.perChoice)(e);
1173
+ return /* @__PURE__ */ G(Vt, {
1180
1174
  ref: (e) => {
1181
- b(e), te(e);
1175
+ b(e), ee(e);
1182
1176
  },
1183
- style: { opacity: ee ? .5 : 1 },
1177
+ style: { opacity: x ? .5 : 1 },
1184
1178
  children: [
1185
- /* @__PURE__ */ W(Gt, { children: /* @__PURE__ */ W(Kt, {
1179
+ /* @__PURE__ */ W(Ht, { children: /* @__PURE__ */ W(Ut, {
1186
1180
  draggable: _,
1187
1181
  ...v,
1188
1182
  ...y,
1189
- children: /* @__PURE__ */ W(Ht, { color: _ ? "primary" : "disabled" })
1183
+ children: /* @__PURE__ */ W(zt, { color: _ ? "primary" : "disabled" })
1190
1184
  }) }),
1191
- /* @__PURE__ */ W(Ke, {
1185
+ /* @__PURE__ */ W(Ue, {
1192
1186
  imageSupport: u,
1193
1187
  focusedEl: i,
1194
1188
  deleteFocusedEl: r,
1195
1189
  index: a,
1196
1190
  label: n.content,
1197
- onChange: x,
1191
+ onChange: S,
1198
1192
  onDelete: o,
1199
1193
  toolbarOpts: f,
1200
1194
  spellCheck: d,
@@ -1204,20 +1198,20 @@ var Ut = (e) => {
1204
1198
  uploadSoundSupport: g,
1205
1199
  configuration: t
1206
1200
  }),
1207
- p && /* @__PURE__ */ W(qt, { children: p }),
1208
- /* @__PURE__ */ G(Gt, { children: [/* @__PURE__ */ W(Xe, {
1201
+ p && /* @__PURE__ */ W(Wt, { children: p }),
1202
+ /* @__PURE__ */ G(Ht, { children: [/* @__PURE__ */ W(qe, {
1209
1203
  label: "delete",
1210
1204
  onClick: o
1211
- }), ne && /* @__PURE__ */ W(le, {
1205
+ }), te && /* @__PURE__ */ W(ce, {
1212
1206
  mini: !0,
1213
1207
  label: "Remove after placing",
1214
1208
  checked: n.categoryCount === 1,
1215
- onChange: S
1209
+ onChange: C
1216
1210
  })] })
1217
1211
  ]
1218
1212
  });
1219
1213
  };
1220
- Jt.propTypes = {
1214
+ Gt.propTypes = {
1221
1215
  allowMultiplePlacements: K.default.string,
1222
1216
  configuration: K.default.object.isRequired,
1223
1217
  choice: K.default.object.isRequired,
@@ -1243,10 +1237,10 @@ Jt.propTypes = {
1243
1237
  spellCheck: K.default.bool,
1244
1238
  rearrangeChoices: K.default.func
1245
1239
  };
1246
- var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
1240
+ var Kt = N.withUid(Gt), qt = F("div")(({ theme: e }) => ({
1247
1241
  paddingTop: e.spacing(1),
1248
1242
  marginBottom: e.spacing(1)
1249
- })), Zt = F(M)({ width: "100%" }), Qt = class extends H.Component {
1243
+ })), Jt = F(pe)({ width: "100%" }), Yt = class extends H.Component {
1250
1244
  static propTypes = {
1251
1245
  config: K.default.object,
1252
1246
  onModelChanged: K.default.func,
@@ -1258,7 +1252,7 @@ var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
1258
1252
  };
1259
1253
  render() {
1260
1254
  let { config: e, spellCheck: t } = this.props;
1261
- return /* @__PURE__ */ W(Xt, { children: /* @__PURE__ */ W(Zt, {
1255
+ return /* @__PURE__ */ W(qt, { children: /* @__PURE__ */ W(Jt, {
1262
1256
  InputLabelProps: { shrink: !0 },
1263
1257
  variant: "outlined",
1264
1258
  label: "Label",
@@ -1267,17 +1261,17 @@ var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
1267
1261
  spellCheck: t
1268
1262
  }) });
1269
1263
  }
1270
- }, $t = F("div")(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), en = F("div")(({ theme: e }) => ({
1264
+ }, Xt = F("div")(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), Zt = F("div")(({ theme: e }) => ({
1271
1265
  paddingTop: e.spacing(1),
1272
1266
  paddingBottom: e.spacing(1),
1273
1267
  display: "grid",
1274
1268
  gridRowGap: e.spacing(1),
1275
1269
  gridColumnGap: e.spacing(1)
1276
- })), tn = F("div")(({ theme: e }) => ({
1270
+ })), Qt = F("div")(({ theme: e }) => ({
1277
1271
  fontSize: e.typography.fontSize - 2,
1278
1272
  color: e.palette.error.main,
1279
1273
  paddingTop: e.spacing(.5)
1280
- })), nn = class extends H.Component {
1274
+ })), $t = class extends H.Component {
1281
1275
  static propTypes = {
1282
1276
  model: K.default.object.isRequired,
1283
1277
  configuration: K.default.object.isRequired,
@@ -1321,27 +1315,27 @@ var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
1321
1315
  this.setState({ focusedEl: null });
1322
1316
  };
1323
1317
  deleteChoice = (e) => {
1324
- let { model: n, onModelChanged: r } = this.props, i = n.choices.findIndex((t) => t.id === e.id);
1325
- i !== -1 && (n.choices.splice(i, 1), n.correctResponse = t(e.id, n.correctResponse), r(n));
1318
+ let { model: t, onModelChanged: n } = this.props, i = t.choices.findIndex((t) => t.id === e.id);
1319
+ i !== -1 && (t.choices.splice(i, 1), t.correctResponse = r(e.id, t.correctResponse), n(t));
1326
1320
  };
1327
1321
  render() {
1328
1322
  let { focusedEl: e } = this.state, { choices: t, model: n, imageSupport: r, uploadSoundSupport: i, onModelChanged: a, spellCheck: o, toolbarOpts: s, configuration: c, defaultImageMaxWidth: l, defaultImageMaxHeight: u } = this.props, { errors: d, allowMultiplePlacementsEnabled: f, lockChoiceOrder: p, maxAnswerChoices: m } = n, { choicesError: h, choicesErrors: g } = d || {}, { maxImageWidth: _ = {}, maxImageHeight: v = {} } = c || {}, y = { gridTemplateColumns: `repeat(${n.categoriesPerRow}, 1fr)` }, b = m && t?.length >= m ? `Only ${m} allowed maximum` : "";
1329
- return /* @__PURE__ */ G($t, { children: [
1330
- /* @__PURE__ */ W(xt, {
1323
+ return /* @__PURE__ */ G(Xt, { children: [
1324
+ /* @__PURE__ */ W(vt, {
1331
1325
  label: "Choices",
1332
1326
  buttonLabel: "ADD A CHOICE",
1333
1327
  onAdd: this.addChoice,
1334
1328
  buttonDisabled: m && t && t?.length >= m,
1335
1329
  tooltip: b
1336
1330
  }),
1337
- /* @__PURE__ */ W(Qt, {
1331
+ /* @__PURE__ */ W(Yt, {
1338
1332
  config: n,
1339
1333
  onModelChanged: a,
1340
1334
  spellCheck: o
1341
1335
  }),
1342
- /* @__PURE__ */ W(en, {
1336
+ /* @__PURE__ */ W(Zt, {
1343
1337
  style: y,
1344
- children: t.map((t, n) => /* @__PURE__ */ W(Yt, {
1338
+ children: t.map((t, n) => /* @__PURE__ */ W(Kt, {
1345
1339
  choice: t,
1346
1340
  focusedEl: e,
1347
1341
  deleteFocusedEl: this.deleteFocusedEl,
@@ -1361,10 +1355,10 @@ var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
1361
1355
  configuration: c
1362
1356
  }, t.id))
1363
1357
  }),
1364
- h && /* @__PURE__ */ W(tn, { children: h })
1358
+ h && /* @__PURE__ */ W(Qt, { children: h })
1365
1359
  ] });
1366
1360
  }
1367
- }, rn = (e, t, n) => Ce(e).map((e) => {
1361
+ }, en = (e, t, n) => i(e).map((e) => {
1368
1362
  let r = n.find((t) => t.category === e.id);
1369
1363
  return r && (e.choices = (r.choices || []).map((e) => {
1370
1364
  let n = t.find((t) => t.id === e);
@@ -1373,17 +1367,17 @@ var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
1373
1367
  content: n.content
1374
1368
  });
1375
1369
  })), e;
1376
- }), an = (e, t, n) => !e.alternateResponses || e.alternateResponses.length === 0 ? [] : (e.alternateResponses[n] || []).map((e) => t.find((t) => t.id === e)), on = (e, t, n) => {
1370
+ }), tn = (e, t, n) => !e.alternateResponses || e.alternateResponses.length === 0 ? [] : (e.alternateResponses[n] || []).map((e) => t.find((t) => t.id === e)), nn = (e, t, n) => {
1377
1371
  let r = n.reduce((e, t) => t.alternateResponses && t.alternateResponses.length >= e ? t.alternateResponses.length : e, 0);
1378
1372
  return Array(r).fill(0).map((r, i) => n.map((n, r) => {
1379
1373
  let a = e[r];
1380
1374
  return {
1381
1375
  id: a.id,
1382
1376
  label: a.label,
1383
- choices: an(n, t, i)
1377
+ choices: tn(n, t, i)
1384
1378
  };
1385
1379
  }));
1386
- }, { translator: sn } = e, { dropdown: cn, Panel: ln, toggle: $, radio: un, numberField: dn } = P, { Provider: fn } = N, pn = class extends H.Component {
1380
+ }, { translator: rn } = e, { dropdown: an, Panel: on, toggle: $, radio: sn, numberField: cn } = P, { Provider: ln } = N, un = class extends H.Component {
1387
1381
  containerRef = H.createRef();
1388
1382
  componentDidMount() {
1389
1383
  this.containerRef.current && setTimeout(() => L(this.containerRef.current), 0);
@@ -1394,16 +1388,16 @@ var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
1394
1388
  children: this.props.children
1395
1389
  });
1396
1390
  }
1397
- }, mn = F(xt)(({ theme: e }) => ({ marginBottom: e.spacing(2) })), hn = F(z)(({ theme: e }) => ({
1391
+ }, dn = F(vt)(({ theme: e }) => ({ marginBottom: e.spacing(2) })), fn = F(z)(({ theme: e }) => ({
1398
1392
  width: "100%",
1399
1393
  paddingTop: e.spacing(1),
1400
1394
  marginTop: e.spacing(1),
1401
1395
  marginBottom: e.spacing(2)
1402
- })), gn = F("div")(({ theme: e }) => ({
1396
+ })), pn = F("div")(({ theme: e }) => ({
1403
1397
  fontSize: e.typography.fontSize - 2,
1404
1398
  color: e.palette.error.main,
1405
1399
  paddingTop: e.spacing(1)
1406
- })), _n = class extends H.Component {
1400
+ })), mn = class extends H.Component {
1407
1401
  static propTypes = {
1408
1402
  configuration: K.default.object,
1409
1403
  className: K.default.string,
@@ -1424,21 +1418,21 @@ var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
1424
1418
  super(e), this.uid = e.uid || N.generateId(), this.state = { activeDragItem: null };
1425
1419
  }
1426
1420
  updateModel = (e) => {
1427
- let { model: t, onChange: r } = this.props, i = {
1421
+ let { model: t, onChange: n } = this.props, r = {
1428
1422
  ...t,
1429
1423
  ...e
1430
1424
  };
1431
- i.choices = i.choices.map((e) => ({
1425
+ r.choices = r.choices.map((e) => ({
1432
1426
  ...e,
1433
- categoryCount: this.checkAllowMultiplePlacements(i.allowMultiplePlacementsEnabled, e)
1434
- })), i.correctResponse = u(i.correctResponse || [], i.choices), i.correctResponse = n(i.correctResponse || [], i.choices), i.categories = i.categories.map((e) => ({
1427
+ categoryCount: this.checkAllowMultiplePlacements(r.allowMultiplePlacementsEnabled, e)
1428
+ })), r.correctResponse = u(r.correctResponse || [], r.choices), r.correctResponse = a(r.correctResponse || [], r.choices), r.categories = r.categories.map((e) => ({
1435
1429
  id: e.id,
1436
1430
  label: e.label
1437
- })), i.choices = i.choices.map((e) => ({
1431
+ })), r.choices = r.choices.map((e) => ({
1438
1432
  id: e.id,
1439
1433
  content: e.content,
1440
1434
  categoryCount: e.categoryCount
1441
- })), i.maxChoicesPerCategory = i.allowMaxChoicesPerCategory ? i.maxChoicesPerCategory : 0, r(i);
1435
+ })), r.maxChoicesPerCategory = r.allowMaxChoicesPerCategory ? r.maxChoicesPerCategory : 0, n(r);
1442
1436
  };
1443
1437
  changeRationale = (e) => {
1444
1438
  let { model: t, onChange: n } = this.props;
@@ -1474,15 +1468,15 @@ var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
1474
1468
  };
1475
1469
  countChoiceInCorrectResponse = (e) => {
1476
1470
  let { model: t } = this.props;
1477
- return o(e.id, t.correctResponse);
1471
+ return s(e.id, t.correctResponse);
1478
1472
  };
1479
1473
  checkAllowMultiplePlacements = (e, t) => e === Q.enabled ? 0 : e === Q.disabled ? 1 : t.categoryCount || 0;
1480
1474
  isAlertModalOpened = () => {
1481
- let { model: e } = this.props, { maxChoicesPerCategory: t = 0 } = e || {}, n = wt(e);
1475
+ let { model: e } = this.props, { maxChoicesPerCategory: t = 0 } = e || {}, n = xt(e);
1482
1476
  return t === 0 ? !1 : n > t;
1483
1477
  };
1484
1478
  onAlertModalCancel = () => {
1485
- let { model: e } = this.props, t = wt(e);
1479
+ let { model: e } = this.props, t = xt(e);
1486
1480
  this.updateModel({ maxChoicesPerCategory: t });
1487
1481
  };
1488
1482
  onDragStart = (e) => {
@@ -1525,7 +1519,7 @@ var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
1525
1519
  addChoiceToCategory = (e, t) => {
1526
1520
  let { model: n } = this.props, { choices: r = [], correctResponse: i = [], maxChoicesPerCategory: a = 0 } = n || {}, o = (r || []).find((t) => t.id === e.id), s = d(e.id, void 0, t, 0, i);
1527
1521
  o.categoryCount !== 0 && (s = l(e, t, s));
1528
- let c = wt(n);
1522
+ let c = xt(n);
1529
1523
  this.updateModel({
1530
1524
  correctResponse: s,
1531
1525
  maxChoicesPerCategory: a !== 0 && a < c ? a + 1 : a
@@ -1539,7 +1533,7 @@ var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
1539
1533
  let { model: i } = this.props, { choices: a, correctResponse: o = [], maxChoicesPerCategory: s = 0 } = i || {}, c = (a || []).find((t) => t.id === e);
1540
1534
  if (n === t || !c) return;
1541
1535
  c.categoryCount === 0 ? c.categoryCount === 0 && (o = d(c.id, void 0, n, 0, o)) : (o = d(c.id, t, n, r, o), o = l(c, n, o));
1542
- let u = wt(i);
1536
+ let u = xt(i);
1543
1537
  this.updateModel({
1544
1538
  correctResponse: o,
1545
1539
  maxChoicesPerCategory: s !== 0 && s < u ? s + 1 : s
@@ -1548,7 +1542,7 @@ var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
1548
1542
  addChoiceToAlternateCategory = (e, t, n) => {
1549
1543
  let { model: r } = this.props, { correctResponse: i, choices: a, maxChoicesPerCategory: o = 0 } = r, s = a.find((t) => t.id === e.id);
1550
1544
  i.forEach((r) => r.category === t ? (r.alternateResponses = r.alternateResponses || [], r.alternateResponses[n] === void 0 && (r.alternateResponses[n] = []), r.alternateResponses[n].push(e.id), s.categoryCount && s.categoryCount !== 0 && (r.alternateResponses[n] = r.alternateResponses[n].reduce((e, t) => (t === s.id ? e.findIndex((e) => e === s.id) === -1 && e.push(t) : e.push(t), e), [])), r) : (r.alternateResponses[n] && s.categoryCount !== 0 && (r.alternateResponses[n] = r.alternateResponses[n].filter((t) => t !== e.id)), r));
1551
- let c = wt(r);
1545
+ let c = xt(r);
1552
1546
  this.updateModel({
1553
1547
  correctResponse: i,
1554
1548
  maxChoicesPerCategory: o !== 0 && o < c ? o + 1 : o
@@ -1557,31 +1551,31 @@ var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
1557
1551
  moveChoiceInAlternate = (e, t, n, r, i) => {
1558
1552
  let { model: a } = this.props, { choices: o, correctResponse: s = [], maxChoicesPerCategory: c = 0 } = a || {}, l = (o || []).find((t) => t.id === e);
1559
1553
  s = p(e, t, n, r, s, i, l?.categoryCount);
1560
- let u = wt(a);
1554
+ let u = xt(a);
1561
1555
  this.updateModel({
1562
1556
  correctResponse: s,
1563
1557
  maxChoicesPerCategory: c !== 0 && c < u ? c + 1 : c
1564
1558
  });
1565
1559
  };
1566
- deleteChoiceFromAlternateCategory = (e, t, n, i) => {
1567
- let { model: a } = this.props, o = r(t.id, e.id, n, i, a.correctResponse);
1568
- this.updateModel({ correctResponse: o });
1560
+ deleteChoiceFromAlternateCategory = (e, t, n, r) => {
1561
+ let { model: i } = this.props, a = o(t.id, e.id, n, r, i.correctResponse);
1562
+ this.updateModel({ correctResponse: a });
1569
1563
  };
1570
1564
  renderDragOverlay = () => {
1571
1565
  let { activeDragItem: e } = this.state, { model: t, configuration: n } = this.props;
1572
1566
  if (!e) return null;
1573
1567
  if (e.type === "choice") {
1574
1568
  let r = t.choices?.find((t) => t.id === e.id);
1575
- return r ? /* @__PURE__ */ W(Yt, {
1569
+ return r ? /* @__PURE__ */ W(Kt, {
1576
1570
  choice: r,
1577
1571
  configuration: n
1578
1572
  }) : null;
1579
1573
  } else if (e.type === "choice-preview" && e.alternateResponseIndex === void 0) {
1580
1574
  let n = t.choices?.find((t) => t.id === e.id);
1581
- return n ? /* @__PURE__ */ W(ot, { choice: n }) : null;
1575
+ return n ? /* @__PURE__ */ W(rt, { choice: n }) : null;
1582
1576
  } else if (e.type === "choice-preview" && e.alternateResponseIndex !== void 0) {
1583
1577
  let n = t.choices?.find((t) => t.id === e.id);
1584
- return n ? /* @__PURE__ */ W(ot, {
1578
+ return n ? /* @__PURE__ */ W(rt, {
1585
1579
  choice: n,
1586
1580
  alternateResponseIndex: e.alternateResponseIndex
1587
1581
  }) : null;
@@ -1589,37 +1583,37 @@ var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
1589
1583
  return null;
1590
1584
  };
1591
1585
  render() {
1592
- let { configuration: e, imageSupport: t, model: n, uploadSoundSupport: r, onConfigurationChanged: i } = this.props, { allowAlternate: a = {}, allowMultiplePlacements: o = {}, baseInputConfiguration: s = {}, categoriesPerRow: c = {}, choicesPosition: l = {}, contentDimensions: u = {}, feedback: d = {}, lockChoiceOrder: f = {}, maxImageHeight: p = {}, maxImageWidth: m = {}, maxPlacements: h = {}, minCategoriesPerRow: g = 1, partialScoring: _ = {}, prompt: v = {}, rationale: y = {}, scoringType: b = {}, settingsPanelDisabled: ee, spellCheck: te = {}, studentInstructions: x = {}, teacherInstructions: S = {}, withRubric: ne = {}, mathMlOptions: C = {}, language: w = {}, languageChoices: T = {}, allowMaxAnswerChoices: E = {} } = e || {}, { allowAlternateEnabled: re, allowMaxChoicesPerCategory: ie, errors: ae, feedbackEnabled: oe, maxChoicesPerCategory: se, promptEnabled: le, rationaleEnabled: D, spellCheckEnabled: k, teacherInstructionsEnabled: ue, toolbarEditorPosition: A, extraCSSRules: de } = n || {}, { prompt: j, rationale: M, teacherInstructions: N } = ae || {}, P = { position: A === "top" ? "top" : "bottom" }, me = n.config || {};
1586
+ let { configuration: e, imageSupport: t, model: n, uploadSoundSupport: r, onConfigurationChanged: i } = this.props, { allowAlternate: a = {}, allowMultiplePlacements: o = {}, baseInputConfiguration: s = {}, categoriesPerRow: c = {}, choicesPosition: l = {}, contentDimensions: u = {}, feedback: d = {}, lockChoiceOrder: f = {}, maxImageHeight: p = {}, maxImageWidth: m = {}, maxPlacements: h = {}, minCategoriesPerRow: g = 1, partialScoring: _ = {}, prompt: v = {}, rationale: y = {}, scoringType: b = {}, settingsPanelDisabled: x, spellCheck: ee = {}, studentInstructions: S = {}, teacherInstructions: C = {}, withRubric: te = {}, mathMlOptions: w = {}, language: T = {}, languageChoices: E = {}, allowMaxAnswerChoices: D = {} } = e || {}, { allowAlternateEnabled: ne, allowMaxChoicesPerCategory: re, errors: ie, feedbackEnabled: ae, maxChoicesPerCategory: oe, promptEnabled: ce, rationaleEnabled: O, spellCheckEnabled: A, teacherInstructionsEnabled: le, toolbarEditorPosition: j, extraCSSRules: ue } = n || {}, { prompt: M, rationale: pe, teacherInstructions: N } = ie || {}, P = { position: j === "top" ? "top" : "bottom" }, me = n.config || {};
1593
1587
  me.choices = me.choices || {
1594
1588
  label: "",
1595
1589
  columns: 2
1596
1590
  };
1597
- let ge = rn(n.categories || [], n.choices || [], n.correctResponse || []), F = on(n.categories || [], n.choices || [], n.correctResponse || []), I = n.choices.map((e) => (e.correctResponseCount = this.countChoiceInCorrectResponse(e), e.categoryCount = this.checkAllowMultiplePlacements(n.allowMultiplePlacementsEnabled, e), e)), L = m && m.prompt, z = p && p.prompt, _e = {
1591
+ let ge = en(n.categories || [], n.choices || [], n.correctResponse || []), F = nn(n.categories || [], n.choices || [], n.correctResponse || []), I = n.choices.map((e) => (e.correctResponseCount = this.countChoiceInCorrectResponse(e), e.categoryCount = this.checkAllowMultiplePlacements(n.allowMultiplePlacementsEnabled, e), e)), L = m && m.prompt, z = p && p.prompt, _e = {
1598
1592
  partialScoring: _.settings && $(_.label),
1599
1593
  lockChoiceOrder: f.settings && $(f.label),
1600
- categoriesPerRow: c.settings && dn(c.label, {
1594
+ categoriesPerRow: c.settings && cn(c.label, {
1601
1595
  label: c.label,
1602
1596
  min: g,
1603
1597
  max: 6
1604
1598
  }),
1605
- choicesPosition: l.settings && un(l.label, [
1599
+ choicesPosition: l.settings && sn(l.label, [
1606
1600
  "below",
1607
1601
  "above",
1608
1602
  "left",
1609
1603
  "right"
1610
1604
  ]),
1611
- allowMultiplePlacementsEnabled: o.settings && cn(o.label, [
1605
+ allowMultiplePlacementsEnabled: o.settings && an(o.label, [
1612
1606
  Q.enabled,
1613
1607
  Q.disabled,
1614
1608
  Q.perChoice
1615
1609
  ]),
1616
- maxAnswerChoices: E.settings && dn(E.label, {
1610
+ maxAnswerChoices: D.settings && cn(D.label, {
1617
1611
  label: "",
1618
1612
  min: I?.length || 0,
1619
1613
  max: 30
1620
1614
  }),
1621
1615
  allowMaxChoicesPerCategory: h.settings && $(h.label),
1622
- maxChoicesPerCategory: ie === !0 && dn(h.label, {
1616
+ maxChoicesPerCategory: re === !0 && cn(h.label, {
1623
1617
  label: "",
1624
1618
  min: 0,
1625
1619
  max: 30
@@ -1627,29 +1621,29 @@ var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
1627
1621
  promptEnabled: v.settings && $(v.label),
1628
1622
  feedbackEnabled: d.settings && $(d.label),
1629
1623
  allowAlternateEnabled: a.settings && $(a.label),
1630
- "language.enabled": w.settings && $(w.label, !0),
1631
- language: w.settings && w.enabled && cn(T.label, T.options)
1624
+ "language.enabled": T.settings && $(T.label, !0),
1625
+ language: T.settings && T.enabled && an(E.label, E.options)
1632
1626
  }, ve = {
1633
- teacherInstructionsEnabled: S.settings && $(S.label),
1634
- studentInstructionsEnabled: x.settings && $(x.label),
1627
+ teacherInstructionsEnabled: C.settings && $(C.label),
1628
+ studentInstructionsEnabled: S.settings && $(S.label),
1635
1629
  rationaleEnabled: y.settings && $(y.label),
1636
- spellCheckEnabled: te.settings && $(te.label),
1637
- scoringType: b.settings && un(b.label, ["auto", "rubric"]),
1638
- rubricEnabled: ne?.settings && $(ne?.label)
1639
- }, ye = this.isAlertModalOpened(), B = sn.t("translation:categorize:maxChoicesPerCategoryRestriction", {
1630
+ spellCheckEnabled: ee.settings && $(ee.label),
1631
+ scoringType: b.settings && sn(b.label, ["auto", "rubric"]),
1632
+ rubricEnabled: te?.settings && $(te?.label)
1633
+ }, ye = this.isAlertModalOpened(), B = rn.t("translation:categorize:maxChoicesPerCategoryRestriction", {
1640
1634
  lng: n.language,
1641
- maxChoicesPerCategory: se
1635
+ maxChoicesPerCategory: oe
1642
1636
  });
1643
- return /* @__PURE__ */ W(fe, {
1637
+ return /* @__PURE__ */ W(de, {
1644
1638
  onDragStart: this.onDragStart,
1645
1639
  onDragEnd: this.onDragEnd,
1646
- children: /* @__PURE__ */ G(fn, {
1640
+ children: /* @__PURE__ */ G(ln, {
1647
1641
  value: this.uid,
1648
- children: [/* @__PURE__ */ G(pe.ConfigLayout, {
1649
- extraCSSRules: de,
1642
+ children: [/* @__PURE__ */ G(fe.ConfigLayout, {
1643
+ extraCSSRules: ue,
1650
1644
  dimensions: u,
1651
- hideSettings: ee,
1652
- settings: /* @__PURE__ */ W(ln, {
1645
+ hideSettings: x,
1646
+ settings: /* @__PURE__ */ W(on, {
1653
1647
  model: n,
1654
1648
  onChangeModel: this.updateModel,
1655
1649
  configuration: e,
@@ -1658,7 +1652,7 @@ var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
1658
1652
  Settings: _e,
1659
1653
  Properties: ve
1660
1654
  },
1661
- modal: /* @__PURE__ */ W(O, {
1655
+ modal: /* @__PURE__ */ W(k, {
1662
1656
  title: "Warning",
1663
1657
  text: B,
1664
1658
  open: ye,
@@ -1666,8 +1660,8 @@ var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
1666
1660
  })
1667
1661
  }),
1668
1662
  children: [
1669
- ue && /* @__PURE__ */ G(hn, {
1670
- label: S.label,
1663
+ le && /* @__PURE__ */ G(fn, {
1664
+ label: C.label,
1671
1665
  children: [/* @__PURE__ */ W(R, {
1672
1666
  markup: n.teacherInstructions || "",
1673
1667
  onChange: this.changeTeacherInstructions,
@@ -1675,70 +1669,70 @@ var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
1675
1669
  error: N,
1676
1670
  nonEmpty: !1,
1677
1671
  toolbarOpts: P,
1678
- pluginProps: Z(S?.inputConfiguration, s),
1679
- spellCheck: k,
1672
+ pluginProps: X(C?.inputConfiguration, s),
1673
+ spellCheck: A,
1680
1674
  maxImageWidth: m && m.teacherInstructions || L,
1681
1675
  maxImageHeight: p && p.teacherInstructions || z,
1682
1676
  uploadSoundSupport: r,
1683
1677
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
1684
- mathMlOptions: C
1685
- }), N && /* @__PURE__ */ W(gn, { children: N })]
1678
+ mathMlOptions: w
1679
+ }), N && /* @__PURE__ */ W(pn, { children: N })]
1686
1680
  }),
1687
- le && /* @__PURE__ */ G(hn, {
1681
+ ce && /* @__PURE__ */ G(fn, {
1688
1682
  label: v.label,
1689
1683
  children: [/* @__PURE__ */ W(R, {
1690
1684
  markup: n.prompt || "",
1691
1685
  onChange: this.onPromptChanged,
1692
1686
  imageSupport: t,
1693
- error: j,
1687
+ error: M,
1694
1688
  nonEmpty: !1,
1695
1689
  disableUnderline: !0,
1696
1690
  toolbarOpts: P,
1697
- pluginProps: Z(v?.inputConfiguration, s),
1698
- spellCheck: k,
1691
+ pluginProps: X(v?.inputConfiguration, s),
1692
+ spellCheck: A,
1699
1693
  maxImageWidth: m && m.prompt,
1700
1694
  maxImageHeight: p && p.prompt,
1701
1695
  uploadSoundSupport: r,
1702
1696
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
1703
- mathMlOptions: C
1704
- }), j && /* @__PURE__ */ W(gn, { children: j })]
1697
+ mathMlOptions: w
1698
+ }), M && /* @__PURE__ */ W(pn, { children: M })]
1705
1699
  }),
1706
- /* @__PURE__ */ W(Lt, {
1700
+ /* @__PURE__ */ W(Pt, {
1707
1701
  imageSupport: t,
1708
1702
  uploadSoundSupport: r,
1709
1703
  model: n,
1710
1704
  categories: ge || [],
1711
1705
  onModelChanged: this.updateModel,
1712
1706
  toolbarOpts: P,
1713
- spellCheck: k,
1707
+ spellCheck: A,
1714
1708
  configuration: e,
1715
1709
  defaultImageMaxWidth: L,
1716
1710
  defaultImageMaxHeight: z,
1717
- mathMlOptions: C
1711
+ mathMlOptions: w
1718
1712
  }),
1719
- /* @__PURE__ */ W(nn, {
1713
+ /* @__PURE__ */ W($t, {
1720
1714
  imageSupport: t,
1721
1715
  uploadSoundSupport: r,
1722
1716
  choices: I,
1723
1717
  model: n,
1724
1718
  onModelChanged: this.updateModel,
1725
1719
  toolbarOpts: P,
1726
- spellCheck: k,
1720
+ spellCheck: A,
1727
1721
  configuration: e,
1728
1722
  defaultImageMaxWidth: L,
1729
1723
  defaultImageMaxHeight: z
1730
1724
  }),
1731
- re && /* @__PURE__ */ W(mn, {
1725
+ ne && /* @__PURE__ */ W(dn, {
1732
1726
  label: "Alternate Responses",
1733
1727
  buttonLabel: "ADD AN ALTERNATE RESPONSE",
1734
1728
  onAdd: this.onAddAlternateResponse
1735
1729
  }),
1736
- re && F.map((i, a) => /* @__PURE__ */ G(H.Fragment, { children: [/* @__PURE__ */ W(mn, {
1730
+ ne && F.map((i, a) => /* @__PURE__ */ G(H.Fragment, { children: [/* @__PURE__ */ W(dn, {
1737
1731
  variant: "subtitle1",
1738
1732
  label: "Alternate Response",
1739
1733
  buttonLabel: "REMOVE ALTERNATE RESPONSE",
1740
1734
  onAdd: () => this.onRemoveAlternateResponse(a)
1741
- }), /* @__PURE__ */ W(Vt, {
1735
+ }), /* @__PURE__ */ W(Rt, {
1742
1736
  altIndex: a,
1743
1737
  imageSupport: t,
1744
1738
  model: n,
@@ -1746,37 +1740,37 @@ var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
1746
1740
  categories: i,
1747
1741
  onModelChanged: this.updateModel,
1748
1742
  uploadSoundSupport: r,
1749
- mathMlOptions: C
1743
+ mathMlOptions: w
1750
1744
  })] }, a)),
1751
- D && /* @__PURE__ */ G(hn, {
1745
+ O && /* @__PURE__ */ G(fn, {
1752
1746
  label: y.label,
1753
1747
  children: [/* @__PURE__ */ W(R, {
1754
1748
  markup: n.rationale || "",
1755
1749
  onChange: this.changeRationale,
1756
1750
  imageSupport: t,
1757
- error: M,
1751
+ error: pe,
1758
1752
  nonEmpty: !1,
1759
1753
  toolbarOpts: P,
1760
- pluginProps: Z(v?.inputConfiguration, s),
1761
- spellCheck: k,
1754
+ pluginProps: X(v?.inputConfiguration, s),
1755
+ spellCheck: A,
1762
1756
  maxImageWidth: m && m.rationale || L,
1763
1757
  maxImageHeight: p && p.rationale || z,
1764
1758
  uploadSoundSupport: r,
1765
1759
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
1766
- mathMlOptions: C
1767
- }), M && /* @__PURE__ */ W(gn, { children: M })]
1760
+ mathMlOptions: w
1761
+ }), pe && /* @__PURE__ */ W(pn, { children: pe })]
1768
1762
  }),
1769
- oe && /* @__PURE__ */ W(he, {
1763
+ ae && /* @__PURE__ */ W(he, {
1770
1764
  feedback: n.feedback,
1771
1765
  onChange: this.changeFeedback,
1772
1766
  toolbarOpts: P
1773
1767
  })
1774
1768
  ]
1775
- }), /* @__PURE__ */ W(ce, { children: /* @__PURE__ */ W(pn, { children: this.renderDragOverlay() }) })]
1769
+ }), /* @__PURE__ */ W(se, { children: /* @__PURE__ */ W(un, { children: this.renderDragOverlay() }) })]
1776
1770
  })
1777
1771
  });
1778
1772
  }
1779
- }, vn = class extends H.Component {
1773
+ }, hn = class extends H.Component {
1780
1774
  static propTypes = {
1781
1775
  configuration: K.default.object,
1782
1776
  onConfigurationChanged: K.default.func,
@@ -1788,7 +1782,7 @@ var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
1788
1782
  static defaultProps = {};
1789
1783
  render() {
1790
1784
  let { model: e, onModelChanged: t, configuration: n, onConfigurationChanged: r, imageSupport: i, uploadSoundSupport: a } = this.props;
1791
- return /* @__PURE__ */ W(_n, {
1785
+ return /* @__PURE__ */ W(mn, {
1792
1786
  imageSupport: i,
1793
1787
  uploadSoundSupport: a,
1794
1788
  title: "Design",
@@ -1798,7 +1792,7 @@ var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
1798
1792
  onConfigurationChanged: r
1799
1793
  });
1800
1794
  }
1801
- }, yn = {
1795
+ }, gn = {
1802
1796
  model: {
1803
1797
  allowAlternateEnabled: !0,
1804
1798
  allowMaxChoicesPerCategory: !1,
@@ -1963,9 +1957,9 @@ var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
1963
1957
  options: []
1964
1958
  }
1965
1959
  }
1966
- }, bn = class e extends HTMLElement {
1960
+ }, _n = class e extends HTMLElement {
1967
1961
  static createDefaultModel = (e = {}) => ({
1968
- ...yn.model,
1962
+ ...gn.model,
1969
1963
  ...e
1970
1964
  });
1971
1965
  static disableAlternateResponses = (e) => {
@@ -1982,14 +1976,14 @@ var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
1982
1976
  };
1983
1977
  };
1984
1978
  constructor() {
1985
- super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = yn.configuration;
1979
+ super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = gn.configuration;
1986
1980
  }
1987
1981
  set model(t) {
1988
1982
  this._model = e.createDefaultModel(t), t.choices && t.choices.length >= t.maxAnswerChoices && (this._model.maxAnswerChoices = t.choices.length, console.warn("Max Answer Choices can't be less than choices length!")), this.render();
1989
1983
  }
1990
1984
  set configuration(e) {
1991
1985
  let t = {
1992
- ...yn.configuration,
1986
+ ...gn.configuration,
1993
1987
  ...e
1994
1988
  };
1995
1989
  this._configuration = t, t?.language?.enabled ? t?.languageChoices?.options?.length && (this._model.language = t?.languageChoices.options[0].value) : t.language.settings && this._model.language ? (this._configuration.language.enabled = !0, (!this._configuration.languageChoices.options || !this._configuration.languageChoices.options.length) && (this._configuration.languageChoices.options = []), this._configuration.languageChoices.options.find((e) => e.value === this._model.language) || this._configuration.languageChoices.options.push({
@@ -1998,7 +1992,7 @@ var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
1998
1992
  })) : delete this._model.language, this.render();
1999
1993
  }
2000
1994
  onModelChanged(e) {
2001
- this._model = e, this.render(), this.dispatchEvent(new J(this._model, !1));
1995
+ this._model = e, this.render(), this.dispatchEvent(new Le(this._model, !1));
2002
1996
  }
2003
1997
  onConfigurationChanged(e) {
2004
1998
  this._configuration = e, this.render();
@@ -2007,19 +2001,19 @@ var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
2007
2001
  this.render();
2008
2002
  }
2009
2003
  insertImage(e) {
2010
- this.dispatchEvent(new Y(e));
2004
+ this.dispatchEvent(new ze(e));
2011
2005
  }
2012
2006
  onDeleteImage(e, t) {
2013
- this.dispatchEvent(new Ve(e, t));
2007
+ this.dispatchEvent(new Re(e, t));
2014
2008
  }
2015
2009
  insertSound(e) {
2016
- this.dispatchEvent(new X(e));
2010
+ this.dispatchEvent(new Be(e));
2017
2011
  }
2018
2012
  onDeleteSound(e, t) {
2019
- this.dispatchEvent(new He(e, t));
2013
+ this.dispatchEvent(new Y(e, t));
2020
2014
  }
2021
2015
  render() {
2022
- let e = H.createElement(vn, {
2016
+ let e = H.createElement(hn, {
2023
2017
  model: this._model,
2024
2018
  configuration: this._configuration,
2025
2019
  onModelChanged: this.onModelChanged.bind(this),
@@ -2042,6 +2036,6 @@ var Yt = N.withUid(Jt), Xt = F("div")(({ theme: e }) => ({
2042
2036
  }
2043
2037
  };
2044
2038
  //#endregion
2045
- export { bn as default };
2039
+ export { _n as default };
2046
2040
 
2047
2041
  //# sourceMappingURL=index.js.map