@pie-element/multiple-choice 5.11.0-print.7 → 5.11.0-ps.11
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.
- package/configure/package.json +3 -3
- package/docs/config-schema.json +16 -0
- package/docs/config-schema.json.md +12 -0
- package/docs/pie-schema.json +6 -0
- package/docs/pie-schema.json.md +4 -0
- package/module/configure.js +63 -85
- package/module/controller.js +678 -375
- package/module/demo.js +14 -54
- package/module/element.js +571 -3144
- package/module/index.html +11 -2
- package/module/manifest.json +3 -3
- package/module/print-demo.js +115 -0
- package/module/print.html +2 -2
- package/module/print.js +576 -3147
- package/package.json +4 -4
package/module/print.js
CHANGED
|
@@ -1,2016 +1,66 @@
|
|
|
1
|
-
import {_dll_prop_types, _dll_react, _dll_material_ui__core_styles,
|
|
2
|
-
import {_dll_pie_lib__math_rendering} from "../../../@pie-lib/math-rendering-module@^1.0.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return React$n.createElement('div', {
|
|
18
|
-
style: style,
|
|
19
|
-
__self: undefined,
|
|
20
|
-
__source: {
|
|
21
|
-
fileName: _jsxFileName$m,
|
|
22
|
-
lineNumber: 18
|
|
23
|
-
}
|
|
24
|
-
}, children);
|
|
25
|
-
};
|
|
26
|
-
Sized.propTypes = {
|
|
27
|
-
size: PropTypes$p.number,
|
|
28
|
-
children: PropTypes$p.oneOfType([PropTypes$p.arrayOf(PropTypes$p.node), PropTypes$p.node]).isRequired
|
|
29
|
-
};
|
|
30
|
-
const React$m = _dll_react;
|
|
31
|
-
const PropTypes$o = _dll_prop_types;
|
|
32
|
-
const _jsxFileName$l = "/home/ede/dev/github/pie-framework/pie-elements/node_modules/@pie-lib/icons/src/icon-root.jsx";
|
|
33
|
-
const IconRoot = ({size, children}) => React$m.createElement(Sized, {
|
|
34
|
-
size: size,
|
|
35
|
-
__self: undefined,
|
|
36
|
-
__source: {
|
|
37
|
-
fileName: _jsxFileName$l,
|
|
38
|
-
lineNumber: 10
|
|
39
|
-
}
|
|
40
|
-
}, React$m.createElement('svg', {
|
|
41
|
-
preserveAspectRatio: "xMinYMin meet",
|
|
42
|
-
version: "1.1",
|
|
43
|
-
x: "0px",
|
|
44
|
-
y: "0px",
|
|
45
|
-
viewBox: "0 0 44 40",
|
|
46
|
-
style: {
|
|
47
|
-
enableBackground: 'new 0 0 44 40'
|
|
48
|
-
},
|
|
49
|
-
__self: undefined,
|
|
50
|
-
__source: {
|
|
51
|
-
fileName: _jsxFileName$l,
|
|
52
|
-
lineNumber: 11
|
|
53
|
-
}
|
|
54
|
-
}, ' ', children));
|
|
55
|
-
IconRoot.propTypes = {
|
|
56
|
-
size: PropTypes$o.oneOf([PropTypes$o.string, PropTypes$o.number]),
|
|
57
|
-
children: PropTypes$o.oneOfType([PropTypes$o.arrayOf(PropTypes$o.node), PropTypes$o.node]).isRequired
|
|
58
|
-
};
|
|
59
|
-
const getStyles = (name, fg, bg) => ({
|
|
60
|
-
bg: {
|
|
61
|
-
fill: `var(--icons-${name}-bg, ${bg})`
|
|
62
|
-
},
|
|
63
|
-
fg: {
|
|
64
|
-
fill: `var(--icons-${name}-fg, ${fg})`
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
({
|
|
68
|
-
className: PropTypes$o.string
|
|
69
|
-
});
|
|
70
|
-
const SquareFeedbackBox = ({className}) => React$m.createElement('polygon', {
|
|
71
|
-
transform: "translate(2, 0)",
|
|
72
|
-
className: className,
|
|
73
|
-
points: "34.1,28.6 34.1,2.2 2,2.2 2,34.3 40.1,34.3",
|
|
74
|
-
__self: undefined,
|
|
75
|
-
__source: {
|
|
76
|
-
fileName: _jsxFileName$l,
|
|
77
|
-
lineNumber: 51
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
SquareFeedbackBox.propTypes = {
|
|
81
|
-
className: PropTypes$o.string
|
|
82
|
-
};
|
|
83
|
-
const RoundFeedbackBox = ({className}) => React$m.createElement('path', {
|
|
84
|
-
transform: "translate(1, 0)",
|
|
85
|
-
className: className,
|
|
86
|
-
d: "M31.2,29.1v-0.3c2.2-2.8,3.6-6.3,3.6-10.1c0-8.9-7.2-16.1-16.1-16.1c-8.8,0.1-16,7.3-16,16.2 s7.2,16.1,16.1,16.1h18.5L31.2,29.1z",
|
|
87
|
-
__self: undefined,
|
|
88
|
-
__source: {
|
|
89
|
-
fileName: _jsxFileName$l,
|
|
90
|
-
lineNumber: 62
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
RoundFeedbackBox.propTypes = {
|
|
94
|
-
className: PropTypes$o.string
|
|
95
|
-
};
|
|
96
|
-
const Circle$1 = ({className}) => React$m.createElement('circle', {
|
|
97
|
-
transform: "translate(-3, 0)",
|
|
98
|
-
className: className,
|
|
99
|
-
cx: "23",
|
|
100
|
-
cy: "20.4",
|
|
101
|
-
r: "16",
|
|
102
|
-
__self: undefined,
|
|
103
|
-
__source: {
|
|
104
|
-
fileName: _jsxFileName$l,
|
|
105
|
-
lineNumber: 73
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
Circle$1.propTypes = {
|
|
109
|
-
className: PropTypes$o.string
|
|
110
|
-
};
|
|
111
|
-
const Square = ({className}) => React$m.createElement('rect', {
|
|
112
|
-
x: "3.6",
|
|
113
|
-
y: "4.1",
|
|
114
|
-
className: className,
|
|
115
|
-
width: "32",
|
|
116
|
-
height: "32",
|
|
117
|
-
__self: undefined,
|
|
118
|
-
__source: {
|
|
119
|
-
fileName: _jsxFileName$l,
|
|
120
|
-
lineNumber: 81
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
Square.propTypes = {
|
|
124
|
-
className: PropTypes$o.string
|
|
125
|
-
};
|
|
126
|
-
const PropTypes$n = _dll_prop_types;
|
|
127
|
-
const React$l = _dll_react;
|
|
128
|
-
const _jsxFileName$k = "/home/ede/dev/github/pie-framework/pie-elements/node_modules/@pie-lib/icons/src/icon-base.jsx";
|
|
129
|
-
var IconBase = (Action, Emoji) => {
|
|
130
|
-
class IconBase extends React$l.Component {
|
|
131
|
-
static __initStatic() {
|
|
132
|
-
this.propTypes = {
|
|
133
|
-
classes: PropTypes$n.object.isRequired,
|
|
134
|
-
size: PropTypes$n.number
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
constructor(props) {
|
|
138
|
-
super(props);
|
|
139
|
-
const {classes, size} = this.props;
|
|
140
|
-
this.icons = {
|
|
141
|
-
feedback: {
|
|
142
|
-
round: {
|
|
143
|
-
check: React$l.createElement(IconRoot, {
|
|
144
|
-
size: size,
|
|
145
|
-
__self: this,
|
|
146
|
-
__source: {
|
|
147
|
-
fileName: _jsxFileName$k,
|
|
148
|
-
lineNumber: 20
|
|
149
|
-
}
|
|
150
|
-
}, React$l.createElement(RoundFeedbackBox, {
|
|
151
|
-
className: classes.bg,
|
|
152
|
-
__self: this,
|
|
153
|
-
__source: {
|
|
154
|
-
fileName: _jsxFileName$k,
|
|
155
|
-
lineNumber: 21
|
|
156
|
-
}
|
|
157
|
-
}), React$l.createElement(Action, {
|
|
158
|
-
className: classes.fg,
|
|
159
|
-
__self: this,
|
|
160
|
-
__source: {
|
|
161
|
-
fileName: _jsxFileName$k,
|
|
162
|
-
lineNumber: 22
|
|
163
|
-
}
|
|
164
|
-
})),
|
|
165
|
-
emoji: React$l.createElement(IconRoot, {
|
|
166
|
-
size: size,
|
|
167
|
-
__self: this,
|
|
168
|
-
__source: {
|
|
169
|
-
fileName: _jsxFileName$k,
|
|
170
|
-
lineNumber: 26
|
|
171
|
-
}
|
|
172
|
-
}, React$l.createElement(RoundFeedbackBox, {
|
|
173
|
-
className: classes.bg,
|
|
174
|
-
__self: this,
|
|
175
|
-
__source: {
|
|
176
|
-
fileName: _jsxFileName$k,
|
|
177
|
-
lineNumber: 27
|
|
178
|
-
}
|
|
179
|
-
}), React$l.createElement(Emoji, {
|
|
180
|
-
className: classes.fg,
|
|
181
|
-
__self: this,
|
|
182
|
-
__source: {
|
|
183
|
-
fileName: _jsxFileName$k,
|
|
184
|
-
lineNumber: 28
|
|
185
|
-
}
|
|
186
|
-
})),
|
|
187
|
-
open: {
|
|
188
|
-
check: React$l.createElement(IconRoot, {
|
|
189
|
-
size: size,
|
|
190
|
-
__self: this,
|
|
191
|
-
__source: {
|
|
192
|
-
fileName: _jsxFileName$k,
|
|
193
|
-
lineNumber: 33
|
|
194
|
-
}
|
|
195
|
-
}, React$l.createElement(Action, {
|
|
196
|
-
className: classes.bg,
|
|
197
|
-
__self: this,
|
|
198
|
-
__source: {
|
|
199
|
-
fileName: _jsxFileName$k,
|
|
200
|
-
lineNumber: 34
|
|
201
|
-
}
|
|
202
|
-
})),
|
|
203
|
-
emoji: React$l.createElement(IconRoot, {
|
|
204
|
-
size: size,
|
|
205
|
-
__self: this,
|
|
206
|
-
__source: {
|
|
207
|
-
fileName: _jsxFileName$k,
|
|
208
|
-
lineNumber: 38
|
|
209
|
-
}
|
|
210
|
-
}, React$l.createElement(Emoji, {
|
|
211
|
-
className: classes.bg,
|
|
212
|
-
__self: this,
|
|
213
|
-
__source: {
|
|
214
|
-
fileName: _jsxFileName$k,
|
|
215
|
-
lineNumber: 39
|
|
216
|
-
}
|
|
217
|
-
}))
|
|
218
|
-
}
|
|
219
|
-
},
|
|
220
|
-
square: {
|
|
221
|
-
check: React$l.createElement(IconRoot, {
|
|
222
|
-
size: size,
|
|
223
|
-
__self: this,
|
|
224
|
-
__source: {
|
|
225
|
-
fileName: _jsxFileName$k,
|
|
226
|
-
lineNumber: 46
|
|
227
|
-
}
|
|
228
|
-
}, React$l.createElement(SquareFeedbackBox, {
|
|
229
|
-
className: classes.bg,
|
|
230
|
-
__self: this,
|
|
231
|
-
__source: {
|
|
232
|
-
fileName: _jsxFileName$k,
|
|
233
|
-
lineNumber: 47
|
|
234
|
-
}
|
|
235
|
-
}), React$l.createElement(Action, {
|
|
236
|
-
className: classes.fg,
|
|
237
|
-
__self: this,
|
|
238
|
-
__source: {
|
|
239
|
-
fileName: _jsxFileName$k,
|
|
240
|
-
lineNumber: 48
|
|
241
|
-
}
|
|
242
|
-
})),
|
|
243
|
-
emoji: React$l.createElement(IconRoot, {
|
|
244
|
-
size: size,
|
|
245
|
-
__self: this,
|
|
246
|
-
__source: {
|
|
247
|
-
fileName: _jsxFileName$k,
|
|
248
|
-
lineNumber: 52
|
|
249
|
-
}
|
|
250
|
-
}, React$l.createElement(SquareFeedbackBox, {
|
|
251
|
-
className: classes.bg,
|
|
252
|
-
__self: this,
|
|
253
|
-
__source: {
|
|
254
|
-
fileName: _jsxFileName$k,
|
|
255
|
-
lineNumber: 53
|
|
256
|
-
}
|
|
257
|
-
}), React$l.createElement(Emoji, {
|
|
258
|
-
className: classes.fg,
|
|
259
|
-
__self: this,
|
|
260
|
-
__source: {
|
|
261
|
-
fileName: _jsxFileName$k,
|
|
262
|
-
lineNumber: 54
|
|
263
|
-
}
|
|
264
|
-
})),
|
|
265
|
-
open: {
|
|
266
|
-
check: React$l.createElement(IconRoot, {
|
|
267
|
-
size: size,
|
|
268
|
-
__self: this,
|
|
269
|
-
__source: {
|
|
270
|
-
fileName: _jsxFileName$k,
|
|
271
|
-
lineNumber: 59
|
|
272
|
-
}
|
|
273
|
-
}, React$l.createElement(Action, {
|
|
274
|
-
className: classes.bg,
|
|
275
|
-
__self: this,
|
|
276
|
-
__source: {
|
|
277
|
-
fileName: _jsxFileName$k,
|
|
278
|
-
lineNumber: 60
|
|
279
|
-
}
|
|
280
|
-
})),
|
|
281
|
-
emoji: React$l.createElement(IconRoot, {
|
|
282
|
-
size: size,
|
|
283
|
-
__self: this,
|
|
284
|
-
__source: {
|
|
285
|
-
fileName: _jsxFileName$k,
|
|
286
|
-
lineNumber: 64
|
|
287
|
-
}
|
|
288
|
-
}, React$l.createElement(Emoji, {
|
|
289
|
-
className: classes.bg,
|
|
290
|
-
__self: this,
|
|
291
|
-
__source: {
|
|
292
|
-
fileName: _jsxFileName$k,
|
|
293
|
-
lineNumber: 65
|
|
294
|
-
}
|
|
295
|
-
}))
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
},
|
|
299
|
-
round: {
|
|
300
|
-
check: React$l.createElement(IconRoot, {
|
|
301
|
-
size: size,
|
|
302
|
-
__self: this,
|
|
303
|
-
__source: {
|
|
304
|
-
fileName: _jsxFileName$k,
|
|
305
|
-
lineNumber: 73
|
|
306
|
-
}
|
|
307
|
-
}, React$l.createElement(Circle$1, {
|
|
308
|
-
className: classes.bg,
|
|
309
|
-
__self: this,
|
|
310
|
-
__source: {
|
|
311
|
-
fileName: _jsxFileName$k,
|
|
312
|
-
lineNumber: 74
|
|
313
|
-
}
|
|
314
|
-
}), React$l.createElement(Action, {
|
|
315
|
-
className: classes.fg,
|
|
316
|
-
__self: this,
|
|
317
|
-
__source: {
|
|
318
|
-
fileName: _jsxFileName$k,
|
|
319
|
-
lineNumber: 75
|
|
320
|
-
}
|
|
321
|
-
})),
|
|
322
|
-
emoji: React$l.createElement(IconRoot, {
|
|
323
|
-
size: size,
|
|
324
|
-
__self: this,
|
|
325
|
-
__source: {
|
|
326
|
-
fileName: _jsxFileName$k,
|
|
327
|
-
lineNumber: 79
|
|
328
|
-
}
|
|
329
|
-
}, React$l.createElement(Circle$1, {
|
|
330
|
-
className: classes.bg,
|
|
331
|
-
__self: this,
|
|
332
|
-
__source: {
|
|
333
|
-
fileName: _jsxFileName$k,
|
|
334
|
-
lineNumber: 80
|
|
335
|
-
}
|
|
336
|
-
}), React$l.createElement(Emoji, {
|
|
337
|
-
className: classes.fg,
|
|
338
|
-
__self: this,
|
|
339
|
-
__source: {
|
|
340
|
-
fileName: _jsxFileName$k,
|
|
341
|
-
lineNumber: 81
|
|
342
|
-
}
|
|
343
|
-
})),
|
|
344
|
-
open: {
|
|
345
|
-
check: React$l.createElement(IconRoot, {
|
|
346
|
-
size: size,
|
|
347
|
-
__self: this,
|
|
348
|
-
__source: {
|
|
349
|
-
fileName: _jsxFileName$k,
|
|
350
|
-
lineNumber: 86
|
|
351
|
-
}
|
|
352
|
-
}, React$l.createElement(Action, {
|
|
353
|
-
className: classes.bg,
|
|
354
|
-
__self: this,
|
|
355
|
-
__source: {
|
|
356
|
-
fileName: _jsxFileName$k,
|
|
357
|
-
lineNumber: 87
|
|
358
|
-
}
|
|
359
|
-
})),
|
|
360
|
-
emoji: React$l.createElement(IconRoot, {
|
|
361
|
-
size: size,
|
|
362
|
-
__self: this,
|
|
363
|
-
__source: {
|
|
364
|
-
fileName: _jsxFileName$k,
|
|
365
|
-
lineNumber: 91
|
|
366
|
-
}
|
|
367
|
-
}, React$l.createElement(Emoji, {
|
|
368
|
-
className: classes.bg,
|
|
369
|
-
__self: this,
|
|
370
|
-
__source: {
|
|
371
|
-
fileName: _jsxFileName$k,
|
|
372
|
-
lineNumber: 92
|
|
373
|
-
}
|
|
374
|
-
}))
|
|
375
|
-
}
|
|
376
|
-
},
|
|
377
|
-
square: {
|
|
378
|
-
check: React$l.createElement(IconRoot, {
|
|
379
|
-
size: size,
|
|
380
|
-
__self: this,
|
|
381
|
-
__source: {
|
|
382
|
-
fileName: _jsxFileName$k,
|
|
383
|
-
lineNumber: 99
|
|
384
|
-
}
|
|
385
|
-
}, React$l.createElement(Square, {
|
|
386
|
-
className: classes.bg,
|
|
387
|
-
__self: this,
|
|
388
|
-
__source: {
|
|
389
|
-
fileName: _jsxFileName$k,
|
|
390
|
-
lineNumber: 100
|
|
391
|
-
}
|
|
392
|
-
}), React$l.createElement(Action, {
|
|
393
|
-
className: classes.fg,
|
|
394
|
-
__self: this,
|
|
395
|
-
__source: {
|
|
396
|
-
fileName: _jsxFileName$k,
|
|
397
|
-
lineNumber: 101
|
|
398
|
-
}
|
|
399
|
-
})),
|
|
400
|
-
emoji: React$l.createElement(IconRoot, {
|
|
401
|
-
size: size,
|
|
402
|
-
__self: this,
|
|
403
|
-
__source: {
|
|
404
|
-
fileName: _jsxFileName$k,
|
|
405
|
-
lineNumber: 105
|
|
406
|
-
}
|
|
407
|
-
}, React$l.createElement(Square, {
|
|
408
|
-
className: classes.bg,
|
|
409
|
-
__self: this,
|
|
410
|
-
__source: {
|
|
411
|
-
fileName: _jsxFileName$k,
|
|
412
|
-
lineNumber: 106
|
|
413
|
-
}
|
|
414
|
-
}), React$l.createElement(Emoji, {
|
|
415
|
-
className: classes.fg,
|
|
416
|
-
__self: this,
|
|
417
|
-
__source: {
|
|
418
|
-
fileName: _jsxFileName$k,
|
|
419
|
-
lineNumber: 107
|
|
420
|
-
}
|
|
421
|
-
})),
|
|
422
|
-
open: {
|
|
423
|
-
check: React$l.createElement(IconRoot, {
|
|
424
|
-
size: size,
|
|
425
|
-
__self: this,
|
|
426
|
-
__source: {
|
|
427
|
-
fileName: _jsxFileName$k,
|
|
428
|
-
lineNumber: 112
|
|
429
|
-
}
|
|
430
|
-
}, React$l.createElement(Action, {
|
|
431
|
-
className: classes.bg,
|
|
432
|
-
__self: this,
|
|
433
|
-
__source: {
|
|
434
|
-
fileName: _jsxFileName$k,
|
|
435
|
-
lineNumber: 113
|
|
436
|
-
}
|
|
437
|
-
})),
|
|
438
|
-
emoji: React$l.createElement(IconRoot, {
|
|
439
|
-
size: size,
|
|
440
|
-
__self: this,
|
|
441
|
-
__source: {
|
|
442
|
-
fileName: _jsxFileName$k,
|
|
443
|
-
lineNumber: 117
|
|
444
|
-
}
|
|
445
|
-
}, React$l.createElement(Emoji, {
|
|
446
|
-
className: classes.bg,
|
|
447
|
-
__self: this,
|
|
448
|
-
__source: {
|
|
449
|
-
fileName: _jsxFileName$k,
|
|
450
|
-
lineNumber: 118
|
|
451
|
-
}
|
|
452
|
-
}))
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
};
|
|
456
|
-
}
|
|
457
|
-
render() {
|
|
458
|
-
if (this.props.category === undefined) {
|
|
459
|
-
if (this.props.open === true) {
|
|
460
|
-
return this.icons[this.props.shape].open[this.props.iconSet];
|
|
461
|
-
} else {
|
|
462
|
-
return this.icons[this.props.shape][this.props.iconSet];
|
|
463
|
-
}
|
|
464
|
-
} else {
|
|
465
|
-
if (this.props.open === true) {
|
|
466
|
-
return this.icons.feedback[this.props.shape].open[this.props.iconSet];
|
|
467
|
-
} else {
|
|
468
|
-
return this.icons.feedback[this.props.shape][this.props.iconSet];
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
IconBase.__initStatic();
|
|
474
|
-
IconBase.propTypes = {
|
|
475
|
-
iconSet: PropTypes$n.oneOf(['emoji', 'check']),
|
|
476
|
-
shape: PropTypes$n.oneOf(['round', 'square']),
|
|
477
|
-
category: PropTypes$n.oneOf(['feedback', undefined]),
|
|
478
|
-
open: PropTypes$n.bool
|
|
479
|
-
};
|
|
480
|
-
IconBase.defaultProps = {
|
|
481
|
-
iconSet: 'check',
|
|
482
|
-
shape: 'round',
|
|
483
|
-
category: undefined,
|
|
484
|
-
open: false
|
|
485
|
-
};
|
|
486
|
-
return IconBase;
|
|
487
|
-
};
|
|
488
|
-
const PropTypes$m = _dll_prop_types;
|
|
489
|
-
const React$k = _dll_react;
|
|
490
|
-
const {withStyles: withStyles$h} = _dll_material_ui__core_styles;
|
|
491
|
-
const _jsxFileName$j = "/home/ede/dev/github/pie-framework/pie-elements/node_modules/@pie-lib/icons/src/correct-icon.jsx";
|
|
492
|
-
const styles$a = getStyles('correct', '#f8ffe2', '#4aaf46');
|
|
493
|
-
const Emoji$3 = ({className}) => React$k.createElement('g', {
|
|
494
|
-
transform: 'translate(1, 0)',
|
|
495
|
-
__self: undefined,
|
|
496
|
-
__source: {
|
|
497
|
-
fileName: _jsxFileName$j,
|
|
498
|
-
lineNumber: 10
|
|
499
|
-
}
|
|
500
|
-
}, React$k.createElement('path', {
|
|
501
|
-
className: className,
|
|
502
|
-
d: "M24.7,22.1c-1.5,1.7-3.6,2.7-5.8,2.7s-4.5-1.1-5.8-2.7l-2.8,1.6c2,2.7,5.2,4.2,8.7,4.2 c3.4,0,6.6-1.6,8.7-4.2L24.7,22.1z",
|
|
503
|
-
__self: undefined,
|
|
504
|
-
__source: {
|
|
505
|
-
fileName: _jsxFileName$j,
|
|
506
|
-
lineNumber: 11
|
|
507
|
-
}
|
|
508
|
-
}), React$k.createElement('rect', {
|
|
509
|
-
x: "21.1",
|
|
510
|
-
y: "13.1",
|
|
511
|
-
className: className,
|
|
512
|
-
width: "3.7",
|
|
513
|
-
height: "4.7",
|
|
514
|
-
__self: undefined,
|
|
515
|
-
__source: {
|
|
516
|
-
fileName: _jsxFileName$j,
|
|
517
|
-
lineNumber: 16
|
|
518
|
-
}
|
|
519
|
-
}), React$k.createElement('rect', {
|
|
520
|
-
x: "12.7",
|
|
521
|
-
y: "13.1",
|
|
522
|
-
className: className,
|
|
523
|
-
width: "3.7",
|
|
524
|
-
height: "4.7",
|
|
525
|
-
__self: undefined,
|
|
526
|
-
__source: {
|
|
527
|
-
fileName: _jsxFileName$j,
|
|
528
|
-
lineNumber: 17
|
|
529
|
-
}
|
|
530
|
-
}));
|
|
531
|
-
Emoji$3.propTypes = {
|
|
532
|
-
className: PropTypes$m.string
|
|
533
|
-
};
|
|
534
|
-
Emoji$3.defaultProps = {
|
|
535
|
-
x: 0
|
|
536
|
-
};
|
|
537
|
-
const Check$1 = ({className, x, y}) => React$k.createElement('polygon', {
|
|
538
|
-
transform: `translate(${x}, ${y})`,
|
|
539
|
-
className: className,
|
|
540
|
-
points: "19.1,28.6 11.8,22.3 14.4,19.2 17.9,22.1 23.9,11.4 27.5,13.4",
|
|
541
|
-
__self: undefined,
|
|
542
|
-
__source: {
|
|
543
|
-
fileName: _jsxFileName$j,
|
|
544
|
-
lineNumber: 30
|
|
545
|
-
}
|
|
546
|
-
});
|
|
547
|
-
Check$1.propTypes = {
|
|
548
|
-
x: PropTypes$m.number,
|
|
549
|
-
y: PropTypes$m.number,
|
|
550
|
-
className: PropTypes$m.string
|
|
551
|
-
};
|
|
552
|
-
Check$1.defaultProps = {
|
|
553
|
-
x: 0,
|
|
554
|
-
y: 0
|
|
555
|
-
};
|
|
556
|
-
const Correct = IconBase(Check$1, Emoji$3);
|
|
557
|
-
Correct.propTypes = {
|
|
558
|
-
iconSet: PropTypes$m.oneOf(['emoji', 'check']),
|
|
559
|
-
shape: PropTypes$m.oneOf(['round', 'square']),
|
|
560
|
-
category: PropTypes$m.oneOf(['feedback', undefined]),
|
|
561
|
-
open: PropTypes$m.bool
|
|
562
|
-
};
|
|
563
|
-
Correct.defaultProps = {
|
|
564
|
-
iconSet: 'check',
|
|
565
|
-
shape: 'round',
|
|
566
|
-
category: undefined,
|
|
567
|
-
open: false
|
|
568
|
-
};
|
|
569
|
-
var correctIcon = withStyles$h(styles$a)(Correct);
|
|
570
|
-
const PropTypes$l = _dll_prop_types;
|
|
571
|
-
const React$j = _dll_react;
|
|
572
|
-
const classNames$6 = _dll_classnames;
|
|
573
|
-
const {withStyles: withStyles$g} = _dll_material_ui__core_styles;
|
|
574
|
-
const _jsxFileName$i = "/home/ede/dev/github/pie-framework/pie-elements/node_modules/@pie-lib/icons/src/correct-response-icon.jsx";
|
|
575
|
-
const OpenIcon = ({bg, fg}) => React$j.createElement('svg', {
|
|
576
|
-
preserveAspectRatio: "xMinYMin meet",
|
|
577
|
-
version: "1.1",
|
|
578
|
-
id: "Layer_1",
|
|
579
|
-
x: "0px",
|
|
580
|
-
y: "0px",
|
|
581
|
-
viewBox: "-283 359 34 35",
|
|
582
|
-
style: {
|
|
583
|
-
enableBackground: 'new -283 359 34 35'
|
|
584
|
-
},
|
|
585
|
-
__self: undefined,
|
|
586
|
-
__source: {
|
|
587
|
-
fileName: _jsxFileName$i,
|
|
588
|
-
lineNumber: 7
|
|
589
|
-
}
|
|
590
|
-
}, React$j.createElement('circle', {
|
|
591
|
-
className: bg,
|
|
592
|
-
cx: "-266",
|
|
593
|
-
cy: "375.9",
|
|
594
|
-
r: "14",
|
|
595
|
-
__self: undefined,
|
|
596
|
-
__source: {
|
|
597
|
-
fileName: _jsxFileName$i,
|
|
598
|
-
lineNumber: 16
|
|
599
|
-
}
|
|
600
|
-
}), React$j.createElement('path', {
|
|
601
|
-
className: bg,
|
|
602
|
-
d: "M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z",
|
|
603
|
-
__self: undefined,
|
|
604
|
-
__source: {
|
|
605
|
-
fileName: _jsxFileName$i,
|
|
606
|
-
lineNumber: 17
|
|
607
|
-
}
|
|
608
|
-
}), React$j.createElement('polygon', {
|
|
609
|
-
className: fg,
|
|
610
|
-
points: "-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6 ",
|
|
611
|
-
__self: undefined,
|
|
612
|
-
__source: {
|
|
613
|
-
fileName: _jsxFileName$i,
|
|
614
|
-
lineNumber: 22
|
|
615
|
-
}
|
|
616
|
-
}));
|
|
617
|
-
OpenIcon.propTypes = {
|
|
618
|
-
bg: PropTypes$l.string,
|
|
619
|
-
fg: PropTypes$l.string
|
|
620
|
-
};
|
|
621
|
-
const CloseIcon = ({bg, fg, border}) => React$j.createElement('svg', {
|
|
622
|
-
preserveAspectRatio: "xMinYMin meet",
|
|
623
|
-
version: "1.1",
|
|
624
|
-
x: "0px",
|
|
625
|
-
y: "0px",
|
|
626
|
-
viewBox: "-129.5 127 34 35",
|
|
627
|
-
style: {
|
|
628
|
-
enableBackground: 'new -129.5 127 34 35'
|
|
629
|
-
},
|
|
630
|
-
__self: undefined,
|
|
631
|
-
__source: {
|
|
632
|
-
fileName: _jsxFileName$i,
|
|
633
|
-
lineNumber: 35
|
|
634
|
-
}
|
|
635
|
-
}, React$j.createElement('path', {
|
|
636
|
-
style: {
|
|
637
|
-
fill: '#D0CAC5',
|
|
638
|
-
stroke: '#E6E3E0',
|
|
639
|
-
strokeWidth: 0.75,
|
|
640
|
-
strokeMiterlimit: 10
|
|
641
|
-
},
|
|
642
|
-
d: "M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5 C-97.4,153.5-104.3,160.4-112.9,160.4z",
|
|
643
|
-
__self: undefined,
|
|
644
|
-
__source: {
|
|
645
|
-
fileName: _jsxFileName$i,
|
|
646
|
-
lineNumber: 43
|
|
647
|
-
}
|
|
648
|
-
}), React$j.createElement('path', {
|
|
649
|
-
style: {
|
|
650
|
-
fill: '#B3ABA4',
|
|
651
|
-
stroke: '#CDC7C2',
|
|
652
|
-
strokeWidth: 0.5,
|
|
653
|
-
strokeMiterlimit: 10
|
|
654
|
-
},
|
|
655
|
-
d: "M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z",
|
|
656
|
-
__self: undefined,
|
|
657
|
-
__source: {
|
|
658
|
-
fileName: _jsxFileName$i,
|
|
659
|
-
lineNumber: 53
|
|
660
|
-
}
|
|
661
|
-
}), React$j.createElement('circle', {
|
|
662
|
-
className: bg,
|
|
663
|
-
cx: "-114.2",
|
|
664
|
-
cy: "143.5",
|
|
665
|
-
r: "14",
|
|
666
|
-
__self: undefined,
|
|
667
|
-
__source: {
|
|
668
|
-
fileName: _jsxFileName$i,
|
|
669
|
-
lineNumber: 62
|
|
670
|
-
}
|
|
671
|
-
}), React$j.createElement('path', {
|
|
672
|
-
className: border,
|
|
673
|
-
d: "M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z",
|
|
674
|
-
__self: undefined,
|
|
675
|
-
__source: {
|
|
676
|
-
fileName: _jsxFileName$i,
|
|
677
|
-
lineNumber: 63
|
|
678
|
-
}
|
|
679
|
-
}), React$j.createElement('polygon', {
|
|
680
|
-
className: fg,
|
|
681
|
-
points: "-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2",
|
|
682
|
-
__self: undefined,
|
|
683
|
-
__source: {
|
|
684
|
-
fileName: _jsxFileName$i,
|
|
685
|
-
lineNumber: 68
|
|
686
|
-
}
|
|
687
|
-
}));
|
|
688
|
-
CloseIcon.propTypes = {
|
|
689
|
-
bg: PropTypes$l.string,
|
|
690
|
-
fg: PropTypes$l.string,
|
|
691
|
-
border: PropTypes$l.string
|
|
692
|
-
};
|
|
693
|
-
const styles$9 = {
|
|
694
|
-
root: {
|
|
695
|
-
width: props => props.size || '25px',
|
|
696
|
-
height: props => props.size || '25px'
|
|
697
|
-
},
|
|
698
|
-
hideIconBg: {
|
|
699
|
-
fill: '#bce2ff'
|
|
700
|
-
},
|
|
701
|
-
hideIconFg: {
|
|
702
|
-
fill: '#1a9cff'
|
|
703
|
-
},
|
|
704
|
-
showIconBg: {
|
|
705
|
-
fill: 'white'
|
|
706
|
-
},
|
|
707
|
-
showIconFg: {
|
|
708
|
-
fill: '#1a9cff'
|
|
709
|
-
},
|
|
710
|
-
showIconBorder: {
|
|
711
|
-
fill: '#bce2ff'
|
|
712
|
-
}
|
|
713
|
-
};
|
|
714
|
-
const CorrectResponse = ({open, classes, className}) => React$j.createElement('div', {
|
|
715
|
-
className: classNames$6(className, classes.root),
|
|
716
|
-
__self: undefined,
|
|
717
|
-
__source: {
|
|
718
|
-
fileName: _jsxFileName$i,
|
|
719
|
-
lineNumber: 104
|
|
720
|
-
}
|
|
721
|
-
}, open ? React$j.createElement(OpenIcon, {
|
|
722
|
-
bg: classes.hideIconBg,
|
|
723
|
-
fg: classes.hideIconFg,
|
|
724
|
-
__self: undefined,
|
|
725
|
-
__source: {
|
|
726
|
-
fileName: _jsxFileName$i,
|
|
727
|
-
lineNumber: 106
|
|
728
|
-
}
|
|
729
|
-
}) : React$j.createElement(CloseIcon, {
|
|
730
|
-
bg: classes.showIconBg,
|
|
731
|
-
border: classes.showIconBorder,
|
|
732
|
-
fg: classes.showIconFg,
|
|
733
|
-
__self: undefined,
|
|
734
|
-
__source: {
|
|
735
|
-
fileName: _jsxFileName$i,
|
|
736
|
-
lineNumber: 108
|
|
737
|
-
}
|
|
738
|
-
}));
|
|
739
|
-
CorrectResponse.propTypes = {
|
|
740
|
-
classes: PropTypes$l.object.isRequired,
|
|
741
|
-
open: PropTypes$l.bool,
|
|
742
|
-
size: PropTypes$l.string,
|
|
743
|
-
className: PropTypes$l.string
|
|
744
|
-
};
|
|
745
|
-
CorrectResponse.defaultProps = {
|
|
746
|
-
open: false
|
|
747
|
-
};
|
|
748
|
-
withStyles$g(styles$9)(CorrectResponse);
|
|
749
|
-
const PropTypes$k = _dll_prop_types;
|
|
750
|
-
const React$i = _dll_react;
|
|
751
|
-
const {withStyles: withStyles$f} = _dll_material_ui__core_styles;
|
|
752
|
-
const _jsxFileName$h = "/home/ede/dev/github/pie-framework/pie-elements/node_modules/@pie-lib/icons/src/incorrect-icon.jsx";
|
|
753
|
-
const Ex = ({className}) => React$i.createElement('g', {
|
|
754
|
-
transform: 'translate(0.5, 0.5)',
|
|
755
|
-
__self: undefined,
|
|
756
|
-
__source: {
|
|
757
|
-
fileName: _jsxFileName$h,
|
|
758
|
-
lineNumber: 8
|
|
759
|
-
}
|
|
760
|
-
}, React$i.createElement('rect', {
|
|
761
|
-
x: "11",
|
|
762
|
-
y: "17.3",
|
|
763
|
-
transform: "matrix(0.7071 -0.7071 0.7071 0.7071 -7.852 19.2507)",
|
|
764
|
-
className: className,
|
|
765
|
-
width: "16.6",
|
|
766
|
-
height: "3.7",
|
|
767
|
-
__self: undefined,
|
|
768
|
-
__source: {
|
|
769
|
-
fileName: _jsxFileName$h,
|
|
770
|
-
lineNumber: 9
|
|
771
|
-
}
|
|
772
|
-
}), React$i.createElement('rect', {
|
|
773
|
-
x: "17.4",
|
|
774
|
-
y: "10.7",
|
|
775
|
-
transform: "matrix(0.7071 -0.7071 0.7071 0.7071 -7.8175 19.209)",
|
|
776
|
-
className: className,
|
|
777
|
-
width: "3.7",
|
|
778
|
-
height: "16.6",
|
|
779
|
-
__self: undefined,
|
|
780
|
-
__source: {
|
|
781
|
-
fileName: _jsxFileName$h,
|
|
782
|
-
lineNumber: 17
|
|
783
|
-
}
|
|
784
|
-
}));
|
|
785
|
-
Ex.propTypes = {
|
|
786
|
-
className: PropTypes$k.string
|
|
787
|
-
};
|
|
788
|
-
const Emoji$2 = ({className}) => React$i.createElement('g', {
|
|
789
|
-
transform: 'translate(1,0)',
|
|
790
|
-
__self: undefined,
|
|
791
|
-
__source: {
|
|
792
|
-
fileName: _jsxFileName$h,
|
|
793
|
-
lineNumber: 32
|
|
794
|
-
}
|
|
795
|
-
}, React$i.createElement('rect', {
|
|
796
|
-
x: "21",
|
|
797
|
-
y: "12.9",
|
|
798
|
-
className: className,
|
|
799
|
-
width: "3.7",
|
|
800
|
-
height: "4.7",
|
|
801
|
-
__self: undefined,
|
|
802
|
-
__source: {
|
|
803
|
-
fileName: _jsxFileName$h,
|
|
804
|
-
lineNumber: 33
|
|
805
|
-
}
|
|
806
|
-
}), React$i.createElement('rect', {
|
|
807
|
-
x: "12.7",
|
|
808
|
-
y: "12.9",
|
|
809
|
-
className: className,
|
|
810
|
-
width: "3.7",
|
|
811
|
-
height: "4.7",
|
|
812
|
-
__self: undefined,
|
|
813
|
-
__source: {
|
|
814
|
-
fileName: _jsxFileName$h,
|
|
815
|
-
lineNumber: 34
|
|
816
|
-
}
|
|
817
|
-
}), React$i.createElement('rect', {
|
|
818
|
-
x: "12.2",
|
|
819
|
-
y: "22.5",
|
|
820
|
-
className: className,
|
|
821
|
-
width: "13",
|
|
822
|
-
height: "3.3",
|
|
823
|
-
__self: undefined,
|
|
824
|
-
__source: {
|
|
825
|
-
fileName: _jsxFileName$h,
|
|
826
|
-
lineNumber: 35
|
|
827
|
-
}
|
|
828
|
-
}));
|
|
829
|
-
Emoji$2.propTypes = {
|
|
830
|
-
className: PropTypes$k.string
|
|
831
|
-
};
|
|
832
|
-
const styles$8 = getStyles('incorrect', '#fbf2e3', '#fcb733');
|
|
833
|
-
const Incorrect = IconBase(Ex, Emoji$2);
|
|
834
|
-
var incorrectIcon = withStyles$f(styles$8)(Incorrect);
|
|
835
|
-
Incorrect.propTypes = {
|
|
836
|
-
iconSet: PropTypes$k.oneOf(['emoji', 'check']),
|
|
837
|
-
shape: PropTypes$k.oneOf(['round', 'square']),
|
|
838
|
-
category: PropTypes$k.oneOf(['feedback', undefined]),
|
|
839
|
-
open: PropTypes$k.bool
|
|
840
|
-
};
|
|
841
|
-
Incorrect.defaultProps = {
|
|
842
|
-
iconSet: 'check',
|
|
843
|
-
shape: 'round',
|
|
844
|
-
category: undefined,
|
|
845
|
-
open: false
|
|
846
|
-
};
|
|
847
|
-
const PropTypes$j = _dll_prop_types;
|
|
848
|
-
const React$h = _dll_react;
|
|
849
|
-
const _jsxFileName$g = "/home/ede/dev/github/pie-framework/pie-elements/node_modules/@pie-lib/icons/src/instructions-icon.jsx";
|
|
850
|
-
const Lines = () => {
|
|
851
|
-
const style = {
|
|
852
|
-
fill: 'none',
|
|
853
|
-
stroke: '#BCE2FF',
|
|
854
|
-
strokeWidth: 2,
|
|
855
|
-
strokeMiterlimit: 10
|
|
856
|
-
};
|
|
857
|
-
return React$h.createElement('g', {
|
|
858
|
-
__self: undefined,
|
|
859
|
-
__source: {
|
|
860
|
-
fileName: _jsxFileName$g,
|
|
861
|
-
lineNumber: 13
|
|
862
|
-
}
|
|
863
|
-
}, React$h.createElement('line', {
|
|
864
|
-
style: style,
|
|
865
|
-
x1: "-98",
|
|
866
|
-
y1: "142",
|
|
867
|
-
x2: "-114.6",
|
|
868
|
-
y2: "142",
|
|
869
|
-
__self: undefined,
|
|
870
|
-
__source: {
|
|
871
|
-
fileName: _jsxFileName$g,
|
|
872
|
-
lineNumber: 14
|
|
873
|
-
}
|
|
874
|
-
}), React$h.createElement('line', {
|
|
875
|
-
style: style,
|
|
876
|
-
x1: "-98",
|
|
877
|
-
y1: "146.3",
|
|
878
|
-
x2: "-114.6",
|
|
879
|
-
y2: "146.3",
|
|
880
|
-
__self: undefined,
|
|
881
|
-
__source: {
|
|
882
|
-
fileName: _jsxFileName$g,
|
|
883
|
-
lineNumber: 15
|
|
884
|
-
}
|
|
885
|
-
}), React$h.createElement('line', {
|
|
886
|
-
style: style,
|
|
887
|
-
x1: "-104",
|
|
888
|
-
y1: "150.7",
|
|
889
|
-
x2: "-114.6",
|
|
890
|
-
y2: "150.7",
|
|
891
|
-
__self: undefined,
|
|
892
|
-
__source: {
|
|
893
|
-
fileName: _jsxFileName$g,
|
|
894
|
-
lineNumber: 16
|
|
895
|
-
}
|
|
896
|
-
}));
|
|
897
|
-
};
|
|
898
|
-
const Root$2 = ({children, size}) => React$h.createElement(Sized, {
|
|
899
|
-
size: size,
|
|
900
|
-
__self: undefined,
|
|
901
|
-
__source: {
|
|
902
|
-
fileName: _jsxFileName$g,
|
|
903
|
-
lineNumber: 22
|
|
904
|
-
}
|
|
905
|
-
}, React$h.createElement('svg', {
|
|
906
|
-
version: "1.1",
|
|
907
|
-
viewBox: "-128 129 31 31",
|
|
908
|
-
style: {
|
|
909
|
-
enableBackground: 'new -128 129 31 31'
|
|
910
|
-
},
|
|
911
|
-
__self: undefined,
|
|
912
|
-
__source: {
|
|
913
|
-
fileName: _jsxFileName$g,
|
|
914
|
-
lineNumber: 23
|
|
915
|
-
}
|
|
916
|
-
}, children));
|
|
917
|
-
Root$2.propTypes = {
|
|
918
|
-
children: PropTypes$j.oneOfType([PropTypes$j.arrayOf(PropTypes$j.node), PropTypes$j.node]).isRequired,
|
|
919
|
-
size: PropTypes$j.number
|
|
920
|
-
};
|
|
921
|
-
const GreyInfo = () => {
|
|
922
|
-
return React$h.createElement('g', {
|
|
923
|
-
__self: undefined,
|
|
924
|
-
__source: {
|
|
925
|
-
fileName: _jsxFileName$g,
|
|
926
|
-
lineNumber: 36
|
|
927
|
-
}
|
|
928
|
-
}, React$h.createElement('rect', {
|
|
929
|
-
x: "-123.9",
|
|
930
|
-
y: "135.3",
|
|
931
|
-
style: {
|
|
932
|
-
fill: '#D0CAC5',
|
|
933
|
-
stroke: '#E6E3E0',
|
|
934
|
-
strokeWidth: 0.75,
|
|
935
|
-
strokeLinejoin: 'round',
|
|
936
|
-
strokeMiterlimit: 10
|
|
937
|
-
},
|
|
938
|
-
width: "4.1",
|
|
939
|
-
height: "4.1",
|
|
940
|
-
__self: undefined,
|
|
941
|
-
__source: {
|
|
942
|
-
fileName: _jsxFileName$g,
|
|
943
|
-
lineNumber: 37
|
|
944
|
-
}
|
|
945
|
-
}), React$h.createElement('polygon', {
|
|
946
|
-
style: {
|
|
947
|
-
fill: '#D0CAC5',
|
|
948
|
-
stroke: '#E6E3E0',
|
|
949
|
-
strokeWidth: 0.75,
|
|
950
|
-
strokeLinejoin: 'round',
|
|
951
|
-
strokeMiterlimit: 10
|
|
952
|
-
},
|
|
953
|
-
points: "-119.8,150.4 -119.8,142.2 -125,142.2 -125,144.9 -122.6,144.9 -122.6,150.4 -125.6,150.4 -125.6,153.2 -116.8,153.2 -116.8,150.4 ",
|
|
954
|
-
__self: undefined,
|
|
955
|
-
__source: {
|
|
956
|
-
fileName: _jsxFileName$g,
|
|
957
|
-
lineNumber: 50
|
|
958
|
-
}
|
|
959
|
-
}), React$h.createElement('rect', {
|
|
960
|
-
x: "-124.7",
|
|
961
|
-
y: "134.7",
|
|
962
|
-
style: {
|
|
963
|
-
fill: '#B3ABA4',
|
|
964
|
-
stroke: '#CDC7C2',
|
|
965
|
-
strokeWidth: 0.5,
|
|
966
|
-
strokeLinecap: 'round',
|
|
967
|
-
strokeLinejoin: 'round',
|
|
968
|
-
strokeMiterlimit: 10
|
|
969
|
-
},
|
|
970
|
-
width: "4.1",
|
|
971
|
-
height: "4.1",
|
|
972
|
-
__self: undefined,
|
|
973
|
-
__source: {
|
|
974
|
-
fileName: _jsxFileName$g,
|
|
975
|
-
lineNumber: 61
|
|
976
|
-
}
|
|
977
|
-
}), React$h.createElement('polygon', {
|
|
978
|
-
style: {
|
|
979
|
-
fill: '#B3ABA4',
|
|
980
|
-
stroke: '#CDC7C2',
|
|
981
|
-
strokeWidth: 0.5,
|
|
982
|
-
strokeLinecap: 'round',
|
|
983
|
-
strokeLinejoin: 'round',
|
|
984
|
-
strokeMiterlimit: 10
|
|
985
|
-
},
|
|
986
|
-
points: "-120.6,149.8 -120.6,141.5 -125.8,141.5 -125.8,144.3 -123.3,144.3 -123.3,149.8 -126.4,149.8 -126.4,152.5 -117.6,152.5 -117.6,149.8 ",
|
|
987
|
-
__self: undefined,
|
|
988
|
-
__source: {
|
|
989
|
-
fileName: _jsxFileName$g,
|
|
990
|
-
lineNumber: 76
|
|
991
|
-
}
|
|
992
|
-
}), React$h.createElement('rect', {
|
|
993
|
-
x: "-125.5",
|
|
994
|
-
y: "134",
|
|
995
|
-
style: {
|
|
996
|
-
fill: '#7FABC6'
|
|
997
|
-
},
|
|
998
|
-
width: "4.1",
|
|
999
|
-
height: "4.1",
|
|
1000
|
-
__self: undefined,
|
|
1001
|
-
__source: {
|
|
1002
|
-
fileName: _jsxFileName$g,
|
|
1003
|
-
lineNumber: 88
|
|
1004
|
-
}
|
|
1005
|
-
}), React$h.createElement('polygon', {
|
|
1006
|
-
style: {
|
|
1007
|
-
fill: '#7FABC6'
|
|
1008
|
-
},
|
|
1009
|
-
points: "-121.4,149.1 -121.4,140.9 -126.5,140.9 -126.5,143.6 -124.1,143.6 -124.1,149.1 -127.1,149.1 -127.1,151.9 -118.4,151.9 -118.4,149.1 ",
|
|
1010
|
-
__self: undefined,
|
|
1011
|
-
__source: {
|
|
1012
|
-
fileName: _jsxFileName$g,
|
|
1013
|
-
lineNumber: 89
|
|
1014
|
-
}
|
|
1015
|
-
}));
|
|
1016
|
-
};
|
|
1017
|
-
const BlueInfo = () => React$h.createElement('g', {
|
|
1018
|
-
__self: undefined,
|
|
1019
|
-
__source: {
|
|
1020
|
-
fileName: _jsxFileName$g,
|
|
1021
|
-
lineNumber: 99
|
|
1022
|
-
}
|
|
1023
|
-
}, React$h.createElement('rect', {
|
|
1024
|
-
x: "-123.9",
|
|
1025
|
-
y: "135.3",
|
|
1026
|
-
style: {
|
|
1027
|
-
fill: '#D0CAC5',
|
|
1028
|
-
stroke: '#E6E3E0',
|
|
1029
|
-
strokeWidth: 0.75,
|
|
1030
|
-
strokeLinejoin: 'round',
|
|
1031
|
-
strokeMiterlimit: 10
|
|
1032
|
-
},
|
|
1033
|
-
width: "4.1",
|
|
1034
|
-
height: "4.1",
|
|
1035
|
-
__self: undefined,
|
|
1036
|
-
__source: {
|
|
1037
|
-
fileName: _jsxFileName$g,
|
|
1038
|
-
lineNumber: 100
|
|
1039
|
-
}
|
|
1040
|
-
}), React$h.createElement('polygon', {
|
|
1041
|
-
style: {
|
|
1042
|
-
fill: '#D0CAC5',
|
|
1043
|
-
stroke: '#E6E3E0',
|
|
1044
|
-
strokeWidth: 0.75,
|
|
1045
|
-
strokeLinejoin: 'round',
|
|
1046
|
-
strokeMiterlimit: 10
|
|
1047
|
-
},
|
|
1048
|
-
points: "-119.8,150.4 -119.8,142.2 -125,142.2 -125,144.9 -122.6,144.9 -122.6,150.4 -125.6,150.4 -125.6,153.2 -116.8,153.2 -116.8,150.4 ",
|
|
1049
|
-
__self: undefined,
|
|
1050
|
-
__source: {
|
|
1051
|
-
fileName: _jsxFileName$g,
|
|
1052
|
-
lineNumber: 113
|
|
1053
|
-
}
|
|
1054
|
-
}), React$h.createElement('rect', {
|
|
1055
|
-
x: "-124.7",
|
|
1056
|
-
y: "134.7",
|
|
1057
|
-
style: {
|
|
1058
|
-
fill: '#B3ABA4',
|
|
1059
|
-
stroke: '#CDC7C2',
|
|
1060
|
-
strokeWidth: 0.5,
|
|
1061
|
-
strokeLinecap: 'round',
|
|
1062
|
-
strokeLinejoin: 'round',
|
|
1063
|
-
strokeMiterlimit: 10
|
|
1064
|
-
},
|
|
1065
|
-
width: "4.1",
|
|
1066
|
-
height: "4.1",
|
|
1067
|
-
__self: undefined,
|
|
1068
|
-
__source: {
|
|
1069
|
-
fileName: _jsxFileName$g,
|
|
1070
|
-
lineNumber: 124
|
|
1071
|
-
}
|
|
1072
|
-
}), React$h.createElement('polygon', {
|
|
1073
|
-
style: {
|
|
1074
|
-
fill: '#B3ABA4',
|
|
1075
|
-
stroke: '#CDC7C2',
|
|
1076
|
-
strokeWidth: 0.5,
|
|
1077
|
-
strokeLinecap: 'round',
|
|
1078
|
-
strokeLinejoin: 'round',
|
|
1079
|
-
strokeMiterlimit: 10
|
|
1080
|
-
},
|
|
1081
|
-
points: "-120.6,149.8 -120.6,141.5 -125.8,141.5 -125.8,144.3 -123.3,144.3 -123.3,149.8 -126.4,149.8 -126.4,152.5 -117.6,152.5 -117.6,149.8 ",
|
|
1082
|
-
__self: undefined,
|
|
1083
|
-
__source: {
|
|
1084
|
-
fileName: _jsxFileName$g,
|
|
1085
|
-
lineNumber: 138
|
|
1086
|
-
}
|
|
1087
|
-
}), React$h.createElement('rect', {
|
|
1088
|
-
x: "-125.5",
|
|
1089
|
-
y: "134",
|
|
1090
|
-
style: {
|
|
1091
|
-
fill: '#1A9CFF'
|
|
1092
|
-
},
|
|
1093
|
-
width: "4.1",
|
|
1094
|
-
height: "4.1",
|
|
1095
|
-
__self: undefined,
|
|
1096
|
-
__source: {
|
|
1097
|
-
fileName: _jsxFileName$g,
|
|
1098
|
-
lineNumber: 150
|
|
1099
|
-
}
|
|
1100
|
-
}), React$h.createElement('polygon', {
|
|
1101
|
-
style: {
|
|
1102
|
-
fill: '#1A9CFF'
|
|
1103
|
-
},
|
|
1104
|
-
points: "-121.4,149.1 -121.4,140.9 -126.5,140.9 -126.5,143.6 -124.1,143.6 -124.1,149.1 -127.1,149.1 -127.1,151.9 -118.4,151.9 -118.4,149.1 ",
|
|
1105
|
-
__self: undefined,
|
|
1106
|
-
__source: {
|
|
1107
|
-
fileName: _jsxFileName$g,
|
|
1108
|
-
lineNumber: 151
|
|
1109
|
-
}
|
|
1110
|
-
}));
|
|
1111
|
-
class Instructions extends React$h.Component {
|
|
1112
|
-
constructor(props) {
|
|
1113
|
-
super(props);
|
|
1114
|
-
}
|
|
1115
|
-
render() {
|
|
1116
|
-
if (this.props.open === true) {
|
|
1117
|
-
return React$h.createElement(Root$2, {
|
|
1118
|
-
__self: this,
|
|
1119
|
-
__source: {
|
|
1120
|
-
fileName: _jsxFileName$g,
|
|
1121
|
-
lineNumber: 167
|
|
1122
|
-
}
|
|
1123
|
-
}, React$h.createElement(GreyInfo, {
|
|
1124
|
-
__self: this,
|
|
1125
|
-
__source: {
|
|
1126
|
-
fileName: _jsxFileName$g,
|
|
1127
|
-
lineNumber: 168
|
|
1128
|
-
}
|
|
1129
|
-
}), React$h.createElement(Lines, {
|
|
1130
|
-
__self: this,
|
|
1131
|
-
__source: {
|
|
1132
|
-
fileName: _jsxFileName$g,
|
|
1133
|
-
lineNumber: 169
|
|
1134
|
-
}
|
|
1135
|
-
}));
|
|
1136
|
-
} else {
|
|
1137
|
-
return React$h.createElement(Root$2, {
|
|
1138
|
-
__self: this,
|
|
1139
|
-
__source: {
|
|
1140
|
-
fileName: _jsxFileName$g,
|
|
1141
|
-
lineNumber: 174
|
|
1142
|
-
}
|
|
1143
|
-
}, React$h.createElement(BlueInfo, {
|
|
1144
|
-
__self: this,
|
|
1145
|
-
__source: {
|
|
1146
|
-
fileName: _jsxFileName$g,
|
|
1147
|
-
lineNumber: 175
|
|
1148
|
-
}
|
|
1149
|
-
}), React$h.createElement(Lines, {
|
|
1150
|
-
__self: this,
|
|
1151
|
-
__source: {
|
|
1152
|
-
fileName: _jsxFileName$g,
|
|
1153
|
-
lineNumber: 176
|
|
1154
|
-
}
|
|
1155
|
-
}));
|
|
1156
|
-
}
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
Instructions.propTypes = {
|
|
1160
|
-
open: PropTypes$j.bool
|
|
1161
|
-
};
|
|
1162
|
-
Instructions.defaultProps = {
|
|
1163
|
-
open: false
|
|
1164
|
-
};
|
|
1165
|
-
const PropTypes$i = _dll_prop_types;
|
|
1166
|
-
const React$g = _dll_react;
|
|
1167
|
-
const {withStyles: withStyles$e} = _dll_material_ui__core_styles;
|
|
1168
|
-
const _jsxFileName$f = "/home/ede/dev/github/pie-framework/pie-elements/node_modules/@pie-lib/icons/src/learn-more-icon.jsx";
|
|
1169
|
-
const Glint = ({fill}) => React$g.createElement('path', {
|
|
1170
|
-
fill: fill,
|
|
1171
|
-
d: "M-130.4,142.1c0-2.1,1.7-3.9,3.9-3.9c0.3,0,0.5,0,0.8,0.1c-0.6-0.8-1.5-1.3-2.6-1.3c-1.8,0-3.3,1.5-3.3,3.3c0,1.1,0.5,2,1.3,2.6C-130.4,142.6-130.4,142.4-130.4,142.1z",
|
|
1172
|
-
__self: undefined,
|
|
1173
|
-
__source: {
|
|
1174
|
-
fileName: _jsxFileName$f,
|
|
1175
|
-
lineNumber: 7
|
|
1176
|
-
}
|
|
1177
|
-
});
|
|
1178
|
-
Glint.propTypes = {
|
|
1179
|
-
fill: PropTypes$i.string
|
|
1180
|
-
};
|
|
1181
|
-
class LearnMore extends React$g.Component {
|
|
1182
|
-
static __initStatic() {
|
|
1183
|
-
this.propTypes = {
|
|
1184
|
-
classes: PropTypes$i.object.isRequired,
|
|
1185
|
-
size: PropTypes$i.number
|
|
1186
|
-
};
|
|
1187
|
-
}
|
|
1188
|
-
render() {
|
|
1189
|
-
const {classes, size} = this.props;
|
|
1190
|
-
if (this.props.open === true) {
|
|
1191
|
-
return React$g.createElement(Sized, {
|
|
1192
|
-
size: size,
|
|
1193
|
-
__self: this,
|
|
1194
|
-
__source: {
|
|
1195
|
-
fileName: _jsxFileName$f,
|
|
1196
|
-
lineNumber: 28
|
|
1197
|
-
}
|
|
1198
|
-
}, React$g.createElement('svg', {
|
|
1199
|
-
preserveAspectRatio: "xMinYMin meet",
|
|
1200
|
-
viewBox: "-135 129 16 32",
|
|
1201
|
-
__self: this,
|
|
1202
|
-
__source: {
|
|
1203
|
-
fileName: _jsxFileName$f,
|
|
1204
|
-
lineNumber: 29
|
|
1205
|
-
}
|
|
1206
|
-
}, React$g.createElement('path', {
|
|
1207
|
-
className: classes.hideBg,
|
|
1208
|
-
d: "M-122,141.1c0-3.7-3.3-6.6-7.1-5.8c-2.4,0.5-4.3,2.4-4.7,4.8c-0.4,2.3,0.6,4.4,2.2,5.7c0.4,0.3,0.6,0.8,0.6,1.3v1.9h6.1v-1.9c0-0.5,0.2-1,0.6-1.3C-122.8,144.7-122,143-122,141.1z",
|
|
1209
|
-
__self: this,
|
|
1210
|
-
__source: {
|
|
1211
|
-
fileName: _jsxFileName$f,
|
|
1212
|
-
lineNumber: 30
|
|
1213
|
-
}
|
|
1214
|
-
}), React$g.createElement('path', {
|
|
1215
|
-
className: classes.hideBg,
|
|
1216
|
-
d: "M-125.7,153h-4.5c-0.4,0-0.8-0.4-0.8-0.8v-1.6h6.1v1.6C-124.9,152.7-125.2,153-125.7,153z",
|
|
1217
|
-
__self: this,
|
|
1218
|
-
__source: {
|
|
1219
|
-
fileName: _jsxFileName$f,
|
|
1220
|
-
lineNumber: 34
|
|
1221
|
-
}
|
|
1222
|
-
}), React$g.createElement(Glint, {
|
|
1223
|
-
fill: classes.hideFg.fill,
|
|
1224
|
-
__self: this,
|
|
1225
|
-
__source: {
|
|
1226
|
-
fileName: _jsxFileName$f,
|
|
1227
|
-
lineNumber: 38
|
|
1228
|
-
}
|
|
1229
|
-
})));
|
|
1230
|
-
} else {
|
|
1231
|
-
return React$g.createElement(Sized, {
|
|
1232
|
-
size: size,
|
|
1233
|
-
__self: this,
|
|
1234
|
-
__source: {
|
|
1235
|
-
fileName: _jsxFileName$f,
|
|
1236
|
-
lineNumber: 44
|
|
1237
|
-
}
|
|
1238
|
-
}, React$g.createElement('svg', {
|
|
1239
|
-
preserveAspectRatio: "xMinYMin meet",
|
|
1240
|
-
viewBox: "-135 129 16 31",
|
|
1241
|
-
__self: this,
|
|
1242
|
-
__source: {
|
|
1243
|
-
fileName: _jsxFileName$f,
|
|
1244
|
-
lineNumber: 45
|
|
1245
|
-
}
|
|
1246
|
-
}, React$g.createElement('path', {
|
|
1247
|
-
fill: "#D0CAC5",
|
|
1248
|
-
stroke: "#E6E3E0",
|
|
1249
|
-
className: "st0",
|
|
1250
|
-
d: "M-120.7,142.4c0-3.7-3.3-6.6-7.1-5.8c-2.4,0.5-4.3,2.4-4.7,4.8c-0.4,2.3,0.6,4.4,2.2,5.7c0.4,0.3,0.6,0.8,0.6,1.3v1.9h6.1v-1.9c0-0.5,0.2-1,0.6-1.3C-121.6,146-120.7,144.3-120.7,142.4z",
|
|
1251
|
-
__self: this,
|
|
1252
|
-
__source: {
|
|
1253
|
-
fileName: _jsxFileName$f,
|
|
1254
|
-
lineNumber: 46
|
|
1255
|
-
}
|
|
1256
|
-
}), React$g.createElement('path', {
|
|
1257
|
-
fill: "#D0CAC5",
|
|
1258
|
-
stroke: "#E6E3E0",
|
|
1259
|
-
className: "st0",
|
|
1260
|
-
d: "M-124.4,154.3h-4.5c-0.4,0-0.8-0.4-0.8-0.8v-1.6h6.1v1.6C-123.6,153.9-123.9,154.3-124.4,154.3z",
|
|
1261
|
-
__self: this,
|
|
1262
|
-
__source: {
|
|
1263
|
-
fileName: _jsxFileName$f,
|
|
1264
|
-
lineNumber: 52
|
|
1265
|
-
}
|
|
1266
|
-
}), React$g.createElement('path', {
|
|
1267
|
-
fill: "#B3ABA4",
|
|
1268
|
-
stroke: "#CDC7C2",
|
|
1269
|
-
className: "st1",
|
|
1270
|
-
d: "M-121.3,141.8c0-3.7-3.3-6.6-7.1-5.8c-2.4,0.5-4.3,2.4-4.7,4.8c-0.4,2.3,0.6,4.4,2.2,5.7c0.4,0.3,0.6,0.8,0.6,1.3v1.9h6.1v-1.9c0-0.5,0.2-1,0.6-1.3C-122.2,145.3-121.3,143.7-121.3,141.8z",
|
|
1271
|
-
__self: this,
|
|
1272
|
-
__source: {
|
|
1273
|
-
fileName: _jsxFileName$f,
|
|
1274
|
-
lineNumber: 58
|
|
1275
|
-
}
|
|
1276
|
-
}), ",", React$g.createElement('path', {
|
|
1277
|
-
fill: "#B3ABA4",
|
|
1278
|
-
stroke: "#CDC7C2",
|
|
1279
|
-
className: "st1",
|
|
1280
|
-
d: "M-125,153.7h-4.5c-0.4,0-0.8-0.4-0.8-0.8v-1.6h6.1v1.6C-124.2,153.3-124.6,153.7-125,153.7z",
|
|
1281
|
-
__self: this,
|
|
1282
|
-
__source: {
|
|
1283
|
-
fileName: _jsxFileName$f,
|
|
1284
|
-
lineNumber: 65
|
|
1285
|
-
}
|
|
1286
|
-
}), React$g.createElement('path', {
|
|
1287
|
-
className: classes.showBg,
|
|
1288
|
-
d: "M-122,141.1c0-3.7-3.3-6.6-7.1-5.8c-2.4,0.5-4.3,2.4-4.7,4.8c-0.4,2.3,0.6,4.4,2.2,5.7c0.4,0.3,0.6,0.8,0.6,1.3v1.9h6.1v-1.9c0-0.5,0.2-1,0.6-1.3C-122.8,144.7-122,143-122,141.1z",
|
|
1289
|
-
__self: this,
|
|
1290
|
-
__source: {
|
|
1291
|
-
fileName: _jsxFileName$f,
|
|
1292
|
-
lineNumber: 71
|
|
1293
|
-
}
|
|
1294
|
-
}), React$g.createElement('path', {
|
|
1295
|
-
className: classes.showBg,
|
|
1296
|
-
d: "M-125.7,153h-4.5c-0.4,0-0.8-0.4-0.8-0.8v-1.6h6.1v1.6C-124.9,152.7-125.2,153-125.7,153z",
|
|
1297
|
-
__self: this,
|
|
1298
|
-
__source: {
|
|
1299
|
-
fileName: _jsxFileName$f,
|
|
1300
|
-
lineNumber: 75
|
|
1301
|
-
}
|
|
1302
|
-
}), React$g.createElement(Glint, {
|
|
1303
|
-
fill: classes.hideFg.fill,
|
|
1304
|
-
__self: this,
|
|
1305
|
-
__source: {
|
|
1306
|
-
fileName: _jsxFileName$f,
|
|
1307
|
-
lineNumber: 79
|
|
1308
|
-
}
|
|
1309
|
-
})));
|
|
1310
|
-
}
|
|
1311
|
-
}
|
|
1312
|
-
}
|
|
1313
|
-
LearnMore.__initStatic();
|
|
1314
|
-
const styles$7 = {
|
|
1315
|
-
showBg: {
|
|
1316
|
-
fill: '#1a9cff'
|
|
1317
|
-
},
|
|
1318
|
-
hideFg: {
|
|
1319
|
-
fill: '#1a9cff'
|
|
1320
|
-
},
|
|
1321
|
-
hideBg: {
|
|
1322
|
-
fill: '#bce2ff'
|
|
1323
|
-
}
|
|
1324
|
-
};
|
|
1325
|
-
LearnMore.propTypes = {
|
|
1326
|
-
open: PropTypes$i.bool
|
|
1327
|
-
};
|
|
1328
|
-
LearnMore.defaultProps = {
|
|
1329
|
-
open: false
|
|
1330
|
-
};
|
|
1331
|
-
withStyles$e(styles$7)(LearnMore);
|
|
1332
|
-
const PropTypes$h = _dll_prop_types;
|
|
1333
|
-
const React$f = _dll_react;
|
|
1334
|
-
const {withStyles: withStyles$d} = _dll_material_ui__core_styles;
|
|
1335
|
-
const _jsxFileName$e = "/home/ede/dev/github/pie-framework/pie-elements/node_modules/@pie-lib/icons/src/nothing-submitted-icon.jsx";
|
|
1336
|
-
const Exclamation = ({className}) => React$f.createElement('g', {
|
|
1337
|
-
__self: undefined,
|
|
1338
|
-
__source: {
|
|
1339
|
-
fileName: _jsxFileName$e,
|
|
1340
|
-
lineNumber: 8
|
|
1341
|
-
}
|
|
1342
|
-
}, React$f.createElement('rect', {
|
|
1343
|
-
x: "19.3",
|
|
1344
|
-
y: "10.3",
|
|
1345
|
-
className: className,
|
|
1346
|
-
width: "4.5",
|
|
1347
|
-
height: "12.7",
|
|
1348
|
-
__self: undefined,
|
|
1349
|
-
__source: {
|
|
1350
|
-
fileName: _jsxFileName$e,
|
|
1351
|
-
lineNumber: 9
|
|
1352
|
-
}
|
|
1353
|
-
}), React$f.createElement('rect', {
|
|
1354
|
-
x: "19.3",
|
|
1355
|
-
y: "26.2",
|
|
1356
|
-
className: className,
|
|
1357
|
-
width: "4.5",
|
|
1358
|
-
height: "4.5",
|
|
1359
|
-
__self: undefined,
|
|
1360
|
-
__source: {
|
|
1361
|
-
fileName: _jsxFileName$e,
|
|
1362
|
-
lineNumber: 10
|
|
1363
|
-
}
|
|
1364
|
-
}));
|
|
1365
|
-
const Octagon = ({className}) => React$f.createElement('polygon', {
|
|
1366
|
-
className: className,
|
|
1367
|
-
points: "14.8,4.5 5.6,13.8 5.6,27 14.8,36.5 28.1,36.5 37.6,27 37.6,13.8 28.1,4.5",
|
|
1368
|
-
__self: undefined,
|
|
1369
|
-
__source: {
|
|
1370
|
-
fileName: _jsxFileName$e,
|
|
1371
|
-
lineNumber: 15
|
|
1372
|
-
}
|
|
1373
|
-
});
|
|
1374
|
-
const Emoji$1 = ({className}) => React$f.createElement('g', {
|
|
1375
|
-
__self: undefined,
|
|
1376
|
-
__source: {
|
|
1377
|
-
fileName: _jsxFileName$e,
|
|
1378
|
-
lineNumber: 22
|
|
1379
|
-
}
|
|
1380
|
-
}, React$f.createElement('rect', {
|
|
1381
|
-
x: "23.8",
|
|
1382
|
-
y: "15",
|
|
1383
|
-
className: className,
|
|
1384
|
-
width: "3.5",
|
|
1385
|
-
height: "4.4",
|
|
1386
|
-
__self: undefined,
|
|
1387
|
-
__source: {
|
|
1388
|
-
fileName: _jsxFileName$e,
|
|
1389
|
-
lineNumber: 23
|
|
1390
|
-
}
|
|
1391
|
-
}), React$f.createElement('rect', {
|
|
1392
|
-
x: "16",
|
|
1393
|
-
y: "15",
|
|
1394
|
-
className: className,
|
|
1395
|
-
width: "3.5",
|
|
1396
|
-
height: "4.4",
|
|
1397
|
-
__self: undefined,
|
|
1398
|
-
__source: {
|
|
1399
|
-
fileName: _jsxFileName$e,
|
|
1400
|
-
lineNumber: 24
|
|
1401
|
-
}
|
|
1402
|
-
}), React$f.createElement('path', {
|
|
1403
|
-
className: className,
|
|
1404
|
-
d: "M24.2,27.1h-5.1c-0.8,0-1.5-0.7-1.5-1.5v0c0-0.8,0.7-1.5,1.5-1.5h5.1c0.8,0,1.5,0.7,1.5,1.5v0 C25.7,26.4,25,27.1,24.2,27.1z",
|
|
1405
|
-
__self: undefined,
|
|
1406
|
-
__source: {
|
|
1407
|
-
fileName: _jsxFileName$e,
|
|
1408
|
-
lineNumber: 25
|
|
1409
|
-
}
|
|
1410
|
-
}));
|
|
1411
|
-
Emoji$1.propTypes = Octagon.propTypes = Exclamation.propTypes = {
|
|
1412
|
-
className: PropTypes$h.string
|
|
1413
|
-
};
|
|
1414
|
-
const styles$6 = getStyles('nothing-submitted', 'white', '#464146');
|
|
1415
|
-
class NothingSubmitted extends React$f.Component {
|
|
1416
|
-
static __initStatic() {
|
|
1417
|
-
this.propTypes = {
|
|
1418
|
-
classes: PropTypes$h.object.isRequired
|
|
1419
|
-
};
|
|
1420
|
-
}
|
|
1421
|
-
constructor(props) {
|
|
1422
|
-
super(props);
|
|
1423
|
-
const {classes} = this.props;
|
|
1424
|
-
this.icons = {
|
|
1425
|
-
check: React$f.createElement(IconRoot, {
|
|
1426
|
-
__self: this,
|
|
1427
|
-
__source: {
|
|
1428
|
-
fileName: _jsxFileName$e,
|
|
1429
|
-
lineNumber: 48
|
|
1430
|
-
}
|
|
1431
|
-
}, React$f.createElement(Octagon, {
|
|
1432
|
-
className: classes.bg,
|
|
1433
|
-
__self: this,
|
|
1434
|
-
__source: {
|
|
1435
|
-
fileName: _jsxFileName$e,
|
|
1436
|
-
lineNumber: 49
|
|
1437
|
-
}
|
|
1438
|
-
}), React$f.createElement(Exclamation, {
|
|
1439
|
-
className: classes.fg,
|
|
1440
|
-
__self: this,
|
|
1441
|
-
__source: {
|
|
1442
|
-
fileName: _jsxFileName$e,
|
|
1443
|
-
lineNumber: 50
|
|
1444
|
-
}
|
|
1445
|
-
})),
|
|
1446
|
-
emoji: React$f.createElement(IconRoot, {
|
|
1447
|
-
__self: this,
|
|
1448
|
-
__source: {
|
|
1449
|
-
fileName: _jsxFileName$e,
|
|
1450
|
-
lineNumber: 54
|
|
1451
|
-
}
|
|
1452
|
-
}, React$f.createElement(Octagon, {
|
|
1453
|
-
className: classes.bg,
|
|
1454
|
-
__self: this,
|
|
1455
|
-
__source: {
|
|
1456
|
-
fileName: _jsxFileName$e,
|
|
1457
|
-
lineNumber: 55
|
|
1458
|
-
}
|
|
1459
|
-
}), React$f.createElement(Emoji$1, {
|
|
1460
|
-
className: classes.fg,
|
|
1461
|
-
__self: this,
|
|
1462
|
-
__source: {
|
|
1463
|
-
fileName: _jsxFileName$e,
|
|
1464
|
-
lineNumber: 56
|
|
1465
|
-
}
|
|
1466
|
-
})),
|
|
1467
|
-
feedback: {
|
|
1468
|
-
check: React$f.createElement(IconRoot, {
|
|
1469
|
-
__self: this,
|
|
1470
|
-
__source: {
|
|
1471
|
-
fileName: _jsxFileName$e,
|
|
1472
|
-
lineNumber: 61
|
|
1473
|
-
}
|
|
1474
|
-
}, React$f.createElement(Octagon, {
|
|
1475
|
-
className: classes.bg,
|
|
1476
|
-
__self: this,
|
|
1477
|
-
__source: {
|
|
1478
|
-
fileName: _jsxFileName$e,
|
|
1479
|
-
lineNumber: 62
|
|
1480
|
-
}
|
|
1481
|
-
}), React$f.createElement(Emoji$1, {
|
|
1482
|
-
className: classes.fg,
|
|
1483
|
-
__self: this,
|
|
1484
|
-
__source: {
|
|
1485
|
-
fileName: _jsxFileName$e,
|
|
1486
|
-
lineNumber: 63
|
|
1487
|
-
}
|
|
1488
|
-
})),
|
|
1489
|
-
emoji: React$f.createElement(IconRoot, {
|
|
1490
|
-
__self: this,
|
|
1491
|
-
__source: {
|
|
1492
|
-
fileName: _jsxFileName$e,
|
|
1493
|
-
lineNumber: 67
|
|
1494
|
-
}
|
|
1495
|
-
}, React$f.createElement(Octagon, {
|
|
1496
|
-
className: classes.bg,
|
|
1497
|
-
__self: this,
|
|
1498
|
-
__source: {
|
|
1499
|
-
fileName: _jsxFileName$e,
|
|
1500
|
-
lineNumber: 68
|
|
1501
|
-
}
|
|
1502
|
-
}), React$f.createElement(Emoji$1, {
|
|
1503
|
-
className: classes.fg,
|
|
1504
|
-
__self: this,
|
|
1505
|
-
__source: {
|
|
1506
|
-
fileName: _jsxFileName$e,
|
|
1507
|
-
lineNumber: 69
|
|
1508
|
-
}
|
|
1509
|
-
})),
|
|
1510
|
-
square: {
|
|
1511
|
-
check: React$f.createElement(IconRoot, {
|
|
1512
|
-
__self: this,
|
|
1513
|
-
__source: {
|
|
1514
|
-
fileName: _jsxFileName$e,
|
|
1515
|
-
lineNumber: 74
|
|
1516
|
-
}
|
|
1517
|
-
}, React$f.createElement(Octagon, {
|
|
1518
|
-
className: classes.bg,
|
|
1519
|
-
__self: this,
|
|
1520
|
-
__source: {
|
|
1521
|
-
fileName: _jsxFileName$e,
|
|
1522
|
-
lineNumber: 75
|
|
1523
|
-
}
|
|
1524
|
-
}), React$f.createElement(Exclamation, {
|
|
1525
|
-
className: classes.fg,
|
|
1526
|
-
__self: this,
|
|
1527
|
-
__source: {
|
|
1528
|
-
fileName: _jsxFileName$e,
|
|
1529
|
-
lineNumber: 76
|
|
1530
|
-
}
|
|
1531
|
-
})),
|
|
1532
|
-
emoji: React$f.createElement(IconRoot, {
|
|
1533
|
-
__self: this,
|
|
1534
|
-
__source: {
|
|
1535
|
-
fileName: _jsxFileName$e,
|
|
1536
|
-
lineNumber: 80
|
|
1537
|
-
}
|
|
1538
|
-
}, React$f.createElement(Octagon, {
|
|
1539
|
-
className: classes.bg,
|
|
1540
|
-
__self: this,
|
|
1541
|
-
__source: {
|
|
1542
|
-
fileName: _jsxFileName$e,
|
|
1543
|
-
lineNumber: 81
|
|
1544
|
-
}
|
|
1545
|
-
}), React$f.createElement(Emoji$1, {
|
|
1546
|
-
className: classes.fg,
|
|
1547
|
-
__self: this,
|
|
1548
|
-
__source: {
|
|
1549
|
-
fileName: _jsxFileName$e,
|
|
1550
|
-
lineNumber: 82
|
|
1551
|
-
}
|
|
1552
|
-
})),
|
|
1553
|
-
open: {
|
|
1554
|
-
check: React$f.createElement(IconRoot, {
|
|
1555
|
-
__self: this,
|
|
1556
|
-
__source: {
|
|
1557
|
-
fileName: _jsxFileName$e,
|
|
1558
|
-
lineNumber: 87
|
|
1559
|
-
}
|
|
1560
|
-
}, React$f.createElement(Exclamation, {
|
|
1561
|
-
className: classes.bg,
|
|
1562
|
-
__self: this,
|
|
1563
|
-
__source: {
|
|
1564
|
-
fileName: _jsxFileName$e,
|
|
1565
|
-
lineNumber: 88
|
|
1566
|
-
}
|
|
1567
|
-
})),
|
|
1568
|
-
emoji: React$f.createElement(IconRoot, {
|
|
1569
|
-
__self: this,
|
|
1570
|
-
__source: {
|
|
1571
|
-
fileName: _jsxFileName$e,
|
|
1572
|
-
lineNumber: 92
|
|
1573
|
-
}
|
|
1574
|
-
}, React$f.createElement(Emoji$1, {
|
|
1575
|
-
className: classes.bg,
|
|
1576
|
-
__self: this,
|
|
1577
|
-
__source: {
|
|
1578
|
-
fileName: _jsxFileName$e,
|
|
1579
|
-
lineNumber: 93
|
|
1580
|
-
}
|
|
1581
|
-
}))
|
|
1582
|
-
}
|
|
1583
|
-
}
|
|
1584
|
-
}
|
|
1585
|
-
};
|
|
1586
|
-
}
|
|
1587
|
-
render() {
|
|
1588
|
-
if (this.props.category === undefined) {
|
|
1589
|
-
return this.icons[this.props.iconSet];
|
|
1590
|
-
} else {
|
|
1591
|
-
if (this.props.shape === undefined) {
|
|
1592
|
-
return this.icons.feedback[this.props.iconSet];
|
|
1593
|
-
} else {
|
|
1594
|
-
if (this.props.open === true) {
|
|
1595
|
-
return this.icons.feedback.square.open[this.props.iconSet];
|
|
1596
|
-
} else {
|
|
1597
|
-
return this.icons.feedback.square[this.props.iconSet];
|
|
1598
|
-
}
|
|
1599
|
-
}
|
|
1600
|
-
}
|
|
1601
|
-
}
|
|
1602
|
-
}
|
|
1603
|
-
NothingSubmitted.__initStatic();
|
|
1604
|
-
NothingSubmitted.propTypes = {
|
|
1605
|
-
iconSet: PropTypes$h.oneOf(['emoji', 'check', undefined]),
|
|
1606
|
-
shape: PropTypes$h.oneOf(['square', undefined]),
|
|
1607
|
-
category: PropTypes$h.oneOf(['feedback', undefined]),
|
|
1608
|
-
open: PropTypes$h.bool
|
|
1609
|
-
};
|
|
1610
|
-
NothingSubmitted.defaultProps = {
|
|
1611
|
-
iconSet: 'check',
|
|
1612
|
-
shape: undefined,
|
|
1613
|
-
category: undefined,
|
|
1614
|
-
open: false
|
|
1615
|
-
};
|
|
1616
|
-
var nothingSubmittedIcon = withStyles$d(styles$6)(NothingSubmitted);
|
|
1617
|
-
const PropTypes$g = _dll_prop_types;
|
|
1618
|
-
const React$e = _dll_react;
|
|
1619
|
-
const {withStyles: withStyles$c} = _dll_material_ui__core_styles;
|
|
1620
|
-
const _jsxFileName$d = "/home/ede/dev/github/pie-framework/pie-elements/node_modules/@pie-lib/icons/src/partially-correct-icon.jsx";
|
|
1621
|
-
const styles$5 = getStyles('partially-correct', '#4aaf46', '#c1e1ac');
|
|
1622
|
-
const Check = ({className}) => React$e.createElement('g', {
|
|
1623
|
-
transform: 'translate(0, 0)',
|
|
1624
|
-
__self: undefined,
|
|
1625
|
-
__source: {
|
|
1626
|
-
fileName: _jsxFileName$d,
|
|
1627
|
-
lineNumber: 10
|
|
1628
|
-
}
|
|
1629
|
-
}, React$e.createElement('polygon', {
|
|
1630
|
-
className: className,
|
|
1631
|
-
points: "27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6",
|
|
1632
|
-
__self: undefined,
|
|
1633
|
-
__source: {
|
|
1634
|
-
fileName: _jsxFileName$d,
|
|
1635
|
-
lineNumber: 11
|
|
1636
|
-
}
|
|
1637
|
-
}), React$e.createElement('polygon', {
|
|
1638
|
-
className: className,
|
|
1639
|
-
points: "16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3",
|
|
1640
|
-
__self: undefined,
|
|
1641
|
-
__source: {
|
|
1642
|
-
fileName: _jsxFileName$d,
|
|
1643
|
-
lineNumber: 12
|
|
1644
|
-
}
|
|
1645
|
-
}));
|
|
1646
|
-
const Emoji = ({className}) => React$e.createElement('g', {
|
|
1647
|
-
transform: 'translate(2, 0)',
|
|
1648
|
-
__self: undefined,
|
|
1649
|
-
__source: {
|
|
1650
|
-
fileName: _jsxFileName$d,
|
|
1651
|
-
lineNumber: 17
|
|
1652
|
-
}
|
|
1653
|
-
}, React$e.createElement('rect', {
|
|
1654
|
-
x: "20.6",
|
|
1655
|
-
y: "11.8",
|
|
1656
|
-
className: className,
|
|
1657
|
-
width: "4",
|
|
1658
|
-
height: "5",
|
|
1659
|
-
__self: undefined,
|
|
1660
|
-
__source: {
|
|
1661
|
-
fileName: _jsxFileName$d,
|
|
1662
|
-
lineNumber: 18
|
|
1663
|
-
}
|
|
1664
|
-
}), React$e.createElement('rect', {
|
|
1665
|
-
x: "11.5",
|
|
1666
|
-
y: "11.8",
|
|
1667
|
-
className: className,
|
|
1668
|
-
width: "4",
|
|
1669
|
-
height: "5",
|
|
1670
|
-
__self: undefined,
|
|
1671
|
-
__source: {
|
|
1672
|
-
fileName: _jsxFileName$d,
|
|
1673
|
-
lineNumber: 19
|
|
1674
|
-
}
|
|
1675
|
-
}), React$e.createElement('rect', {
|
|
1676
|
-
x: "10.9",
|
|
1677
|
-
y: "22.9",
|
|
1678
|
-
transform: "matrix(0.9794 -0.2019 0.2019 0.9794 -4.6237 4.1559)",
|
|
1679
|
-
className: className,
|
|
1680
|
-
width: "14.3",
|
|
1681
|
-
height: "3.7",
|
|
1682
|
-
__self: undefined,
|
|
1683
|
-
__source: {
|
|
1684
|
-
fileName: _jsxFileName$d,
|
|
1685
|
-
lineNumber: 20
|
|
1686
|
-
}
|
|
1687
|
-
}));
|
|
1688
|
-
Emoji.propTypes = Check.propTypes = {
|
|
1689
|
-
className: PropTypes$g.string
|
|
1690
|
-
};
|
|
1691
|
-
const PartiallyCorrect = IconBase(Check, Emoji);
|
|
1692
|
-
PartiallyCorrect.propTypes = {
|
|
1693
|
-
iconSet: PropTypes$g.oneOf(['emoji', 'check']),
|
|
1694
|
-
shape: PropTypes$g.oneOf(['round', 'square']),
|
|
1695
|
-
category: PropTypes$g.oneOf(['feedback', undefined]),
|
|
1696
|
-
open: PropTypes$g.bool
|
|
1697
|
-
};
|
|
1698
|
-
PartiallyCorrect.defaultProps = {
|
|
1699
|
-
iconSet: 'check',
|
|
1700
|
-
shape: 'round',
|
|
1701
|
-
category: undefined,
|
|
1702
|
-
open: false
|
|
1703
|
-
};
|
|
1704
|
-
var partiallyCorrectIcon = withStyles$c(styles$5)(PartiallyCorrect);
|
|
1705
|
-
const PropTypes$f = _dll_prop_types;
|
|
1706
|
-
const React$d = _dll_react;
|
|
1707
|
-
const {withStyles: withStyles$b} = _dll_material_ui__core_styles;
|
|
1708
|
-
const _jsxFileName$c = "/home/ede/dev/github/pie-framework/pie-elements/node_modules/@pie-lib/icons/src/show-rationale-icon.jsx";
|
|
1709
|
-
const Info = ({fg}) => React$d.createElement('g', {
|
|
1710
|
-
__self: undefined,
|
|
1711
|
-
__source: {
|
|
1712
|
-
fileName: _jsxFileName$c,
|
|
1713
|
-
lineNumber: 7
|
|
1714
|
-
}
|
|
1715
|
-
}, React$d.createElement('rect', {
|
|
1716
|
-
x: "-115",
|
|
1717
|
-
y: "136.7",
|
|
1718
|
-
className: fg,
|
|
1719
|
-
width: "3",
|
|
1720
|
-
height: "3",
|
|
1721
|
-
__self: undefined,
|
|
1722
|
-
__source: {
|
|
1723
|
-
fileName: _jsxFileName$c,
|
|
1724
|
-
lineNumber: 8
|
|
1725
|
-
}
|
|
1726
|
-
}), React$d.createElement('polygon', {
|
|
1727
|
-
className: fg,
|
|
1728
|
-
points: "-112,147.7 -112,141.7 -115.8,141.7 -115.8,143.7 -114,143.7 -114,147.7 -116.2,147.7 -116.2,149.7 -109.8,149.7 -109.8,147.7",
|
|
1729
|
-
__self: undefined,
|
|
1730
|
-
__source: {
|
|
1731
|
-
fileName: _jsxFileName$c,
|
|
1732
|
-
lineNumber: 9
|
|
1733
|
-
}
|
|
1734
|
-
}));
|
|
1735
|
-
Info.propTypes = {
|
|
1736
|
-
fg: PropTypes$f.string
|
|
1737
|
-
};
|
|
1738
|
-
const Border = ({className}) => React$d.createElement('path', {
|
|
1739
|
-
className: className,
|
|
1740
|
-
d: "M-113,158.5c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105,158.5-113,158.5zM-113,130.5c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-105.6,130.5-113,130.5z",
|
|
1741
|
-
__self: undefined,
|
|
1742
|
-
__source: {
|
|
1743
|
-
fileName: _jsxFileName$c,
|
|
1744
|
-
lineNumber: 21
|
|
1745
|
-
}
|
|
1746
|
-
});
|
|
1747
|
-
Border.propTypes = {
|
|
1748
|
-
className: PropTypes$f.string
|
|
1749
|
-
};
|
|
1750
|
-
const Circle = () => React$d.createElement('g', {
|
|
1751
|
-
__self: undefined,
|
|
1752
|
-
__source: {
|
|
1753
|
-
fileName: _jsxFileName$c,
|
|
1754
|
-
lineNumber: 30
|
|
1755
|
-
}
|
|
1756
|
-
}, React$d.createElement('path', {
|
|
1757
|
-
style: {
|
|
1758
|
-
fill: '#D0CAC5',
|
|
1759
|
-
stroke: '#E6E3E0',
|
|
1760
|
-
strokeWidth: 0.75,
|
|
1761
|
-
strokeMiterlimit: 10
|
|
1762
|
-
},
|
|
1763
|
-
d: "M-111.7,160.9c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5C-96.2,154-103.1,160.9-111.7,160.9z",
|
|
1764
|
-
__self: undefined,
|
|
1765
|
-
__source: {
|
|
1766
|
-
fileName: _jsxFileName$c,
|
|
1767
|
-
lineNumber: 31
|
|
1768
|
-
}
|
|
1769
|
-
}), React$d.createElement('path', {
|
|
1770
|
-
style: {
|
|
1771
|
-
fill: '#B3ABA4',
|
|
1772
|
-
stroke: '#CDC7C2',
|
|
1773
|
-
strokeWidth: 0.5,
|
|
1774
|
-
strokeMiterlimit: 10
|
|
1775
|
-
},
|
|
1776
|
-
d: "M-112,159.5c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-104,159.5-112,159.5z",
|
|
1777
|
-
__self: undefined,
|
|
1778
|
-
__source: {
|
|
1779
|
-
fileName: _jsxFileName$c,
|
|
1780
|
-
lineNumber: 40
|
|
1781
|
-
}
|
|
1782
|
-
}), React$d.createElement('circle', {
|
|
1783
|
-
style: {
|
|
1784
|
-
fill: '#FFFFFF'
|
|
1785
|
-
},
|
|
1786
|
-
cx: "-113",
|
|
1787
|
-
cy: "144",
|
|
1788
|
-
r: "14",
|
|
1789
|
-
__self: undefined,
|
|
1790
|
-
__source: {
|
|
1791
|
-
fileName: _jsxFileName$c,
|
|
1792
|
-
lineNumber: 49
|
|
1793
|
-
}
|
|
1794
|
-
}));
|
|
1795
|
-
const Root$1 = ({children, size}) => {
|
|
1796
|
-
size = normalizeSize(size);
|
|
1797
|
-
const style = {
|
|
1798
|
-
height: size,
|
|
1799
|
-
width: size,
|
|
1800
|
-
display: 'inline-block',
|
|
1801
|
-
position: 'relative'
|
|
1802
|
-
};
|
|
1803
|
-
return React$d.createElement('div', {
|
|
1804
|
-
style: style,
|
|
1805
|
-
__self: undefined,
|
|
1806
|
-
__source: {
|
|
1807
|
-
fileName: _jsxFileName$c,
|
|
1808
|
-
lineNumber: 63
|
|
1809
|
-
}
|
|
1810
|
-
}, React$d.createElement('svg', {
|
|
1811
|
-
preserveAspectRatio: "xMinYMin meet",
|
|
1812
|
-
viewBox: "-129 128 34 34",
|
|
1813
|
-
__self: undefined,
|
|
1814
|
-
__source: {
|
|
1815
|
-
fileName: _jsxFileName$c,
|
|
1816
|
-
lineNumber: 64
|
|
1817
|
-
}
|
|
1818
|
-
}, children));
|
|
1819
|
-
};
|
|
1820
|
-
Root$1.propTypes = {
|
|
1821
|
-
children: PropTypes$f.oneOfType([PropTypes$f.arrayOf(PropTypes$f.node), PropTypes$f.node]).isRequired,
|
|
1822
|
-
size: PropTypes$f.number
|
|
1823
|
-
};
|
|
1824
|
-
const styles$4 = {
|
|
1825
|
-
fg: {
|
|
1826
|
-
fill: '#1a9cff'
|
|
1827
|
-
},
|
|
1828
|
-
bg: {
|
|
1829
|
-
fill: '#bce2ff'
|
|
1830
|
-
},
|
|
1831
|
-
border: {
|
|
1832
|
-
fill: '#bbe3fd'
|
|
1833
|
-
},
|
|
1834
|
-
whiteBorder: {
|
|
1835
|
-
fill: 'white'
|
|
1836
|
-
}
|
|
1837
|
-
};
|
|
1838
|
-
class ShowRationale extends React$d.Component {
|
|
1839
|
-
static __initStatic() {
|
|
1840
|
-
this.propTypes = {
|
|
1841
|
-
classes: PropTypes$f.object.isRequired
|
|
1842
|
-
};
|
|
1843
|
-
}
|
|
1844
|
-
constructor(props) {
|
|
1845
|
-
super(props);
|
|
1846
|
-
}
|
|
1847
|
-
render() {
|
|
1848
|
-
const {classes} = this.props;
|
|
1849
|
-
const info = React$d.createElement(Info, {
|
|
1850
|
-
fg: classes.fg,
|
|
1851
|
-
__self: this,
|
|
1852
|
-
__source: {
|
|
1853
|
-
fileName: _jsxFileName$c,
|
|
1854
|
-
lineNumber: 102
|
|
1
|
+
import {_dll_prop_types, _dll_react_dom, _dll_react, _dll_material_ui__core_styles, _dll_pie_lib__render_ui, _dll_material_ui__core, _dll_classnames, _dll_pie_lib__correct_answer_toggle, _dll_lodash, _dll_debug} from "../../../@pie-lib/shared-module@^1.2.6/module/index.js";
|
|
2
|
+
import {_dll_pie_lib__math_rendering} from "../../../@pie-lib/math-rendering-module@^1.0.9/module/index.js";
|
|
3
|
+
function getDefaultExportFromCjs(x) {
|
|
4
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
5
|
+
}
|
|
6
|
+
function getAugmentedNamespace(n) {
|
|
7
|
+
if (n.__esModule) return n;
|
|
8
|
+
var a = Object.defineProperty({}, '__esModule', {
|
|
9
|
+
value: true
|
|
10
|
+
});
|
|
11
|
+
Object.keys(n).forEach(function (k) {
|
|
12
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
13
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () {
|
|
16
|
+
return n[k];
|
|
1855
17
|
}
|
|
1856
18
|
});
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
__self: this,
|
|
1860
|
-
__source: {
|
|
1861
|
-
fileName: _jsxFileName$c,
|
|
1862
|
-
lineNumber: 105
|
|
1863
|
-
}
|
|
1864
|
-
}, React$d.createElement(Circle, {
|
|
1865
|
-
__self: this,
|
|
1866
|
-
__source: {
|
|
1867
|
-
fileName: _jsxFileName$c,
|
|
1868
|
-
lineNumber: 106
|
|
1869
|
-
}
|
|
1870
|
-
}), info, React$d.createElement(Border, {
|
|
1871
|
-
className: classes.border,
|
|
1872
|
-
__self: this,
|
|
1873
|
-
__source: {
|
|
1874
|
-
fileName: _jsxFileName$c,
|
|
1875
|
-
lineNumber: 108
|
|
1876
|
-
}
|
|
1877
|
-
})),
|
|
1878
|
-
emoji: React$d.createElement(Root$1, {
|
|
1879
|
-
__self: this,
|
|
1880
|
-
__source: {
|
|
1881
|
-
fileName: _jsxFileName$c,
|
|
1882
|
-
lineNumber: 112
|
|
1883
|
-
}
|
|
1884
|
-
}, React$d.createElement(Circle, {
|
|
1885
|
-
__self: this,
|
|
1886
|
-
__source: {
|
|
1887
|
-
fileName: _jsxFileName$c,
|
|
1888
|
-
lineNumber: 113
|
|
1889
|
-
}
|
|
1890
|
-
}), info, React$d.createElement(Border, {
|
|
1891
|
-
className: classes.border,
|
|
1892
|
-
__self: this,
|
|
1893
|
-
__source: {
|
|
1894
|
-
fileName: _jsxFileName$c,
|
|
1895
|
-
lineNumber: 115
|
|
1896
|
-
}
|
|
1897
|
-
})),
|
|
1898
|
-
open: {
|
|
1899
|
-
check: React$d.createElement(Root$1, {
|
|
1900
|
-
__self: this,
|
|
1901
|
-
__source: {
|
|
1902
|
-
fileName: _jsxFileName$c,
|
|
1903
|
-
lineNumber: 120
|
|
1904
|
-
}
|
|
1905
|
-
}, React$d.createElement('circle', {
|
|
1906
|
-
style: {
|
|
1907
|
-
fill: '#FFFFFF'
|
|
1908
|
-
},
|
|
1909
|
-
cx: "-113",
|
|
1910
|
-
cy: "144",
|
|
1911
|
-
r: "14",
|
|
1912
|
-
__self: this,
|
|
1913
|
-
__source: {
|
|
1914
|
-
fileName: _jsxFileName$c,
|
|
1915
|
-
lineNumber: 121
|
|
1916
|
-
}
|
|
1917
|
-
}), React$d.createElement(Info, {
|
|
1918
|
-
fg: classes.bg,
|
|
1919
|
-
border: classes.whiteBorder,
|
|
1920
|
-
__self: this,
|
|
1921
|
-
__source: {
|
|
1922
|
-
fileName: _jsxFileName$c,
|
|
1923
|
-
lineNumber: 122
|
|
1924
|
-
}
|
|
1925
|
-
})),
|
|
1926
|
-
emoji: React$d.createElement(Root$1, {
|
|
1927
|
-
__self: this,
|
|
1928
|
-
__source: {
|
|
1929
|
-
fileName: _jsxFileName$c,
|
|
1930
|
-
lineNumber: 126
|
|
1931
|
-
}
|
|
1932
|
-
}, React$d.createElement('circle', {
|
|
1933
|
-
style: {
|
|
1934
|
-
fill: '#FFFFFF'
|
|
1935
|
-
},
|
|
1936
|
-
cx: "-113",
|
|
1937
|
-
cy: "144",
|
|
1938
|
-
r: "14",
|
|
1939
|
-
__self: this,
|
|
1940
|
-
__source: {
|
|
1941
|
-
fileName: _jsxFileName$c,
|
|
1942
|
-
lineNumber: 127
|
|
1943
|
-
}
|
|
1944
|
-
}), React$d.createElement(Info, {
|
|
1945
|
-
fg: classes.bg,
|
|
1946
|
-
border: classes.border,
|
|
1947
|
-
__self: this,
|
|
1948
|
-
__source: {
|
|
1949
|
-
fileName: _jsxFileName$c,
|
|
1950
|
-
lineNumber: 128
|
|
1951
|
-
}
|
|
1952
|
-
}))
|
|
1953
|
-
}
|
|
1954
|
-
};
|
|
1955
|
-
if (this.props.open === true) {
|
|
1956
|
-
return icons.open[this.props.iconSet];
|
|
1957
|
-
} else {
|
|
1958
|
-
return icons[this.props.iconSet];
|
|
1959
|
-
}
|
|
1960
|
-
}
|
|
19
|
+
});
|
|
20
|
+
return a;
|
|
1961
21
|
}
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
iconSet: PropTypes$f.oneOf(['emoji', 'check']),
|
|
1965
|
-
open: PropTypes$f.bool
|
|
22
|
+
var CSSTransition = {
|
|
23
|
+
exports: {}
|
|
1966
24
|
};
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
open: false
|
|
25
|
+
var addClass = {
|
|
26
|
+
exports: {}
|
|
1970
27
|
};
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
}
|
|
1975
|
-
function createCommonjsModule(fn, module) {
|
|
1976
|
-
return (module = {
|
|
1977
|
-
exports: {}
|
|
1978
|
-
}, fn(module, module.exports), module.exports);
|
|
28
|
+
function _interopRequireDefault$3(obj) {
|
|
29
|
+
return obj && obj.__esModule ? obj : {
|
|
30
|
+
"default": obj
|
|
31
|
+
};
|
|
1979
32
|
}
|
|
1980
|
-
var interopRequireDefault =
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
}
|
|
1986
|
-
module.exports = _interopRequireDefault;
|
|
1987
|
-
});
|
|
1988
|
-
unwrapExports(interopRequireDefault);
|
|
1989
|
-
var hasClass_1 = createCommonjsModule(function (module, exports) {
|
|
33
|
+
var interopRequireDefault = _interopRequireDefault$3;
|
|
34
|
+
var hasClass = {
|
|
35
|
+
exports: {}
|
|
36
|
+
};
|
|
37
|
+
(function (module, exports) {
|
|
1990
38
|
exports.__esModule = true;
|
|
1991
39
|
exports.default = hasClass;
|
|
1992
40
|
function hasClass(element, className) {
|
|
1993
41
|
if (element.classList) return !!className && element.classList.contains(className); else return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
|
|
1994
42
|
}
|
|
1995
43
|
module.exports = exports["default"];
|
|
1996
|
-
});
|
|
1997
|
-
|
|
1998
|
-
|
|
44
|
+
})(hasClass, hasClass.exports);
|
|
45
|
+
getDefaultExportFromCjs(hasClass.exports);
|
|
46
|
+
(function (module, exports) {
|
|
47
|
+
var _interopRequireDefault = interopRequireDefault;
|
|
1999
48
|
exports.__esModule = true;
|
|
2000
49
|
exports.default = addClass;
|
|
2001
|
-
var _hasClass =
|
|
50
|
+
var _hasClass = _interopRequireDefault(hasClass.exports);
|
|
2002
51
|
function addClass(element, className) {
|
|
2003
52
|
if (element.classList) element.classList.add(className); else if (!(0, _hasClass.default)(element, className)) if (typeof element.className === 'string') element.className = element.className + ' ' + className; else element.setAttribute('class', (element.className && element.className.baseVal || '') + ' ' + className);
|
|
2004
53
|
}
|
|
2005
54
|
module.exports = exports["default"];
|
|
2006
|
-
});
|
|
2007
|
-
|
|
55
|
+
})(addClass, addClass.exports);
|
|
56
|
+
getDefaultExportFromCjs(addClass.exports);
|
|
2008
57
|
function replaceClassName(origClass, classToRemove) {
|
|
2009
58
|
return origClass.replace(new RegExp('(^|\\s)' + classToRemove + '(?:\\s|$)', 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, '');
|
|
2010
59
|
}
|
|
2011
60
|
var removeClass = function removeClass(element, className) {
|
|
2012
61
|
if (element.classList) element.classList.remove(className); else if (typeof element.className === 'string') element.className = replaceClassName(element.className, className); else element.setAttribute('class', replaceClassName(element.className && element.className.baseVal || '', className));
|
|
2013
62
|
};
|
|
63
|
+
var Transition$1 = {};
|
|
2014
64
|
function componentWillMount() {
|
|
2015
65
|
var state = this.constructor.getDerivedStateFromProps(this.props, this.state);
|
|
2016
66
|
if (state !== null && state !== undefined) {
|
|
@@ -2092,392 +142,382 @@ var reactLifecyclesCompat_es = Object.freeze({
|
|
|
2092
142
|
__proto__: null,
|
|
2093
143
|
polyfill: polyfill
|
|
2094
144
|
});
|
|
145
|
+
var require$$2$2 = getAugmentedNamespace(reactLifecyclesCompat_es);
|
|
146
|
+
var PropTypes$6 = {};
|
|
2095
147
|
const require$$0$5 = _dll_prop_types;
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
exports.classNamesShape = classNamesShape;
|
|
2124
|
-
});
|
|
2125
|
-
unwrapExports(PropTypes$e);
|
|
2126
|
-
PropTypes$e.classNamesShape;
|
|
2127
|
-
PropTypes$e.timeoutsShape;
|
|
2128
|
-
var _PropTypes = PropTypes$e;
|
|
148
|
+
PropTypes$6.__esModule = true;
|
|
149
|
+
PropTypes$6.classNamesShape = PropTypes$6.timeoutsShape = void 0;
|
|
150
|
+
var _propTypes = _interopRequireDefault$2(require$$0$5);
|
|
151
|
+
function _interopRequireDefault$2(obj) {
|
|
152
|
+
return obj && obj.__esModule ? obj : {
|
|
153
|
+
default: obj
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
var timeoutsShape = _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
|
|
157
|
+
enter: _propTypes.default.number,
|
|
158
|
+
exit: _propTypes.default.number,
|
|
159
|
+
appear: _propTypes.default.number
|
|
160
|
+
}).isRequired]);
|
|
161
|
+
PropTypes$6.timeoutsShape = timeoutsShape;
|
|
162
|
+
var classNamesShape = _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({
|
|
163
|
+
enter: _propTypes.default.string,
|
|
164
|
+
exit: _propTypes.default.string,
|
|
165
|
+
active: _propTypes.default.string
|
|
166
|
+
}), _propTypes.default.shape({
|
|
167
|
+
enter: _propTypes.default.string,
|
|
168
|
+
enterDone: _propTypes.default.string,
|
|
169
|
+
enterActive: _propTypes.default.string,
|
|
170
|
+
exit: _propTypes.default.string,
|
|
171
|
+
exitDone: _propTypes.default.string,
|
|
172
|
+
exitActive: _propTypes.default.string
|
|
173
|
+
})]);
|
|
174
|
+
PropTypes$6.classNamesShape = classNamesShape;
|
|
2129
175
|
const require$$0$4 = _dll_prop_types;
|
|
2130
|
-
const require$$1$
|
|
176
|
+
const require$$1$2 = _dll_react;
|
|
2131
177
|
const require$$2$1 = _dll_react_dom;
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
}
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
178
|
+
Transition$1.__esModule = true;
|
|
179
|
+
Transition$1.default = Transition$1.EXITING = Transition$1.ENTERED = Transition$1.ENTERING = Transition$1.EXITED = Transition$1.UNMOUNTED = void 0;
|
|
180
|
+
var PropTypes$5 = _interopRequireWildcard(require$$0$4);
|
|
181
|
+
var _react$1 = _interopRequireDefault$1(require$$1$2);
|
|
182
|
+
var _reactDom = _interopRequireDefault$1(require$$2$1);
|
|
183
|
+
var _reactLifecyclesCompat = require$$2$2;
|
|
184
|
+
var _PropTypes = PropTypes$6;
|
|
185
|
+
function _interopRequireDefault$1(obj) {
|
|
186
|
+
return obj && obj.__esModule ? obj : {
|
|
187
|
+
default: obj
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
function _interopRequireWildcard(obj) {
|
|
191
|
+
if (obj && obj.__esModule) {
|
|
192
|
+
return obj;
|
|
193
|
+
} else {
|
|
194
|
+
var newObj = {};
|
|
195
|
+
if (obj != null) {
|
|
196
|
+
for (var key in obj) {
|
|
197
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
198
|
+
var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {};
|
|
199
|
+
if (desc.get || desc.set) {
|
|
200
|
+
Object.defineProperty(newObj, key, desc);
|
|
201
|
+
} else {
|
|
202
|
+
newObj[key] = obj[key];
|
|
2157
203
|
}
|
|
2158
204
|
}
|
|
2159
205
|
}
|
|
2160
|
-
newObj.default = obj;
|
|
2161
|
-
return newObj;
|
|
2162
206
|
}
|
|
207
|
+
newObj.default = obj;
|
|
208
|
+
return newObj;
|
|
2163
209
|
}
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
initialStatus = ENTERED;
|
|
2206
|
-
}
|
|
210
|
+
}
|
|
211
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
212
|
+
if (source == null) return {};
|
|
213
|
+
var target = {};
|
|
214
|
+
var sourceKeys = Object.keys(source);
|
|
215
|
+
var key, i;
|
|
216
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
217
|
+
key = sourceKeys[i];
|
|
218
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
219
|
+
target[key] = source[key];
|
|
220
|
+
}
|
|
221
|
+
return target;
|
|
222
|
+
}
|
|
223
|
+
function _inheritsLoose(subClass, superClass) {
|
|
224
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
225
|
+
subClass.prototype.constructor = subClass;
|
|
226
|
+
subClass.__proto__ = superClass;
|
|
227
|
+
}
|
|
228
|
+
var UNMOUNTED = 'unmounted';
|
|
229
|
+
Transition$1.UNMOUNTED = UNMOUNTED;
|
|
230
|
+
var EXITED = 'exited';
|
|
231
|
+
Transition$1.EXITED = EXITED;
|
|
232
|
+
var ENTERING = 'entering';
|
|
233
|
+
Transition$1.ENTERING = ENTERING;
|
|
234
|
+
var ENTERED = 'entered';
|
|
235
|
+
Transition$1.ENTERED = ENTERED;
|
|
236
|
+
var EXITING = 'exiting';
|
|
237
|
+
Transition$1.EXITING = EXITING;
|
|
238
|
+
var Transition = (function (_React$Component) {
|
|
239
|
+
_inheritsLoose(Transition, _React$Component);
|
|
240
|
+
function Transition(props, context) {
|
|
241
|
+
var _this;
|
|
242
|
+
_this = _React$Component.call(this, props, context) || this;
|
|
243
|
+
var parentGroup = context.transitionGroup;
|
|
244
|
+
var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
|
|
245
|
+
var initialStatus;
|
|
246
|
+
_this.appearStatus = null;
|
|
247
|
+
if (props.in) {
|
|
248
|
+
if (appear) {
|
|
249
|
+
initialStatus = EXITED;
|
|
250
|
+
_this.appearStatus = ENTERING;
|
|
2207
251
|
} else {
|
|
2208
|
-
|
|
2209
|
-
initialStatus = UNMOUNTED;
|
|
2210
|
-
} else {
|
|
2211
|
-
initialStatus = EXITED;
|
|
2212
|
-
}
|
|
2213
|
-
}
|
|
2214
|
-
_this.state = {
|
|
2215
|
-
status: initialStatus
|
|
2216
|
-
};
|
|
2217
|
-
_this.nextCallback = null;
|
|
2218
|
-
return _this;
|
|
2219
|
-
}
|
|
2220
|
-
var _proto = Transition.prototype;
|
|
2221
|
-
_proto.getChildContext = function getChildContext() {
|
|
2222
|
-
return {
|
|
2223
|
-
transitionGroup: null
|
|
2224
|
-
};
|
|
2225
|
-
};
|
|
2226
|
-
Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {
|
|
2227
|
-
var nextIn = _ref.in;
|
|
2228
|
-
if (nextIn && prevState.status === UNMOUNTED) {
|
|
2229
|
-
return {
|
|
2230
|
-
status: EXITED
|
|
2231
|
-
};
|
|
252
|
+
initialStatus = ENTERED;
|
|
2232
253
|
}
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
|
2239
|
-
var nextStatus = null;
|
|
2240
|
-
if (prevProps !== this.props) {
|
|
2241
|
-
var status = this.state.status;
|
|
2242
|
-
if (this.props.in) {
|
|
2243
|
-
if (status !== ENTERING && status !== ENTERED) {
|
|
2244
|
-
nextStatus = ENTERING;
|
|
2245
|
-
}
|
|
2246
|
-
} else {
|
|
2247
|
-
if (status === ENTERING || status === ENTERED) {
|
|
2248
|
-
nextStatus = EXITING;
|
|
2249
|
-
}
|
|
2250
|
-
}
|
|
254
|
+
} else {
|
|
255
|
+
if (props.unmountOnExit || props.mountOnEnter) {
|
|
256
|
+
initialStatus = UNMOUNTED;
|
|
257
|
+
} else {
|
|
258
|
+
initialStatus = EXITED;
|
|
2251
259
|
}
|
|
2252
|
-
|
|
260
|
+
}
|
|
261
|
+
_this.state = {
|
|
262
|
+
status: initialStatus
|
|
2253
263
|
};
|
|
2254
|
-
|
|
2255
|
-
|
|
264
|
+
_this.nextCallback = null;
|
|
265
|
+
return _this;
|
|
266
|
+
}
|
|
267
|
+
var _proto = Transition.prototype;
|
|
268
|
+
_proto.getChildContext = function getChildContext() {
|
|
269
|
+
return {
|
|
270
|
+
transitionGroup: null
|
|
2256
271
|
};
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
if (timeout != null && typeof timeout !== 'number') {
|
|
2262
|
-
exit = timeout.exit;
|
|
2263
|
-
enter = timeout.enter;
|
|
2264
|
-
appear = timeout.appear !== undefined ? timeout.appear : enter;
|
|
2265
|
-
}
|
|
272
|
+
};
|
|
273
|
+
Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {
|
|
274
|
+
var nextIn = _ref.in;
|
|
275
|
+
if (nextIn && prevState.status === UNMOUNTED) {
|
|
2266
276
|
return {
|
|
2267
|
-
|
|
2268
|
-
enter: enter,
|
|
2269
|
-
appear: appear
|
|
277
|
+
status: EXITED
|
|
2270
278
|
};
|
|
2271
|
-
}
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
279
|
+
}
|
|
280
|
+
return null;
|
|
281
|
+
};
|
|
282
|
+
_proto.componentDidMount = function componentDidMount() {
|
|
283
|
+
this.updateStatus(true, this.appearStatus);
|
|
284
|
+
};
|
|
285
|
+
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
|
286
|
+
var nextStatus = null;
|
|
287
|
+
if (prevProps !== this.props) {
|
|
288
|
+
var status = this.state.status;
|
|
289
|
+
if (this.props.in) {
|
|
290
|
+
if (status !== ENTERING && status !== ENTERED) {
|
|
291
|
+
nextStatus = ENTERING;
|
|
292
|
+
}
|
|
293
|
+
} else {
|
|
294
|
+
if (status === ENTERING || status === ENTERED) {
|
|
295
|
+
nextStatus = EXITING;
|
|
2283
296
|
}
|
|
2284
|
-
} else if (this.props.unmountOnExit && this.state.status === EXITED) {
|
|
2285
|
-
this.setState({
|
|
2286
|
-
status: UNMOUNTED
|
|
2287
|
-
});
|
|
2288
297
|
}
|
|
298
|
+
}
|
|
299
|
+
this.updateStatus(false, nextStatus);
|
|
300
|
+
};
|
|
301
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
302
|
+
this.cancelNextCallback();
|
|
303
|
+
};
|
|
304
|
+
_proto.getTimeouts = function getTimeouts() {
|
|
305
|
+
var timeout = this.props.timeout;
|
|
306
|
+
var exit, enter, appear;
|
|
307
|
+
exit = enter = appear = timeout;
|
|
308
|
+
if (timeout != null && typeof timeout !== 'number') {
|
|
309
|
+
exit = timeout.exit;
|
|
310
|
+
enter = timeout.enter;
|
|
311
|
+
appear = timeout.appear !== undefined ? timeout.appear : enter;
|
|
312
|
+
}
|
|
313
|
+
return {
|
|
314
|
+
exit: exit,
|
|
315
|
+
enter: enter,
|
|
316
|
+
appear: appear
|
|
2289
317
|
};
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
318
|
+
};
|
|
319
|
+
_proto.updateStatus = function updateStatus(mounting, nextStatus) {
|
|
320
|
+
if (mounting === void 0) {
|
|
321
|
+
mounting = false;
|
|
322
|
+
}
|
|
323
|
+
if (nextStatus !== null) {
|
|
324
|
+
this.cancelNextCallback();
|
|
325
|
+
var node = _reactDom.default.findDOMNode(this);
|
|
326
|
+
if (nextStatus === ENTERING) {
|
|
327
|
+
this.performEnter(node, mounting);
|
|
328
|
+
} else {
|
|
329
|
+
this.performExit(node);
|
|
330
|
+
}
|
|
331
|
+
} else if (this.props.unmountOnExit && this.state.status === EXITED) {
|
|
332
|
+
this.setState({
|
|
333
|
+
status: UNMOUNTED
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
_proto.performEnter = function performEnter(node, mounting) {
|
|
338
|
+
var _this2 = this;
|
|
339
|
+
var enter = this.props.enter;
|
|
340
|
+
var appearing = this.context.transitionGroup ? this.context.transitionGroup.isMounting : mounting;
|
|
341
|
+
var timeouts = this.getTimeouts();
|
|
342
|
+
var enterTimeout = appearing ? timeouts.appear : timeouts.enter;
|
|
343
|
+
if (!mounting && !enter) {
|
|
344
|
+
this.safeSetState({
|
|
345
|
+
status: ENTERED
|
|
346
|
+
}, function () {
|
|
347
|
+
_this2.props.onEntered(node);
|
|
348
|
+
});
|
|
349
|
+
return;
|
|
350
|
+
}
|
|
351
|
+
this.props.onEnter(node, appearing);
|
|
352
|
+
this.safeSetState({
|
|
353
|
+
status: ENTERING
|
|
354
|
+
}, function () {
|
|
355
|
+
_this2.props.onEntering(node, appearing);
|
|
356
|
+
_this2.onTransitionEnd(node, enterTimeout, function () {
|
|
357
|
+
_this2.safeSetState({
|
|
2298
358
|
status: ENTERED
|
|
2299
359
|
}, function () {
|
|
2300
|
-
_this2.props.onEntered(node);
|
|
360
|
+
_this2.props.onEntered(node, appearing);
|
|
2301
361
|
});
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
362
|
+
});
|
|
363
|
+
});
|
|
364
|
+
};
|
|
365
|
+
_proto.performExit = function performExit(node) {
|
|
366
|
+
var _this3 = this;
|
|
367
|
+
var exit = this.props.exit;
|
|
368
|
+
var timeouts = this.getTimeouts();
|
|
369
|
+
if (!exit) {
|
|
2305
370
|
this.safeSetState({
|
|
2306
|
-
status:
|
|
371
|
+
status: EXITED
|
|
2307
372
|
}, function () {
|
|
2308
|
-
|
|
2309
|
-
_this2.onTransitionEnd(node, enterTimeout, function () {
|
|
2310
|
-
_this2.safeSetState({
|
|
2311
|
-
status: ENTERED
|
|
2312
|
-
}, function () {
|
|
2313
|
-
_this2.props.onEntered(node, appearing);
|
|
2314
|
-
});
|
|
2315
|
-
});
|
|
373
|
+
_this3.props.onExited(node);
|
|
2316
374
|
});
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
375
|
+
return;
|
|
376
|
+
}
|
|
377
|
+
this.props.onExit(node);
|
|
378
|
+
this.safeSetState({
|
|
379
|
+
status: EXITING
|
|
380
|
+
}, function () {
|
|
381
|
+
_this3.props.onExiting(node);
|
|
382
|
+
_this3.onTransitionEnd(node, timeouts.exit, function () {
|
|
383
|
+
_this3.safeSetState({
|
|
2324
384
|
status: EXITED
|
|
2325
385
|
}, function () {
|
|
2326
386
|
_this3.props.onExited(node);
|
|
2327
387
|
});
|
|
2328
|
-
return;
|
|
2329
|
-
}
|
|
2330
|
-
this.props.onExit(node);
|
|
2331
|
-
this.safeSetState({
|
|
2332
|
-
status: EXITING
|
|
2333
|
-
}, function () {
|
|
2334
|
-
_this3.props.onExiting(node);
|
|
2335
|
-
_this3.onTransitionEnd(node, timeouts.exit, function () {
|
|
2336
|
-
_this3.safeSetState({
|
|
2337
|
-
status: EXITED
|
|
2338
|
-
}, function () {
|
|
2339
|
-
_this3.props.onExited(node);
|
|
2340
|
-
});
|
|
2341
|
-
});
|
|
2342
388
|
});
|
|
2343
|
-
};
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
}
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
_this4.nextCallback = null;
|
|
2361
|
-
callback(event);
|
|
2362
|
-
}
|
|
2363
|
-
};
|
|
2364
|
-
this.nextCallback.cancel = function () {
|
|
389
|
+
});
|
|
390
|
+
};
|
|
391
|
+
_proto.cancelNextCallback = function cancelNextCallback() {
|
|
392
|
+
if (this.nextCallback !== null) {
|
|
393
|
+
this.nextCallback.cancel();
|
|
394
|
+
this.nextCallback = null;
|
|
395
|
+
}
|
|
396
|
+
};
|
|
397
|
+
_proto.safeSetState = function safeSetState(nextState, callback) {
|
|
398
|
+
callback = this.setNextCallback(callback);
|
|
399
|
+
this.setState(nextState, callback);
|
|
400
|
+
};
|
|
401
|
+
_proto.setNextCallback = function setNextCallback(callback) {
|
|
402
|
+
var _this4 = this;
|
|
403
|
+
var active = true;
|
|
404
|
+
this.nextCallback = function (event) {
|
|
405
|
+
if (active) {
|
|
2365
406
|
active = false;
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
};
|
|
2369
|
-
_proto.onTransitionEnd = function onTransitionEnd(node, timeout, handler) {
|
|
2370
|
-
this.setNextCallback(handler);
|
|
2371
|
-
var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
|
|
2372
|
-
if (!node || doesNotHaveTimeoutOrListener) {
|
|
2373
|
-
setTimeout(this.nextCallback, 0);
|
|
2374
|
-
return;
|
|
2375
|
-
}
|
|
2376
|
-
if (this.props.addEndListener) {
|
|
2377
|
-
this.props.addEndListener(node, this.nextCallback);
|
|
2378
|
-
}
|
|
2379
|
-
if (timeout != null) {
|
|
2380
|
-
setTimeout(this.nextCallback, timeout);
|
|
407
|
+
_this4.nextCallback = null;
|
|
408
|
+
callback(event);
|
|
2381
409
|
}
|
|
2382
410
|
};
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
if (status === UNMOUNTED) {
|
|
2386
|
-
return null;
|
|
2387
|
-
}
|
|
2388
|
-
var _this$props = this.props, children = _this$props.children, childProps = _objectWithoutPropertiesLoose(_this$props, ["children"]);
|
|
2389
|
-
delete childProps.in;
|
|
2390
|
-
delete childProps.mountOnEnter;
|
|
2391
|
-
delete childProps.unmountOnExit;
|
|
2392
|
-
delete childProps.appear;
|
|
2393
|
-
delete childProps.enter;
|
|
2394
|
-
delete childProps.exit;
|
|
2395
|
-
delete childProps.timeout;
|
|
2396
|
-
delete childProps.addEndListener;
|
|
2397
|
-
delete childProps.onEnter;
|
|
2398
|
-
delete childProps.onEntering;
|
|
2399
|
-
delete childProps.onEntered;
|
|
2400
|
-
delete childProps.onExit;
|
|
2401
|
-
delete childProps.onExiting;
|
|
2402
|
-
delete childProps.onExited;
|
|
2403
|
-
if (typeof children === 'function') {
|
|
2404
|
-
return children(status, childProps);
|
|
2405
|
-
}
|
|
2406
|
-
var child = _react.default.Children.only(children);
|
|
2407
|
-
return _react.default.cloneElement(child, childProps);
|
|
411
|
+
this.nextCallback.cancel = function () {
|
|
412
|
+
active = false;
|
|
2408
413
|
};
|
|
2409
|
-
return
|
|
2410
|
-
})(_react.default.Component);
|
|
2411
|
-
Transition.contextTypes = {
|
|
2412
|
-
transitionGroup: PropTypes.object
|
|
414
|
+
return this.nextCallback;
|
|
2413
415
|
};
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
if (!props.addEndListener) pt = pt.isRequired;
|
|
2428
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
2429
|
-
args[_key - 1] = arguments[_key];
|
|
2430
|
-
}
|
|
2431
|
-
return pt.apply(void 0, [props].concat(args));
|
|
2432
|
-
},
|
|
2433
|
-
addEndListener: PropTypes.func,
|
|
2434
|
-
onEnter: PropTypes.func,
|
|
2435
|
-
onEntering: PropTypes.func,
|
|
2436
|
-
onEntered: PropTypes.func,
|
|
2437
|
-
onExit: PropTypes.func,
|
|
2438
|
-
onExiting: PropTypes.func,
|
|
2439
|
-
onExited: PropTypes.func
|
|
416
|
+
_proto.onTransitionEnd = function onTransitionEnd(node, timeout, handler) {
|
|
417
|
+
this.setNextCallback(handler);
|
|
418
|
+
var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
|
|
419
|
+
if (!node || doesNotHaveTimeoutOrListener) {
|
|
420
|
+
setTimeout(this.nextCallback, 0);
|
|
421
|
+
return;
|
|
422
|
+
}
|
|
423
|
+
if (this.props.addEndListener) {
|
|
424
|
+
this.props.addEndListener(node, this.nextCallback);
|
|
425
|
+
}
|
|
426
|
+
if (timeout != null) {
|
|
427
|
+
setTimeout(this.nextCallback, timeout);
|
|
428
|
+
}
|
|
2440
429
|
};
|
|
2441
|
-
function
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
430
|
+
_proto.render = function render() {
|
|
431
|
+
var status = this.state.status;
|
|
432
|
+
if (status === UNMOUNTED) {
|
|
433
|
+
return null;
|
|
434
|
+
}
|
|
435
|
+
var _this$props = this.props, children = _this$props.children, childProps = _objectWithoutPropertiesLoose(_this$props, ["children"]);
|
|
436
|
+
delete childProps.in;
|
|
437
|
+
delete childProps.mountOnEnter;
|
|
438
|
+
delete childProps.unmountOnExit;
|
|
439
|
+
delete childProps.appear;
|
|
440
|
+
delete childProps.enter;
|
|
441
|
+
delete childProps.exit;
|
|
442
|
+
delete childProps.timeout;
|
|
443
|
+
delete childProps.addEndListener;
|
|
444
|
+
delete childProps.onEnter;
|
|
445
|
+
delete childProps.onEntering;
|
|
446
|
+
delete childProps.onEntered;
|
|
447
|
+
delete childProps.onExit;
|
|
448
|
+
delete childProps.onExiting;
|
|
449
|
+
delete childProps.onExited;
|
|
450
|
+
if (typeof children === 'function') {
|
|
451
|
+
return children(status, childProps);
|
|
452
|
+
}
|
|
453
|
+
var child = _react$1.default.Children.only(children);
|
|
454
|
+
return _react$1.default.cloneElement(child, childProps);
|
|
2455
455
|
};
|
|
2456
|
-
Transition
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
}
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
456
|
+
return Transition;
|
|
457
|
+
})(_react$1.default.Component);
|
|
458
|
+
Transition.contextTypes = {
|
|
459
|
+
transitionGroup: PropTypes$5.object
|
|
460
|
+
};
|
|
461
|
+
Transition.childContextTypes = {
|
|
462
|
+
transitionGroup: function transitionGroup() {}
|
|
463
|
+
};
|
|
464
|
+
Transition.propTypes = {
|
|
465
|
+
children: PropTypes$5.oneOfType([PropTypes$5.func.isRequired, PropTypes$5.element.isRequired]).isRequired,
|
|
466
|
+
in: PropTypes$5.bool,
|
|
467
|
+
mountOnEnter: PropTypes$5.bool,
|
|
468
|
+
unmountOnExit: PropTypes$5.bool,
|
|
469
|
+
appear: PropTypes$5.bool,
|
|
470
|
+
enter: PropTypes$5.bool,
|
|
471
|
+
exit: PropTypes$5.bool,
|
|
472
|
+
timeout: function timeout(props) {
|
|
473
|
+
var pt = _PropTypes.timeoutsShape;
|
|
474
|
+
if (!props.addEndListener) pt = pt.isRequired;
|
|
475
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
476
|
+
args[_key - 1] = arguments[_key];
|
|
477
|
+
}
|
|
478
|
+
return pt.apply(void 0, [props].concat(args));
|
|
479
|
+
},
|
|
480
|
+
addEndListener: PropTypes$5.func,
|
|
481
|
+
onEnter: PropTypes$5.func,
|
|
482
|
+
onEntering: PropTypes$5.func,
|
|
483
|
+
onEntered: PropTypes$5.func,
|
|
484
|
+
onExit: PropTypes$5.func,
|
|
485
|
+
onExiting: PropTypes$5.func,
|
|
486
|
+
onExited: PropTypes$5.func
|
|
487
|
+
};
|
|
488
|
+
function noop() {}
|
|
489
|
+
Transition.defaultProps = {
|
|
490
|
+
in: false,
|
|
491
|
+
mountOnEnter: false,
|
|
492
|
+
unmountOnExit: false,
|
|
493
|
+
appear: false,
|
|
494
|
+
enter: true,
|
|
495
|
+
exit: true,
|
|
496
|
+
onEnter: noop,
|
|
497
|
+
onEntering: noop,
|
|
498
|
+
onEntered: noop,
|
|
499
|
+
onExit: noop,
|
|
500
|
+
onExiting: noop,
|
|
501
|
+
onExited: noop
|
|
502
|
+
};
|
|
503
|
+
Transition.UNMOUNTED = 0;
|
|
504
|
+
Transition.EXITED = 1;
|
|
505
|
+
Transition.ENTERING = 2;
|
|
506
|
+
Transition.ENTERED = 3;
|
|
507
|
+
Transition.EXITING = 4;
|
|
508
|
+
var _default = (0, _reactLifecyclesCompat.polyfill)(Transition);
|
|
509
|
+
Transition$1.default = _default;
|
|
2471
510
|
const require$$0$3 = _dll_prop_types;
|
|
2472
511
|
const require$$3 = _dll_react;
|
|
2473
|
-
|
|
512
|
+
(function (module, exports) {
|
|
2474
513
|
exports.__esModule = true;
|
|
2475
514
|
exports.default = void 0;
|
|
2476
515
|
var PropTypes = _interopRequireWildcard(require$$0$3);
|
|
2477
|
-
var _addClass = _interopRequireDefault(
|
|
516
|
+
var _addClass = _interopRequireDefault(addClass.exports);
|
|
2478
517
|
var _removeClass = _interopRequireDefault(removeClass);
|
|
2479
518
|
var _react = _interopRequireDefault(require$$3);
|
|
2480
|
-
var _Transition = _interopRequireDefault(
|
|
519
|
+
var _Transition = _interopRequireDefault(Transition$1);
|
|
520
|
+
var _PropTypes = PropTypes$6;
|
|
2481
521
|
function _interopRequireDefault(obj) {
|
|
2482
522
|
return obj && obj.__esModule ? obj : {
|
|
2483
523
|
default: obj
|
|
@@ -2523,7 +563,7 @@ var CSSTransition_1 = createCommonjsModule(function (module, exports) {
|
|
|
2523
563
|
subClass.prototype.constructor = subClass;
|
|
2524
564
|
subClass.__proto__ = superClass;
|
|
2525
565
|
}
|
|
2526
|
-
var addClass = function addClass(node, classes) {
|
|
566
|
+
var addClass$1 = function addClass(node, classes) {
|
|
2527
567
|
return node && classes && classes.split(' ').forEach(function (c) {
|
|
2528
568
|
return (0, _addClass.default)(node, c);
|
|
2529
569
|
});
|
|
@@ -2544,7 +584,7 @@ var CSSTransition_1 = createCommonjsModule(function (module, exports) {
|
|
|
2544
584
|
_this.onEnter = function (node, appearing) {
|
|
2545
585
|
var _this$getClassNames = _this.getClassNames(appearing ? 'appear' : 'enter'), className = _this$getClassNames.className;
|
|
2546
586
|
_this.removeClasses(node, 'exit');
|
|
2547
|
-
addClass(node, className);
|
|
587
|
+
addClass$1(node, className);
|
|
2548
588
|
if (_this.props.onEnter) {
|
|
2549
589
|
_this.props.onEnter(node, appearing);
|
|
2550
590
|
}
|
|
@@ -2561,7 +601,7 @@ var CSSTransition_1 = createCommonjsModule(function (module, exports) {
|
|
|
2561
601
|
var enterClassName = _this.getClassNames('enter').doneClassName;
|
|
2562
602
|
var doneClassName = appearing ? appearClassName + " " + enterClassName : enterClassName;
|
|
2563
603
|
_this.removeClasses(node, appearing ? 'appear' : 'enter');
|
|
2564
|
-
addClass(node, doneClassName);
|
|
604
|
+
addClass$1(node, doneClassName);
|
|
2565
605
|
if (_this.props.onEntered) {
|
|
2566
606
|
_this.props.onEntered(node, appearing);
|
|
2567
607
|
}
|
|
@@ -2570,7 +610,7 @@ var CSSTransition_1 = createCommonjsModule(function (module, exports) {
|
|
|
2570
610
|
var _this$getClassNames3 = _this.getClassNames('exit'), className = _this$getClassNames3.className;
|
|
2571
611
|
_this.removeClasses(node, 'appear');
|
|
2572
612
|
_this.removeClasses(node, 'enter');
|
|
2573
|
-
addClass(node, className);
|
|
613
|
+
addClass$1(node, className);
|
|
2574
614
|
if (_this.props.onExit) {
|
|
2575
615
|
_this.props.onExit(node);
|
|
2576
616
|
}
|
|
@@ -2585,7 +625,7 @@ var CSSTransition_1 = createCommonjsModule(function (module, exports) {
|
|
|
2585
625
|
_this.onExited = function (node) {
|
|
2586
626
|
var _this$getClassNames5 = _this.getClassNames('exit'), doneClassName = _this$getClassNames5.doneClassName;
|
|
2587
627
|
_this.removeClasses(node, 'exit');
|
|
2588
|
-
addClass(node, doneClassName);
|
|
628
|
+
addClass$1(node, doneClassName);
|
|
2589
629
|
if (_this.props.onExited) {
|
|
2590
630
|
_this.props.onExited(node);
|
|
2591
631
|
}
|
|
@@ -2615,7 +655,7 @@ var CSSTransition_1 = createCommonjsModule(function (module, exports) {
|
|
|
2615
655
|
_proto.reflowAndAddClass = function reflowAndAddClass(node, className) {
|
|
2616
656
|
if (className) {
|
|
2617
657
|
node && node.scrollTop;
|
|
2618
|
-
addClass(node, className);
|
|
658
|
+
addClass$1(node, className);
|
|
2619
659
|
}
|
|
2620
660
|
};
|
|
2621
661
|
_proto.render = function render() {
|
|
@@ -2647,121 +687,123 @@ var CSSTransition_1 = createCommonjsModule(function (module, exports) {
|
|
|
2647
687
|
var _default = CSSTransition;
|
|
2648
688
|
exports.default = _default;
|
|
2649
689
|
module.exports = exports["default"];
|
|
2650
|
-
});
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
exports
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
690
|
+
})(CSSTransition, CSSTransition.exports);
|
|
691
|
+
getDefaultExportFromCjs(CSSTransition.exports);
|
|
692
|
+
var ReplaceTransition = {
|
|
693
|
+
exports: {}
|
|
694
|
+
};
|
|
695
|
+
var TransitionGroup = {
|
|
696
|
+
exports: {}
|
|
697
|
+
};
|
|
698
|
+
var ChildMapping = {};
|
|
699
|
+
const require$$0$2 = _dll_react;
|
|
700
|
+
ChildMapping.__esModule = true;
|
|
701
|
+
ChildMapping.getChildMapping = getChildMapping;
|
|
702
|
+
ChildMapping.mergeChildMappings = mergeChildMappings;
|
|
703
|
+
ChildMapping.getInitialChildMapping = getInitialChildMapping;
|
|
704
|
+
ChildMapping.getNextChildMapping = getNextChildMapping;
|
|
705
|
+
var _react = require$$0$2;
|
|
706
|
+
function getChildMapping(children, mapFn) {
|
|
707
|
+
var mapper = function mapper(child) {
|
|
708
|
+
return mapFn && (0, _react.isValidElement)(child) ? mapFn(child) : child;
|
|
709
|
+
};
|
|
710
|
+
var result = Object.create(null);
|
|
711
|
+
if (children) _react.Children.map(children, function (c) {
|
|
712
|
+
return c;
|
|
713
|
+
}).forEach(function (child) {
|
|
714
|
+
result[child.key] = mapper(child);
|
|
715
|
+
});
|
|
716
|
+
return result;
|
|
717
|
+
}
|
|
718
|
+
function mergeChildMappings(prev, next) {
|
|
719
|
+
prev = prev || ({});
|
|
720
|
+
next = next || ({});
|
|
721
|
+
function getValueForKey(key) {
|
|
722
|
+
return (key in next) ? next[key] : prev[key];
|
|
723
|
+
}
|
|
724
|
+
var nextKeysPending = Object.create(null);
|
|
725
|
+
var pendingKeys = [];
|
|
726
|
+
for (var prevKey in prev) {
|
|
727
|
+
if ((prevKey in next)) {
|
|
728
|
+
if (pendingKeys.length) {
|
|
729
|
+
nextKeysPending[prevKey] = pendingKeys;
|
|
730
|
+
pendingKeys = [];
|
|
2687
731
|
}
|
|
732
|
+
} else {
|
|
733
|
+
pendingKeys.push(prevKey);
|
|
2688
734
|
}
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
735
|
+
}
|
|
736
|
+
var i;
|
|
737
|
+
var childMapping = {};
|
|
738
|
+
for (var nextKey in next) {
|
|
739
|
+
if (nextKeysPending[nextKey]) {
|
|
740
|
+
for (i = 0; i < nextKeysPending[nextKey].length; i++) {
|
|
741
|
+
var pendingNextKey = nextKeysPending[nextKey][i];
|
|
742
|
+
childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);
|
|
2697
743
|
}
|
|
2698
|
-
childMapping[nextKey] = getValueForKey(nextKey);
|
|
2699
744
|
}
|
|
2700
|
-
|
|
2701
|
-
childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);
|
|
2702
|
-
}
|
|
2703
|
-
return childMapping;
|
|
745
|
+
childMapping[nextKey] = getValueForKey(nextKey);
|
|
2704
746
|
}
|
|
2705
|
-
|
|
2706
|
-
|
|
747
|
+
for (i = 0; i < pendingKeys.length; i++) {
|
|
748
|
+
childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);
|
|
2707
749
|
}
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
750
|
+
return childMapping;
|
|
751
|
+
}
|
|
752
|
+
function getProp(child, prop, props) {
|
|
753
|
+
return props[prop] != null ? props[prop] : child.props[prop];
|
|
754
|
+
}
|
|
755
|
+
function getInitialChildMapping(props, onExited) {
|
|
756
|
+
return getChildMapping(props.children, function (child) {
|
|
757
|
+
return (0, _react.cloneElement)(child, {
|
|
758
|
+
onExited: onExited.bind(null, child),
|
|
759
|
+
in: true,
|
|
760
|
+
appear: getProp(child, 'appear', props),
|
|
761
|
+
enter: getProp(child, 'enter', props),
|
|
762
|
+
exit: getProp(child, 'exit', props)
|
|
763
|
+
});
|
|
764
|
+
});
|
|
765
|
+
}
|
|
766
|
+
function getNextChildMapping(nextProps, prevChildMapping, onExited) {
|
|
767
|
+
var nextChildMapping = getChildMapping(nextProps.children);
|
|
768
|
+
var children = mergeChildMappings(prevChildMapping, nextChildMapping);
|
|
769
|
+
Object.keys(children).forEach(function (key) {
|
|
770
|
+
var child = children[key];
|
|
771
|
+
if (!(0, _react.isValidElement)(child)) return;
|
|
772
|
+
var hasPrev = (key in prevChildMapping);
|
|
773
|
+
var hasNext = (key in nextChildMapping);
|
|
774
|
+
var prevChild = prevChildMapping[key];
|
|
775
|
+
var isLeaving = (0, _react.isValidElement)(prevChild) && !prevChild.props.in;
|
|
776
|
+
if (hasNext && (!hasPrev || isLeaving)) {
|
|
777
|
+
children[key] = (0, _react.cloneElement)(child, {
|
|
2711
778
|
onExited: onExited.bind(null, child),
|
|
2712
779
|
in: true,
|
|
2713
|
-
|
|
2714
|
-
enter: getProp(child, 'enter',
|
|
2715
|
-
exit: getProp(child, 'exit', props)
|
|
780
|
+
exit: getProp(child, 'exit', nextProps),
|
|
781
|
+
enter: getProp(child, 'enter', nextProps)
|
|
2716
782
|
});
|
|
2717
|
-
})
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
});
|
|
2736
|
-
} else if (!hasNext && hasPrev && !isLeaving) {
|
|
2737
|
-
children[key] = (0, _react.cloneElement)(child, {
|
|
2738
|
-
in: false
|
|
2739
|
-
});
|
|
2740
|
-
} else if (hasNext && hasPrev && (0, _react.isValidElement)(prevChild)) {
|
|
2741
|
-
children[key] = (0, _react.cloneElement)(child, {
|
|
2742
|
-
onExited: onExited.bind(null, child),
|
|
2743
|
-
in: prevChild.props.in,
|
|
2744
|
-
exit: getProp(child, 'exit', nextProps),
|
|
2745
|
-
enter: getProp(child, 'enter', nextProps)
|
|
2746
|
-
});
|
|
2747
|
-
}
|
|
2748
|
-
});
|
|
2749
|
-
return children;
|
|
2750
|
-
}
|
|
2751
|
-
});
|
|
2752
|
-
unwrapExports(ChildMapping);
|
|
2753
|
-
ChildMapping.getChildMapping;
|
|
2754
|
-
ChildMapping.mergeChildMappings;
|
|
2755
|
-
ChildMapping.getInitialChildMapping;
|
|
2756
|
-
ChildMapping.getNextChildMapping;
|
|
2757
|
-
var _ChildMapping = ChildMapping;
|
|
2758
|
-
const require$$0$2 = _dll_prop_types;
|
|
2759
|
-
const require$$1$2 = _dll_react;
|
|
2760
|
-
var TransitionGroup_1 = createCommonjsModule(function (module, exports) {
|
|
783
|
+
} else if (!hasNext && hasPrev && !isLeaving) {
|
|
784
|
+
children[key] = (0, _react.cloneElement)(child, {
|
|
785
|
+
in: false
|
|
786
|
+
});
|
|
787
|
+
} else if (hasNext && hasPrev && (0, _react.isValidElement)(prevChild)) {
|
|
788
|
+
children[key] = (0, _react.cloneElement)(child, {
|
|
789
|
+
onExited: onExited.bind(null, child),
|
|
790
|
+
in: prevChild.props.in,
|
|
791
|
+
exit: getProp(child, 'exit', nextProps),
|
|
792
|
+
enter: getProp(child, 'enter', nextProps)
|
|
793
|
+
});
|
|
794
|
+
}
|
|
795
|
+
});
|
|
796
|
+
return children;
|
|
797
|
+
}
|
|
798
|
+
const require$$0$1 = _dll_prop_types;
|
|
799
|
+
const require$$1$1 = _dll_react;
|
|
800
|
+
(function (module, exports) {
|
|
2761
801
|
exports.__esModule = true;
|
|
2762
802
|
exports.default = void 0;
|
|
2763
|
-
var _propTypes = _interopRequireDefault(require$$0$
|
|
2764
|
-
var _react = _interopRequireDefault(require$$1$
|
|
803
|
+
var _propTypes = _interopRequireDefault(require$$0$1);
|
|
804
|
+
var _react = _interopRequireDefault(require$$1$1);
|
|
805
|
+
var _reactLifecyclesCompat = require$$2$2;
|
|
806
|
+
var _ChildMapping = ChildMapping;
|
|
2765
807
|
function _interopRequireDefault(obj) {
|
|
2766
808
|
return obj && obj.__esModule ? obj : {
|
|
2767
809
|
default: obj
|
|
@@ -2890,21 +932,21 @@ var TransitionGroup_1 = createCommonjsModule(function (module, exports) {
|
|
|
2890
932
|
childFactory: _propTypes.default.func
|
|
2891
933
|
};
|
|
2892
934
|
TransitionGroup.defaultProps = defaultProps;
|
|
2893
|
-
var _default = (0,
|
|
935
|
+
var _default = (0, _reactLifecyclesCompat.polyfill)(TransitionGroup);
|
|
2894
936
|
exports.default = _default;
|
|
2895
937
|
module.exports = exports["default"];
|
|
2896
|
-
});
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
const require$$
|
|
2900
|
-
const require$$
|
|
2901
|
-
|
|
2902
|
-
var ReplaceTransition_1 = createCommonjsModule(function (module, exports) {
|
|
938
|
+
})(TransitionGroup, TransitionGroup.exports);
|
|
939
|
+
getDefaultExportFromCjs(TransitionGroup.exports);
|
|
940
|
+
const require$$0 = _dll_prop_types;
|
|
941
|
+
const require$$1 = _dll_react;
|
|
942
|
+
const require$$2 = _dll_react_dom;
|
|
943
|
+
(function (module, exports) {
|
|
2903
944
|
exports.__esModule = true;
|
|
2904
945
|
exports.default = void 0;
|
|
2905
|
-
var _propTypes = _interopRequireDefault(require$$0
|
|
2906
|
-
var _react = _interopRequireDefault(require$$1
|
|
2907
|
-
var
|
|
946
|
+
var _propTypes = _interopRequireDefault(require$$0);
|
|
947
|
+
var _react = _interopRequireDefault(require$$1);
|
|
948
|
+
var _reactDom = require$$2;
|
|
949
|
+
var _TransitionGroup = _interopRequireDefault(TransitionGroup.exports);
|
|
2908
950
|
function _interopRequireDefault(obj) {
|
|
2909
951
|
return obj && obj.__esModule ? obj : {
|
|
2910
952
|
default: obj
|
|
@@ -3014,669 +1056,34 @@ var ReplaceTransition_1 = createCommonjsModule(function (module, exports) {
|
|
|
3014
1056
|
var _default = ReplaceTransition;
|
|
3015
1057
|
exports.default = _default;
|
|
3016
1058
|
module.exports = exports["default"];
|
|
3017
|
-
});
|
|
3018
|
-
|
|
3019
|
-
var
|
|
3020
|
-
var
|
|
3021
|
-
var
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
function _interopRequireDefault(obj) {
|
|
3027
|
-
return obj && obj.__esModule ? obj : {
|
|
3028
|
-
default: obj
|
|
3029
|
-
};
|
|
3030
|
-
}
|
|
3031
|
-
module.exports = {
|
|
3032
|
-
Transition: _Transition.default,
|
|
3033
|
-
TransitionGroup: _TransitionGroup.default,
|
|
3034
|
-
ReplaceTransition: _ReplaceTransition.default,
|
|
3035
|
-
CSSTransition: _CSSTransition.default
|
|
3036
|
-
};
|
|
3037
|
-
});
|
|
3038
|
-
unwrapExports(reactTransitionGroup);
|
|
3039
|
-
reactTransitionGroup.Transition;
|
|
3040
|
-
var reactTransitionGroup_2 = reactTransitionGroup.TransitionGroup;
|
|
3041
|
-
reactTransitionGroup.ReplaceTransition;
|
|
3042
|
-
var reactTransitionGroup_4 = reactTransitionGroup.CSSTransition;
|
|
3043
|
-
const {colors: {green: green}} = _dll_material_ui__core;
|
|
3044
|
-
const {colors: {orange: orange}} = _dll_material_ui__core;
|
|
3045
|
-
const {colors: {pink: pink}} = _dll_material_ui__core;
|
|
3046
|
-
const {colors: {indigo: indigo}} = _dll_material_ui__core;
|
|
3047
|
-
const defaults = {
|
|
3048
|
-
TEXT: 'black',
|
|
3049
|
-
DISABLED: 'grey',
|
|
3050
|
-
CORRECT: green[500],
|
|
3051
|
-
INCORRECT: orange[500],
|
|
3052
|
-
PRIMARY: indigo[500],
|
|
3053
|
-
PRIMARY_LIGHT: indigo[200],
|
|
3054
|
-
PRIMARY_DARK: indigo[800],
|
|
3055
|
-
SECONDARY: pink.A400,
|
|
3056
|
-
SECONDARY_LIGHT: pink[200],
|
|
3057
|
-
SECONDARY_DARK: pink[900],
|
|
3058
|
-
BACKGROUND: 'rgba(255,255,255,0)',
|
|
3059
|
-
SECONDARY_BACKGROUND: 'rgba(241,241,241,1)'
|
|
3060
|
-
};
|
|
3061
|
-
Object.freeze(defaults);
|
|
3062
|
-
const v = prefix => (...args) => {
|
|
3063
|
-
const fallback = args.pop();
|
|
3064
|
-
return args.reduceRight((acc, v) => {
|
|
3065
|
-
return `var(--${prefix}-${v}, ${acc})`;
|
|
3066
|
-
}, fallback);
|
|
3067
|
-
};
|
|
3068
|
-
const pv = v('pie');
|
|
3069
|
-
const text = () => pv('text', defaults.TEXT);
|
|
3070
|
-
const disabled = () => pv('disabled', defaults.DISABLED);
|
|
3071
|
-
const correct = () => pv('correct', defaults.CORRECT);
|
|
3072
|
-
const incorrect = () => pv('incorrect', defaults.INCORRECT);
|
|
3073
|
-
const primary = () => pv('primary', defaults.PRIMARY);
|
|
3074
|
-
const primaryLight = () => pv('primary-light', defaults.PRIMARY_LIGHT);
|
|
3075
|
-
const background = () => pv('background', defaults.BACKGROUND);
|
|
3076
|
-
const {withStyles: withStyles$a} = _dll_material_ui__core_styles;
|
|
3077
|
-
const React$c = _dll_react;
|
|
3078
|
-
const classNames$5 = _dll_classnames;
|
|
3079
|
-
const PropTypes$d = _dll_prop_types;
|
|
3080
|
-
const _jsxFileName$b = "/home/ede/dev/github/pie-framework/pie-elements/packages/multiple-choice/node_modules/@pie-lib/render-ui/src/feedback.jsx";
|
|
3081
|
-
const styleSheet$1 = {
|
|
3082
|
-
corespringFeedback: {
|
|
3083
|
-
transformOrigin: '0% 0px 0px',
|
|
3084
|
-
width: '100%',
|
|
3085
|
-
display: 'block',
|
|
3086
|
-
overflow: 'hidden',
|
|
3087
|
-
'&:.incorrect': {
|
|
3088
|
-
color: '#946202'
|
|
3089
|
-
}
|
|
3090
|
-
},
|
|
3091
|
-
content: {
|
|
3092
|
-
'-webkit-font-smoothing': 'antialiased',
|
|
3093
|
-
backgroundColor: `var(--feedback-bg-color, ${disabled()})`,
|
|
3094
|
-
borderRadius: '4px',
|
|
3095
|
-
fontFamily: '"Roboto", "Noto", sans-serif',
|
|
3096
|
-
fontSize: '12px',
|
|
3097
|
-
lineHeight: '25px',
|
|
3098
|
-
margin: '0px',
|
|
3099
|
-
padding: '10px',
|
|
3100
|
-
verticalAlign: 'middle',
|
|
3101
|
-
color: 'var(--feedback-color, white)'
|
|
3102
|
-
},
|
|
3103
|
-
correct: {
|
|
3104
|
-
backgroundColor: `var(--feedback-correct-bg-color, ${correct()})`
|
|
3105
|
-
},
|
|
3106
|
-
incorrect: {
|
|
3107
|
-
backgroundColor: `var(--feedback-incorrect-bg-color, ${incorrect()})`
|
|
3108
|
-
},
|
|
3109
|
-
feedbackEnter: {
|
|
3110
|
-
height: '1px'
|
|
3111
|
-
},
|
|
3112
|
-
feedbackEnterActive: {
|
|
3113
|
-
height: '45px',
|
|
3114
|
-
transition: 'height 500ms'
|
|
3115
|
-
},
|
|
3116
|
-
feedbackLeave: {
|
|
3117
|
-
height: '45px'
|
|
3118
|
-
},
|
|
3119
|
-
feedbackLeaveActive: {
|
|
3120
|
-
height: '1px',
|
|
3121
|
-
transition: 'height 200ms'
|
|
3122
|
-
}
|
|
3123
|
-
};
|
|
3124
|
-
class Feedback extends React$c.Component {
|
|
3125
|
-
static __initStatic() {
|
|
3126
|
-
this.propTypes = {
|
|
3127
|
-
correctness: PropTypes$d.string,
|
|
3128
|
-
feedback: PropTypes$d.string,
|
|
3129
|
-
classes: PropTypes$d.object.isRequired
|
|
3130
|
-
};
|
|
3131
|
-
}
|
|
3132
|
-
render() {
|
|
3133
|
-
const {correctness, feedback, classes} = this.props;
|
|
3134
|
-
function chooseFeedback(correctness) {
|
|
3135
|
-
if (correctness && feedback) {
|
|
3136
|
-
return React$c.createElement(reactTransitionGroup_4, {
|
|
3137
|
-
classNames: {
|
|
3138
|
-
enter: classes.feedbackEnter,
|
|
3139
|
-
enterActive: classes.feedbackEnterActive,
|
|
3140
|
-
leave: classes.feedbackLeave,
|
|
3141
|
-
leaveActive: classes.feedbackLeaveActive
|
|
3142
|
-
},
|
|
3143
|
-
key: "hasFeedback",
|
|
3144
|
-
timeout: {
|
|
3145
|
-
enter: 500,
|
|
3146
|
-
exit: 300
|
|
3147
|
-
},
|
|
3148
|
-
__self: this,
|
|
3149
|
-
__source: {
|
|
3150
|
-
fileName: _jsxFileName$b,
|
|
3151
|
-
lineNumber: 69
|
|
3152
|
-
}
|
|
3153
|
-
}, React$c.createElement('div', {
|
|
3154
|
-
className: classes.corespringFeedback,
|
|
3155
|
-
__self: this,
|
|
3156
|
-
__source: {
|
|
3157
|
-
fileName: _jsxFileName$b,
|
|
3158
|
-
lineNumber: 79
|
|
3159
|
-
}
|
|
3160
|
-
}, React$c.createElement('div', {
|
|
3161
|
-
className: classNames$5(classes.content, classes[correctness]),
|
|
3162
|
-
dangerouslySetInnerHTML: {
|
|
3163
|
-
__html: feedback
|
|
3164
|
-
},
|
|
3165
|
-
__self: this,
|
|
3166
|
-
__source: {
|
|
3167
|
-
fileName: _jsxFileName$b,
|
|
3168
|
-
lineNumber: 80
|
|
3169
|
-
}
|
|
3170
|
-
})));
|
|
3171
|
-
} else {
|
|
3172
|
-
return null;
|
|
3173
|
-
}
|
|
3174
|
-
}
|
|
3175
|
-
return React$c.createElement('div', {
|
|
3176
|
-
__self: this,
|
|
3177
|
-
__source: {
|
|
3178
|
-
fileName: _jsxFileName$b,
|
|
3179
|
-
lineNumber: 93
|
|
3180
|
-
}
|
|
3181
|
-
}, React$c.createElement(reactTransitionGroup_2, {
|
|
3182
|
-
__self: this,
|
|
3183
|
-
__source: {
|
|
3184
|
-
fileName: _jsxFileName$b,
|
|
3185
|
-
lineNumber: 94
|
|
3186
|
-
}
|
|
3187
|
-
}, chooseFeedback(correctness)));
|
|
3188
|
-
}
|
|
3189
|
-
}
|
|
3190
|
-
Feedback.__initStatic();
|
|
3191
|
-
var Feedback$1 = withStyles$a(styleSheet$1, {
|
|
3192
|
-
name: 'Feedback'
|
|
3193
|
-
})(Feedback);
|
|
3194
|
-
const React$b = _dll_react;
|
|
3195
|
-
const PropTypes$c = _dll_prop_types;
|
|
3196
|
-
const {Popover: Popover} = _dll_material_ui__core;
|
|
3197
|
-
const {withStyles: withStyles$9} = _dll_material_ui__core_styles;
|
|
3198
|
-
const debug$1 = _dll_debug;
|
|
3199
|
-
const _jsxFileName$a = "/home/ede/dev/github/pie-framework/pie-elements/packages/multiple-choice/node_modules/@pie-lib/render-ui/src/response-indicators.jsx";
|
|
3200
|
-
const log$1 = debug$1('pie-libs:render-ui:response-indicators');
|
|
3201
|
-
const styles$3 = () => ({
|
|
3202
|
-
responseIndicator: {
|
|
3203
|
-
cursor: 'pointer'
|
|
3204
|
-
},
|
|
3205
|
-
paper: {
|
|
3206
|
-
padding: '0',
|
|
3207
|
-
borderRadius: '4px'
|
|
3208
|
-
},
|
|
3209
|
-
popover: {
|
|
3210
|
-
cursor: 'pointer'
|
|
3211
|
-
},
|
|
3212
|
-
popperClose: {
|
|
3213
|
-
cursor: 'pointer'
|
|
3214
|
-
}
|
|
3215
|
-
});
|
|
3216
|
-
const BuildIndicator = (Icon, correctness) => {
|
|
3217
|
-
class RawIndicator extends React$b.Component {
|
|
3218
|
-
constructor(props) {
|
|
3219
|
-
super(props);
|
|
3220
|
-
RawIndicator.prototype.__init.call(this);
|
|
3221
|
-
RawIndicator.prototype.__init2.call(this);
|
|
3222
|
-
this.state = {};
|
|
3223
|
-
}
|
|
3224
|
-
__init() {
|
|
3225
|
-
this.handlePopoverOpen = event => {
|
|
3226
|
-
log$1('[handlePopoverOpen]', event.target);
|
|
3227
|
-
this.setState({
|
|
3228
|
-
anchorEl: event.target
|
|
3229
|
-
});
|
|
3230
|
-
};
|
|
3231
|
-
}
|
|
3232
|
-
__init2() {
|
|
3233
|
-
this.handlePopoverClose = () => {
|
|
3234
|
-
this.setState({
|
|
3235
|
-
anchorEl: null
|
|
3236
|
-
});
|
|
3237
|
-
};
|
|
3238
|
-
}
|
|
3239
|
-
render() {
|
|
3240
|
-
const {feedback, classes} = this.props;
|
|
3241
|
-
const {anchorEl} = this.state;
|
|
3242
|
-
return React$b.createElement('div', {
|
|
3243
|
-
className: feedback && classes.responseIndicator,
|
|
3244
|
-
__self: this,
|
|
3245
|
-
__source: {
|
|
3246
|
-
fileName: _jsxFileName$a,
|
|
3247
|
-
lineNumber: 47
|
|
3248
|
-
}
|
|
3249
|
-
}, React$b.createElement('span', {
|
|
3250
|
-
ref: r => this.icon = r,
|
|
3251
|
-
onClick: this.handlePopoverOpen,
|
|
3252
|
-
__self: this,
|
|
3253
|
-
__source: {
|
|
3254
|
-
fileName: _jsxFileName$a,
|
|
3255
|
-
lineNumber: 48
|
|
3256
|
-
}
|
|
3257
|
-
}, React$b.createElement(Icon, {
|
|
3258
|
-
__self: this,
|
|
3259
|
-
__source: {
|
|
3260
|
-
fileName: _jsxFileName$a,
|
|
3261
|
-
lineNumber: 49
|
|
3262
|
-
}
|
|
3263
|
-
})), feedback && React$b.createElement(Popover, {
|
|
3264
|
-
className: classes.popover,
|
|
3265
|
-
classes: {
|
|
3266
|
-
paper: classes.paper
|
|
3267
|
-
},
|
|
3268
|
-
open: !!anchorEl,
|
|
3269
|
-
anchorEl: anchorEl,
|
|
3270
|
-
anchorOrigin: {
|
|
3271
|
-
vertical: 'bottom',
|
|
3272
|
-
horizontal: 'left'
|
|
3273
|
-
},
|
|
3274
|
-
transformOrigin: {
|
|
3275
|
-
vertical: 'top',
|
|
3276
|
-
horizontal: 'left'
|
|
3277
|
-
},
|
|
3278
|
-
onClose: this.handlePopoverClose,
|
|
3279
|
-
__self: this,
|
|
3280
|
-
__source: {
|
|
3281
|
-
fileName: _jsxFileName$a,
|
|
3282
|
-
lineNumber: 53
|
|
3283
|
-
}
|
|
3284
|
-
}, React$b.createElement(Feedback$1, {
|
|
3285
|
-
feedback: feedback,
|
|
3286
|
-
correctness: correctness,
|
|
3287
|
-
__self: this,
|
|
3288
|
-
__source: {
|
|
3289
|
-
fileName: _jsxFileName$a,
|
|
3290
|
-
lineNumber: 70
|
|
3291
|
-
}
|
|
3292
|
-
})));
|
|
3293
|
-
}
|
|
3294
|
-
}
|
|
3295
|
-
RawIndicator.propTypes = {
|
|
3296
|
-
feedback: PropTypes$c.string,
|
|
3297
|
-
classes: PropTypes$c.object.isRequired
|
|
1059
|
+
})(ReplaceTransition, ReplaceTransition.exports);
|
|
1060
|
+
getDefaultExportFromCjs(ReplaceTransition.exports);
|
|
1061
|
+
var _CSSTransition = _interopRequireDefault(CSSTransition.exports);
|
|
1062
|
+
var _ReplaceTransition = _interopRequireDefault(ReplaceTransition.exports);
|
|
1063
|
+
var _TransitionGroup = _interopRequireDefault(TransitionGroup.exports);
|
|
1064
|
+
var _Transition = _interopRequireDefault(Transition$1);
|
|
1065
|
+
function _interopRequireDefault(obj) {
|
|
1066
|
+
return obj && obj.__esModule ? obj : {
|
|
1067
|
+
default: obj
|
|
3298
1068
|
};
|
|
3299
|
-
return withStyles$9(styles$3)(RawIndicator);
|
|
3300
|
-
};
|
|
3301
|
-
BuildIndicator(correctIcon, 'correct');
|
|
3302
|
-
BuildIndicator(incorrectIcon, 'incorrect');
|
|
3303
|
-
BuildIndicator(partiallyCorrectIcon, 'partially-correct');
|
|
3304
|
-
BuildIndicator(nothingSubmittedIcon, 'nothing-submitted');
|
|
3305
|
-
const React$a = _dll_react;
|
|
3306
|
-
const {withStyles: withStyles$8} = _dll_material_ui__core_styles;
|
|
3307
|
-
const {Collapse: {index: Collapse}} = _dll_material_ui__core;
|
|
3308
|
-
const PropTypes$b = _dll_prop_types;
|
|
3309
|
-
const {renderMath: renderMath$2} = _dll_pie_lib__math_rendering;
|
|
3310
|
-
const _jsxFileName$9 = "/home/ede/dev/github/pie-framework/pie-elements/packages/multiple-choice/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx";
|
|
3311
|
-
class Collapsible extends React$a.Component {
|
|
3312
|
-
constructor(...args) {
|
|
3313
|
-
super(...args);
|
|
3314
|
-
Collapsible.prototype.__init.call(this);
|
|
3315
|
-
Collapsible.prototype.__init2.call(this);
|
|
3316
|
-
}
|
|
3317
|
-
static __initStatic() {
|
|
3318
|
-
this.propTypes = {
|
|
3319
|
-
classes: PropTypes$b.object.isRequired,
|
|
3320
|
-
className: PropTypes$b.string,
|
|
3321
|
-
children: PropTypes$b.object,
|
|
3322
|
-
labels: PropTypes$b.shape({
|
|
3323
|
-
visible: PropTypes$b.string,
|
|
3324
|
-
hidden: PropTypes$b.string
|
|
3325
|
-
})
|
|
3326
|
-
};
|
|
3327
|
-
}
|
|
3328
|
-
static __initStatic2() {
|
|
3329
|
-
this.defaultProps = {
|
|
3330
|
-
labels: {}
|
|
3331
|
-
};
|
|
3332
|
-
}
|
|
3333
|
-
__init() {
|
|
3334
|
-
this.state = {
|
|
3335
|
-
expanded: false
|
|
3336
|
-
};
|
|
3337
|
-
}
|
|
3338
|
-
__init2() {
|
|
3339
|
-
this.toggleExpanded = () => {
|
|
3340
|
-
this.setState(state => ({
|
|
3341
|
-
expanded: !state.expanded
|
|
3342
|
-
}));
|
|
3343
|
-
};
|
|
3344
|
-
}
|
|
3345
|
-
componentDidMount() {
|
|
3346
|
-
renderMath$2(this.root);
|
|
3347
|
-
}
|
|
3348
|
-
componentDidUpdate() {
|
|
3349
|
-
renderMath$2(this.root);
|
|
3350
|
-
}
|
|
3351
|
-
render() {
|
|
3352
|
-
const {classes, labels, children, className} = this.props;
|
|
3353
|
-
const title = this.state.expanded ? labels.visible || 'Hide' : labels.hidden || 'Show';
|
|
3354
|
-
return React$a.createElement('div', {
|
|
3355
|
-
className: className,
|
|
3356
|
-
ref: r => this.root = r,
|
|
3357
|
-
__self: this,
|
|
3358
|
-
__source: {
|
|
3359
|
-
fileName: _jsxFileName$9,
|
|
3360
|
-
lineNumber: 43
|
|
3361
|
-
}
|
|
3362
|
-
}, React$a.createElement('div', {
|
|
3363
|
-
onClick: this.toggleExpanded,
|
|
3364
|
-
__self: this,
|
|
3365
|
-
__source: {
|
|
3366
|
-
fileName: _jsxFileName$9,
|
|
3367
|
-
lineNumber: 44
|
|
3368
|
-
}
|
|
3369
|
-
}, React$a.createElement('span', {
|
|
3370
|
-
className: classes.title,
|
|
3371
|
-
__self: this,
|
|
3372
|
-
__source: {
|
|
3373
|
-
fileName: _jsxFileName$9,
|
|
3374
|
-
lineNumber: 45
|
|
3375
|
-
}
|
|
3376
|
-
}, title)), React$a.createElement(Collapse, {
|
|
3377
|
-
in: this.state.expanded,
|
|
3378
|
-
timeout: "auto",
|
|
3379
|
-
unmountOnExit: true,
|
|
3380
|
-
className: classes.collapsible,
|
|
3381
|
-
__self: this,
|
|
3382
|
-
__source: {
|
|
3383
|
-
fileName: _jsxFileName$9,
|
|
3384
|
-
lineNumber: 47
|
|
3385
|
-
}
|
|
3386
|
-
}, children));
|
|
3387
|
-
}
|
|
3388
|
-
}
|
|
3389
|
-
Collapsible.__initStatic();
|
|
3390
|
-
Collapsible.__initStatic2();
|
|
3391
|
-
var Collapsible$1 = withStyles$8(theme => ({
|
|
3392
|
-
title: {
|
|
3393
|
-
color: theme.palette.primary.light,
|
|
3394
|
-
borderBottom: `1px dotted ${theme.palette.primary.light}`
|
|
3395
|
-
},
|
|
3396
|
-
collapsible: {
|
|
3397
|
-
paddingTop: theme.spacing.unit * 2
|
|
3398
|
-
}
|
|
3399
|
-
}))(Collapsible);
|
|
3400
|
-
const React$9 = _dll_react;
|
|
3401
|
-
const {withStyles: withStyles$7} = _dll_material_ui__core_styles;
|
|
3402
|
-
const {createMuiTheme: createMuiTheme$1} = _dll_material_ui__core_styles;
|
|
3403
|
-
const {MuiThemeProvider: MuiThemeProvider$1} = _dll_material_ui__core_styles;
|
|
3404
|
-
const PropTypes$a = _dll_prop_types;
|
|
3405
|
-
const _jsxFileName$8 = "/home/ede/dev/github/pie-framework/pie-elements/packages/multiple-choice/node_modules/@pie-lib/render-ui/src/preview-layout.jsx";
|
|
3406
|
-
class PreviewLayout extends React$9.Component {
|
|
3407
|
-
static __initStatic() {
|
|
3408
|
-
this.propTypes = {
|
|
3409
|
-
children: PropTypes$a.oneOfType([PropTypes$a.arrayOf(PropTypes$a.node), PropTypes$a.node]).isRequired,
|
|
3410
|
-
classes: PropTypes$a.object
|
|
3411
|
-
};
|
|
3412
|
-
}
|
|
3413
|
-
render() {
|
|
3414
|
-
const {children, classes} = this.props;
|
|
3415
|
-
return React$9.createElement('div', {
|
|
3416
|
-
className: classes.container,
|
|
3417
|
-
__self: this,
|
|
3418
|
-
__source: {
|
|
3419
|
-
fileName: _jsxFileName$8,
|
|
3420
|
-
lineNumber: 14
|
|
3421
|
-
}
|
|
3422
|
-
}, children);
|
|
3423
|
-
}
|
|
3424
|
-
}
|
|
3425
|
-
PreviewLayout.__initStatic();
|
|
3426
|
-
const styles$2 = () => ({
|
|
3427
|
-
container: {
|
|
3428
|
-
display: 'flex',
|
|
3429
|
-
flexDirection: 'column',
|
|
3430
|
-
position: 'relative'
|
|
3431
|
-
}
|
|
3432
|
-
});
|
|
3433
|
-
const theme$1 = createMuiTheme$1({
|
|
3434
|
-
typography: {
|
|
3435
|
-
useNextVariants: true
|
|
3436
|
-
},
|
|
3437
|
-
palette: {
|
|
3438
|
-
action: {
|
|
3439
|
-
disabled: 'rgba(0, 0, 0, 0.54);'
|
|
3440
|
-
}
|
|
3441
|
-
},
|
|
3442
|
-
overrides: {
|
|
3443
|
-
MuiRadio: {
|
|
3444
|
-
root: {
|
|
3445
|
-
'&$checked': {
|
|
3446
|
-
color: '#3f51b5 !important'
|
|
3447
|
-
}
|
|
3448
|
-
}
|
|
3449
|
-
},
|
|
3450
|
-
MuiCheckbox: {
|
|
3451
|
-
root: {
|
|
3452
|
-
'&$checked': {
|
|
3453
|
-
color: '#3f51b5 !important'
|
|
3454
|
-
}
|
|
3455
|
-
}
|
|
3456
|
-
},
|
|
3457
|
-
MuiTabs: {
|
|
3458
|
-
root: {
|
|
3459
|
-
borderBottom: '1px solid #eee'
|
|
3460
|
-
}
|
|
3461
|
-
},
|
|
3462
|
-
MuiSwitch: {
|
|
3463
|
-
root: {
|
|
3464
|
-
'&$checked': {
|
|
3465
|
-
color: '#3f51b5 !important',
|
|
3466
|
-
'& + $bar': {
|
|
3467
|
-
backgroundColor: '#3f51b5 !important',
|
|
3468
|
-
opacity: 0.5
|
|
3469
|
-
}
|
|
3470
|
-
}
|
|
3471
|
-
}
|
|
3472
|
-
}
|
|
3473
|
-
}
|
|
3474
|
-
});
|
|
3475
|
-
const Styled$1 = withStyles$7(styles$2)(PreviewLayout);
|
|
3476
|
-
const RootElem = props => React$9.createElement(MuiThemeProvider$1, {
|
|
3477
|
-
theme: theme$1,
|
|
3478
|
-
__self: undefined,
|
|
3479
|
-
__source: {
|
|
3480
|
-
fileName: _jsxFileName$8,
|
|
3481
|
-
lineNumber: 72
|
|
3482
|
-
}
|
|
3483
|
-
}, React$9.createElement(Styled$1, {
|
|
3484
|
-
...props,
|
|
3485
|
-
__self: undefined,
|
|
3486
|
-
__source: {
|
|
3487
|
-
fileName: _jsxFileName$8,
|
|
3488
|
-
lineNumber: 73
|
|
3489
|
-
}
|
|
3490
|
-
}));
|
|
3491
|
-
const React$8 = _dll_react;
|
|
3492
|
-
const PropTypes$9 = _dll_prop_types;
|
|
3493
|
-
const {renderMath: renderMath$1} = _dll_pie_lib__math_rendering;
|
|
3494
|
-
const _jsxFileName$7 = "/home/ede/dev/github/pie-framework/pie-elements/packages/multiple-choice/node_modules/@pie-lib/render-ui/src/html-and-math.js";
|
|
3495
|
-
class HtmlAndMath extends React$8.Component {
|
|
3496
|
-
static __initStatic() {
|
|
3497
|
-
this.propTypes = {
|
|
3498
|
-
tag: PropTypes$9.string,
|
|
3499
|
-
className: PropTypes$9.string,
|
|
3500
|
-
html: PropTypes$9.string
|
|
3501
|
-
};
|
|
3502
|
-
}
|
|
3503
|
-
static __initStatic2() {
|
|
3504
|
-
this.defaultProps = {
|
|
3505
|
-
tag: 'div',
|
|
3506
|
-
html: ''
|
|
3507
|
-
};
|
|
3508
|
-
}
|
|
3509
|
-
componentDidMount() {
|
|
3510
|
-
if (this.node) {
|
|
3511
|
-
renderMath$1(this.node);
|
|
3512
|
-
}
|
|
3513
|
-
}
|
|
3514
|
-
componentDidUpdate() {
|
|
3515
|
-
if (this.node) {
|
|
3516
|
-
renderMath$1(this.node);
|
|
3517
|
-
}
|
|
3518
|
-
}
|
|
3519
|
-
render() {
|
|
3520
|
-
const {tag, className, html} = this.props;
|
|
3521
|
-
const Tag = tag || 'div';
|
|
3522
|
-
return React$8.createElement(Tag, {
|
|
3523
|
-
ref: r => this.node = r,
|
|
3524
|
-
className: className,
|
|
3525
|
-
dangerouslySetInnerHTML: {
|
|
3526
|
-
__html: html
|
|
3527
|
-
},
|
|
3528
|
-
__self: this,
|
|
3529
|
-
__source: {
|
|
3530
|
-
fileName: _jsxFileName$7,
|
|
3531
|
-
lineNumber: 33
|
|
3532
|
-
}
|
|
3533
|
-
});
|
|
3534
|
-
}
|
|
3535
1069
|
}
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
const React$7 = _dll_react;
|
|
3542
|
-
const classNames$4 = _dll_classnames;
|
|
3543
|
-
const {withStyles: withStyles$6} = _dll_material_ui__core_styles;
|
|
3544
|
-
const _jsxFileName$6 = "/home/ede/dev/github/pie-framework/pie-elements/packages/multiple-choice/node_modules/@pie-lib/render-ui/src/input-container.jsx";
|
|
3545
|
-
const RawInputContainer = props => {
|
|
3546
|
-
const {label, className, children, classes} = props;
|
|
3547
|
-
const names = classNames$4(classes.formControl, className);
|
|
3548
|
-
return React$7.createElement(FormControl, {
|
|
3549
|
-
className: names,
|
|
3550
|
-
__self: undefined,
|
|
3551
|
-
__source: {
|
|
3552
|
-
fileName: _jsxFileName$6,
|
|
3553
|
-
lineNumber: 13
|
|
3554
|
-
}
|
|
3555
|
-
}, React$7.createElement(InputLabel, {
|
|
3556
|
-
className: classes.label,
|
|
3557
|
-
shrink: true,
|
|
3558
|
-
__self: undefined,
|
|
3559
|
-
__source: {
|
|
3560
|
-
fileName: _jsxFileName$6,
|
|
3561
|
-
lineNumber: 14
|
|
3562
|
-
}
|
|
3563
|
-
}, label), children);
|
|
1070
|
+
var reactTransitionGroup = {
|
|
1071
|
+
Transition: _Transition.default,
|
|
1072
|
+
TransitionGroup: _TransitionGroup.default,
|
|
1073
|
+
ReplaceTransition: _ReplaceTransition.default,
|
|
1074
|
+
CSSTransition: _CSSTransition.default
|
|
3564
1075
|
};
|
|
3565
|
-
RawInputContainer.propTypes = {
|
|
3566
|
-
label: PropTypes$8.oneOfType([PropTypes$8.string, PropTypes$8.object]).isRequired,
|
|
3567
|
-
className: PropTypes$8.string,
|
|
3568
|
-
children: PropTypes$8.oneOfType([PropTypes$8.arrayOf(PropTypes$8.node), PropTypes$8.node]).isRequired,
|
|
3569
|
-
classes: PropTypes$8.object.isRequired
|
|
3570
|
-
};
|
|
3571
|
-
withStyles$6(theme => ({
|
|
3572
|
-
formControl: {
|
|
3573
|
-
marginLeft: 0,
|
|
3574
|
-
marginRight: theme.spacing.unit,
|
|
3575
|
-
paddingBottom: theme.spacing.unit,
|
|
3576
|
-
flex: '1 0 auto',
|
|
3577
|
-
minWidth: theme.spacing.unit * 4
|
|
3578
|
-
},
|
|
3579
|
-
label: {
|
|
3580
|
-
fontSize: 'inherit',
|
|
3581
|
-
whiteSpace: 'nowrap'
|
|
3582
|
-
}
|
|
3583
|
-
}))(RawInputContainer);
|
|
3584
|
-
const React$6 = _dll_react;
|
|
3585
|
-
const {Component: Component} = _dll_react;
|
|
3586
|
-
const {withStyles: withStyles$5} = _dll_material_ui__core_styles;
|
|
3587
|
-
const PropTypes$7 = _dll_prop_types;
|
|
3588
|
-
const _jsxFileName$5 = "/home/ede/dev/github/pie-framework/pie-elements/packages/multiple-choice/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx";
|
|
3589
|
-
const NEWLINE_BLOCK_REGEX = /\\embed\{newLine\}\[\]/g;
|
|
3590
|
-
const NEWLINE_LATEX = '\\newline ';
|
|
3591
|
-
class PreviewPrompt extends Component {
|
|
3592
|
-
static __initStatic() {
|
|
3593
|
-
this.propTypes = {
|
|
3594
|
-
classes: PropTypes$7.object,
|
|
3595
|
-
prompt: PropTypes$7.string,
|
|
3596
|
-
tagName: PropTypes$7.string,
|
|
3597
|
-
className: PropTypes$7.string,
|
|
3598
|
-
onClick: PropTypes$7.func,
|
|
3599
|
-
defaultClassName: PropTypes$7.string
|
|
3600
|
-
};
|
|
3601
|
-
}
|
|
3602
|
-
static __initStatic2() {
|
|
3603
|
-
this.defaultProps = {
|
|
3604
|
-
onClick: () => {}
|
|
3605
|
-
};
|
|
3606
|
-
}
|
|
3607
|
-
render() {
|
|
3608
|
-
const {prompt, classes, tagName, className, onClick, defaultClassName} = this.props;
|
|
3609
|
-
const CustomTag = tagName || 'div';
|
|
3610
|
-
const customClasses = `${classes.promptTable} ${classes[className] || ''} ${defaultClassName || ''}`;
|
|
3611
|
-
return React$6.createElement(CustomTag, {
|
|
3612
|
-
onClick: onClick,
|
|
3613
|
-
className: customClasses,
|
|
3614
|
-
dangerouslySetInnerHTML: {
|
|
3615
|
-
__html: (prompt || '').replace(NEWLINE_BLOCK_REGEX, NEWLINE_LATEX)
|
|
3616
|
-
},
|
|
3617
|
-
__self: this,
|
|
3618
|
-
__source: {
|
|
3619
|
-
fileName: _jsxFileName$5,
|
|
3620
|
-
lineNumber: 31
|
|
3621
|
-
}
|
|
3622
|
-
});
|
|
3623
|
-
}
|
|
3624
|
-
}
|
|
3625
|
-
PreviewPrompt.__initStatic();
|
|
3626
|
-
PreviewPrompt.__initStatic2();
|
|
3627
|
-
const styles$1 = theme => ({
|
|
3628
|
-
prompt: {
|
|
3629
|
-
verticalAlign: 'middle',
|
|
3630
|
-
color: text()
|
|
3631
|
-
},
|
|
3632
|
-
rationale: {
|
|
3633
|
-
paddingLeft: theme.spacing.unit * 16
|
|
3634
|
-
},
|
|
3635
|
-
label: {
|
|
3636
|
-
color: `${text()} !important`,
|
|
3637
|
-
display: 'inline-block',
|
|
3638
|
-
verticalAlign: 'middle',
|
|
3639
|
-
cursor: 'pointer'
|
|
3640
|
-
},
|
|
3641
|
-
promptTable: {
|
|
3642
|
-
'&:not(.MathJax) > table': {
|
|
3643
|
-
borderCollapse: 'collapse'
|
|
3644
|
-
},
|
|
3645
|
-
'&:not(.MathJax) > table tr': {
|
|
3646
|
-
borderTop: '1px solid #dfe2e5',
|
|
3647
|
-
'&:nth-child(2n)': {
|
|
3648
|
-
backgroundColor: '#f6f8fa'
|
|
3649
|
-
}
|
|
3650
|
-
},
|
|
3651
|
-
'&:not(.MathJax) > table td, &:not(.MathJax) > table th': {
|
|
3652
|
-
border: '1px solid #dfe2e5',
|
|
3653
|
-
padding: '.6em 1em',
|
|
3654
|
-
textAlign: 'center'
|
|
3655
|
-
}
|
|
3656
|
-
}
|
|
3657
|
-
});
|
|
3658
|
-
var PreviewPrompt$1 = withStyles$5(styles$1)(PreviewPrompt);
|
|
3659
|
-
const PropTypes$6 = _dll_prop_types;
|
|
3660
|
-
({
|
|
3661
|
-
children: PropTypes$6.node,
|
|
3662
|
-
false: PropTypes$6.bool
|
|
3663
|
-
});
|
|
3664
|
-
const PropTypes$5 = _dll_prop_types;
|
|
3665
|
-
({
|
|
3666
|
-
children: PropTypes$5.node,
|
|
3667
|
-
purpose: PropTypes$5.string
|
|
3668
|
-
});
|
|
3669
|
-
new DOMParser();
|
|
3670
1076
|
const React$5 = _dll_react;
|
|
3671
1077
|
const {withStyles: withStyles$4} = _dll_material_ui__core_styles;
|
|
3672
1078
|
const PropTypes$4 = _dll_prop_types;
|
|
1079
|
+
const {color: color$2} = _dll_pie_lib__render_ui;
|
|
3673
1080
|
const _jsxFileName$4 = "/home/ede/dev/github/pie-framework/pie-elements/packages/multiple-choice/src/feedback-tick.jsx";
|
|
3674
1081
|
const stylesheet = {
|
|
3675
1082
|
incorrect: {
|
|
3676
|
-
fill: `var(--feedback-incorrect-bg-color, ${incorrect()})`
|
|
1083
|
+
fill: `var(--feedback-incorrect-bg-color, ${color$2.incorrect()})`
|
|
3677
1084
|
},
|
|
3678
1085
|
correct: {
|
|
3679
|
-
fill: `var(--feedback-correct-bg-color, ${correct()})`
|
|
1086
|
+
fill: `var(--feedback-correct-bg-color, ${color$2.correct()})`
|
|
3680
1087
|
},
|
|
3681
1088
|
feedbackTick: {
|
|
3682
1089
|
width: '33px',
|
|
@@ -3806,13 +1213,13 @@ class FeedbackTick extends React$5.Component {
|
|
|
3806
1213
|
fileName: _jsxFileName$4,
|
|
3807
1214
|
lineNumber: 115
|
|
3808
1215
|
}
|
|
3809
|
-
}, React$5.createElement(
|
|
1216
|
+
}, React$5.createElement(reactTransitionGroup.TransitionGroup, {
|
|
3810
1217
|
__self: this,
|
|
3811
1218
|
__source: {
|
|
3812
1219
|
fileName: _jsxFileName$4,
|
|
3813
1220
|
lineNumber: 116
|
|
3814
1221
|
}
|
|
3815
|
-
}, correctness && React$5.createElement(
|
|
1222
|
+
}, correctness && React$5.createElement(reactTransitionGroup.CSSTransition, {
|
|
3816
1223
|
classNames: {
|
|
3817
1224
|
enter: classes.feedbackTickEnter,
|
|
3818
1225
|
enterActive: classes.feedbackTickEnterActive,
|
|
@@ -3841,28 +1248,31 @@ const {Radio: Radio} = _dll_material_ui__core;
|
|
|
3841
1248
|
const React$4 = _dll_react;
|
|
3842
1249
|
const PropTypes$3 = _dll_prop_types;
|
|
3843
1250
|
const {withStyles: withStyles$3} = _dll_material_ui__core_styles;
|
|
1251
|
+
const {Feedback: Feedback} = _dll_pie_lib__render_ui;
|
|
1252
|
+
const {color: color$1} = _dll_pie_lib__render_ui;
|
|
1253
|
+
const {PreviewPrompt: PreviewPrompt$1} = _dll_pie_lib__render_ui;
|
|
3844
1254
|
const classNames$3 = _dll_classnames;
|
|
3845
1255
|
const _jsxFileName$3 = "/home/ede/dev/github/pie-framework/pie-elements/packages/multiple-choice/src/choice-input.jsx";
|
|
3846
1256
|
const styleSheet = () => ({
|
|
3847
1257
|
row: {
|
|
3848
1258
|
display: 'flex',
|
|
3849
1259
|
alignItems: 'center',
|
|
3850
|
-
backgroundColor: background()
|
|
1260
|
+
backgroundColor: color$1.background()
|
|
3851
1261
|
},
|
|
3852
1262
|
checkboxHolder: {
|
|
3853
1263
|
display: 'flex',
|
|
3854
1264
|
alignItems: 'center',
|
|
3855
|
-
backgroundColor: background(),
|
|
1265
|
+
backgroundColor: color$1.background(),
|
|
3856
1266
|
flex: 1,
|
|
3857
1267
|
'& label': {
|
|
3858
|
-
color: text()
|
|
1268
|
+
color: color$1.text()
|
|
3859
1269
|
}
|
|
3860
1270
|
}
|
|
3861
1271
|
});
|
|
3862
1272
|
const formStyleSheet = {
|
|
3863
1273
|
label: {
|
|
3864
|
-
color: `${text()} !important`,
|
|
3865
|
-
backgroundColor: background()
|
|
1274
|
+
color: `${color$1.text()} !important`,
|
|
1275
|
+
backgroundColor: color$1.background()
|
|
3866
1276
|
}
|
|
3867
1277
|
};
|
|
3868
1278
|
const StyledFormControlLabel = withStyles$3(formStyleSheet, {
|
|
@@ -3885,21 +1295,21 @@ const colorStyle = (varName, fallback) => ({
|
|
|
3885
1295
|
}
|
|
3886
1296
|
});
|
|
3887
1297
|
const inputStyles = {
|
|
3888
|
-
'correct-root': colorStyle('correct-color', text()),
|
|
3889
|
-
'correct-checked': colorStyle('correct-selected-color', correct()),
|
|
3890
|
-
'correct-disabled': colorStyle('correct-disabled-color', disabled()),
|
|
3891
|
-
'incorrect-root': colorStyle('incorrect-color', incorrect()),
|
|
3892
|
-
'incorrect-checked': colorStyle('incorrect-checked', incorrect()),
|
|
3893
|
-
'incorrect-disabled': colorStyle('incorrect-disabled-color', disabled()),
|
|
1298
|
+
'correct-root': colorStyle('correct-color', color$1.text()),
|
|
1299
|
+
'correct-checked': colorStyle('correct-selected-color', color$1.correct()),
|
|
1300
|
+
'correct-disabled': colorStyle('correct-disabled-color', color$1.disabled()),
|
|
1301
|
+
'incorrect-root': colorStyle('incorrect-color', color$1.incorrect()),
|
|
1302
|
+
'incorrect-checked': colorStyle('incorrect-checked', color$1.incorrect()),
|
|
1303
|
+
'incorrect-disabled': colorStyle('incorrect-disabled-color', color$1.disabled()),
|
|
3894
1304
|
root: {
|
|
3895
|
-
...colorStyle('color', text()),
|
|
1305
|
+
...colorStyle('color', color$1.text()),
|
|
3896
1306
|
'&:hover': {
|
|
3897
|
-
color: `${primaryLight()} !important`
|
|
1307
|
+
color: `${color$1.primaryLight()} !important`
|
|
3898
1308
|
}
|
|
3899
1309
|
},
|
|
3900
|
-
checked: colorStyle('selected-color', primary()),
|
|
1310
|
+
checked: colorStyle('selected-color', color$1.primary()),
|
|
3901
1311
|
disabled: {
|
|
3902
|
-
...colorStyle('disabled-color', text()),
|
|
1312
|
+
...colorStyle('disabled-color', color$1.text()),
|
|
3903
1313
|
opacity: 0.6,
|
|
3904
1314
|
cursor: 'not-allowed !important',
|
|
3905
1315
|
pointerEvents: 'initial !important'
|
|
@@ -4003,7 +1413,7 @@ class ChoiceInput extends React$4.Component {
|
|
|
4003
1413
|
const Tag = choiceMode === 'checkbox' ? StyledCheckbox : StyledRadio;
|
|
4004
1414
|
const classSuffix = choiceMode === 'checkbox' ? 'checkbox' : 'radio-button';
|
|
4005
1415
|
return React$4.createElement('div', {
|
|
4006
|
-
className: classNames$3(className, 'corespring-' + classSuffix),
|
|
1416
|
+
className: classNames$3(className, 'corespring-' + classSuffix, 'choice-input'),
|
|
4007
1417
|
__self: this,
|
|
4008
1418
|
__source: {
|
|
4009
1419
|
fileName: _jsxFileName$3,
|
|
@@ -4024,7 +1434,7 @@ class ChoiceInput extends React$4.Component {
|
|
|
4024
1434
|
lineNumber: 195
|
|
4025
1435
|
}
|
|
4026
1436
|
}), React$4.createElement('div', {
|
|
4027
|
-
className: classes.checkboxHolder,
|
|
1437
|
+
className: classNames$3(classes.checkboxHolder, 'checkbox-holder'),
|
|
4028
1438
|
__self: this,
|
|
4029
1439
|
__source: {
|
|
4030
1440
|
fileName: _jsxFileName$3,
|
|
@@ -4061,13 +1471,14 @@ class ChoiceInput extends React$4.Component {
|
|
|
4061
1471
|
}
|
|
4062
1472
|
}))), rationale && React$4.createElement(PreviewPrompt$1, {
|
|
4063
1473
|
className: "rationale",
|
|
1474
|
+
defaultClassName: "rationale",
|
|
4064
1475
|
prompt: rationale,
|
|
4065
1476
|
__self: this,
|
|
4066
1477
|
__source: {
|
|
4067
1478
|
fileName: _jsxFileName$3,
|
|
4068
1479
|
lineNumber: 218
|
|
4069
1480
|
}
|
|
4070
|
-
}), React$4.createElement(Feedback
|
|
1481
|
+
}), React$4.createElement(Feedback, {
|
|
4071
1482
|
feedback: feedback,
|
|
4072
1483
|
correctness: correctness,
|
|
4073
1484
|
__self: this,
|
|
@@ -4168,10 +1579,13 @@ const PropTypes$1 = _dll_prop_types;
|
|
|
4168
1579
|
const CorrectAnswerToggle = _dll_pie_lib__correct_answer_toggle;
|
|
4169
1580
|
const classNames$1 = _dll_classnames;
|
|
4170
1581
|
const {withStyles: withStyles$1} = _dll_material_ui__core_styles;
|
|
1582
|
+
const {color: color} = _dll_pie_lib__render_ui;
|
|
1583
|
+
const {Collapsible: Collapsible} = _dll_pie_lib__render_ui;
|
|
1584
|
+
const {PreviewPrompt: PreviewPrompt} = _dll_pie_lib__render_ui;
|
|
4171
1585
|
const _jsxFileName$1 = "/home/ede/dev/github/pie-framework/pie-elements/packages/multiple-choice/src/multiple-choice.jsx";
|
|
4172
1586
|
const styles = {
|
|
4173
1587
|
corespringChoice: {
|
|
4174
|
-
backgroundColor: background(),
|
|
1588
|
+
backgroundColor: color.background(),
|
|
4175
1589
|
padding: '5px',
|
|
4176
1590
|
'& *': {
|
|
4177
1591
|
'-webkit-font-smoothing': 'antialiased'
|
|
@@ -4208,7 +1622,8 @@ class MultipleChoice extends React$2.Component {
|
|
|
4208
1622
|
correctResponse: PropTypes$1.array,
|
|
4209
1623
|
choicesLayout: PropTypes$1.oneOf(['vertical', 'grid', 'horizontal']),
|
|
4210
1624
|
gridColumns: PropTypes$1.string,
|
|
4211
|
-
alwaysShowCorrect: PropTypes$1.bool
|
|
1625
|
+
alwaysShowCorrect: PropTypes$1.bool,
|
|
1626
|
+
animationsDisabled: PropTypes$1.bool
|
|
4212
1627
|
};
|
|
4213
1628
|
}
|
|
4214
1629
|
constructor(props) {
|
|
@@ -4269,24 +1684,24 @@ class MultipleChoice extends React$2.Component {
|
|
|
4269
1684
|
};
|
|
4270
1685
|
}
|
|
4271
1686
|
render() {
|
|
4272
|
-
const {mode, disabled, choices = [], choiceMode, prompt, onChoiceChanged, responseCorrect, teacherInstructions, classes, alwaysShowCorrect} = this.props;
|
|
1687
|
+
const {mode, disabled, choices = [], choiceMode, prompt, onChoiceChanged, responseCorrect, teacherInstructions, classes, alwaysShowCorrect, animationsDisabled} = this.props;
|
|
4273
1688
|
const {showCorrect} = this.state;
|
|
4274
1689
|
const isEvaluateMode = mode === 'evaluate';
|
|
4275
1690
|
const showCorrectAnswerToggle = isEvaluateMode && !responseCorrect;
|
|
4276
1691
|
return React$2.createElement('div', {
|
|
4277
|
-
className: classes.corespringChoice,
|
|
1692
|
+
className: classNames$1(classes.corespringChoice, 'multiple-choice'),
|
|
4278
1693
|
__self: this,
|
|
4279
1694
|
__source: {
|
|
4280
1695
|
fileName: _jsxFileName$1,
|
|
4281
|
-
lineNumber:
|
|
1696
|
+
lineNumber: 142
|
|
4282
1697
|
}
|
|
4283
1698
|
}, teacherInstructions && React$2.createElement(React$2.Fragment, {
|
|
4284
1699
|
__self: this,
|
|
4285
1700
|
__source: {
|
|
4286
1701
|
fileName: _jsxFileName$1,
|
|
4287
|
-
lineNumber:
|
|
1702
|
+
lineNumber: 144
|
|
4288
1703
|
}
|
|
4289
|
-
}, React$2.createElement(Collapsible
|
|
1704
|
+
}, !animationsDisabled ? React$2.createElement(Collapsible, {
|
|
4290
1705
|
labels: {
|
|
4291
1706
|
hidden: 'Show Teacher Instructions',
|
|
4292
1707
|
visible: 'Hide Teacher Instructions'
|
|
@@ -4294,22 +1709,32 @@ class MultipleChoice extends React$2.Component {
|
|
|
4294
1709
|
__self: this,
|
|
4295
1710
|
__source: {
|
|
4296
1711
|
fileName: _jsxFileName$1,
|
|
4297
|
-
lineNumber:
|
|
1712
|
+
lineNumber: 146
|
|
1713
|
+
}
|
|
1714
|
+
}, React$2.createElement(PreviewPrompt, {
|
|
1715
|
+
tagName: "div",
|
|
1716
|
+
className: "prompt",
|
|
1717
|
+
prompt: teacherInstructions,
|
|
1718
|
+
__self: this,
|
|
1719
|
+
__source: {
|
|
1720
|
+
fileName: _jsxFileName$1,
|
|
1721
|
+
lineNumber: 152
|
|
4298
1722
|
}
|
|
4299
|
-
}
|
|
1723
|
+
})) : React$2.createElement(PreviewPrompt, {
|
|
4300
1724
|
tagName: "div",
|
|
4301
1725
|
className: "prompt",
|
|
1726
|
+
defaultClassName: "teacher-instructions",
|
|
4302
1727
|
prompt: teacherInstructions,
|
|
4303
1728
|
__self: this,
|
|
4304
1729
|
__source: {
|
|
4305
1730
|
fileName: _jsxFileName$1,
|
|
4306
|
-
lineNumber:
|
|
1731
|
+
lineNumber: 158
|
|
4307
1732
|
}
|
|
4308
|
-
})
|
|
1733
|
+
}), React$2.createElement('br', {
|
|
4309
1734
|
__self: this,
|
|
4310
1735
|
__source: {
|
|
4311
1736
|
fileName: _jsxFileName$1,
|
|
4312
|
-
lineNumber:
|
|
1737
|
+
lineNumber: 164
|
|
4313
1738
|
}
|
|
4314
1739
|
})), !alwaysShowCorrect && React$2.createElement(CorrectAnswerToggle, {
|
|
4315
1740
|
show: showCorrectAnswerToggle,
|
|
@@ -4318,21 +1743,22 @@ class MultipleChoice extends React$2.Component {
|
|
|
4318
1743
|
__self: this,
|
|
4319
1744
|
__source: {
|
|
4320
1745
|
fileName: _jsxFileName$1,
|
|
4321
|
-
lineNumber:
|
|
1746
|
+
lineNumber: 168
|
|
4322
1747
|
}
|
|
4323
1748
|
}), showCorrectAnswerToggle && React$2.createElement('br', {
|
|
4324
1749
|
__self: this,
|
|
4325
1750
|
__source: {
|
|
4326
1751
|
fileName: _jsxFileName$1,
|
|
4327
|
-
lineNumber:
|
|
1752
|
+
lineNumber: 174
|
|
4328
1753
|
}
|
|
4329
|
-
}), React$2.createElement(PreviewPrompt
|
|
1754
|
+
}), React$2.createElement(PreviewPrompt, {
|
|
4330
1755
|
className: "prompt",
|
|
1756
|
+
defaultClassName: "prompt",
|
|
4331
1757
|
prompt: prompt,
|
|
4332
1758
|
__self: this,
|
|
4333
1759
|
__source: {
|
|
4334
1760
|
fileName: _jsxFileName$1,
|
|
4335
|
-
lineNumber:
|
|
1761
|
+
lineNumber: 175
|
|
4336
1762
|
}
|
|
4337
1763
|
}), React$2.createElement('div', {
|
|
4338
1764
|
className: classNames$1({
|
|
@@ -4344,7 +1770,7 @@ class MultipleChoice extends React$2.Component {
|
|
|
4344
1770
|
__self: this,
|
|
4345
1771
|
__source: {
|
|
4346
1772
|
fileName: _jsxFileName$1,
|
|
4347
|
-
lineNumber:
|
|
1773
|
+
lineNumber: 176
|
|
4348
1774
|
}
|
|
4349
1775
|
}, choices.map((choice, index) => React$2.createElement(StyledChoice, {
|
|
4350
1776
|
choicesLayout: this.props.choicesLayout,
|
|
@@ -4365,7 +1791,7 @@ class MultipleChoice extends React$2.Component {
|
|
|
4365
1791
|
__self: this,
|
|
4366
1792
|
__source: {
|
|
4367
1793
|
fileName: _jsxFileName$1,
|
|
4368
|
-
lineNumber:
|
|
1794
|
+
lineNumber: 187
|
|
4369
1795
|
}
|
|
4370
1796
|
}))));
|
|
4371
1797
|
}
|
|
@@ -4383,6 +1809,7 @@ const {withStyles: withStyles} = _dll_material_ui__core_styles;
|
|
|
4383
1809
|
const {createMuiTheme: createMuiTheme} = _dll_material_ui__core_styles;
|
|
4384
1810
|
const {MuiThemeProvider: MuiThemeProvider} = _dll_material_ui__core_styles;
|
|
4385
1811
|
const classNames = _dll_classnames;
|
|
1812
|
+
const {PreviewLayout: PreviewLayout} = _dll_pie_lib__render_ui;
|
|
4386
1813
|
const _jsxFileName = "/home/ede/dev/github/pie-framework/pie-elements/packages/multiple-choice/src/main.jsx";
|
|
4387
1814
|
class Main extends React$1.Component {
|
|
4388
1815
|
static __initStatic() {
|
|
@@ -4404,7 +1831,7 @@ class Main extends React$1.Component {
|
|
|
4404
1831
|
}
|
|
4405
1832
|
render() {
|
|
4406
1833
|
const {model, onChoiceChanged, session, classes} = this.props;
|
|
4407
|
-
return React$1.createElement(
|
|
1834
|
+
return React$1.createElement(PreviewLayout, {
|
|
4408
1835
|
__self: this,
|
|
4409
1836
|
__source: {
|
|
4410
1837
|
fileName: _jsxFileName,
|
|
@@ -4468,13 +1895,16 @@ const {renderMath: renderMath} = _dll_pie_lib__math_rendering;
|
|
|
4468
1895
|
const log = debug('pie-element:multiple-choice:print');
|
|
4469
1896
|
const preparePrintModel = (model, opts) => {
|
|
4470
1897
|
const instr = opts.mode === 'instructor';
|
|
4471
|
-
model.
|
|
1898
|
+
model.teacherInstructions = instr ? model.teacherInstructions : undefined;
|
|
1899
|
+
model.showTeacherInstructions = instr;
|
|
4472
1900
|
model.alwaysShowCorrect = instr;
|
|
4473
1901
|
model.mode = instr ? 'evaluate' : model.mode;
|
|
4474
|
-
model.disabled =
|
|
1902
|
+
model.disabled = true;
|
|
1903
|
+
model.animationsDisabled = true;
|
|
4475
1904
|
model.choices = model.choices.map(c => {
|
|
4476
1905
|
c.rationale = instr ? c.rationale : undefined;
|
|
4477
1906
|
c.hideTick = instr;
|
|
1907
|
+
c.feedback = undefined;
|
|
4478
1908
|
return c;
|
|
4479
1909
|
});
|
|
4480
1910
|
return model;
|
|
@@ -4488,7 +1918,6 @@ class MultipleChoicePrint extends HTMLElement {
|
|
|
4488
1918
|
this._rerender = debounce(() => {
|
|
4489
1919
|
if (this._model && this._session) {
|
|
4490
1920
|
const printModel = preparePrintModel(this._model, this._options);
|
|
4491
|
-
console.log('printModel: ', printModel, this._options);
|
|
4492
1921
|
const element = this._options && React.createElement(Root, {
|
|
4493
1922
|
model: printModel,
|
|
4494
1923
|
session: {}
|