@pie-element/graphing-solution-set 6.1.2-next.0 → 6.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 (182) hide show
  1. package/dist/author/correct-response.js +67 -67
  2. package/dist/author/graphing-config.js +67 -68
  3. package/dist/author/utils.js +1 -1
  4. package/dist/browser/author/index.js +71 -71
  5. package/dist/browser/author/index.js.map +1 -1
  6. package/dist/browser/browser-pUycHh7Y.js +348 -0
  7. package/dist/browser/browser-pUycHh7Y.js.map +1 -0
  8. package/dist/browser/controller/index.js +52 -79
  9. package/dist/browser/controller/index.js.map +1 -1
  10. package/dist/browser/delivery/index.js +17 -17
  11. package/dist/browser/{dist-SjeWPldT.js → dist-B9B3lIkf.js} +13602 -17635
  12. package/dist/browser/dist-B9B3lIkf.js.map +1 -0
  13. package/dist/controller/index.d.ts +1 -1
  14. package/dist/controller/index.js +40 -42
  15. package/dist/controller/utils.d.ts +2 -2
  16. package/dist/controller/utils.js +1 -4
  17. package/dist/index.iife.js +109 -107
  18. package/dist/runtime-support.d.ts +12 -0
  19. package/dist/runtime-support.js +12 -0
  20. package/package.json +13 -10
  21. package/dist/browser/browser-DpedO01u.js +0 -1218
  22. package/dist/browser/browser-DpedO01u.js.map +0 -1
  23. package/dist/browser/dist-SjeWPldT.js.map +0 -1
  24. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +0 -6
  25. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +0 -16
  26. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +0 -16
  27. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +0 -6
  28. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +0 -16
  29. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +0 -6
  30. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +0 -6
  31. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +0 -11
  32. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +0 -14
  33. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
  34. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +0 -5
  35. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +0 -6
  36. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +0 -12
  37. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +0 -7
  38. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +0 -10
  39. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludes.js +0 -7
  40. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludesWith.js +0 -7
  41. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +0 -15
  42. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +0 -7
  43. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +0 -7
  44. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +0 -7
  45. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +0 -10
  46. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +0 -8
  47. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +0 -8
  48. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +0 -8
  49. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +0 -12
  50. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +0 -57
  51. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +0 -14
  52. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseDifference.js +0 -23
  53. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js +0 -7
  54. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js +0 -13
  55. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
  56. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
  57. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIndexOf.js +0 -9
  58. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +0 -9
  59. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +0 -8
  60. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +0 -30
  61. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +0 -9
  62. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNaN.js +0 -6
  63. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +0 -11
  64. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +0 -9
  65. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +0 -11
  66. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +0 -12
  67. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +0 -13
  68. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +0 -9
  69. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js +0 -22
  70. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +0 -14
  71. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +0 -7
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +0 -15
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +0 -8
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUniq.js +0 -27
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +0 -6
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +0 -10
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +0 -10
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +0 -8
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +0 -8
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +0 -8
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +0 -8
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +0 -8
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +0 -14
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +0 -8
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +0 -8
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +0 -5
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createSet.js +0 -9
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +0 -10
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +0 -35
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +0 -35
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +0 -32
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +0 -4
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +0 -9
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +0 -9
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +0 -8
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +0 -9
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +0 -5
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +0 -14
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +0 -10
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +0 -11
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +0 -23
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +0 -6
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +0 -7
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +0 -7
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +0 -13
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +0 -9
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +0 -9
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +0 -8
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +0 -33
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +0 -9
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.js +0 -10
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +0 -8
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +0 -11
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +0 -7
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +0 -11
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +0 -8
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +0 -6
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +0 -9
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +0 -8
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +0 -7
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +0 -8
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +0 -13
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +0 -8
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +0 -7
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +0 -7
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +0 -8
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +0 -9
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +0 -11
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +0 -5
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +0 -5
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +0 -8
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +0 -9
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +0 -7
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +0 -8
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +0 -13
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +0 -5
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +0 -7
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +0 -6
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +0 -9
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +0 -6
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +0 -14
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +0 -7
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +0 -7
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +0 -6
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +0 -6
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +0 -16
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_strictIndexOf.js +0 -7
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +0 -10
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +0 -10
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +0 -15
  152. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +0 -8
  153. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +0 -8
  154. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/differenceWith.js +0 -12
  155. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +0 -6
  156. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +0 -6
  157. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +0 -10
  158. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +0 -4
  159. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +0 -8
  160. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js +0 -8
  161. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +0 -6
  162. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +0 -21
  163. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +0 -7
  164. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +0 -11
  165. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +0 -7
  166. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +0 -7
  167. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
  168. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
  169. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +0 -7
  170. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +0 -9
  171. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +0 -7
  172. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +0 -9
  173. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +0 -9
  174. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/last.js +0 -7
  175. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +0 -16
  176. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/noop.js +0 -4
  177. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/set.js +0 -7
  178. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +0 -6
  179. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +0 -6
  180. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +0 -7
  181. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniq.js +0 -7
  182. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniqWith.js +0 -7
@@ -1,46 +1,46 @@
1
- import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/set.js";
2
- import { checkIfLinesAreAdded as t, findSectionsInSolutionSet as n, pointInsidePolygon as r } from "./utils.js";
3
- import * as i from "react";
4
- import a from "prop-types";
5
- import { styled as o } from "@mui/material/styles";
6
- import { GraphContainer as s } from "@pie-lib/graphing-solution-set";
7
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
8
- import { AlertDialog as u } from "@pie-lib/config-ui";
1
+ import { checkIfLinesAreAdded as e, findSectionsInSolutionSet as t, pointInsidePolygon as n } from "./utils.js";
2
+ import * as r from "react";
3
+ import i from "prop-types";
4
+ import { styled as a } from "@mui/material/styles";
5
+ import { GraphContainer as o } from "@pie-lib/graphing-solution-set";
6
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
7
+ import { AlertDialog as l } from "@pie-lib/config-ui";
8
+ import { set as u } from "@pie-element/shared-lodash";
9
9
  import { RadioGroup as d, Typography as f } from "@mui/material";
10
10
  import p from "@mui/material/Radio";
11
11
  import m from "@mui/material/FormControlLabel";
12
12
  //#region src/author/correct-response.tsx
13
- var h = o(f)(({ theme: e }) => ({
13
+ var h = a(f)(({ theme: e }) => ({
14
14
  marginTop: e.spacing(1.5),
15
15
  marginBottom: e.spacing(1)
16
- })), g = o(m)({
16
+ })), g = a(m)({
17
17
  height: "20px",
18
18
  width: "fit-content",
19
19
  padding: ".5rem 0"
20
- }), _ = o(p)({ color: "#000000 !important" }), v = o("div")(({ theme: e }) => ({
20
+ }), _ = a(p)({ color: "#000000 !important" }), v = a("div")(({ theme: e }) => ({
21
21
  fontSize: e.typography.fontSize - 2,
22
22
  color: e.palette.error.main,
23
23
  paddingTop: e.spacing(1)
24
- })), y = class extends i.Component {
24
+ })), y = class extends r.Component {
25
25
  static propTypes = {
26
- errors: a.object,
27
- model: a.object.isRequired,
28
- onChange: a.func.isRequired
26
+ errors: i.object,
27
+ model: i.object.isRequired,
28
+ onChange: i.func.isRequired
29
29
  };
30
30
  state = { dialog: { open: !1 } };
31
31
  handleAlertDialog = (e, t) => this.setState({ dialog: { open: e } }, t);
32
- changeMarks = (t) => {
33
- let { model: n, onChange: r } = this.props, { gssLineData: i } = n;
34
- i.selectedTool === "lineA" && t.length > 0 && (t[0].fill = i.lineA.lineType), i.selectedTool === "lineB" && t.length > 1 && (t[1].fill = i.lineB.lineType), t.length === 0 && (i.selectedTool = "lineA", e(n, "gssLineData", i)), e(n, "answers.correctAnswer.marks", t), r(n);
32
+ changeMarks = (e) => {
33
+ let { model: t, onChange: n } = this.props, { gssLineData: r } = t;
34
+ r.selectedTool === "lineA" && e.length > 0 && (e[0].fill = r.lineA.lineType), r.selectedTool === "lineB" && e.length > 1 && (e[1].fill = r.lineB.lineType), e.length === 0 && (r.selectedTool = "lineA", u(t, "gssLineData", r)), u(t, "answers.correctAnswer.marks", e), n(t);
35
35
  };
36
36
  onResetClick = () => {
37
- let { model: t, onChange: n } = this.props, { gssLineData: r, answers: i } = t;
37
+ let { model: e, onChange: t } = this.props, { gssLineData: n, answers: r } = e;
38
38
  this.setState({ dialog: {
39
39
  open: !0,
40
40
  title: "Warning",
41
41
  text: "This will remove all the elements added on the graph and reset graph to original state. Are you sure you want to continue?",
42
42
  onConfirm: () => {
43
- i.correctAnswer.marks = [], r.selectedTool = "lineA", r.lineA.lineType = "Solid", r.lineB && (r.lineB.lineType = "Solid"), e(t, "answers", i), e(t, "gssLineData", r), n(t), this.handleAlertDialog(!1);
43
+ r.correctAnswer.marks = [], n.selectedTool = "lineA", n.lineA.lineType = "Solid", n.lineB && (n.lineB.lineType = "Solid"), u(e, "answers", r), u(e, "gssLineData", n), t(e), this.handleAlertDialog(!1);
44
44
  },
45
45
  onClose: () => this.handleAlertDialog(!1)
46
46
  } });
@@ -57,69 +57,69 @@ var h = o(f)(({ theme: e }) => ({
57
57
  onClose: () => this.handleAlertDialog(!1)
58
58
  } }) : this.changeLine(e, t);
59
59
  };
60
- changeLine = (t, n) => {
61
- let { model: r, onChange: i } = this.props, { answers: a } = r, o = r.gssLineData;
62
- a.correctAnswer.marks = a.correctAnswer.marks.filter((e) => e.type !== "polygon"), Number.parseInt(n) === 1 ? (delete o.lineB, a.correctAnswer.marks.length > 1 && a.correctAnswer.marks.pop(), o.numberOfLines = 1, o.selectedTool = "lineA") : (o.numberOfLines = 2, a.correctAnswer.marks.length > 0 && (o.selectedTool = "lineB"), o.lineB = { lineType: "Solid" }), e(r, "answers", a), e(r, "gssLineData", o), i(r);
60
+ changeLine = (e, t) => {
61
+ let { model: n, onChange: r } = this.props, { answers: i } = n, a = n.gssLineData;
62
+ i.correctAnswer.marks = i.correctAnswer.marks.filter((e) => e.type !== "polygon"), Number.parseInt(t) === 1 ? (delete a.lineB, i.correctAnswer.marks.length > 1 && i.correctAnswer.marks.pop(), a.numberOfLines = 1, a.selectedTool = "lineA") : (a.numberOfLines = 2, i.correctAnswer.marks.length > 0 && (a.selectedTool = "lineB"), a.lineB = { lineType: "Solid" }), u(n, "answers", i), u(n, "gssLineData", a), r(n);
63
63
  };
64
- onSolutionSetSelected = (t) => {
65
- let { model: n, onChange: i } = this.props, { answers: a, gssLineData: o } = n;
66
- for (let e of o.sections) if (r(t, e)) {
67
- let t = {
68
- points: e,
64
+ onSolutionSetSelected = (e) => {
65
+ let { model: t, onChange: r } = this.props, { answers: i, gssLineData: a } = t;
66
+ for (let t of a.sections) if (n(e, t)) {
67
+ let e = {
68
+ points: t,
69
69
  building: !1,
70
70
  type: "polygon",
71
71
  closed: !0,
72
72
  isSolution: !0
73
73
  };
74
- a.correctAnswer.marks = a.correctAnswer.marks.filter((e) => e.type !== "polygon"), a.correctAnswer.marks.push(t);
74
+ i.correctAnswer.marks = i.correctAnswer.marks.filter((e) => e.type !== "polygon"), i.correctAnswer.marks.push(e);
75
75
  break;
76
76
  }
77
- e(n, "answers", a), i(n);
77
+ u(t, "answers", i), r(t);
78
78
  };
79
- onChangeGssLineData = (e, r) => {
79
+ onChangeGssLineData = (n, r) => {
80
80
  let { model: i } = this.props, { answers: a, domain: o, range: s } = i;
81
- if (e.selectedTool === "solutionSet") {
81
+ if (n.selectedTool === "solutionSet") {
82
82
  let i = a.correctAnswer.marks.filter((e) => e.type !== "polygon");
83
- if (!t(e, i)) e.selectedTool = r, this.setState({ dialog: {
83
+ if (!e(n, i)) n.selectedTool = r, this.setState({ dialog: {
84
84
  open: !0,
85
85
  title: "Warning",
86
86
  text: "Please define the line(s) and then select a solution set for the item.",
87
87
  onConfirm: () => this.handleAlertDialog(!1)
88
88
  } });
89
89
  else {
90
- let t = a.correctAnswer.marks.filter((e) => e.type !== "polygon");
91
- e = n(e, t, o, s);
90
+ let e = a.correctAnswer.marks.filter((e) => e.type !== "polygon");
91
+ n = t(n, e, o, s);
92
92
  }
93
- this.handleGssLineDataChange(e, a);
93
+ this.handleGssLineDataChange(n, a);
94
94
  } else {
95
- let t = a.correctAnswer.marks.filter((e) => e.type === "polygon");
96
- r === "solutionSet" && t.length > 0 ? this.setState({ dialog: {
95
+ let e = a.correctAnswer.marks.filter((e) => e.type === "polygon");
96
+ r === "solutionSet" && e.length > 0 ? this.setState({ dialog: {
97
97
  open: !0,
98
98
  title: "Warning",
99
99
  text: "Changing a line after adding a solution set will clear your selected solution set. Click 'Clear Solution Set' to change the line. Otherwise, click 'Cancel'.",
100
100
  onConfirm: () => {
101
- a.correctAnswer.marks = a.correctAnswer.marks.filter((e) => e.type !== "polygon"), this.handleGssLineDataChange(e, a), this.handleAlertDialog(!1);
101
+ a.correctAnswer.marks = a.correctAnswer.marks.filter((e) => e.type !== "polygon"), this.handleGssLineDataChange(n, a), this.handleAlertDialog(!1);
102
102
  },
103
103
  onConfirmText: "CLEAR SOLUTION SET",
104
104
  onClose: () => {
105
- e.selectedTool = r, this.handleGssLineDataChange(e, a), this.handleAlertDialog(!1);
105
+ n.selectedTool = r, this.handleGssLineDataChange(n, a), this.handleAlertDialog(!1);
106
106
  }
107
- } }) : this.handleGssLineDataChange(e, a);
107
+ } }) : this.handleGssLineDataChange(n, a);
108
108
  }
109
109
  };
110
- handleGssLineDataChange = (t, n) => {
111
- let { model: r, onChange: i } = this.props;
112
- n.correctAnswer.marks.length > 0 && n.correctAnswer.marks[0] && t.lineA && (n.correctAnswer.marks[0].fill = t.lineA.lineType), n.correctAnswer.marks.length > 1 && n.correctAnswer.marks[1] && t.lineB && (n.correctAnswer.marks[1].fill = t.lineB.lineType), (t.selectedTool === "lineB" && n.correctAnswer.marks.length === 0 || t.selectedTool === "lineB" && n.correctAnswer.marks[0].building) && (this.setState({ dialog: {
110
+ handleGssLineDataChange = (e, t) => {
111
+ let { model: n, onChange: r } = this.props;
112
+ t.correctAnswer.marks.length > 0 && t.correctAnswer.marks[0] && e.lineA && (t.correctAnswer.marks[0].fill = e.lineA.lineType), t.correctAnswer.marks.length > 1 && t.correctAnswer.marks[1] && e.lineB && (t.correctAnswer.marks[1].fill = e.lineB.lineType), (e.selectedTool === "lineB" && t.correctAnswer.marks.length === 0 || e.selectedTool === "lineB" && t.correctAnswer.marks[0].building) && (this.setState({ dialog: {
113
113
  open: !0,
114
114
  title: "Warning",
115
115
  text: "Please add Line A to the graph before adding Line B",
116
116
  onConfirm: () => this.handleAlertDialog(!1)
117
- } }), t.selectedTool = "lineA"), t.selectedTool === "lineA" && n.correctAnswer.marks.length > 1 && n.correctAnswer.marks[1].building && (this.setState({ dialog: {
117
+ } }), e.selectedTool = "lineA"), e.selectedTool === "lineA" && t.correctAnswer.marks.length > 1 && t.correctAnswer.marks[1].building && (this.setState({ dialog: {
118
118
  open: !0,
119
119
  title: "Warning",
120
120
  text: "Please add Line B to the graph before switching to Line A",
121
121
  onConfirm: () => this.handleAlertDialog(!1)
122
- } }), t.selectedTool = "lineB"), e(r, "gssLineData", t), e(r, "answers", n), i(r);
122
+ } }), e.selectedTool = "lineB"), u(n, "gssLineData", e), u(n, "answers", t), r(n);
123
123
  };
124
124
  updateModel = (e) => {
125
125
  let { model: t, onChange: n } = this.props;
@@ -129,44 +129,44 @@ var h = o(f)(({ theme: e }) => ({
129
129
  });
130
130
  };
131
131
  render() {
132
- let { errors: e, model: t, mathMlOptions: n = {} } = this.props, { dialog: r } = this.state, { gssLineData: a = {
132
+ let { errors: e, model: t, mathMlOptions: n = {} } = this.props, { dialog: i } = this.state, { gssLineData: a = {
133
133
  numberOfLines: 1,
134
134
  selectedTool: "lineA",
135
135
  lineA: { lineType: "Solid" }
136
- }, arrows: o, coordinatesOnHover: p, domain: m, graph: y = {}, labels: b, labelsEnabled: x, range: S, title: C, titleEnabled: w, answers: T } = t || {}, { correctAnswerErrors: E = "" } = e || {};
137
- return /* @__PURE__ */ l("div", { children: [
138
- /* @__PURE__ */ c(f, {
136
+ }, arrows: u, coordinatesOnHover: p, domain: m, graph: y = {}, labels: b, labelsEnabled: x, range: S, title: C, titleEnabled: w, answers: T } = t || {}, { correctAnswerErrors: E = "" } = e || {};
137
+ return /* @__PURE__ */ c("div", { children: [
138
+ /* @__PURE__ */ s(f, {
139
139
  component: "div",
140
140
  variant: "h6",
141
141
  children: "Define Line Type(s) and Correct Response"
142
142
  }),
143
- /* @__PURE__ */ c(h, {
143
+ /* @__PURE__ */ s(h, {
144
144
  component: "div",
145
145
  variant: "body1",
146
146
  children: "Use this interface to choose how many lines students will be able to draw, and to define the correct answer."
147
147
  }),
148
- /* @__PURE__ */ c(h, {
148
+ /* @__PURE__ */ s(h, {
149
149
  component: "div",
150
150
  variant: "body1",
151
151
  children: "Choose Number of Lines"
152
152
  }),
153
- /* @__PURE__ */ l(d, {
153
+ /* @__PURE__ */ c(d, {
154
154
  name: "numberOfLines",
155
155
  value: a.numberOfLines,
156
156
  onChange: this.changeNumberOfLines,
157
- children: [/* @__PURE__ */ c(g, {
157
+ children: [/* @__PURE__ */ s(g, {
158
158
  value: "1",
159
- control: /* @__PURE__ */ c(_, { checked: a.numberOfLines === 1 }),
159
+ control: /* @__PURE__ */ s(_, { checked: a.numberOfLines === 1 }),
160
160
  label: "One"
161
- }), /* @__PURE__ */ c(g, {
161
+ }), /* @__PURE__ */ s(g, {
162
162
  value: "2",
163
- control: /* @__PURE__ */ c(_, { checked: a.numberOfLines === 2 }),
163
+ control: /* @__PURE__ */ s(_, { checked: a.numberOfLines === 2 }),
164
164
  label: "Two"
165
165
  })]
166
166
  }),
167
- /* @__PURE__ */ l(i.Fragment, { children: [/* @__PURE__ */ c(s, {
167
+ /* @__PURE__ */ c(r.Fragment, { children: [/* @__PURE__ */ s(o, {
168
168
  style: E.correctAnswer && { border: "2px solid red" },
169
- axesSettings: { includeArrows: o },
169
+ axesSettings: { includeArrows: u },
170
170
  backgroundMarks: [],
171
171
  coordinatesOnHover: p,
172
172
  disabledLabels: !0,
@@ -190,14 +190,14 @@ var h = o(f)(({ theme: e }) => ({
190
190
  onSolutionSetSelected: this.onSolutionSetSelected,
191
191
  toolbarTools: ["line", "polygon"],
192
192
  mathMlOptions: n
193
- }), E.correctAnswer && /* @__PURE__ */ c(v, { children: E.correctAnswer })] }),
194
- /* @__PURE__ */ c(u, {
195
- open: r.open,
196
- title: r.title,
197
- text: r.text,
198
- onClose: r.onClose,
199
- onConfirm: r.onConfirm,
200
- onConfirmText: r.onConfirmText ? r.onConfirmText : "OK"
193
+ }), E.correctAnswer && /* @__PURE__ */ s(v, { children: E.correctAnswer })] }),
194
+ /* @__PURE__ */ s(l, {
195
+ open: i.open,
196
+ title: i.title,
197
+ text: i.text,
198
+ onClose: i.onClose,
199
+ onConfirm: i.onConfirm,
200
+ onConfirmText: i.onConfirmText ? i.onConfirmText : "OK"
201
201
  })
202
202
  ] });
203
203
  }
@@ -1,57 +1,56 @@
1
- import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js";
2
- import t from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js";
3
- import { applyConstraints as n, filterPlotableMarks as r, getGridValues as i, getLabelValues as a } from "./utils.js";
4
- import * as o from "react";
5
- import s from "prop-types";
6
- import { styled as c } from "@mui/material/styles";
7
- import { GraphContainer as l, GridSetup as u } from "@pie-lib/graphing-solution-set";
8
- import { jsx as d, jsxs as f } from "react/jsx-runtime";
9
- import { AlertDialog as p } from "@pie-lib/config-ui";
1
+ import { applyConstraints as e, filterPlotableMarks as t, getGridValues as n, getLabelValues as r } from "./utils.js";
2
+ import * as i from "react";
3
+ import a from "prop-types";
4
+ import { styled as o } from "@mui/material/styles";
5
+ import { GraphContainer as s, GridSetup as c } from "@pie-lib/graphing-solution-set";
6
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
7
+ import { AlertDialog as d } from "@pie-lib/config-ui";
8
+ import { cloneDeep as f, isEqual as p } from "@pie-element/shared-lodash";
10
9
  import { MenuItem as m, OutlinedInput as h, Select as g, Typography as _ } from "@mui/material";
11
10
  //#region src/author/graphing-config.tsx
12
- var v = c("div")(({ theme: e }) => ({
11
+ var v = o("div")(({ theme: e }) => ({
13
12
  display: "flex",
14
13
  flexWrap: "wrap",
15
14
  marginBottom: e.spacing(2.5)
16
- })), y = c("div")(({ theme: e }) => ({
15
+ })), y = o("div")(({ theme: e }) => ({
17
16
  display: "flex",
18
17
  flexDirection: "column",
19
18
  marginRight: e.spacing(3),
20
19
  marginBottom: e.spacing(2.5)
21
- })), b = c("div")({
20
+ })), b = o("div")({
22
21
  display: "flex",
23
22
  flexDirection: "column"
24
- }), x = c(_)(({ theme: e }) => ({
23
+ }), x = o(_)(({ theme: e }) => ({
25
24
  marginTop: e.spacing(1.5),
26
25
  marginBottom: e.spacing(1)
27
- })), S = c("div")(({ theme: e }) => ({
26
+ })), S = o("div")(({ theme: e }) => ({
28
27
  display: "flex",
29
28
  flexWrap: "wrap",
30
29
  alignItems: "center",
31
30
  width: "100%",
32
31
  marginBottom: e.spacing(2.5)
33
- })), C = c(_)(({ theme: e }) => ({ padding: `0 ${e.spacing(1)}` })), w = c(g)({ flex: "1" }), T = class extends o.Component {
32
+ })), C = o(_)(({ theme: e }) => ({ padding: `0 ${e.spacing(1)}` })), w = o(g)({ flex: "1" }), T = class extends i.Component {
34
33
  static propTypes = {
35
- availableTools: s.array,
36
- authoring: s.object,
37
- dimensionsEnabled: s.bool,
38
- graphDimensions: s.object,
39
- gridConfigurations: s.array,
40
- labelsPlaceholders: s.object,
41
- model: s.object.isRequired,
42
- onChange: s.func.isRequired,
43
- showLabels: s.bool,
44
- showTitle: s.bool,
45
- titlePlaceholder: s.string
34
+ availableTools: a.array,
35
+ authoring: a.object,
36
+ dimensionsEnabled: a.bool,
37
+ graphDimensions: a.object,
38
+ gridConfigurations: a.array,
39
+ labelsPlaceholders: a.object,
40
+ model: a.object.isRequired,
41
+ onChange: a.func.isRequired,
42
+ showLabels: a.bool,
43
+ showTitle: a.bool,
44
+ titlePlaceholder: a.string
46
45
  };
47
46
  constructor(e) {
48
47
  super(e);
49
- let { domain: t, range: n, graph: r } = e.model || {}, o = {
50
- domain: i(t, r.width, !0),
51
- range: i(n, r.height, !0)
48
+ let { domain: t, range: i, graph: a } = e.model || {}, o = {
49
+ domain: n(t, a.width, !0),
50
+ range: n(i, a.height, !0)
52
51
  }, s = {
53
- domain: a(t.step),
54
- range: a(n.step)
52
+ domain: r(t.step),
53
+ range: r(i.step)
55
54
  };
56
55
  this.state = {
57
56
  gridValues: o,
@@ -59,7 +58,7 @@ var v = c("div")(({ theme: e }) => ({
59
58
  showPixelGuides: !1,
60
59
  dialog: { isOpened: !1 },
61
60
  domain: { ...t },
62
- range: { ...n }
61
+ range: { ...i }
63
62
  };
64
63
  }
65
64
  changeLabels = (e) => {
@@ -76,46 +75,46 @@ var v = c("div")(({ theme: e }) => ({
76
75
  title: e
77
76
  });
78
77
  };
79
- onConfigChange = (i, a) => {
80
- let { model: o, onChange: s } = this.props, { defaultGridConfiguration: c = 0 } = o, { gridValues: l, labelValues: u, domain: d, range: f } = this.state, p = {
81
- ...o,
82
- ...i
83
- }, { answers: m, domain: h, includeAxes: g = !0, graph: _, range: v, standardGrid: y } = p, b = {
78
+ onConfigChange = (n, r) => {
79
+ let { model: i, onChange: a } = this.props, { defaultGridConfiguration: o = 0 } = i, { gridValues: s, labelValues: c, domain: l, range: u } = this.state, d = {
80
+ ...i,
81
+ ...n
82
+ }, { answers: m, domain: h, includeAxes: g = !0, graph: _, range: v, standardGrid: y } = d, b = {
84
83
  domain: [],
85
84
  range: []
86
85
  }, x = {
87
86
  domain: [],
88
87
  range: []
89
- }, S = a >= 0 ? a : c;
88
+ }, S = r >= 0 ? r : o;
90
89
  if (g) {
91
- let e = n(h, _.width, l.domain, u.domain);
92
- b.domain = e.gridValues || [], x.domain = e.labelValues || [];
90
+ let t = e(h, _.width, s.domain, c.domain);
91
+ b.domain = t.gridValues || [], x.domain = t.labelValues || [];
93
92
  }
94
93
  if (y) b.range = b.domain, x.range = x.domain, v.step = h.step, v.labelStep = h.labelStep;
95
94
  else if (g) {
96
- let e = n(v, _.height, l.range, u.range);
97
- b.range = e.gridValues || [], x.range = e.labelValues || [];
95
+ let t = e(v, _.height, s.range, c.range);
96
+ b.range = t.gridValues || [], x.range = t.labelValues || [];
98
97
  }
99
- let C = e(m);
98
+ let C = f(m);
100
99
  C.correctAnswer.marks = m.correctAnswer.marks.filter((e) => e.type !== "polygon");
101
- let w = r(h, v, C);
102
- if (!t(C, w)) {
100
+ let w = t(h, v, C);
101
+ if (!p(C, w)) {
103
102
  this.setState({ dialog: {
104
103
  isOpened: !0,
105
- onClose: () => this.setState({ dialog: { isOpened: !1 } }, s({
106
- ...o,
107
- domain: d,
108
- range: f
104
+ onClose: () => this.setState({ dialog: { isOpened: !1 } }, a({
105
+ ...i,
106
+ domain: l,
107
+ range: u
109
108
  })),
110
109
  onConfirm: () => {
111
- p.gssLineData.sections = [], p.gssLineData.selectedTool = "lineA", this.setState({
110
+ d.gssLineData.sections = [], d.gssLineData.selectedTool = "lineA", this.setState({
112
111
  gridValues: b,
113
112
  labelValues: x,
114
113
  dialog: { isOpened: !1 },
115
114
  domain: { ...h },
116
115
  range: { ...v }
117
- }, s({
118
- ...p,
116
+ }, a({
117
+ ...d,
119
118
  answers: w,
120
119
  defaultGridConfiguration: S
121
120
  }));
@@ -128,8 +127,8 @@ var v = c("div")(({ theme: e }) => ({
128
127
  labelValues: x,
129
128
  domain: { ...h },
130
129
  range: { ...v }
131
- }), s({
132
- ...p,
130
+ }), a({
131
+ ...d,
133
132
  defaultGridConfiguration: S
134
133
  });
135
134
  };
@@ -142,7 +141,7 @@ var v = c("div")(({ theme: e }) => ({
142
141
  this.onConfigChange(t?.[n] || {}, n);
143
142
  };
144
143
  render() {
145
- let { authoring: e = {}, gridConfigurations: t = [], graphDimensions: n = {}, labelsPlaceholders: r, model: i, showLabels: a, dimensionsEnabled: o, showTitle: s, titlePlaceholder: c, mathMlOptions: g = {} } = this.props, { arrows: T, coordinatesOnHover: E, defaultGridConfiguration: D, domain: O, labels: k, range: A, standardGrid: j, title: M } = i || {}, N = (i || {}).graph || {}, { min: P, max: F, step: I } = n || {}, { dialog: L = {}, gridValues: R, labelValues: z, showPixelGuides: B } = this.state, V = {
144
+ let { authoring: e = {}, gridConfigurations: t = [], graphDimensions: n = {}, labelsPlaceholders: r, model: i, showLabels: a, dimensionsEnabled: o, showTitle: f, titlePlaceholder: p, mathMlOptions: g = {} } = this.props, { arrows: T, coordinatesOnHover: E, defaultGridConfiguration: D, domain: O, labels: k, range: A, standardGrid: j, title: M } = i || {}, N = (i || {}).graph || {}, { min: P, max: F, step: I } = n || {}, { dialog: L = {}, gridValues: R, labelValues: z, showPixelGuides: B } = this.state, V = {
146
145
  min: Math.max(150, P),
147
146
  max: Math.min(800, F),
148
147
  step: I >= 1 ? Math.min(200, I) : 20
@@ -156,13 +155,13 @@ var v = c("div")(({ theme: e }) => ({
156
155
  standardGridEnabled: e.standardGridEnabled,
157
156
  step: e.step
158
157
  }, U = e.enabled && Object.values(H).some((e) => typeof e == "object" ? e.enabled : e);
159
- return /* @__PURE__ */ f(v, { children: [
160
- /* @__PURE__ */ f(y, { children: [t && t.length ? /* @__PURE__ */ f(S, { children: [/* @__PURE__ */ d(C, {
158
+ return /* @__PURE__ */ u(v, { children: [
159
+ /* @__PURE__ */ u(y, { children: [t && t.length ? /* @__PURE__ */ u(S, { children: [/* @__PURE__ */ l(C, {
161
160
  component: "div",
162
161
  variant: "h6",
163
162
  children: "Grid Configuration"
164
- }), /* @__PURE__ */ d(w, {
165
- input: /* @__PURE__ */ d(h, { labelWidth: 10 }),
163
+ }), /* @__PURE__ */ l(w, {
164
+ input: /* @__PURE__ */ l(h, { labelWidth: 10 }),
166
165
  displayEmpty: !0,
167
166
  onChange: this.changeGridConfiguration,
168
167
  value: D,
@@ -170,11 +169,11 @@ var v = c("div")(({ theme: e }) => ({
170
169
  enter: 225,
171
170
  exit: 195
172
171
  } },
173
- children: (t || []).map((e, t) => /* @__PURE__ */ d(m, {
172
+ children: (t || []).map((e, t) => /* @__PURE__ */ l(m, {
174
173
  value: t,
175
174
  children: e.label
176
175
  }, t))
177
- })] }) : null, U && /* @__PURE__ */ d(u, {
176
+ })] }) : null, U && /* @__PURE__ */ l(c, {
178
177
  displayedFields: H,
179
178
  domain: O,
180
179
  gridValues: R,
@@ -187,18 +186,18 @@ var v = c("div")(({ theme: e }) => ({
187
186
  onChange: this.onConfigChange,
188
187
  onChangeView: this.onChangeView
189
188
  })] }),
190
- /* @__PURE__ */ f(b, { children: [
191
- /* @__PURE__ */ d(_, {
189
+ /* @__PURE__ */ u(b, { children: [
190
+ /* @__PURE__ */ l(_, {
192
191
  component: "div",
193
192
  variant: "h6",
194
193
  children: "Define Graph Attributes"
195
194
  }),
196
- /* @__PURE__ */ d(x, {
195
+ /* @__PURE__ */ l(x, {
197
196
  component: "div",
198
197
  variant: "body1",
199
198
  children: "Use this interface to add/edit a title and/or labels"
200
199
  }),
201
- /* @__PURE__ */ d(l, {
200
+ /* @__PURE__ */ l(s, {
202
201
  axesSettings: { includeArrows: T },
203
202
  backgroundMarks: [],
204
203
  coordinatesOnHover: E,
@@ -213,18 +212,18 @@ var v = c("div")(({ theme: e }) => ({
213
212
  range: A,
214
213
  showLabels: a,
215
214
  showPixelGuides: B,
216
- showTitle: s,
215
+ showTitle: f,
217
216
  size: {
218
217
  width: N.width,
219
218
  height: N.height
220
219
  },
221
220
  title: M,
222
- titlePlaceholder: c,
221
+ titlePlaceholder: p,
223
222
  disableToolbar: !0,
224
223
  mathMlOptions: g
225
224
  }, "graphing-config")
226
225
  ] }, "graph"),
227
- /* @__PURE__ */ d(p, {
226
+ /* @__PURE__ */ l(d, {
228
227
  open: L.isOpened,
229
228
  title: "Warning",
230
229
  text: "This change would make it impossible for students to plot one or more graph objects in the current correct answers. If you proceed, all such graph objects will be removed from the correct answers.",
@@ -1,4 +1,4 @@
1
- import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js";
1
+ import { isEqual as e } from "@pie-element/shared-lodash";
2
2
  //#region src/author/utils.ts
3
3
  var t = [
4
4
  .01,