@pie-element/graphing-solution-set 6.1.1 → 6.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 (88) hide show
  1. package/configure.js +2 -0
  2. package/controller.js +1 -0
  3. package/dist/author/configure.d.ts +26 -0
  4. package/dist/author/configure.js +190 -0
  5. package/dist/author/correct-response.d.ts +33 -0
  6. package/dist/author/correct-response.js +206 -0
  7. package/dist/author/defaults.d.ts +238 -0
  8. package/dist/author/defaults.js +339 -0
  9. package/dist/author/graphing-config.d.ts +33 -0
  10. package/dist/author/graphing-config.js +237 -0
  11. package/dist/author/index.d.ts +62 -0
  12. package/dist/author/index.js +87 -0
  13. package/dist/author/utils.d.ts +46 -0
  14. package/dist/author/utils.js +474 -0
  15. package/dist/browser/author/index.js +1942 -0
  16. package/dist/browser/author/index.js.map +1 -0
  17. package/dist/browser/browser-pUycHh7Y.js +348 -0
  18. package/dist/browser/browser-pUycHh7Y.js.map +1 -0
  19. package/dist/browser/controller/index.js +193 -0
  20. package/dist/browser/controller/index.js.map +1 -0
  21. package/dist/browser/delivery/index.js +782 -0
  22. package/dist/browser/delivery/index.js.map +1 -0
  23. package/dist/browser/dist-BxTk7Laj.js +57671 -0
  24. package/dist/browser/dist-BxTk7Laj.js.map +1 -0
  25. package/dist/browser/graphing-solution-set.css +2 -0
  26. package/dist/controller/defaults.d.ts +64 -0
  27. package/dist/controller/defaults.js +54 -0
  28. package/dist/controller/index.d.ts +24 -0
  29. package/dist/controller/index.js +110 -0
  30. package/dist/controller/utils.d.ts +20 -0
  31. package/dist/controller/utils.js +39 -0
  32. package/dist/delivery/index.d.ts +22 -0
  33. package/dist/delivery/index.js +62 -0
  34. package/dist/delivery/main.d.ts +31 -0
  35. package/dist/delivery/main.js +198 -0
  36. package/dist/delivery/utils.d.ts +12 -0
  37. package/dist/delivery/utils.js +220 -0
  38. package/dist/graphing-solution-set.css +2 -0
  39. package/dist/index.d.ts +1 -0
  40. package/dist/index.iife.d.ts +8 -0
  41. package/dist/index.iife.js +405 -0
  42. package/dist/index.js +2 -0
  43. package/dist/runtime-support.d.ts +12 -0
  44. package/dist/runtime-support.js +12 -0
  45. package/package.json +86 -23
  46. package/CHANGELOG.json +0 -1
  47. package/CHANGELOG.md +0 -850
  48. package/LICENSE.md +0 -5
  49. package/README.md +0 -20
  50. package/configure/CHANGELOG.json +0 -1
  51. package/configure/CHANGELOG.md +0 -810
  52. package/configure/lib/configure.js +0 -312
  53. package/configure/lib/configure.js.map +0 -1
  54. package/configure/lib/correct-response.js +0 -435
  55. package/configure/lib/correct-response.js.map +0 -1
  56. package/configure/lib/defaults.js +0 -357
  57. package/configure/lib/defaults.js.map +0 -1
  58. package/configure/lib/graphing-config.js +0 -408
  59. package/configure/lib/graphing-config.js.map +0 -1
  60. package/configure/lib/index.js +0 -163
  61. package/configure/lib/index.js.map +0 -1
  62. package/configure/lib/utils.js +0 -630
  63. package/configure/lib/utils.js.map +0 -1
  64. package/configure/package.json +0 -29
  65. package/controller/CHANGELOG.json +0 -1
  66. package/controller/CHANGELOG.md +0 -675
  67. package/controller/lib/defaults.js +0 -69
  68. package/controller/lib/defaults.js.map +0 -1
  69. package/controller/lib/index.js +0 -351
  70. package/controller/lib/index.js.map +0 -1
  71. package/controller/lib/utils.js +0 -212
  72. package/controller/lib/utils.js.map +0 -1
  73. package/controller/package.json +0 -22
  74. package/demo-gss.gif +0 -0
  75. package/docs/config-schema.json +0 -1560
  76. package/docs/config-schema.json.md +0 -1114
  77. package/docs/demo/config.js +0 -8
  78. package/docs/demo/generate.js +0 -54
  79. package/docs/demo/index.html +0 -1
  80. package/docs/demo/session.js +0 -6
  81. package/docs/pie-schema.json +0 -1800
  82. package/docs/pie-schema.json.md +0 -952
  83. package/lib/index.js +0 -164
  84. package/lib/index.js.map +0 -1
  85. package/lib/main.js +0 -355
  86. package/lib/main.js.map +0 -1
  87. package/lib/utils.js +0 -515
  88. package/lib/utils.js.map +0 -1
@@ -1,312 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = exports.Configure = void 0;
8
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _react = _interopRequireDefault(require("react"));
10
- var _styles = require("@mui/material/styles");
11
- var _configUi = require("@pie-lib/config-ui");
12
- var _propTypes = _interopRequireDefault(require("prop-types"));
13
- var _debug = _interopRequireDefault(require("debug"));
14
- var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
15
- var _editableHtmlTipTap = _interopRequireDefault(require("@pie-lib/editable-html-tip-tap"));
16
- var _graphingConfig = _interopRequireDefault(require("./graphing-config"));
17
- var _correctResponse = _interopRequireDefault(require("./correct-response"));
18
- const {
19
- Panel,
20
- toggle,
21
- radio,
22
- checkboxes,
23
- textField,
24
- dropdown
25
- } = _configUi.settings;
26
- const log = (0, _debug.default)('@pie-element:graphing-solution-set:configure');
27
- const StyledInputContainer = (0, _styles.styled)(_configUi.InputContainer)(({
28
- theme
29
- }) => ({
30
- width: '100%',
31
- paddingTop: theme.spacing(2),
32
- marginBottom: theme.spacing(2),
33
- marginTop: theme.spacing(2)
34
- }));
35
- const Description = (0, _styles.styled)(_Typography.default)(({
36
- theme
37
- }) => ({
38
- marginBottom: theme.spacing(2.5)
39
- }));
40
- class Configure extends _react.default.Component {
41
- constructor(...args) {
42
- super(...args);
43
- /*
44
- * Triggered when the rationale is changed
45
- * @param {string} rationale - The new rationale
46
- * */
47
- (0, _defineProperty2.default)(this, "onRationaleChange", rationale => {
48
- const {
49
- onModelChanged,
50
- model
51
- } = this.props;
52
- onModelChanged({
53
- ...model,
54
- rationale
55
- });
56
- });
57
- /*
58
- * Triggered when the prompt is changed
59
- * @param {string} prompt - The new prompt
60
- * */
61
- (0, _defineProperty2.default)(this, "onPromptChange", prompt => {
62
- const {
63
- onModelChanged,
64
- model
65
- } = this.props;
66
- onModelChanged({
67
- ...model,
68
- prompt
69
- });
70
- });
71
- /*
72
- * Triggered when the teacher instructions are changed
73
- * @param {string} teacherInstructions - The new teacher instructions
74
- * */
75
- (0, _defineProperty2.default)(this, "onTeacherInstructionsChange", teacherInstructions => {
76
- const {
77
- onModelChanged,
78
- model
79
- } = this.props;
80
- onModelChanged({
81
- ...model,
82
- teacherInstructions
83
- });
84
- });
85
- }
86
- /*
87
- * Triggered when configure component is mounted
88
- * */
89
- componentDidMount() {
90
- const {
91
- configuration,
92
- onModelChanged,
93
- model
94
- } = this.props;
95
- const {
96
- title,
97
- graphDimensions
98
- } = configuration || {};
99
- let {
100
- arrows,
101
- titleEnabled: showTitle,
102
- dimensionsEnabled: showDimensions
103
- } = model || {};
104
- // This is used for offering support for old models which have the property arrows: boolean
105
- // Same thing is set in the controller: packages/graphing/controller/src/index.js - model
106
- if (typeof arrows === 'boolean') {
107
- if (arrows) {
108
- arrows = {
109
- left: true,
110
- right: true,
111
- up: true,
112
- down: true
113
- };
114
- } else {
115
- arrows = {
116
- left: false,
117
- right: false,
118
- up: false,
119
- down: false
120
- };
121
- }
122
- }
123
- const titleEnabled = showTitle === undefined || showTitle === null ? title.enabled : showTitle;
124
- const dimensionsEnabled = showDimensions === undefined || showDimensions === null ? graphDimensions.enabled : showDimensions;
125
- onModelChanged && onModelChanged({
126
- ...model,
127
- arrows,
128
- titleEnabled,
129
- dimensionsEnabled
130
- });
131
- }
132
- /*
133
- * Render the component
134
- * */
135
- render() {
136
- const {
137
- model,
138
- configuration,
139
- onConfigurationChanged,
140
- onModelChanged,
141
- imageSupport,
142
- uploadSoundSupport
143
- } = this.props;
144
- const {
145
- arrows = {},
146
- authoring = {},
147
- coordinatesOnHover = {},
148
- contentDimensions = {},
149
- gridConfigurations = [],
150
- graphDimensions = {},
151
- instruction = {},
152
- labels = {},
153
- padding = {},
154
- prompt = {},
155
- rationale = {},
156
- scoringType = {},
157
- settingsPanelDisabled,
158
- spellCheck = {},
159
- studentInstructions = {},
160
- teacherInstructions = {},
161
- title = {},
162
- maxImageWidth = {},
163
- maxImageHeight = {},
164
- withRubric = {},
165
- language = {},
166
- languageChoices = {},
167
- mathMlOptions = {}
168
- } = configuration || {};
169
- const {
170
- errors = {},
171
- extraCSSRules,
172
- labelsEnabled,
173
- dimensionsEnabled,
174
- promptEnabled,
175
- rationaleEnabled,
176
- spellCheckEnabled,
177
- teacherInstructionsEnabled,
178
- titleEnabled
179
- } = model || {};
180
- const defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;
181
- const defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;
182
- const labelsPlaceholders = {
183
- top: labels.top,
184
- right: labels.right,
185
- bottom: labels.bottom,
186
- left: labels.left
187
- };
188
- const panelItemType = {
189
- arrows: arrows.settings && checkboxes(arrows.label, {
190
- left: arrows.left,
191
- right: arrows.right,
192
- up: arrows.up,
193
- down: arrows.down
194
- }),
195
- titleEnabled: title.settings && toggle(title.label),
196
- padding: padding.settings && toggle(padding.label),
197
- labelsEnabled: labels.settings && toggle(labels.label),
198
- 'language.enabled': language.settings && toggle(language.label, true),
199
- language: language.settings && language.enabled && dropdown(languageChoices.label, languageChoices.options),
200
- dimensionsEnabled: graphDimensions.settings && toggle(graphDimensions.label),
201
- coordinatesOnHover: coordinatesOnHover.settings && toggle(coordinatesOnHover.label)
202
- };
203
- const panelProperties = {
204
- 'authoring.enabled': authoring.settings && toggle(authoring.label, true),
205
- teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),
206
- studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),
207
- promptEnabled: prompt.settings && toggle(prompt.label),
208
- rationaleEnabled: rationale.settings && toggle(rationale.label),
209
- spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),
210
- scoringType: scoringType.settings && radio(scoringType.label, ['dichotomous', 'partial scoring']),
211
- rubricEnabled: withRubric?.settings && toggle(withRubric?.label),
212
- instruction: instruction.settings && textField(instruction.label)
213
- };
214
- return /*#__PURE__*/_react.default.createElement(_configUi.layout.ConfigLayout, {
215
- extraCSSRules: extraCSSRules,
216
- dimensions: contentDimensions,
217
- hideSettings: settingsPanelDisabled,
218
- settings: /*#__PURE__*/_react.default.createElement(Panel, {
219
- model: model,
220
- configuration: configuration,
221
- onChangeModel: onModelChanged,
222
- onChangeConfiguration: onConfigurationChanged,
223
- groups: {
224
- Settings: panelItemType,
225
- Properties: panelProperties
226
- }
227
- })
228
- }, /*#__PURE__*/_react.default.createElement(Description, {
229
- component: "div",
230
- variant: "body1"
231
- }, instruction?.label || ''), teacherInstructionsEnabled && /*#__PURE__*/_react.default.createElement(StyledInputContainer, {
232
- label: teacherInstructions.label
233
- }, /*#__PURE__*/_react.default.createElement(_editableHtmlTipTap.default, {
234
- markup: model.teacherInstructions || '',
235
- onChange: this.onTeacherInstructionsChange,
236
- imageSupport: imageSupport,
237
- nonEmpty: false,
238
- spellCheck: spellCheckEnabled,
239
- maxImageWidth: maxImageWidth && maxImageWidth.teacherInstructions || defaultImageMaxWidth,
240
- maxImageHeight: maxImageHeight && maxImageHeight.teacherInstructions || defaultImageMaxHeight,
241
- uploadSoundSupport: uploadSoundSupport,
242
- languageCharactersProps: [{
243
- language: 'spanish'
244
- }, {
245
- language: 'special'
246
- }],
247
- mathMlOptions: mathMlOptions
248
- })), promptEnabled && /*#__PURE__*/_react.default.createElement(StyledInputContainer, {
249
- label: prompt.label
250
- }, /*#__PURE__*/_react.default.createElement(_editableHtmlTipTap.default, {
251
- markup: model.prompt,
252
- onChange: this.onPromptChange,
253
- imageSupport: imageSupport,
254
- nonEmpty: false,
255
- spellCheck: spellCheckEnabled,
256
- disableUnderline: true,
257
- maxImageWidth: defaultImageMaxWidth,
258
- maxImageHeight: defaultImageMaxHeight,
259
- uploadSoundSupport: uploadSoundSupport,
260
- languageCharactersProps: [{
261
- language: 'spanish'
262
- }, {
263
- language: 'special'
264
- }],
265
- mathMlOptions: mathMlOptions
266
- })), /*#__PURE__*/_react.default.createElement(_graphingConfig.default, {
267
- authoring: authoring,
268
- gridConfigurations: gridConfigurations,
269
- graphDimensions: graphDimensions,
270
- labelsPlaceholders: labelsPlaceholders,
271
- model: model,
272
- showLabels: labelsEnabled,
273
- dimensionsEnabled: dimensionsEnabled,
274
- showTitle: titleEnabled,
275
- titlePlaceholder: title.placeholder,
276
- onChange: this.props.onModelChanged,
277
- mathMlOptions: mathMlOptions
278
- }), /*#__PURE__*/_react.default.createElement(_correctResponse.default, {
279
- errors: errors,
280
- model: model,
281
- onChange: this.props.onModelChanged,
282
- mathMlOptions: mathMlOptions
283
- }), rationaleEnabled && /*#__PURE__*/_react.default.createElement(StyledInputContainer, {
284
- label: rationale.label || 'Rationale'
285
- }, /*#__PURE__*/_react.default.createElement(_editableHtmlTipTap.default, {
286
- markup: model.rationale || '',
287
- onChange: this.onRationaleChange,
288
- imageSupport: imageSupport,
289
- spellCheck: spellCheckEnabled,
290
- maxImageWidth: maxImageWidth && maxImageWidth.rationale || defaultImageMaxWidth,
291
- maxImageHeight: maxImageHeight && maxImageHeight.rationale || defaultImageMaxHeight,
292
- uploadSoundSupport: uploadSoundSupport,
293
- languageCharactersProps: [{
294
- language: 'spanish'
295
- }, {
296
- language: 'special'
297
- }],
298
- mathMlOptions: mathMlOptions
299
- })));
300
- }
301
- }
302
- exports.Configure = Configure;
303
- (0, _defineProperty2.default)(Configure, "propTypes", {
304
- onModelChanged: _propTypes.default.func,
305
- onConfigurationChanged: _propTypes.default.func,
306
- imageSupport: _propTypes.default.object,
307
- uploadSoundSupport: _propTypes.default.object,
308
- model: _propTypes.default.object.isRequired,
309
- configuration: _propTypes.default.object.isRequired
310
- });
311
- var _default = exports.default = Configure;
312
- //# sourceMappingURL=configure.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"configure.js","names":["_react","_interopRequireDefault","require","_styles","_configUi","_propTypes","_debug","_Typography","_editableHtmlTipTap","_graphingConfig","_correctResponse","Panel","toggle","radio","checkboxes","textField","dropdown","settings","log","debug","StyledInputContainer","styled","InputContainer","theme","width","paddingTop","spacing","marginBottom","marginTop","Description","Typography","Configure","React","Component","constructor","args","_defineProperty2","default","rationale","onModelChanged","model","props","prompt","teacherInstructions","componentDidMount","configuration","title","graphDimensions","arrows","titleEnabled","showTitle","dimensionsEnabled","showDimensions","left","right","up","down","undefined","enabled","render","onConfigurationChanged","imageSupport","uploadSoundSupport","authoring","coordinatesOnHover","contentDimensions","gridConfigurations","instruction","labels","padding","scoringType","settingsPanelDisabled","spellCheck","studentInstructions","maxImageWidth","maxImageHeight","withRubric","language","languageChoices","mathMlOptions","errors","extraCSSRules","labelsEnabled","promptEnabled","rationaleEnabled","spellCheckEnabled","teacherInstructionsEnabled","defaultImageMaxWidth","defaultImageMaxHeight","labelsPlaceholders","top","bottom","panelItemType","label","options","panelProperties","studentInstructionsEnabled","rubricEnabled","createElement","layout","ConfigLayout","dimensions","hideSettings","onChangeModel","onChangeConfiguration","groups","Settings","Properties","component","variant","markup","onChange","onTeacherInstructionsChange","nonEmpty","languageCharactersProps","onPromptChange","disableUnderline","showLabels","titlePlaceholder","placeholder","onRationaleChange","exports","PropTypes","func","object","isRequired","_default"],"sources":["../src/configure.jsx"],"sourcesContent":["import React from 'react';\nimport { styled } from '@mui/material/styles';\n\nimport { settings, layout, InputContainer } from '@pie-lib/config-ui';\nimport PropTypes from 'prop-types';\nimport debug from 'debug';\nimport Typography from '@mui/material/Typography';\nimport EditableHtml from '@pie-lib/editable-html-tip-tap';\nimport GraphingConfig from './graphing-config';\nimport CorrectResponse from './correct-response';\n\nconst { Panel, toggle, radio, checkboxes, textField, dropdown } = settings;\nconst log = debug('@pie-element:graphing-solution-set:configure');\n\nconst StyledInputContainer = styled(InputContainer)(({ theme }) => ({\n width: '100%',\n paddingTop: theme.spacing(2),\n marginBottom: theme.spacing(2),\n marginTop: theme.spacing(2),\n}));\n\nconst Description = styled(Typography)(({ theme }) => ({\n marginBottom: theme.spacing(2.5),\n}));\n\nexport class Configure extends React.Component {\n static propTypes = {\n onModelChanged: PropTypes.func,\n onConfigurationChanged: PropTypes.func,\n imageSupport: PropTypes.object,\n uploadSoundSupport: PropTypes.object,\n model: PropTypes.object.isRequired,\n configuration: PropTypes.object.isRequired,\n };\n\n /*\n * Triggered when configure component is mounted\n * */\n componentDidMount() {\n const { configuration, onModelChanged, model } = this.props;\n const { title, graphDimensions } = configuration || {};\n let { arrows, titleEnabled: showTitle, dimensionsEnabled: showDimensions } = model || {};\n // This is used for offering support for old models which have the property arrows: boolean\n // Same thing is set in the controller: packages/graphing/controller/src/index.js - model\n if (typeof arrows === 'boolean') {\n if (arrows) {\n arrows = { left: true, right: true, up: true, down: true };\n } else {\n arrows = { left: false, right: false, up: false, down: false };\n }\n }\n const titleEnabled = showTitle === undefined || showTitle === null ? title.enabled : showTitle;\n const dimensionsEnabled =\n showDimensions === undefined || showDimensions === null ? graphDimensions.enabled : showDimensions;\n onModelChanged && onModelChanged({ ...model, arrows, titleEnabled, dimensionsEnabled });\n }\n\n /*\n * Triggered when the rationale is changed\n * @param {string} rationale - The new rationale\n * */\n onRationaleChange = (rationale) => {\n const { onModelChanged, model } = this.props;\n onModelChanged({ ...model, rationale });\n };\n\n /*\n * Triggered when the prompt is changed\n * @param {string} prompt - The new prompt\n * */\n onPromptChange = (prompt) => {\n const { onModelChanged, model } = this.props;\n onModelChanged({ ...model, prompt });\n };\n\n /*\n * Triggered when the teacher instructions are changed\n * @param {string} teacherInstructions - The new teacher instructions\n * */\n onTeacherInstructionsChange = (teacherInstructions) => {\n const { onModelChanged, model } = this.props;\n onModelChanged({ ...model, teacherInstructions });\n };\n\n /*\n * Render the component\n * */\n render() {\n const { model, configuration, onConfigurationChanged, onModelChanged, imageSupport, uploadSoundSupport } =\n this.props;\n const {\n arrows = {},\n authoring = {},\n coordinatesOnHover = {},\n contentDimensions = {},\n gridConfigurations = [],\n graphDimensions = {},\n instruction = {},\n labels = {},\n padding = {},\n prompt = {},\n rationale = {},\n scoringType = {},\n settingsPanelDisabled,\n spellCheck = {},\n studentInstructions = {},\n teacherInstructions = {},\n title = {},\n maxImageWidth = {},\n maxImageHeight = {},\n withRubric = {},\n language = {},\n languageChoices = {},\n mathMlOptions = {},\n } = configuration || {};\n const {\n errors = {},\n extraCSSRules,\n labelsEnabled,\n dimensionsEnabled,\n promptEnabled,\n rationaleEnabled,\n spellCheckEnabled,\n teacherInstructionsEnabled,\n titleEnabled,\n } = model || {};\n const defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;\n const defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;\n const labelsPlaceholders = {\n top: labels.top,\n right: labels.right,\n bottom: labels.bottom,\n left: labels.left,\n };\n const panelItemType = {\n arrows:\n arrows.settings &&\n checkboxes(arrows.label, {\n left: arrows.left,\n right: arrows.right,\n up: arrows.up,\n down: arrows.down,\n }),\n titleEnabled: title.settings && toggle(title.label),\n padding: padding.settings && toggle(padding.label),\n labelsEnabled: labels.settings && toggle(labels.label),\n 'language.enabled': language.settings && toggle(language.label, true),\n language: language.settings && language.enabled && dropdown(languageChoices.label, languageChoices.options),\n dimensionsEnabled: graphDimensions.settings && toggle(graphDimensions.label),\n coordinatesOnHover: coordinatesOnHover.settings && toggle(coordinatesOnHover.label),\n };\n const panelProperties = {\n 'authoring.enabled': authoring.settings && toggle(authoring.label, true),\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),\n promptEnabled: prompt.settings && toggle(prompt.label),\n rationaleEnabled: rationale.settings && toggle(rationale.label),\n spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),\n scoringType: scoringType.settings && radio(scoringType.label, ['dichotomous', 'partial scoring']),\n rubricEnabled: withRubric?.settings && toggle(withRubric?.label),\n instruction: instruction.settings && textField(instruction.label),\n };\n return (\n <layout.ConfigLayout\n extraCSSRules={extraCSSRules}\n dimensions={contentDimensions}\n hideSettings={settingsPanelDisabled}\n settings={\n <Panel\n model={model}\n configuration={configuration}\n onChangeModel={onModelChanged}\n onChangeConfiguration={onConfigurationChanged}\n groups={{\n Settings: panelItemType,\n Properties: panelProperties,\n }}\n />\n }\n >\n <Description component=\"div\" variant=\"body1\">\n {instruction?.label || ''}\n </Description>\n {teacherInstructionsEnabled && (\n <StyledInputContainer label={teacherInstructions.label}>\n <EditableHtml\n markup={model.teacherInstructions || ''}\n onChange={this.onTeacherInstructionsChange}\n imageSupport={imageSupport}\n nonEmpty={false}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.teacherInstructions) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.teacherInstructions) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n </StyledInputContainer>\n )}\n {promptEnabled && (\n <StyledInputContainer label={prompt.label}>\n <EditableHtml\n markup={model.prompt}\n onChange={this.onPromptChange}\n imageSupport={imageSupport}\n nonEmpty={false}\n spellCheck={spellCheckEnabled}\n disableUnderline\n maxImageWidth={defaultImageMaxWidth}\n maxImageHeight={defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n </StyledInputContainer>\n )}\n <GraphingConfig\n authoring={authoring}\n gridConfigurations={gridConfigurations}\n graphDimensions={graphDimensions}\n labelsPlaceholders={labelsPlaceholders}\n model={model}\n showLabels={labelsEnabled}\n dimensionsEnabled={dimensionsEnabled}\n showTitle={titleEnabled}\n titlePlaceholder={title.placeholder}\n onChange={this.props.onModelChanged}\n mathMlOptions={mathMlOptions}\n />\n <CorrectResponse\n errors={errors}\n model={model}\n onChange={this.props.onModelChanged}\n mathMlOptions={mathMlOptions}\n />\n {rationaleEnabled && (\n <StyledInputContainer label={rationale.label || 'Rationale'}>\n <EditableHtml\n markup={model.rationale || ''}\n onChange={this.onRationaleChange}\n imageSupport={imageSupport}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.rationale) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.rationale) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n </StyledInputContainer>\n )}\n </layout.ConfigLayout>\n );\n }\n}\n\nexport default Configure;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAEA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,MAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,WAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,mBAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,eAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,gBAAA,GAAAT,sBAAA,CAAAC,OAAA;AAEA,MAAM;EAAES,KAAK;EAAEC,MAAM;EAAEC,KAAK;EAAEC,UAAU;EAAEC,SAAS;EAAEC;AAAS,CAAC,GAAGC,kBAAQ;AAC1E,MAAMC,GAAG,GAAG,IAAAC,cAAK,EAAC,8CAA8C,CAAC;AAEjE,MAAMC,oBAAoB,GAAG,IAAAC,cAAM,EAACC,wBAAc,CAAC,CAAC,CAAC;EAAEC;AAAM,CAAC,MAAM;EAClEC,KAAK,EAAE,MAAM;EACbC,UAAU,EAAEF,KAAK,CAACG,OAAO,CAAC,CAAC,CAAC;EAC5BC,YAAY,EAAEJ,KAAK,CAACG,OAAO,CAAC,CAAC,CAAC;EAC9BE,SAAS,EAAEL,KAAK,CAACG,OAAO,CAAC,CAAC;AAC5B,CAAC,CAAC,CAAC;AAEH,MAA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