@pie-element/graphing 10.1.2-next.0 → 10.1.2-next.1

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 (188) hide show
  1. package/dist/author/configure.js +46 -46
  2. package/dist/author/correct-response.js +86 -87
  3. package/dist/author/graphing-config.js +60 -60
  4. package/dist/author/index.js +19 -19
  5. package/dist/author/utils.js +1 -1
  6. package/dist/browser/author/index.js +1280 -4426
  7. package/dist/browser/author/index.js.map +1 -1
  8. package/dist/browser/{container-Bg6U_CJ-.js → container-DaIvr1Vu.js} +13429 -14293
  9. package/dist/browser/container-DaIvr1Vu.js.map +1 -0
  10. package/dist/browser/controller/index.js +126 -153
  11. package/dist/browser/controller/index.js.map +1 -1
  12. package/dist/browser/delivery/index.js +26 -26
  13. package/dist/browser/delivery/index.js.map +1 -1
  14. package/dist/browser/dist-BrN2xZtM.js +547 -0
  15. package/dist/browser/dist-BrN2xZtM.js.map +1 -0
  16. package/dist/controller/index.d.ts +1 -1
  17. package/dist/controller/index.js +56 -58
  18. package/dist/controller/utils.d.ts +14 -14
  19. package/dist/controller/utils.js +1 -4
  20. package/dist/index.iife.js +105 -103
  21. package/dist/runtime-support.d.ts +12 -0
  22. package/dist/runtime-support.js +12 -0
  23. package/package.json +14 -10
  24. package/dist/browser/container-Bg6U_CJ-.js.map +0 -1
  25. package/dist/browser/dist-eInAO7us.js +0 -1468
  26. package/dist/browser/dist-eInAO7us.js.map +0 -1
  27. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +0 -6
  28. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +0 -16
  29. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +0 -16
  30. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +0 -6
  31. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +0 -16
  32. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +0 -6
  33. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +0 -6
  34. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +0 -11
  35. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +0 -14
  36. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
  37. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +0 -5
  38. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +0 -6
  39. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +0 -12
  40. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +0 -7
  41. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +0 -10
  42. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludes.js +0 -7
  43. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludesWith.js +0 -7
  44. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +0 -15
  45. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +0 -7
  46. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +0 -7
  47. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +0 -7
  48. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +0 -10
  49. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +0 -8
  50. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +0 -8
  51. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +0 -8
  52. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +0 -12
  53. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +0 -57
  54. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +0 -14
  55. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseDifference.js +0 -23
  56. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js +0 -7
  57. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js +0 -13
  58. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
  59. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
  60. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIndexOf.js +0 -9
  61. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIntersection.js +0 -29
  62. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +0 -9
  63. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +0 -8
  64. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +0 -30
  65. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +0 -9
  66. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNaN.js +0 -6
  67. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +0 -11
  68. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +0 -9
  69. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +0 -11
  70. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +0 -12
  71. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +0 -13
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +0 -9
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js +0 -22
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +0 -14
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +0 -7
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +0 -15
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +0 -8
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUniq.js +0 -27
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +0 -6
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castArrayLikeObject.js +0 -7
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +0 -10
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +0 -10
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +0 -8
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +0 -8
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +0 -8
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +0 -8
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +0 -8
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +0 -14
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +0 -8
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +0 -8
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +0 -5
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createSet.js +0 -9
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +0 -10
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +0 -35
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +0 -35
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +0 -32
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +0 -4
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +0 -9
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +0 -9
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +0 -8
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +0 -9
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +0 -5
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +0 -14
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +0 -10
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +0 -11
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +0 -23
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +0 -6
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +0 -7
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +0 -7
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +0 -13
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +0 -9
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +0 -9
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +0 -8
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +0 -33
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +0 -9
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.js +0 -10
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +0 -8
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +0 -11
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +0 -7
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +0 -11
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +0 -8
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +0 -6
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +0 -9
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +0 -8
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +0 -7
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +0 -8
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +0 -13
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +0 -8
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +0 -7
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +0 -7
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +0 -8
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +0 -9
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +0 -11
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +0 -5
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +0 -5
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +0 -8
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +0 -9
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +0 -7
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +0 -8
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +0 -13
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +0 -5
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +0 -7
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +0 -6
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +0 -9
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +0 -6
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +0 -14
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +0 -7
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +0 -7
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +0 -6
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +0 -6
  152. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +0 -16
  153. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_strictIndexOf.js +0 -7
  154. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +0 -10
  155. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +0 -10
  156. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +0 -15
  157. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +0 -8
  158. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +0 -8
  159. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/differenceWith.js +0 -12
  160. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +0 -6
  161. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +0 -6
  162. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/intersection.js +0 -11
  163. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +0 -10
  164. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +0 -4
  165. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +0 -8
  166. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js +0 -8
  167. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +0 -6
  168. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +0 -21
  169. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +0 -7
  170. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +0 -11
  171. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +0 -7
  172. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +0 -7
  173. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
  174. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
  175. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +0 -7
  176. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +0 -9
  177. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +0 -7
  178. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +0 -9
  179. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +0 -9
  180. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/last.js +0 -7
  181. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +0 -16
  182. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/noop.js +0 -4
  183. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/set.js +0 -7
  184. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +0 -6
  185. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +0 -6
  186. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +0 -7
  187. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniq.js +0 -7
  188. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniqWith.js +0 -7
@@ -1,35 +1,35 @@
1
- import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/intersection.js";
2
- import t from "./graphing-config.js";
3
- import n from "./correct-response.js";
4
- import r from "react";
5
- import i from "prop-types";
6
- import { styled as a } from "@mui/material/styles";
7
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
8
- import c from "debug";
1
+ import e from "./graphing-config.js";
2
+ import t from "./correct-response.js";
3
+ import n from "react";
4
+ import r from "prop-types";
5
+ import { styled as i } from "@mui/material/styles";
6
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
7
+ import s from "debug";
8
+ import { intersection as c } from "@pie-element/shared-lodash";
9
9
  import l from "@mui/material/Typography";
10
10
  import { InputContainer as u, layout as d, settings as f } from "@pie-lib/config-ui";
11
11
  import p from "@pie-lib/editable-html-tip-tap";
12
12
  //#region src/author/configure.tsx
13
- var { Panel: ee, toggle: m, radio: h, checkboxes: te, textField: ne, dropdown: re } = f, ie = c("@pie-element:graphing:configure"), g = a(u)(({ theme: e }) => ({
13
+ var { Panel: ee, toggle: m, radio: h, checkboxes: te, textField: ne, dropdown: re } = f, ie = s("@pie-element:graphing:configure"), g = i(u)(({ theme: e }) => ({
14
14
  width: "100%",
15
15
  paddingTop: e.spacing(2),
16
16
  marginBottom: e.spacing(2)
17
- })), ae = a(l)(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), _ = a("div")(({ theme: e }) => ({
17
+ })), ae = i(l)(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), _ = i("div")(({ theme: e }) => ({
18
18
  fontSize: e.typography.fontSize - 2,
19
19
  color: e.palette.error.main,
20
20
  paddingTop: e.spacing(1)
21
- })), v = class extends r.Component {
21
+ })), v = class extends n.Component {
22
22
  static propTypes = {
23
- onModelChanged: i.func,
24
- onConfigurationChanged: i.func,
25
- imageSupport: i.object,
26
- uploadSoundSupport: i.object,
27
- model: i.object.isRequired,
28
- configuration: i.object.isRequired
23
+ onModelChanged: r.func,
24
+ onConfigurationChanged: r.func,
25
+ imageSupport: r.object,
26
+ uploadSoundSupport: r.object,
27
+ model: r.object.isRequired,
28
+ configuration: r.object.isRequired
29
29
  };
30
30
  componentDidMount() {
31
- let { configuration: t, onModelChanged: n, model: r } = this.props, { availableTools: i, title: a, graphDimensions: o } = t || {}, { arrows: s, titleEnabled: c, dimensionsEnabled: l } = r || {};
32
- typeof s == "boolean" && (s = s ? {
31
+ let { configuration: e, onModelChanged: t, model: n } = this.props, { availableTools: r, title: i, graphDimensions: a } = e || {}, { arrows: o, titleEnabled: s, dimensionsEnabled: l } = n || {};
32
+ typeof o == "boolean" && (o = o ? {
33
33
  left: !0,
34
34
  right: !0,
35
35
  up: !0,
@@ -40,10 +40,10 @@ var { Panel: ee, toggle: m, radio: h, checkboxes: te, textField: ne, dropdown: r
40
40
  up: !1,
41
41
  down: !1
42
42
  });
43
- let u = e(i || [], r.toolbarTools || []), d = c ?? a.enabled, f = l ?? o.enabled;
44
- n && n({
45
- ...r,
46
- arrows: s,
43
+ let u = c(r || [], n.toolbarTools || []), d = s ?? i.enabled, f = l ?? a.enabled;
44
+ t && t({
45
+ ...n,
46
+ arrows: o,
47
47
  toolbarTools: u,
48
48
  titleEnabled: d,
49
49
  dimensionsEnabled: f
@@ -71,8 +71,8 @@ var { Panel: ee, toggle: m, radio: h, checkboxes: te, textField: ne, dropdown: r
71
71
  });
72
72
  };
73
73
  render() {
74
- let { model: e, configuration: r, onConfigurationChanged: i, onModelChanged: a, imageSupport: c, uploadSoundSupport: l } = this.props, { arrows: u = {}, authoring: f = {}, availableTools: v = [], baseInputConfiguration: y = {}, coordinatesOnHover: b = {}, contentDimensions: x = {}, gridConfigurations: S = [], graphDimensions: C = {}, instruction: w = {}, labels: T = {}, padding: E = {}, prompt: D = {}, rationale: O = {}, scoringType: k = {}, settingsPanelDisabled: A, spellCheck: j = {}, studentInstructions: M = {}, teacherInstructions: N = {}, title: P = {}, maxImageWidth: F = {}, maxImageHeight: I = {}, withRubric: L = {}, language: R = {}, languageChoices: z = {}, mathMlOptions: B = {}, removeIncompleteTool: V = !1 } = r || {}, { errors: H = {}, extraCSSRules: U, labelsEnabled: W, dimensionsEnabled: G, promptEnabled: K, rationaleEnabled: oe, spellCheckEnabled: q, teacherInstructionsEnabled: se, titleEnabled: ce } = e || {}, { prompt: J, rationale: Y, teacherInstructions: X } = H || {};
75
- ie("[render] model", e);
74
+ let { model: n, configuration: r, onConfigurationChanged: i, onModelChanged: s, imageSupport: c, uploadSoundSupport: l } = this.props, { arrows: u = {}, authoring: f = {}, availableTools: v = [], baseInputConfiguration: y = {}, coordinatesOnHover: b = {}, contentDimensions: x = {}, gridConfigurations: S = [], graphDimensions: C = {}, instruction: w = {}, labels: T = {}, padding: E = {}, prompt: D = {}, rationale: O = {}, scoringType: k = {}, settingsPanelDisabled: A, spellCheck: j = {}, studentInstructions: M = {}, teacherInstructions: N = {}, title: P = {}, maxImageWidth: F = {}, maxImageHeight: I = {}, withRubric: L = {}, language: R = {}, languageChoices: z = {}, mathMlOptions: B = {}, removeIncompleteTool: V = !1 } = r || {}, { errors: H = {}, extraCSSRules: U, labelsEnabled: W, dimensionsEnabled: G, promptEnabled: K, rationaleEnabled: oe, spellCheckEnabled: q, teacherInstructionsEnabled: se, titleEnabled: ce } = n || {}, { prompt: J, rationale: Y, teacherInstructions: X } = H || {};
75
+ ie("[render] model", n);
76
76
  let Z = F && F.prompt, Q = I && I.prompt, le = {
77
77
  top: T.top,
78
78
  right: T.right,
@@ -106,14 +106,14 @@ var { Panel: ee, toggle: m, radio: h, checkboxes: te, textField: ne, dropdown: r
106
106
  ...y,
107
107
  ...e
108
108
  });
109
- return /* @__PURE__ */ s(d.ConfigLayout, {
109
+ return /* @__PURE__ */ o(d.ConfigLayout, {
110
110
  extraCSSRules: U,
111
111
  dimensions: x,
112
112
  hideSettings: A,
113
- settings: /* @__PURE__ */ o(ee, {
114
- model: e,
113
+ settings: /* @__PURE__ */ a(ee, {
114
+ model: n,
115
115
  configuration: r,
116
- onChangeModel: a,
116
+ onChangeModel: s,
117
117
  onChangeConfiguration: i,
118
118
  groups: {
119
119
  Settings: ue,
@@ -121,15 +121,15 @@ var { Panel: ee, toggle: m, radio: h, checkboxes: te, textField: ne, dropdown: r
121
121
  }
122
122
  }),
123
123
  children: [
124
- /* @__PURE__ */ o(ae, {
124
+ /* @__PURE__ */ a(ae, {
125
125
  component: "div",
126
126
  variant: "body1",
127
127
  children: w?.label || ""
128
128
  }),
129
- se && /* @__PURE__ */ s(g, {
129
+ se && /* @__PURE__ */ o(g, {
130
130
  label: N.label,
131
- children: [/* @__PURE__ */ o(p, {
132
- markup: e.teacherInstructions || "",
131
+ children: [/* @__PURE__ */ a(p, {
132
+ markup: n.teacherInstructions || "",
133
133
  onChange: this.onTeacherInstructionsChange,
134
134
  imageSupport: c,
135
135
  error: X,
@@ -141,12 +141,12 @@ var { Panel: ee, toggle: m, radio: h, checkboxes: te, textField: ne, dropdown: r
141
141
  uploadSoundSupport: l,
142
142
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
143
143
  mathMlOptions: B
144
- }), X && /* @__PURE__ */ o(_, { children: X })]
144
+ }), X && /* @__PURE__ */ a(_, { children: X })]
145
145
  }),
146
- K && /* @__PURE__ */ s(g, {
146
+ K && /* @__PURE__ */ o(g, {
147
147
  label: D.label,
148
- children: [/* @__PURE__ */ o(p, {
149
- markup: e.prompt,
148
+ children: [/* @__PURE__ */ a(p, {
149
+ markup: n.prompt,
150
150
  onChange: this.onPromptChange,
151
151
  imageSupport: c,
152
152
  error: J,
@@ -159,15 +159,15 @@ var { Panel: ee, toggle: m, radio: h, checkboxes: te, textField: ne, dropdown: r
159
159
  uploadSoundSupport: l,
160
160
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
161
161
  mathMlOptions: B
162
- }), J && /* @__PURE__ */ o(_, { children: J })]
162
+ }), J && /* @__PURE__ */ a(_, { children: J })]
163
163
  }),
164
- /* @__PURE__ */ o(t, {
164
+ /* @__PURE__ */ a(e, {
165
165
  authoring: f,
166
166
  availableTools: v,
167
167
  gridConfigurations: S,
168
168
  graphDimensions: C,
169
169
  labelsPlaceholders: le,
170
- model: e,
170
+ model: n,
171
171
  showLabels: W,
172
172
  dimensionsEnabled: G,
173
173
  showTitle: ce,
@@ -176,18 +176,18 @@ var { Panel: ee, toggle: m, radio: h, checkboxes: te, textField: ne, dropdown: r
176
176
  mathMlOptions: B,
177
177
  removeIncompleteTool: V
178
178
  }),
179
- /* @__PURE__ */ o(n, {
179
+ /* @__PURE__ */ a(t, {
180
180
  availableTools: v,
181
181
  errors: H,
182
- model: e,
182
+ model: n,
183
183
  onChange: this.props.onModelChanged,
184
184
  mathMlOptions: B,
185
185
  removeIncompleteTool: V
186
186
  }),
187
- oe && /* @__PURE__ */ s(g, {
187
+ oe && /* @__PURE__ */ o(g, {
188
188
  label: O.label || "Rationale",
189
- children: [/* @__PURE__ */ o(p, {
190
- markup: e.rationale || "",
189
+ children: [/* @__PURE__ */ a(p, {
190
+ markup: n.rationale || "",
191
191
  onChange: this.onRationaleChange,
192
192
  imageSupport: c,
193
193
  error: Y,
@@ -198,7 +198,7 @@ var { Panel: ee, toggle: m, radio: h, checkboxes: te, textField: ne, dropdown: r
198
198
  uploadSoundSupport: l,
199
199
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
200
200
  mathMlOptions: B
201
- }), Y && /* @__PURE__ */ o(_, { children: Y })]
201
+ }), Y && /* @__PURE__ */ a(_, { children: Y })]
202
202
  })
203
203
  ]
204
204
  });
@@ -1,18 +1,17 @@
1
- import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js";
2
- import t from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/set.js";
3
- import * as n from "react";
4
- import { renderMath as r } from "@pie-element/shared-math-rendering-mathjax";
5
- import i from "prop-types";
6
- import { styled as a } from "@mui/material/styles";
7
- import { GraphContainer as o } from "@pie-lib/graphing";
8
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
1
+ import * as e from "react";
2
+ import { renderMath as t } from "@pie-element/shared-math-rendering-mathjax";
3
+ import n from "prop-types";
4
+ import { styled as r } from "@mui/material/styles";
5
+ import { GraphContainer as i } from "@pie-lib/graphing";
6
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
7
+ import { isEqual as s, set as c } from "@pie-element/shared-lodash";
9
8
  import { AlertDialog as l } from "@pie-lib/config-ui";
10
9
  import { MenuItem as u, Select as d, Tooltip as f, Typography as p } from "@mui/material";
11
10
  import m from "react-dom";
12
11
  import h from "@mui/icons-material/Delete";
13
12
  import g from "@mui/icons-material/Info";
14
13
  //#region src/author/correct-response.tsx
15
- var _ = "#D5D5D5", v = "#AAAAAA", y = a("div")({ color: v }), b = a("div")(({ theme: e }) => ({
14
+ var _ = "#D5D5D5", v = "#AAAAAA", y = r("div")({ color: v }), b = r("div")(({ theme: e }) => ({
16
15
  margin: `${e.spacing(2.5)} 0`,
17
16
  cursor: "pointer",
18
17
  background: e.palette.grey[200],
@@ -20,106 +19,106 @@ var _ = "#D5D5D5", v = "#AAAAAA", y = a("div")({ color: v }), b = a("div")(({ th
20
19
  width: "fit-content",
21
20
  borderRadius: "4px",
22
21
  "&:hover": { background: _ }
23
- })), x = a("div")(({ theme: e }) => ({
22
+ })), x = r("div")(({ theme: e }) => ({
24
23
  marginTop: e.spacing(1),
25
24
  display: "flex",
26
25
  flexWrap: "wrap"
27
- })), S = a("div")(({ theme: e }) => ({
26
+ })), S = r("div")(({ theme: e }) => ({
28
27
  cursor: "pointer",
29
28
  margin: e.spacing(1),
30
29
  padding: e.spacing(1),
31
30
  border: `2px solid ${e.palette.common.white}`,
32
31
  textTransform: "capitalize",
33
32
  "&:hover": { color: e.palette.grey[800] }
34
- })), C = a(S)({
33
+ })), C = r(S)({
35
34
  background: _,
36
35
  border: `2px solid ${v}`
37
- }), w = a("div")(({ theme: e }) => ({
36
+ }), w = r("div")(({ theme: e }) => ({
38
37
  display: "flex",
39
38
  alignItems: "center",
40
39
  marginTop: e.spacing(2.5)
41
- })), T = a("div")(({ theme: e }) => ({
40
+ })), T = r("div")(({ theme: e }) => ({
42
41
  marginLeft: "6px",
43
42
  color: e.palette.grey[600],
44
43
  "&:hover": {
45
44
  cursor: "pointer",
46
45
  color: e.palette.common.black
47
46
  }
48
- })), E = a("div")(({ theme: e }) => ({ marginBottom: e.spacing(.5) })), D = a(({ className: e, ...t }) => /* @__PURE__ */ s(f, {
47
+ })), E = r("div")(({ theme: e }) => ({ marginBottom: e.spacing(.5) })), D = r(({ className: e, ...t }) => /* @__PURE__ */ a(f, {
49
48
  ...t,
50
49
  classes: { tooltip: e }
51
50
  }))(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
52
51
  fontSize: e.typography.fontSize - 2,
53
52
  whiteSpace: "pre",
54
53
  maxWidth: "500px"
55
- } })), O = a(p)(({ theme: e }) => ({
54
+ } })), O = r(p)(({ theme: e }) => ({
56
55
  marginTop: e.spacing(1.5),
57
56
  marginBottom: e.spacing(1)
58
- })), k = a("div")({
57
+ })), k = r("div")({
59
58
  display: "flex",
60
59
  alignItems: "center",
61
60
  justifyContent: "space-between"
62
- }), A = a("div")({
61
+ }), A = r("div")({
63
62
  display: "flex",
64
63
  alignItems: "center",
65
64
  width: "300px"
66
- }), j = a(d)(({ theme: e }) => ({
65
+ }), j = r(d)(({ theme: e }) => ({
67
66
  marginLeft: e.spacing(1),
68
67
  textTransform: "uppercase",
69
68
  color: e.palette.grey[800]
70
- })), M = a(u)({ textTransform: "uppercase" }), N = a("div")(({ theme: e }) => ({
69
+ })), M = r(u)({ textTransform: "uppercase" }), N = r("div")(({ theme: e }) => ({
71
70
  fontSize: e.typography.fontSize - 2,
72
71
  color: e.palette.error.main,
73
72
  marginTop: e.spacing(1)
74
- })), P = ({ availableTools: e, defaultTool: t, hasErrors: n, toolbarTools: r, toggleToolBarTool: i, onDefaultToolChange: a }) => {
75
- let o = e || [], l = o.includes("label"), u = (r || []).filter((e) => e !== "label");
76
- return l && (o = [...o.filter((e) => e !== "label"), "label"]), /* @__PURE__ */ c(y, { children: [/* @__PURE__ */ c(k, { children: [/* @__PURE__ */ s("span", { children: "GRAPHING TOOLS" }), u.length > 0 && /* @__PURE__ */ c(A, { children: [/* @__PURE__ */ s("span", { children: "Default graphing tool:" }), /* @__PURE__ */ s(j, {
73
+ })), P = ({ availableTools: e, defaultTool: t, hasErrors: n, toolbarTools: r, toggleToolBarTool: i, onDefaultToolChange: s }) => {
74
+ let c = e || [], l = c.includes("label"), u = (r || []).filter((e) => e !== "label");
75
+ return l && (c = [...c.filter((e) => e !== "label"), "label"]), /* @__PURE__ */ o(y, { children: [/* @__PURE__ */ o(k, { children: [/* @__PURE__ */ a("span", { children: "GRAPHING TOOLS" }), u.length > 0 && /* @__PURE__ */ o(A, { children: [/* @__PURE__ */ a("span", { children: "Default graphing tool:" }), /* @__PURE__ */ a(j, {
77
76
  variant: "standard",
78
- onChange: a,
77
+ onChange: s,
79
78
  value: t,
80
79
  disableUnderline: !0,
81
80
  MenuProps: { transitionDuration: {
82
81
  enter: 225,
83
82
  exit: 195
84
83
  } },
85
- children: u.map((e, t) => /* @__PURE__ */ s(M, {
84
+ children: u.map((e, t) => /* @__PURE__ */ a(M, {
86
85
  value: e,
87
86
  children: e
88
87
  }, t))
89
- })] })] }), /* @__PURE__ */ s(x, { children: o.map((e) => /* @__PURE__ */ s(r.find((t) => t === e) ? C : S, {
88
+ })] })] }), /* @__PURE__ */ a(x, { children: c.map((e) => /* @__PURE__ */ a(r.find((t) => t === e) ? C : S, {
90
89
  style: { ...n && e !== "label" && { color: "red" } },
91
90
  onClick: () => i(e),
92
91
  children: e.toUpperCase()
93
92
  }, e)) })] });
94
93
  };
95
94
  P.propTypes = {
96
- toolbarTools: i.arrayOf(i.string),
97
- toggleToolBarTool: i.func,
98
- availableTools: i.array,
99
- defaultTool: i.string,
100
- hasErrors: i.number,
101
- onDefaultToolChange: i.func
95
+ toolbarTools: n.arrayOf(n.string),
96
+ toggleToolBarTool: n.func,
97
+ availableTools: n.array,
98
+ defaultTool: n.string,
99
+ hasErrors: n.number,
100
+ onDefaultToolChange: n.func
102
101
  };
103
- var F = class extends n.Component {
102
+ var F = class extends e.Component {
104
103
  static propTypes = {
105
- availableTools: i.array,
106
- errors: i.object,
107
- model: i.object.isRequired,
108
- onChange: i.func.isRequired,
109
- toolbarTools: i.arrayOf(i.String)
104
+ availableTools: n.array,
105
+ errors: n.object,
106
+ model: n.object.isRequired,
107
+ onChange: n.func.isRequired,
108
+ toolbarTools: n.arrayOf(n.String)
110
109
  };
111
110
  state = { dialog: { open: !1 } };
112
111
  componentDidMount() {
113
112
  try {
114
- r(m.findDOMNode(this));
113
+ t(m.findDOMNode(this));
115
114
  } catch {
116
115
  console.error("DOM not mounted");
117
116
  }
118
117
  }
119
118
  handleAlertDialog = (e, t) => this.setState({ dialog: { open: e } }, t);
120
- changeMarks = (e, n) => {
121
- let { model: r, onChange: i } = this.props;
122
- t(r, `answers.${e}.marks`, n), i(r);
119
+ changeMarks = (e, t) => {
120
+ let { model: n, onChange: r } = this.props;
121
+ c(n, `answers.${e}.marks`, t), r(n);
123
122
  };
124
123
  filterMarks = (e) => {
125
124
  let { model: { answers: t } } = this.props;
@@ -139,32 +138,32 @@ var F = class extends n.Component {
139
138
  ...e
140
139
  });
141
140
  };
142
- toggleToolBarTool = (t) => {
143
- let { model: { defaultTool: n, toolbarTools: r, answers: i = {} } } = this.props, a = [...r], o = n, s = r.findIndex((e) => t === e);
144
- if (s >= 0) {
145
- let r = this.filterMarks(t);
146
- if (a.splice(s, 1), t === n) {
147
- let e = (a || []).filter((e) => e !== "label");
148
- o = e.length && e[0] || "";
141
+ toggleToolBarTool = (e) => {
142
+ let { model: { defaultTool: t, toolbarTools: n, answers: r = {} } } = this.props, i = [...n], a = t, o = n.findIndex((t) => e === t);
143
+ if (o >= 0) {
144
+ let n = this.filterMarks(e);
145
+ if (i.splice(o, 1), e === t) {
146
+ let e = (i || []).filter((e) => e !== "label");
147
+ a = e.length && e[0] || "";
149
148
  }
150
- if (!e(i, r)) {
149
+ if (!s(r, n)) {
151
150
  this.setState({ dialog: {
152
151
  open: !0,
153
152
  title: "Warning",
154
- text: `Correct answer includes one or more ${t} objects and all of them will be deleted.`,
153
+ text: `Correct answer includes one or more ${e} objects and all of them will be deleted.`,
155
154
  onConfirm: () => this.handleAlertDialog(!1, this.updateModel({
156
- toolbarTools: a,
157
- answers: r,
158
- defaultTool: o
155
+ toolbarTools: i,
156
+ answers: n,
157
+ defaultTool: a
159
158
  })),
160
159
  onClose: () => this.handleAlertDialog(!1)
161
160
  } });
162
161
  return;
163
162
  }
164
- } else a.push(t), n === "" && t !== "label" && (o = t);
163
+ } else i.push(e), t === "" && e !== "label" && (a = e);
165
164
  this.updateModel({
166
- toolbarTools: a,
167
- defaultTool: o
165
+ toolbarTools: i,
166
+ defaultTool: a
168
167
  });
169
168
  };
170
169
  onDefaultToolChange = (e) => {
@@ -172,11 +171,11 @@ var F = class extends n.Component {
172
171
  this.updateModel({ defaultTool: t });
173
172
  };
174
173
  addAlternateResponse = () => {
175
- let { model: e, onChange: n } = this.props, { answers: r } = e || {}, i = Object.keys(r || {});
176
- t(e, `answers.${`alternate${i.length}`}`, {
177
- name: `Alternate ${i.length}`,
174
+ let { model: e, onChange: t } = this.props, { answers: n } = e || {}, r = Object.keys(n || {});
175
+ c(e, `answers.${`alternate${r.length}`}`, {
176
+ name: `Alternate ${r.length}`,
178
177
  marks: []
179
- }), n(e);
178
+ }), t(e);
180
179
  };
181
180
  deleteAlternateResponse = (e, t) => {
182
181
  let { model: n, onChange: r } = this.props, { answers: i } = n || {}, { marks: a = [], name: o } = t || {}, s = () => {
@@ -212,38 +211,38 @@ var F = class extends n.Component {
212
211
  s();
213
212
  };
214
213
  render() {
215
- let { availableTools: e, errors: t, model: r, mathMlOptions: i = {}, removeIncompleteTool: a } = this.props, { dialog: u } = this.state, { answers: d = {}, arrows: f, backgroundMarks: m, coordinatesOnHover: _, defaultTool: v, domain: y, graph: x = {}, labels: S, labelsEnabled: C, range: k, title: A, titleEnabled: j, toolbarTools: M } = r || {}, { correctAnswerErrors: F = {}, toolbarToolsError: I } = t || {};
216
- return /* @__PURE__ */ c("div", { children: [
217
- /* @__PURE__ */ s(p, {
214
+ let { availableTools: t, errors: n, model: r, mathMlOptions: s = {}, removeIncompleteTool: c } = this.props, { dialog: u } = this.state, { answers: d = {}, arrows: f, backgroundMarks: m, coordinatesOnHover: _, defaultTool: v, domain: y, graph: x = {}, labels: S, labelsEnabled: C, range: k, title: A, titleEnabled: j, toolbarTools: M } = r || {}, { correctAnswerErrors: F = {}, toolbarToolsError: I } = n || {};
215
+ return /* @__PURE__ */ o("div", { children: [
216
+ /* @__PURE__ */ a(p, {
218
217
  component: "div",
219
218
  variant: "h6",
220
219
  children: "Define Tool Set and Correct Response"
221
220
  }),
222
- /* @__PURE__ */ s(O, {
221
+ /* @__PURE__ */ a(O, {
223
222
  component: "div",
224
223
  variant: "body1",
225
224
  children: "Use this interface to choose which graphing tools students will be able to use, and to define the correct answer"
226
225
  }),
227
- /* @__PURE__ */ s(P, {
228
- availableTools: e,
226
+ /* @__PURE__ */ a(P, {
227
+ availableTools: t,
229
228
  defaultTool: v,
230
229
  hasErrors: !!I,
231
230
  onDefaultToolChange: this.onDefaultToolChange,
232
231
  toggleToolBarTool: this.toggleToolBarTool,
233
232
  toolbarTools: M
234
233
  }),
235
- I && /* @__PURE__ */ s(N, { children: I }),
236
- Object.entries(d || {}).map(([e, t]) => {
237
- let { marks: r = [], name: l } = t || {};
238
- return /* @__PURE__ */ c(n.Fragment, { children: [
239
- /* @__PURE__ */ c(w, { children: [
240
- /* @__PURE__ */ s(E, { children: l }),
241
- e === "correctAnswer" && /* @__PURE__ */ s(D, {
234
+ I && /* @__PURE__ */ a(N, { children: I }),
235
+ Object.entries(d || {}).map(([t, n]) => {
236
+ let { marks: r = [], name: l } = n || {};
237
+ return /* @__PURE__ */ o(e.Fragment, { children: [
238
+ /* @__PURE__ */ o(w, { children: [
239
+ /* @__PURE__ */ a(E, { children: l }),
240
+ t === "correctAnswer" && /* @__PURE__ */ a(D, {
242
241
  disableFocusListener: !0,
243
242
  disableTouchListener: !0,
244
243
  placement: "right",
245
244
  title: "At least 1 graph object should be defined.",
246
- children: /* @__PURE__ */ s(g, {
245
+ children: /* @__PURE__ */ a(g, {
247
246
  fontSize: "small",
248
247
  color: "primary",
249
248
  style: {
@@ -252,23 +251,23 @@ var F = class extends n.Component {
252
251
  }
253
252
  })
254
253
  }),
255
- e !== "correctAnswer" && /* @__PURE__ */ s(T, {
256
- onClick: () => this.deleteAlternateResponse(e, t),
257
- children: /* @__PURE__ */ s(h, {})
254
+ t !== "correctAnswer" && /* @__PURE__ */ a(T, {
255
+ onClick: () => this.deleteAlternateResponse(t, n),
256
+ children: /* @__PURE__ */ a(h, {})
258
257
  })
259
258
  ] }),
260
- /* @__PURE__ */ s(o, {
261
- style: F[e] && { border: "2px solid red" },
259
+ /* @__PURE__ */ a(i, {
260
+ style: F[t] && { border: "2px solid red" },
262
261
  axesSettings: { includeArrows: f },
263
262
  backgroundMarks: m.filter((e) => !e.building),
264
263
  coordinatesOnHover: _,
265
264
  disabledLabels: !0,
266
265
  disabledTitle: !0,
267
266
  domain: y,
268
- draggableTools: e === "correctAnswer",
267
+ draggableTools: t === "correctAnswer",
269
268
  labels: S,
270
269
  marks: r,
271
- onChangeMarks: (t) => this.changeMarks(e, t),
270
+ onChangeMarks: (e) => this.changeMarks(t, e),
272
271
  range: k,
273
272
  showLabels: C,
274
273
  showTitle: j,
@@ -279,18 +278,18 @@ var F = class extends n.Component {
279
278
  title: A,
280
279
  toolbarTools: M,
281
280
  onChangeTools: (e) => this.updateModel({ toolbarTools: e }),
282
- mathMlOptions: i,
283
- removeIncompleteTool: a,
281
+ mathMlOptions: s,
282
+ removeIncompleteTool: c,
284
283
  limitLabeling: !0
285
284
  }),
286
- F[e] && /* @__PURE__ */ s(N, { children: F[e] })
285
+ F[t] && /* @__PURE__ */ a(N, { children: F[t] })
287
286
  ] }, `correct-response-graph-${l}`);
288
287
  }),
289
- /* @__PURE__ */ s(b, {
288
+ /* @__PURE__ */ a(b, {
290
289
  onClick: this.addAlternateResponse,
291
290
  children: "ADD ALTERNATE"
292
291
  }),
293
- /* @__PURE__ */ s(l, {
292
+ /* @__PURE__ */ a(l, {
294
293
  open: u.open,
295
294
  title: u.title,
296
295
  text: u.text,