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

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