@pie-element/explicit-constructed-response 3.9.3-next.479 → 3.9.3-next.487

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/module/element.js CHANGED
@@ -1,44 +1,3989 @@
1
- import {_dll_debug, _dll_lodash, _dll_react, _dll_react_dom_server, _dll_prop_types, _dll_material_ui__core_styles, _dll_material_ui__core, _dll_classnames, _dll_react_dom, _dll_pie_lib__render_ui, _dll_pie_lib__correct_answer_toggle} from "../../../@pie-lib/shared-module@^1.2.14/module/index.js";
1
+ import {_dll_prop_types, _dll_react, _dll_material_ui__core_styles, _dll_classnames, _dll_react_dom, _dll_material_ui__core, _dll_debug, _dll_material_ui__core_collapse_index, _dll_lodash, _dll_react_dom_server} from "../../../@pie-lib/shared-module@^1.2.14/module/index.js";
2
2
  import {_dll_pie_lib__math_rendering} from "../../../@pie-lib/math-rendering-module@^1.0.17/module/index.js";
3
3
  import {_dll_pie_lib__drag} from "../../../@pie-lib/drag-module@^1.0.15/module/index.js";
4
4
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
5
+ function getDefaultExportFromCjs(x) {
6
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
7
+ }
8
+ function getAugmentedNamespace(n) {
9
+ if (n.__esModule) return n;
10
+ var a = Object.defineProperty({}, '__esModule', {
11
+ value: true
12
+ });
13
+ Object.keys(n).forEach(function (k) {
14
+ var d = Object.getOwnPropertyDescriptor(n, k);
15
+ Object.defineProperty(a, k, d.get ? d : {
16
+ enumerable: true,
17
+ get: function () {
18
+ return n[k];
19
+ }
20
+ });
21
+ });
22
+ return a;
23
+ }
5
24
  var lib$1 = {};
6
25
  Object.defineProperty(lib$1, "__esModule", {
7
26
  value: true
8
27
  });
9
- class ModelSetEvent extends CustomEvent {
10
- constructor(component, complete, hasModel) {
11
- super(ModelSetEvent.TYPE, {
12
- bubbles: true,
13
- composed: true,
14
- detail: {
15
- complete,
16
- component,
17
- hasModel
28
+ class ModelSetEvent extends CustomEvent {
29
+ constructor(component, complete, hasModel) {
30
+ super(ModelSetEvent.TYPE, {
31
+ bubbles: true,
32
+ composed: true,
33
+ detail: {
34
+ complete,
35
+ component,
36
+ hasModel
37
+ }
38
+ });
39
+ this.component = component;
40
+ this.complete = complete;
41
+ }
42
+ }
43
+ ModelSetEvent.TYPE = 'model-set';
44
+ var ModelSetEvent_1 = lib$1.ModelSetEvent = ModelSetEvent;
45
+ class SessionChangedEvent extends CustomEvent {
46
+ constructor(component, complete) {
47
+ super(SessionChangedEvent.TYPE, {
48
+ bubbles: true,
49
+ composed: true,
50
+ detail: {
51
+ complete,
52
+ component
53
+ }
54
+ });
55
+ this.component = component;
56
+ this.complete = complete;
57
+ }
58
+ }
59
+ SessionChangedEvent.TYPE = 'session-changed';
60
+ var SessionChangedEvent_1 = lib$1.SessionChangedEvent = SessionChangedEvent;
61
+ const React$y = _dll_react;
62
+ const PropTypes$w = _dll_prop_types;
63
+ const _jsxFileName$v = "/home/circleci/repo/node_modules/@pie-lib/icons/src/sized.jsx";
64
+ const normalizeSize = size => {
65
+ return typeof size === 'string' ? size : typeof size === 'number' ? `${size}px` : '30px';
66
+ };
67
+ const Sized = ({size, children}) => {
68
+ size = normalizeSize(size);
69
+ const style = {
70
+ height: size,
71
+ width: size,
72
+ display: 'inline-block',
73
+ position: 'relative'
74
+ };
75
+ return React$y.createElement('div', {
76
+ style: style,
77
+ __self: undefined,
78
+ __source: {
79
+ fileName: _jsxFileName$v,
80
+ lineNumber: 18
81
+ }
82
+ }, children);
83
+ };
84
+ Sized.propTypes = {
85
+ size: PropTypes$w.number,
86
+ children: PropTypes$w.oneOfType([PropTypes$w.arrayOf(PropTypes$w.node), PropTypes$w.node]).isRequired
87
+ };
88
+ const React$x = _dll_react;
89
+ const PropTypes$v = _dll_prop_types;
90
+ const _jsxFileName$u = "/home/circleci/repo/node_modules/@pie-lib/icons/src/icon-root.jsx";
91
+ const IconRoot = ({size, children}) => React$x.createElement(Sized, {
92
+ size: size,
93
+ __self: undefined,
94
+ __source: {
95
+ fileName: _jsxFileName$u,
96
+ lineNumber: 10
97
+ }
98
+ }, React$x.createElement('svg', {
99
+ preserveAspectRatio: "xMinYMin meet",
100
+ version: "1.1",
101
+ x: "0px",
102
+ y: "0px",
103
+ viewBox: "0 0 44 40",
104
+ style: {
105
+ enableBackground: 'new 0 0 44 40'
106
+ },
107
+ __self: undefined,
108
+ __source: {
109
+ fileName: _jsxFileName$u,
110
+ lineNumber: 11
111
+ }
112
+ }, ' ', children));
113
+ IconRoot.propTypes = {
114
+ size: PropTypes$v.oneOf([PropTypes$v.string, PropTypes$v.number]),
115
+ children: PropTypes$v.oneOfType([PropTypes$v.arrayOf(PropTypes$v.node), PropTypes$v.node]).isRequired
116
+ };
117
+ const getStyles = (name, fg, bg) => ({
118
+ bg: {
119
+ fill: `var(--icons-${name}-bg, ${bg})`
120
+ },
121
+ fg: {
122
+ fill: `var(--icons-${name}-fg, ${fg})`
123
+ }
124
+ });
125
+ ({
126
+ className: PropTypes$v.string
127
+ });
128
+ const SquareFeedbackBox = ({className}) => React$x.createElement('polygon', {
129
+ transform: "translate(2, 0)",
130
+ className: className,
131
+ points: "34.1,28.6 34.1,2.2 2,2.2 2,34.3 40.1,34.3",
132
+ __self: undefined,
133
+ __source: {
134
+ fileName: _jsxFileName$u,
135
+ lineNumber: 51
136
+ }
137
+ });
138
+ SquareFeedbackBox.propTypes = {
139
+ className: PropTypes$v.string
140
+ };
141
+ const RoundFeedbackBox = ({className}) => React$x.createElement('path', {
142
+ transform: "translate(1, 0)",
143
+ className: className,
144
+ 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",
145
+ __self: undefined,
146
+ __source: {
147
+ fileName: _jsxFileName$u,
148
+ lineNumber: 62
149
+ }
150
+ });
151
+ RoundFeedbackBox.propTypes = {
152
+ className: PropTypes$v.string
153
+ };
154
+ const Circle$1 = ({className}) => React$x.createElement('circle', {
155
+ transform: "translate(-3, 0)",
156
+ className: className,
157
+ cx: "23",
158
+ cy: "20.4",
159
+ r: "16",
160
+ __self: undefined,
161
+ __source: {
162
+ fileName: _jsxFileName$u,
163
+ lineNumber: 73
164
+ }
165
+ });
166
+ Circle$1.propTypes = {
167
+ className: PropTypes$v.string
168
+ };
169
+ const Square = ({className}) => React$x.createElement('rect', {
170
+ x: "3.6",
171
+ y: "4.1",
172
+ className: className,
173
+ width: "32",
174
+ height: "32",
175
+ __self: undefined,
176
+ __source: {
177
+ fileName: _jsxFileName$u,
178
+ lineNumber: 81
179
+ }
180
+ });
181
+ Square.propTypes = {
182
+ className: PropTypes$v.string
183
+ };
184
+ const PropTypes$u = _dll_prop_types;
185
+ const React$w = _dll_react;
186
+ const _jsxFileName$t = "/home/circleci/repo/node_modules/@pie-lib/icons/src/icon-base.jsx";
187
+ var IconBase = (Action, Emoji) => {
188
+ class IconBase extends React$w.Component {
189
+ static __initStatic() {
190
+ this.propTypes = {
191
+ classes: PropTypes$u.object.isRequired,
192
+ size: PropTypes$u.number
193
+ };
194
+ }
195
+ constructor(props) {
196
+ super(props);
197
+ const {classes, size} = this.props;
198
+ this.icons = {
199
+ feedback: {
200
+ round: {
201
+ check: React$w.createElement(IconRoot, {
202
+ size: size,
203
+ __self: this,
204
+ __source: {
205
+ fileName: _jsxFileName$t,
206
+ lineNumber: 20
207
+ }
208
+ }, React$w.createElement(RoundFeedbackBox, {
209
+ className: classes.bg,
210
+ __self: this,
211
+ __source: {
212
+ fileName: _jsxFileName$t,
213
+ lineNumber: 21
214
+ }
215
+ }), React$w.createElement(Action, {
216
+ className: classes.fg,
217
+ __self: this,
218
+ __source: {
219
+ fileName: _jsxFileName$t,
220
+ lineNumber: 22
221
+ }
222
+ })),
223
+ emoji: React$w.createElement(IconRoot, {
224
+ size: size,
225
+ __self: this,
226
+ __source: {
227
+ fileName: _jsxFileName$t,
228
+ lineNumber: 26
229
+ }
230
+ }, React$w.createElement(RoundFeedbackBox, {
231
+ className: classes.bg,
232
+ __self: this,
233
+ __source: {
234
+ fileName: _jsxFileName$t,
235
+ lineNumber: 27
236
+ }
237
+ }), React$w.createElement(Emoji, {
238
+ className: classes.fg,
239
+ __self: this,
240
+ __source: {
241
+ fileName: _jsxFileName$t,
242
+ lineNumber: 28
243
+ }
244
+ })),
245
+ open: {
246
+ check: React$w.createElement(IconRoot, {
247
+ size: size,
248
+ __self: this,
249
+ __source: {
250
+ fileName: _jsxFileName$t,
251
+ lineNumber: 33
252
+ }
253
+ }, React$w.createElement(Action, {
254
+ className: classes.bg,
255
+ __self: this,
256
+ __source: {
257
+ fileName: _jsxFileName$t,
258
+ lineNumber: 34
259
+ }
260
+ })),
261
+ emoji: React$w.createElement(IconRoot, {
262
+ size: size,
263
+ __self: this,
264
+ __source: {
265
+ fileName: _jsxFileName$t,
266
+ lineNumber: 38
267
+ }
268
+ }, React$w.createElement(Emoji, {
269
+ className: classes.bg,
270
+ __self: this,
271
+ __source: {
272
+ fileName: _jsxFileName$t,
273
+ lineNumber: 39
274
+ }
275
+ }))
276
+ }
277
+ },
278
+ square: {
279
+ check: React$w.createElement(IconRoot, {
280
+ size: size,
281
+ __self: this,
282
+ __source: {
283
+ fileName: _jsxFileName$t,
284
+ lineNumber: 46
285
+ }
286
+ }, React$w.createElement(SquareFeedbackBox, {
287
+ className: classes.bg,
288
+ __self: this,
289
+ __source: {
290
+ fileName: _jsxFileName$t,
291
+ lineNumber: 47
292
+ }
293
+ }), React$w.createElement(Action, {
294
+ className: classes.fg,
295
+ __self: this,
296
+ __source: {
297
+ fileName: _jsxFileName$t,
298
+ lineNumber: 48
299
+ }
300
+ })),
301
+ emoji: React$w.createElement(IconRoot, {
302
+ size: size,
303
+ __self: this,
304
+ __source: {
305
+ fileName: _jsxFileName$t,
306
+ lineNumber: 52
307
+ }
308
+ }, React$w.createElement(SquareFeedbackBox, {
309
+ className: classes.bg,
310
+ __self: this,
311
+ __source: {
312
+ fileName: _jsxFileName$t,
313
+ lineNumber: 53
314
+ }
315
+ }), React$w.createElement(Emoji, {
316
+ className: classes.fg,
317
+ __self: this,
318
+ __source: {
319
+ fileName: _jsxFileName$t,
320
+ lineNumber: 54
321
+ }
322
+ })),
323
+ open: {
324
+ check: React$w.createElement(IconRoot, {
325
+ size: size,
326
+ __self: this,
327
+ __source: {
328
+ fileName: _jsxFileName$t,
329
+ lineNumber: 59
330
+ }
331
+ }, React$w.createElement(Action, {
332
+ className: classes.bg,
333
+ __self: this,
334
+ __source: {
335
+ fileName: _jsxFileName$t,
336
+ lineNumber: 60
337
+ }
338
+ })),
339
+ emoji: React$w.createElement(IconRoot, {
340
+ size: size,
341
+ __self: this,
342
+ __source: {
343
+ fileName: _jsxFileName$t,
344
+ lineNumber: 64
345
+ }
346
+ }, React$w.createElement(Emoji, {
347
+ className: classes.bg,
348
+ __self: this,
349
+ __source: {
350
+ fileName: _jsxFileName$t,
351
+ lineNumber: 65
352
+ }
353
+ }))
354
+ }
355
+ }
356
+ },
357
+ round: {
358
+ check: React$w.createElement(IconRoot, {
359
+ size: size,
360
+ __self: this,
361
+ __source: {
362
+ fileName: _jsxFileName$t,
363
+ lineNumber: 73
364
+ }
365
+ }, React$w.createElement(Circle$1, {
366
+ className: classes.bg,
367
+ __self: this,
368
+ __source: {
369
+ fileName: _jsxFileName$t,
370
+ lineNumber: 74
371
+ }
372
+ }), React$w.createElement(Action, {
373
+ className: classes.fg,
374
+ __self: this,
375
+ __source: {
376
+ fileName: _jsxFileName$t,
377
+ lineNumber: 75
378
+ }
379
+ })),
380
+ emoji: React$w.createElement(IconRoot, {
381
+ size: size,
382
+ __self: this,
383
+ __source: {
384
+ fileName: _jsxFileName$t,
385
+ lineNumber: 79
386
+ }
387
+ }, React$w.createElement(Circle$1, {
388
+ className: classes.bg,
389
+ __self: this,
390
+ __source: {
391
+ fileName: _jsxFileName$t,
392
+ lineNumber: 80
393
+ }
394
+ }), React$w.createElement(Emoji, {
395
+ className: classes.fg,
396
+ __self: this,
397
+ __source: {
398
+ fileName: _jsxFileName$t,
399
+ lineNumber: 81
400
+ }
401
+ })),
402
+ open: {
403
+ check: React$w.createElement(IconRoot, {
404
+ size: size,
405
+ __self: this,
406
+ __source: {
407
+ fileName: _jsxFileName$t,
408
+ lineNumber: 86
409
+ }
410
+ }, React$w.createElement(Action, {
411
+ className: classes.bg,
412
+ __self: this,
413
+ __source: {
414
+ fileName: _jsxFileName$t,
415
+ lineNumber: 87
416
+ }
417
+ })),
418
+ emoji: React$w.createElement(IconRoot, {
419
+ size: size,
420
+ __self: this,
421
+ __source: {
422
+ fileName: _jsxFileName$t,
423
+ lineNumber: 91
424
+ }
425
+ }, React$w.createElement(Emoji, {
426
+ className: classes.bg,
427
+ __self: this,
428
+ __source: {
429
+ fileName: _jsxFileName$t,
430
+ lineNumber: 92
431
+ }
432
+ }))
433
+ }
434
+ },
435
+ square: {
436
+ check: React$w.createElement(IconRoot, {
437
+ size: size,
438
+ __self: this,
439
+ __source: {
440
+ fileName: _jsxFileName$t,
441
+ lineNumber: 99
442
+ }
443
+ }, React$w.createElement(Square, {
444
+ className: classes.bg,
445
+ __self: this,
446
+ __source: {
447
+ fileName: _jsxFileName$t,
448
+ lineNumber: 100
449
+ }
450
+ }), React$w.createElement(Action, {
451
+ className: classes.fg,
452
+ __self: this,
453
+ __source: {
454
+ fileName: _jsxFileName$t,
455
+ lineNumber: 101
456
+ }
457
+ })),
458
+ emoji: React$w.createElement(IconRoot, {
459
+ size: size,
460
+ __self: this,
461
+ __source: {
462
+ fileName: _jsxFileName$t,
463
+ lineNumber: 105
464
+ }
465
+ }, React$w.createElement(Square, {
466
+ className: classes.bg,
467
+ __self: this,
468
+ __source: {
469
+ fileName: _jsxFileName$t,
470
+ lineNumber: 106
471
+ }
472
+ }), React$w.createElement(Emoji, {
473
+ className: classes.fg,
474
+ __self: this,
475
+ __source: {
476
+ fileName: _jsxFileName$t,
477
+ lineNumber: 107
478
+ }
479
+ })),
480
+ open: {
481
+ check: React$w.createElement(IconRoot, {
482
+ size: size,
483
+ __self: this,
484
+ __source: {
485
+ fileName: _jsxFileName$t,
486
+ lineNumber: 112
487
+ }
488
+ }, React$w.createElement(Action, {
489
+ className: classes.bg,
490
+ __self: this,
491
+ __source: {
492
+ fileName: _jsxFileName$t,
493
+ lineNumber: 113
494
+ }
495
+ })),
496
+ emoji: React$w.createElement(IconRoot, {
497
+ size: size,
498
+ __self: this,
499
+ __source: {
500
+ fileName: _jsxFileName$t,
501
+ lineNumber: 117
502
+ }
503
+ }, React$w.createElement(Emoji, {
504
+ className: classes.bg,
505
+ __self: this,
506
+ __source: {
507
+ fileName: _jsxFileName$t,
508
+ lineNumber: 118
509
+ }
510
+ }))
511
+ }
512
+ }
513
+ };
514
+ }
515
+ render() {
516
+ if (this.props.category === undefined) {
517
+ if (this.props.open === true) {
518
+ return this.icons[this.props.shape].open[this.props.iconSet];
519
+ } else {
520
+ return this.icons[this.props.shape][this.props.iconSet];
521
+ }
522
+ } else {
523
+ if (this.props.open === true) {
524
+ return this.icons.feedback[this.props.shape].open[this.props.iconSet];
525
+ } else {
526
+ return this.icons.feedback[this.props.shape][this.props.iconSet];
527
+ }
528
+ }
529
+ }
530
+ }
531
+ IconBase.__initStatic();
532
+ IconBase.propTypes = {
533
+ iconSet: PropTypes$u.oneOf(['emoji', 'check']),
534
+ shape: PropTypes$u.oneOf(['round', 'square']),
535
+ category: PropTypes$u.oneOf(['feedback', undefined]),
536
+ open: PropTypes$u.bool
537
+ };
538
+ IconBase.defaultProps = {
539
+ iconSet: 'check',
540
+ shape: 'round',
541
+ category: undefined,
542
+ open: false
543
+ };
544
+ return IconBase;
545
+ };
546
+ const PropTypes$t = _dll_prop_types;
547
+ const React$v = _dll_react;
548
+ const {withStyles: withStyles$k} = _dll_material_ui__core_styles;
549
+ const _jsxFileName$s = "/home/circleci/repo/node_modules/@pie-lib/icons/src/correct-icon.jsx";
550
+ const styles$c = getStyles('correct', '#f8ffe2', '#4aaf46');
551
+ const Emoji$3 = ({className}) => React$v.createElement('g', {
552
+ transform: 'translate(1, 0)',
553
+ __self: undefined,
554
+ __source: {
555
+ fileName: _jsxFileName$s,
556
+ lineNumber: 10
557
+ }
558
+ }, React$v.createElement('path', {
559
+ className: className,
560
+ 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",
561
+ __self: undefined,
562
+ __source: {
563
+ fileName: _jsxFileName$s,
564
+ lineNumber: 11
565
+ }
566
+ }), React$v.createElement('rect', {
567
+ x: "21.1",
568
+ y: "13.1",
569
+ className: className,
570
+ width: "3.7",
571
+ height: "4.7",
572
+ __self: undefined,
573
+ __source: {
574
+ fileName: _jsxFileName$s,
575
+ lineNumber: 16
576
+ }
577
+ }), React$v.createElement('rect', {
578
+ x: "12.7",
579
+ y: "13.1",
580
+ className: className,
581
+ width: "3.7",
582
+ height: "4.7",
583
+ __self: undefined,
584
+ __source: {
585
+ fileName: _jsxFileName$s,
586
+ lineNumber: 17
587
+ }
588
+ }));
589
+ Emoji$3.propTypes = {
590
+ className: PropTypes$t.string
591
+ };
592
+ Emoji$3.defaultProps = {
593
+ x: 0
594
+ };
595
+ const Check$1 = ({className, x, y}) => React$v.createElement('polygon', {
596
+ transform: `translate(${x}, ${y})`,
597
+ className: className,
598
+ 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",
599
+ __self: undefined,
600
+ __source: {
601
+ fileName: _jsxFileName$s,
602
+ lineNumber: 30
603
+ }
604
+ });
605
+ Check$1.propTypes = {
606
+ x: PropTypes$t.number,
607
+ y: PropTypes$t.number,
608
+ className: PropTypes$t.string
609
+ };
610
+ Check$1.defaultProps = {
611
+ x: 0,
612
+ y: 0
613
+ };
614
+ const Correct = IconBase(Check$1, Emoji$3);
615
+ Correct.propTypes = {
616
+ iconSet: PropTypes$t.oneOf(['emoji', 'check']),
617
+ shape: PropTypes$t.oneOf(['round', 'square']),
618
+ category: PropTypes$t.oneOf(['feedback', undefined]),
619
+ open: PropTypes$t.bool
620
+ };
621
+ Correct.defaultProps = {
622
+ iconSet: 'check',
623
+ shape: 'round',
624
+ category: undefined,
625
+ open: false
626
+ };
627
+ var correctIcon = withStyles$k(styles$c)(Correct);
628
+ const PropTypes$s = _dll_prop_types;
629
+ const React$u = _dll_react;
630
+ const classNames$4 = _dll_classnames;
631
+ const {withStyles: withStyles$j} = _dll_material_ui__core_styles;
632
+ const _jsxFileName$r = "/home/circleci/repo/node_modules/@pie-lib/icons/src/correct-response-icon.jsx";
633
+ const OpenIcon = ({bg, fg}) => React$u.createElement('svg', {
634
+ preserveAspectRatio: "xMinYMin meet",
635
+ version: "1.1",
636
+ id: "Layer_1",
637
+ x: "0px",
638
+ y: "0px",
639
+ viewBox: "-283 359 34 35",
640
+ style: {
641
+ enableBackground: 'new -283 359 34 35'
642
+ },
643
+ __self: undefined,
644
+ __source: {
645
+ fileName: _jsxFileName$r,
646
+ lineNumber: 7
647
+ }
648
+ }, React$u.createElement('circle', {
649
+ className: bg,
650
+ cx: "-266",
651
+ cy: "375.9",
652
+ r: "14",
653
+ __self: undefined,
654
+ __source: {
655
+ fileName: _jsxFileName$r,
656
+ lineNumber: 16
657
+ }
658
+ }), React$u.createElement('path', {
659
+ className: bg,
660
+ 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",
661
+ __self: undefined,
662
+ __source: {
663
+ fileName: _jsxFileName$r,
664
+ lineNumber: 17
665
+ }
666
+ }), React$u.createElement('polygon', {
667
+ className: fg,
668
+ 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 ",
669
+ __self: undefined,
670
+ __source: {
671
+ fileName: _jsxFileName$r,
672
+ lineNumber: 22
673
+ }
674
+ }));
675
+ OpenIcon.propTypes = {
676
+ bg: PropTypes$s.string,
677
+ fg: PropTypes$s.string
678
+ };
679
+ const CloseIcon = ({bg, fg, border}) => React$u.createElement('svg', {
680
+ preserveAspectRatio: "xMinYMin meet",
681
+ version: "1.1",
682
+ x: "0px",
683
+ y: "0px",
684
+ viewBox: "-129.5 127 34 35",
685
+ style: {
686
+ enableBackground: 'new -129.5 127 34 35'
687
+ },
688
+ __self: undefined,
689
+ __source: {
690
+ fileName: _jsxFileName$r,
691
+ lineNumber: 35
692
+ }
693
+ }, React$u.createElement('path', {
694
+ style: {
695
+ fill: '#D0CAC5',
696
+ stroke: '#E6E3E0',
697
+ strokeWidth: 0.75,
698
+ strokeMiterlimit: 10
699
+ },
700
+ 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",
701
+ __self: undefined,
702
+ __source: {
703
+ fileName: _jsxFileName$r,
704
+ lineNumber: 43
705
+ }
706
+ }), React$u.createElement('path', {
707
+ style: {
708
+ fill: '#B3ABA4',
709
+ stroke: '#CDC7C2',
710
+ strokeWidth: 0.5,
711
+ strokeMiterlimit: 10
712
+ },
713
+ 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",
714
+ __self: undefined,
715
+ __source: {
716
+ fileName: _jsxFileName$r,
717
+ lineNumber: 53
718
+ }
719
+ }), React$u.createElement('circle', {
720
+ className: bg,
721
+ cx: "-114.2",
722
+ cy: "143.5",
723
+ r: "14",
724
+ __self: undefined,
725
+ __source: {
726
+ fileName: _jsxFileName$r,
727
+ lineNumber: 62
728
+ }
729
+ }), React$u.createElement('path', {
730
+ className: border,
731
+ 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",
732
+ __self: undefined,
733
+ __source: {
734
+ fileName: _jsxFileName$r,
735
+ lineNumber: 63
736
+ }
737
+ }), React$u.createElement('polygon', {
738
+ className: fg,
739
+ points: "-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2",
740
+ __self: undefined,
741
+ __source: {
742
+ fileName: _jsxFileName$r,
743
+ lineNumber: 68
744
+ }
745
+ }));
746
+ CloseIcon.propTypes = {
747
+ bg: PropTypes$s.string,
748
+ fg: PropTypes$s.string,
749
+ border: PropTypes$s.string
750
+ };
751
+ const styles$b = {
752
+ root: {
753
+ width: props => props.size || '25px',
754
+ height: props => props.size || '25px'
755
+ },
756
+ hideIconBg: {
757
+ fill: '#bce2ff'
758
+ },
759
+ hideIconFg: {
760
+ fill: '#1a9cff'
761
+ },
762
+ showIconBg: {
763
+ fill: 'white'
764
+ },
765
+ showIconFg: {
766
+ fill: '#1a9cff'
767
+ },
768
+ showIconBorder: {
769
+ fill: '#bce2ff'
770
+ }
771
+ };
772
+ const CorrectResponse = ({open, classes, className}) => React$u.createElement('div', {
773
+ className: classNames$4(className, classes.root),
774
+ __self: undefined,
775
+ __source: {
776
+ fileName: _jsxFileName$r,
777
+ lineNumber: 104
778
+ }
779
+ }, open ? React$u.createElement(OpenIcon, {
780
+ bg: classes.hideIconBg,
781
+ fg: classes.hideIconFg,
782
+ __self: undefined,
783
+ __source: {
784
+ fileName: _jsxFileName$r,
785
+ lineNumber: 106
786
+ }
787
+ }) : React$u.createElement(CloseIcon, {
788
+ bg: classes.showIconBg,
789
+ border: classes.showIconBorder,
790
+ fg: classes.showIconFg,
791
+ __self: undefined,
792
+ __source: {
793
+ fileName: _jsxFileName$r,
794
+ lineNumber: 108
795
+ }
796
+ }));
797
+ CorrectResponse.propTypes = {
798
+ classes: PropTypes$s.object.isRequired,
799
+ open: PropTypes$s.bool,
800
+ size: PropTypes$s.string,
801
+ className: PropTypes$s.string
802
+ };
803
+ CorrectResponse.defaultProps = {
804
+ open: false
805
+ };
806
+ var CorrectResponse$1 = withStyles$j(styles$b)(CorrectResponse);
807
+ const PropTypes$r = _dll_prop_types;
808
+ const React$t = _dll_react;
809
+ const {withStyles: withStyles$i} = _dll_material_ui__core_styles;
810
+ const _jsxFileName$q = "/home/circleci/repo/node_modules/@pie-lib/icons/src/incorrect-icon.jsx";
811
+ const Ex = ({className}) => React$t.createElement('g', {
812
+ transform: 'translate(0.5, 0.5)',
813
+ __self: undefined,
814
+ __source: {
815
+ fileName: _jsxFileName$q,
816
+ lineNumber: 8
817
+ }
818
+ }, React$t.createElement('rect', {
819
+ x: "11",
820
+ y: "17.3",
821
+ transform: "matrix(0.7071 -0.7071 0.7071 0.7071 -7.852 19.2507)",
822
+ className: className,
823
+ width: "16.6",
824
+ height: "3.7",
825
+ __self: undefined,
826
+ __source: {
827
+ fileName: _jsxFileName$q,
828
+ lineNumber: 9
829
+ }
830
+ }), React$t.createElement('rect', {
831
+ x: "17.4",
832
+ y: "10.7",
833
+ transform: "matrix(0.7071 -0.7071 0.7071 0.7071 -7.8175 19.209)",
834
+ className: className,
835
+ width: "3.7",
836
+ height: "16.6",
837
+ __self: undefined,
838
+ __source: {
839
+ fileName: _jsxFileName$q,
840
+ lineNumber: 17
841
+ }
842
+ }));
843
+ Ex.propTypes = {
844
+ className: PropTypes$r.string
845
+ };
846
+ const Emoji$2 = ({className}) => React$t.createElement('g', {
847
+ transform: 'translate(1,0)',
848
+ __self: undefined,
849
+ __source: {
850
+ fileName: _jsxFileName$q,
851
+ lineNumber: 32
852
+ }
853
+ }, React$t.createElement('rect', {
854
+ x: "21",
855
+ y: "12.9",
856
+ className: className,
857
+ width: "3.7",
858
+ height: "4.7",
859
+ __self: undefined,
860
+ __source: {
861
+ fileName: _jsxFileName$q,
862
+ lineNumber: 33
863
+ }
864
+ }), React$t.createElement('rect', {
865
+ x: "12.7",
866
+ y: "12.9",
867
+ className: className,
868
+ width: "3.7",
869
+ height: "4.7",
870
+ __self: undefined,
871
+ __source: {
872
+ fileName: _jsxFileName$q,
873
+ lineNumber: 34
874
+ }
875
+ }), React$t.createElement('rect', {
876
+ x: "12.2",
877
+ y: "22.5",
878
+ className: className,
879
+ width: "13",
880
+ height: "3.3",
881
+ __self: undefined,
882
+ __source: {
883
+ fileName: _jsxFileName$q,
884
+ lineNumber: 35
885
+ }
886
+ }));
887
+ Emoji$2.propTypes = {
888
+ className: PropTypes$r.string
889
+ };
890
+ const styles$a = getStyles('incorrect', '#fbf2e3', '#fcb733');
891
+ const Incorrect = IconBase(Ex, Emoji$2);
892
+ var incorrectIcon = withStyles$i(styles$a)(Incorrect);
893
+ Incorrect.propTypes = {
894
+ iconSet: PropTypes$r.oneOf(['emoji', 'check']),
895
+ shape: PropTypes$r.oneOf(['round', 'square']),
896
+ category: PropTypes$r.oneOf(['feedback', undefined]),
897
+ open: PropTypes$r.bool
898
+ };
899
+ Incorrect.defaultProps = {
900
+ iconSet: 'check',
901
+ shape: 'round',
902
+ category: undefined,
903
+ open: false
904
+ };
905
+ const PropTypes$q = _dll_prop_types;
906
+ const React$s = _dll_react;
907
+ const _jsxFileName$p = "/home/circleci/repo/node_modules/@pie-lib/icons/src/instructions-icon.jsx";
908
+ const Lines = () => {
909
+ const style = {
910
+ fill: 'none',
911
+ stroke: '#BCE2FF',
912
+ strokeWidth: 2,
913
+ strokeMiterlimit: 10
914
+ };
915
+ return React$s.createElement('g', {
916
+ __self: undefined,
917
+ __source: {
918
+ fileName: _jsxFileName$p,
919
+ lineNumber: 13
920
+ }
921
+ }, React$s.createElement('line', {
922
+ style: style,
923
+ x1: "-98",
924
+ y1: "142",
925
+ x2: "-114.6",
926
+ y2: "142",
927
+ __self: undefined,
928
+ __source: {
929
+ fileName: _jsxFileName$p,
930
+ lineNumber: 14
931
+ }
932
+ }), React$s.createElement('line', {
933
+ style: style,
934
+ x1: "-98",
935
+ y1: "146.3",
936
+ x2: "-114.6",
937
+ y2: "146.3",
938
+ __self: undefined,
939
+ __source: {
940
+ fileName: _jsxFileName$p,
941
+ lineNumber: 15
942
+ }
943
+ }), React$s.createElement('line', {
944
+ style: style,
945
+ x1: "-104",
946
+ y1: "150.7",
947
+ x2: "-114.6",
948
+ y2: "150.7",
949
+ __self: undefined,
950
+ __source: {
951
+ fileName: _jsxFileName$p,
952
+ lineNumber: 16
953
+ }
954
+ }));
955
+ };
956
+ const Root$1 = ({children, size}) => React$s.createElement(Sized, {
957
+ size: size,
958
+ __self: undefined,
959
+ __source: {
960
+ fileName: _jsxFileName$p,
961
+ lineNumber: 22
962
+ }
963
+ }, React$s.createElement('svg', {
964
+ version: "1.1",
965
+ viewBox: "-128 129 31 31",
966
+ style: {
967
+ enableBackground: 'new -128 129 31 31'
968
+ },
969
+ __self: undefined,
970
+ __source: {
971
+ fileName: _jsxFileName$p,
972
+ lineNumber: 23
973
+ }
974
+ }, children));
975
+ Root$1.propTypes = {
976
+ children: PropTypes$q.oneOfType([PropTypes$q.arrayOf(PropTypes$q.node), PropTypes$q.node]).isRequired,
977
+ size: PropTypes$q.number
978
+ };
979
+ const GreyInfo = () => {
980
+ return React$s.createElement('g', {
981
+ __self: undefined,
982
+ __source: {
983
+ fileName: _jsxFileName$p,
984
+ lineNumber: 36
985
+ }
986
+ }, React$s.createElement('rect', {
987
+ x: "-123.9",
988
+ y: "135.3",
989
+ style: {
990
+ fill: '#D0CAC5',
991
+ stroke: '#E6E3E0',
992
+ strokeWidth: 0.75,
993
+ strokeLinejoin: 'round',
994
+ strokeMiterlimit: 10
995
+ },
996
+ width: "4.1",
997
+ height: "4.1",
998
+ __self: undefined,
999
+ __source: {
1000
+ fileName: _jsxFileName$p,
1001
+ lineNumber: 37
1002
+ }
1003
+ }), React$s.createElement('polygon', {
1004
+ style: {
1005
+ fill: '#D0CAC5',
1006
+ stroke: '#E6E3E0',
1007
+ strokeWidth: 0.75,
1008
+ strokeLinejoin: 'round',
1009
+ strokeMiterlimit: 10
1010
+ },
1011
+ 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 ",
1012
+ __self: undefined,
1013
+ __source: {
1014
+ fileName: _jsxFileName$p,
1015
+ lineNumber: 50
1016
+ }
1017
+ }), React$s.createElement('rect', {
1018
+ x: "-124.7",
1019
+ y: "134.7",
1020
+ style: {
1021
+ fill: '#B3ABA4',
1022
+ stroke: '#CDC7C2',
1023
+ strokeWidth: 0.5,
1024
+ strokeLinecap: 'round',
1025
+ strokeLinejoin: 'round',
1026
+ strokeMiterlimit: 10
1027
+ },
1028
+ width: "4.1",
1029
+ height: "4.1",
1030
+ __self: undefined,
1031
+ __source: {
1032
+ fileName: _jsxFileName$p,
1033
+ lineNumber: 61
1034
+ }
1035
+ }), React$s.createElement('polygon', {
1036
+ style: {
1037
+ fill: '#B3ABA4',
1038
+ stroke: '#CDC7C2',
1039
+ strokeWidth: 0.5,
1040
+ strokeLinecap: 'round',
1041
+ strokeLinejoin: 'round',
1042
+ strokeMiterlimit: 10
1043
+ },
1044
+ 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 ",
1045
+ __self: undefined,
1046
+ __source: {
1047
+ fileName: _jsxFileName$p,
1048
+ lineNumber: 76
1049
+ }
1050
+ }), React$s.createElement('rect', {
1051
+ x: "-125.5",
1052
+ y: "134",
1053
+ style: {
1054
+ fill: '#7FABC6'
1055
+ },
1056
+ width: "4.1",
1057
+ height: "4.1",
1058
+ __self: undefined,
1059
+ __source: {
1060
+ fileName: _jsxFileName$p,
1061
+ lineNumber: 88
1062
+ }
1063
+ }), React$s.createElement('polygon', {
1064
+ style: {
1065
+ fill: '#7FABC6'
1066
+ },
1067
+ 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 ",
1068
+ __self: undefined,
1069
+ __source: {
1070
+ fileName: _jsxFileName$p,
1071
+ lineNumber: 89
1072
+ }
1073
+ }));
1074
+ };
1075
+ const BlueInfo = () => React$s.createElement('g', {
1076
+ __self: undefined,
1077
+ __source: {
1078
+ fileName: _jsxFileName$p,
1079
+ lineNumber: 99
1080
+ }
1081
+ }, React$s.createElement('rect', {
1082
+ x: "-123.9",
1083
+ y: "135.3",
1084
+ style: {
1085
+ fill: '#D0CAC5',
1086
+ stroke: '#E6E3E0',
1087
+ strokeWidth: 0.75,
1088
+ strokeLinejoin: 'round',
1089
+ strokeMiterlimit: 10
1090
+ },
1091
+ width: "4.1",
1092
+ height: "4.1",
1093
+ __self: undefined,
1094
+ __source: {
1095
+ fileName: _jsxFileName$p,
1096
+ lineNumber: 100
1097
+ }
1098
+ }), React$s.createElement('polygon', {
1099
+ style: {
1100
+ fill: '#D0CAC5',
1101
+ stroke: '#E6E3E0',
1102
+ strokeWidth: 0.75,
1103
+ strokeLinejoin: 'round',
1104
+ strokeMiterlimit: 10
1105
+ },
1106
+ 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 ",
1107
+ __self: undefined,
1108
+ __source: {
1109
+ fileName: _jsxFileName$p,
1110
+ lineNumber: 113
1111
+ }
1112
+ }), React$s.createElement('rect', {
1113
+ x: "-124.7",
1114
+ y: "134.7",
1115
+ style: {
1116
+ fill: '#B3ABA4',
1117
+ stroke: '#CDC7C2',
1118
+ strokeWidth: 0.5,
1119
+ strokeLinecap: 'round',
1120
+ strokeLinejoin: 'round',
1121
+ strokeMiterlimit: 10
1122
+ },
1123
+ width: "4.1",
1124
+ height: "4.1",
1125
+ __self: undefined,
1126
+ __source: {
1127
+ fileName: _jsxFileName$p,
1128
+ lineNumber: 124
1129
+ }
1130
+ }), React$s.createElement('polygon', {
1131
+ style: {
1132
+ fill: '#B3ABA4',
1133
+ stroke: '#CDC7C2',
1134
+ strokeWidth: 0.5,
1135
+ strokeLinecap: 'round',
1136
+ strokeLinejoin: 'round',
1137
+ strokeMiterlimit: 10
1138
+ },
1139
+ 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 ",
1140
+ __self: undefined,
1141
+ __source: {
1142
+ fileName: _jsxFileName$p,
1143
+ lineNumber: 138
1144
+ }
1145
+ }), React$s.createElement('rect', {
1146
+ x: "-125.5",
1147
+ y: "134",
1148
+ style: {
1149
+ fill: '#1A9CFF'
1150
+ },
1151
+ width: "4.1",
1152
+ height: "4.1",
1153
+ __self: undefined,
1154
+ __source: {
1155
+ fileName: _jsxFileName$p,
1156
+ lineNumber: 150
1157
+ }
1158
+ }), React$s.createElement('polygon', {
1159
+ style: {
1160
+ fill: '#1A9CFF'
1161
+ },
1162
+ 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 ",
1163
+ __self: undefined,
1164
+ __source: {
1165
+ fileName: _jsxFileName$p,
1166
+ lineNumber: 151
1167
+ }
1168
+ }));
1169
+ class Instructions extends React$s.Component {
1170
+ constructor(props) {
1171
+ super(props);
1172
+ }
1173
+ render() {
1174
+ if (this.props.open === true) {
1175
+ return React$s.createElement(Root$1, {
1176
+ __self: this,
1177
+ __source: {
1178
+ fileName: _jsxFileName$p,
1179
+ lineNumber: 167
1180
+ }
1181
+ }, React$s.createElement(GreyInfo, {
1182
+ __self: this,
1183
+ __source: {
1184
+ fileName: _jsxFileName$p,
1185
+ lineNumber: 168
1186
+ }
1187
+ }), React$s.createElement(Lines, {
1188
+ __self: this,
1189
+ __source: {
1190
+ fileName: _jsxFileName$p,
1191
+ lineNumber: 169
1192
+ }
1193
+ }));
1194
+ } else {
1195
+ return React$s.createElement(Root$1, {
1196
+ __self: this,
1197
+ __source: {
1198
+ fileName: _jsxFileName$p,
1199
+ lineNumber: 174
1200
+ }
1201
+ }, React$s.createElement(BlueInfo, {
1202
+ __self: this,
1203
+ __source: {
1204
+ fileName: _jsxFileName$p,
1205
+ lineNumber: 175
1206
+ }
1207
+ }), React$s.createElement(Lines, {
1208
+ __self: this,
1209
+ __source: {
1210
+ fileName: _jsxFileName$p,
1211
+ lineNumber: 176
1212
+ }
1213
+ }));
1214
+ }
1215
+ }
1216
+ }
1217
+ Instructions.propTypes = {
1218
+ open: PropTypes$q.bool
1219
+ };
1220
+ Instructions.defaultProps = {
1221
+ open: false
1222
+ };
1223
+ const PropTypes$p = _dll_prop_types;
1224
+ const React$r = _dll_react;
1225
+ const {withStyles: withStyles$h} = _dll_material_ui__core_styles;
1226
+ const _jsxFileName$o = "/home/circleci/repo/node_modules/@pie-lib/icons/src/learn-more-icon.jsx";
1227
+ const Glint = ({fill}) => React$r.createElement('path', {
1228
+ fill: fill,
1229
+ 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",
1230
+ __self: undefined,
1231
+ __source: {
1232
+ fileName: _jsxFileName$o,
1233
+ lineNumber: 7
1234
+ }
1235
+ });
1236
+ Glint.propTypes = {
1237
+ fill: PropTypes$p.string
1238
+ };
1239
+ class LearnMore extends React$r.Component {
1240
+ static __initStatic() {
1241
+ this.propTypes = {
1242
+ classes: PropTypes$p.object.isRequired,
1243
+ size: PropTypes$p.number
1244
+ };
1245
+ }
1246
+ render() {
1247
+ const {classes, size} = this.props;
1248
+ if (this.props.open === true) {
1249
+ return React$r.createElement(Sized, {
1250
+ size: size,
1251
+ __self: this,
1252
+ __source: {
1253
+ fileName: _jsxFileName$o,
1254
+ lineNumber: 28
1255
+ }
1256
+ }, React$r.createElement('svg', {
1257
+ preserveAspectRatio: "xMinYMin meet",
1258
+ viewBox: "-135 129 16 32",
1259
+ __self: this,
1260
+ __source: {
1261
+ fileName: _jsxFileName$o,
1262
+ lineNumber: 29
1263
+ }
1264
+ }, React$r.createElement('path', {
1265
+ className: classes.hideBg,
1266
+ 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",
1267
+ __self: this,
1268
+ __source: {
1269
+ fileName: _jsxFileName$o,
1270
+ lineNumber: 30
1271
+ }
1272
+ }), React$r.createElement('path', {
1273
+ className: classes.hideBg,
1274
+ 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",
1275
+ __self: this,
1276
+ __source: {
1277
+ fileName: _jsxFileName$o,
1278
+ lineNumber: 34
1279
+ }
1280
+ }), React$r.createElement(Glint, {
1281
+ fill: classes.hideFg.fill,
1282
+ __self: this,
1283
+ __source: {
1284
+ fileName: _jsxFileName$o,
1285
+ lineNumber: 38
1286
+ }
1287
+ })));
1288
+ } else {
1289
+ return React$r.createElement(Sized, {
1290
+ size: size,
1291
+ __self: this,
1292
+ __source: {
1293
+ fileName: _jsxFileName$o,
1294
+ lineNumber: 44
1295
+ }
1296
+ }, React$r.createElement('svg', {
1297
+ preserveAspectRatio: "xMinYMin meet",
1298
+ viewBox: "-135 129 16 31",
1299
+ __self: this,
1300
+ __source: {
1301
+ fileName: _jsxFileName$o,
1302
+ lineNumber: 45
1303
+ }
1304
+ }, React$r.createElement('path', {
1305
+ fill: "#D0CAC5",
1306
+ stroke: "#E6E3E0",
1307
+ className: "st0",
1308
+ 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",
1309
+ __self: this,
1310
+ __source: {
1311
+ fileName: _jsxFileName$o,
1312
+ lineNumber: 46
1313
+ }
1314
+ }), React$r.createElement('path', {
1315
+ fill: "#D0CAC5",
1316
+ stroke: "#E6E3E0",
1317
+ className: "st0",
1318
+ 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",
1319
+ __self: this,
1320
+ __source: {
1321
+ fileName: _jsxFileName$o,
1322
+ lineNumber: 52
1323
+ }
1324
+ }), React$r.createElement('path', {
1325
+ fill: "#B3ABA4",
1326
+ stroke: "#CDC7C2",
1327
+ className: "st1",
1328
+ 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",
1329
+ __self: this,
1330
+ __source: {
1331
+ fileName: _jsxFileName$o,
1332
+ lineNumber: 58
1333
+ }
1334
+ }), ",", React$r.createElement('path', {
1335
+ fill: "#B3ABA4",
1336
+ stroke: "#CDC7C2",
1337
+ className: "st1",
1338
+ 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",
1339
+ __self: this,
1340
+ __source: {
1341
+ fileName: _jsxFileName$o,
1342
+ lineNumber: 65
1343
+ }
1344
+ }), React$r.createElement('path', {
1345
+ className: classes.showBg,
1346
+ 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",
1347
+ __self: this,
1348
+ __source: {
1349
+ fileName: _jsxFileName$o,
1350
+ lineNumber: 71
1351
+ }
1352
+ }), React$r.createElement('path', {
1353
+ className: classes.showBg,
1354
+ 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",
1355
+ __self: this,
1356
+ __source: {
1357
+ fileName: _jsxFileName$o,
1358
+ lineNumber: 75
1359
+ }
1360
+ }), React$r.createElement(Glint, {
1361
+ fill: classes.hideFg.fill,
1362
+ __self: this,
1363
+ __source: {
1364
+ fileName: _jsxFileName$o,
1365
+ lineNumber: 79
1366
+ }
1367
+ })));
1368
+ }
1369
+ }
1370
+ }
1371
+ LearnMore.__initStatic();
1372
+ const styles$9 = {
1373
+ showBg: {
1374
+ fill: '#1a9cff'
1375
+ },
1376
+ hideFg: {
1377
+ fill: '#1a9cff'
1378
+ },
1379
+ hideBg: {
1380
+ fill: '#bce2ff'
1381
+ }
1382
+ };
1383
+ LearnMore.propTypes = {
1384
+ open: PropTypes$p.bool
1385
+ };
1386
+ LearnMore.defaultProps = {
1387
+ open: false
1388
+ };
1389
+ withStyles$h(styles$9)(LearnMore);
1390
+ const PropTypes$o = _dll_prop_types;
1391
+ const React$q = _dll_react;
1392
+ const {withStyles: withStyles$g} = _dll_material_ui__core_styles;
1393
+ const _jsxFileName$n = "/home/circleci/repo/node_modules/@pie-lib/icons/src/nothing-submitted-icon.jsx";
1394
+ const Exclamation = ({className}) => React$q.createElement('g', {
1395
+ __self: undefined,
1396
+ __source: {
1397
+ fileName: _jsxFileName$n,
1398
+ lineNumber: 8
1399
+ }
1400
+ }, React$q.createElement('rect', {
1401
+ x: "19.3",
1402
+ y: "10.3",
1403
+ className: className,
1404
+ width: "4.5",
1405
+ height: "12.7",
1406
+ __self: undefined,
1407
+ __source: {
1408
+ fileName: _jsxFileName$n,
1409
+ lineNumber: 9
1410
+ }
1411
+ }), React$q.createElement('rect', {
1412
+ x: "19.3",
1413
+ y: "26.2",
1414
+ className: className,
1415
+ width: "4.5",
1416
+ height: "4.5",
1417
+ __self: undefined,
1418
+ __source: {
1419
+ fileName: _jsxFileName$n,
1420
+ lineNumber: 10
1421
+ }
1422
+ }));
1423
+ const Octagon = ({className}) => React$q.createElement('polygon', {
1424
+ className: className,
1425
+ 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",
1426
+ __self: undefined,
1427
+ __source: {
1428
+ fileName: _jsxFileName$n,
1429
+ lineNumber: 15
1430
+ }
1431
+ });
1432
+ const Emoji$1 = ({className}) => React$q.createElement('g', {
1433
+ __self: undefined,
1434
+ __source: {
1435
+ fileName: _jsxFileName$n,
1436
+ lineNumber: 22
1437
+ }
1438
+ }, React$q.createElement('rect', {
1439
+ x: "23.8",
1440
+ y: "15",
1441
+ className: className,
1442
+ width: "3.5",
1443
+ height: "4.4",
1444
+ __self: undefined,
1445
+ __source: {
1446
+ fileName: _jsxFileName$n,
1447
+ lineNumber: 23
1448
+ }
1449
+ }), React$q.createElement('rect', {
1450
+ x: "16",
1451
+ y: "15",
1452
+ className: className,
1453
+ width: "3.5",
1454
+ height: "4.4",
1455
+ __self: undefined,
1456
+ __source: {
1457
+ fileName: _jsxFileName$n,
1458
+ lineNumber: 24
1459
+ }
1460
+ }), React$q.createElement('path', {
1461
+ className: className,
1462
+ 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",
1463
+ __self: undefined,
1464
+ __source: {
1465
+ fileName: _jsxFileName$n,
1466
+ lineNumber: 25
1467
+ }
1468
+ }));
1469
+ Emoji$1.propTypes = Octagon.propTypes = Exclamation.propTypes = {
1470
+ className: PropTypes$o.string
1471
+ };
1472
+ const styles$8 = getStyles('nothing-submitted', 'white', '#464146');
1473
+ class NothingSubmitted extends React$q.Component {
1474
+ static __initStatic() {
1475
+ this.propTypes = {
1476
+ classes: PropTypes$o.object.isRequired
1477
+ };
1478
+ }
1479
+ constructor(props) {
1480
+ super(props);
1481
+ const {classes} = this.props;
1482
+ this.icons = {
1483
+ check: React$q.createElement(IconRoot, {
1484
+ __self: this,
1485
+ __source: {
1486
+ fileName: _jsxFileName$n,
1487
+ lineNumber: 48
1488
+ }
1489
+ }, React$q.createElement(Octagon, {
1490
+ className: classes.bg,
1491
+ __self: this,
1492
+ __source: {
1493
+ fileName: _jsxFileName$n,
1494
+ lineNumber: 49
1495
+ }
1496
+ }), React$q.createElement(Exclamation, {
1497
+ className: classes.fg,
1498
+ __self: this,
1499
+ __source: {
1500
+ fileName: _jsxFileName$n,
1501
+ lineNumber: 50
1502
+ }
1503
+ })),
1504
+ emoji: React$q.createElement(IconRoot, {
1505
+ __self: this,
1506
+ __source: {
1507
+ fileName: _jsxFileName$n,
1508
+ lineNumber: 54
1509
+ }
1510
+ }, React$q.createElement(Octagon, {
1511
+ className: classes.bg,
1512
+ __self: this,
1513
+ __source: {
1514
+ fileName: _jsxFileName$n,
1515
+ lineNumber: 55
1516
+ }
1517
+ }), React$q.createElement(Emoji$1, {
1518
+ className: classes.fg,
1519
+ __self: this,
1520
+ __source: {
1521
+ fileName: _jsxFileName$n,
1522
+ lineNumber: 56
1523
+ }
1524
+ })),
1525
+ feedback: {
1526
+ check: React$q.createElement(IconRoot, {
1527
+ __self: this,
1528
+ __source: {
1529
+ fileName: _jsxFileName$n,
1530
+ lineNumber: 61
1531
+ }
1532
+ }, React$q.createElement(Octagon, {
1533
+ className: classes.bg,
1534
+ __self: this,
1535
+ __source: {
1536
+ fileName: _jsxFileName$n,
1537
+ lineNumber: 62
1538
+ }
1539
+ }), React$q.createElement(Emoji$1, {
1540
+ className: classes.fg,
1541
+ __self: this,
1542
+ __source: {
1543
+ fileName: _jsxFileName$n,
1544
+ lineNumber: 63
1545
+ }
1546
+ })),
1547
+ emoji: React$q.createElement(IconRoot, {
1548
+ __self: this,
1549
+ __source: {
1550
+ fileName: _jsxFileName$n,
1551
+ lineNumber: 67
1552
+ }
1553
+ }, React$q.createElement(Octagon, {
1554
+ className: classes.bg,
1555
+ __self: this,
1556
+ __source: {
1557
+ fileName: _jsxFileName$n,
1558
+ lineNumber: 68
1559
+ }
1560
+ }), React$q.createElement(Emoji$1, {
1561
+ className: classes.fg,
1562
+ __self: this,
1563
+ __source: {
1564
+ fileName: _jsxFileName$n,
1565
+ lineNumber: 69
1566
+ }
1567
+ })),
1568
+ square: {
1569
+ check: React$q.createElement(IconRoot, {
1570
+ __self: this,
1571
+ __source: {
1572
+ fileName: _jsxFileName$n,
1573
+ lineNumber: 74
1574
+ }
1575
+ }, React$q.createElement(Octagon, {
1576
+ className: classes.bg,
1577
+ __self: this,
1578
+ __source: {
1579
+ fileName: _jsxFileName$n,
1580
+ lineNumber: 75
1581
+ }
1582
+ }), React$q.createElement(Exclamation, {
1583
+ className: classes.fg,
1584
+ __self: this,
1585
+ __source: {
1586
+ fileName: _jsxFileName$n,
1587
+ lineNumber: 76
1588
+ }
1589
+ })),
1590
+ emoji: React$q.createElement(IconRoot, {
1591
+ __self: this,
1592
+ __source: {
1593
+ fileName: _jsxFileName$n,
1594
+ lineNumber: 80
1595
+ }
1596
+ }, React$q.createElement(Octagon, {
1597
+ className: classes.bg,
1598
+ __self: this,
1599
+ __source: {
1600
+ fileName: _jsxFileName$n,
1601
+ lineNumber: 81
1602
+ }
1603
+ }), React$q.createElement(Emoji$1, {
1604
+ className: classes.fg,
1605
+ __self: this,
1606
+ __source: {
1607
+ fileName: _jsxFileName$n,
1608
+ lineNumber: 82
1609
+ }
1610
+ })),
1611
+ open: {
1612
+ check: React$q.createElement(IconRoot, {
1613
+ __self: this,
1614
+ __source: {
1615
+ fileName: _jsxFileName$n,
1616
+ lineNumber: 87
1617
+ }
1618
+ }, React$q.createElement(Exclamation, {
1619
+ className: classes.bg,
1620
+ __self: this,
1621
+ __source: {
1622
+ fileName: _jsxFileName$n,
1623
+ lineNumber: 88
1624
+ }
1625
+ })),
1626
+ emoji: React$q.createElement(IconRoot, {
1627
+ __self: this,
1628
+ __source: {
1629
+ fileName: _jsxFileName$n,
1630
+ lineNumber: 92
1631
+ }
1632
+ }, React$q.createElement(Emoji$1, {
1633
+ className: classes.bg,
1634
+ __self: this,
1635
+ __source: {
1636
+ fileName: _jsxFileName$n,
1637
+ lineNumber: 93
1638
+ }
1639
+ }))
1640
+ }
1641
+ }
1642
+ }
1643
+ };
1644
+ }
1645
+ render() {
1646
+ if (this.props.category === undefined) {
1647
+ return this.icons[this.props.iconSet];
1648
+ } else {
1649
+ if (this.props.shape === undefined) {
1650
+ return this.icons.feedback[this.props.iconSet];
1651
+ } else {
1652
+ if (this.props.open === true) {
1653
+ return this.icons.feedback.square.open[this.props.iconSet];
1654
+ } else {
1655
+ return this.icons.feedback.square[this.props.iconSet];
1656
+ }
1657
+ }
1658
+ }
1659
+ }
1660
+ }
1661
+ NothingSubmitted.__initStatic();
1662
+ NothingSubmitted.propTypes = {
1663
+ iconSet: PropTypes$o.oneOf(['emoji', 'check', undefined]),
1664
+ shape: PropTypes$o.oneOf(['square', undefined]),
1665
+ category: PropTypes$o.oneOf(['feedback', undefined]),
1666
+ open: PropTypes$o.bool
1667
+ };
1668
+ NothingSubmitted.defaultProps = {
1669
+ iconSet: 'check',
1670
+ shape: undefined,
1671
+ category: undefined,
1672
+ open: false
1673
+ };
1674
+ var nothingSubmittedIcon = withStyles$g(styles$8)(NothingSubmitted);
1675
+ const PropTypes$n = _dll_prop_types;
1676
+ const React$p = _dll_react;
1677
+ const {withStyles: withStyles$f} = _dll_material_ui__core_styles;
1678
+ const _jsxFileName$m = "/home/circleci/repo/node_modules/@pie-lib/icons/src/partially-correct-icon.jsx";
1679
+ const styles$7 = getStyles('partially-correct', '#4aaf46', '#c1e1ac');
1680
+ const Check = ({className}) => React$p.createElement('g', {
1681
+ transform: 'translate(0, 0)',
1682
+ __self: undefined,
1683
+ __source: {
1684
+ fileName: _jsxFileName$m,
1685
+ lineNumber: 10
1686
+ }
1687
+ }, React$p.createElement('polygon', {
1688
+ className: className,
1689
+ points: "27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6",
1690
+ __self: undefined,
1691
+ __source: {
1692
+ fileName: _jsxFileName$m,
1693
+ lineNumber: 11
1694
+ }
1695
+ }), React$p.createElement('polygon', {
1696
+ className: className,
1697
+ points: "16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3",
1698
+ __self: undefined,
1699
+ __source: {
1700
+ fileName: _jsxFileName$m,
1701
+ lineNumber: 12
1702
+ }
1703
+ }));
1704
+ const Emoji = ({className}) => React$p.createElement('g', {
1705
+ transform: 'translate(2, 0)',
1706
+ __self: undefined,
1707
+ __source: {
1708
+ fileName: _jsxFileName$m,
1709
+ lineNumber: 17
1710
+ }
1711
+ }, React$p.createElement('rect', {
1712
+ x: "20.6",
1713
+ y: "11.8",
1714
+ className: className,
1715
+ width: "4",
1716
+ height: "5",
1717
+ __self: undefined,
1718
+ __source: {
1719
+ fileName: _jsxFileName$m,
1720
+ lineNumber: 18
1721
+ }
1722
+ }), React$p.createElement('rect', {
1723
+ x: "11.5",
1724
+ y: "11.8",
1725
+ className: className,
1726
+ width: "4",
1727
+ height: "5",
1728
+ __self: undefined,
1729
+ __source: {
1730
+ fileName: _jsxFileName$m,
1731
+ lineNumber: 19
1732
+ }
1733
+ }), React$p.createElement('rect', {
1734
+ x: "10.9",
1735
+ y: "22.9",
1736
+ transform: "matrix(0.9794 -0.2019 0.2019 0.9794 -4.6237 4.1559)",
1737
+ className: className,
1738
+ width: "14.3",
1739
+ height: "3.7",
1740
+ __self: undefined,
1741
+ __source: {
1742
+ fileName: _jsxFileName$m,
1743
+ lineNumber: 20
1744
+ }
1745
+ }));
1746
+ Emoji.propTypes = Check.propTypes = {
1747
+ className: PropTypes$n.string
1748
+ };
1749
+ const PartiallyCorrect = IconBase(Check, Emoji);
1750
+ PartiallyCorrect.propTypes = {
1751
+ iconSet: PropTypes$n.oneOf(['emoji', 'check']),
1752
+ shape: PropTypes$n.oneOf(['round', 'square']),
1753
+ category: PropTypes$n.oneOf(['feedback', undefined]),
1754
+ open: PropTypes$n.bool
1755
+ };
1756
+ PartiallyCorrect.defaultProps = {
1757
+ iconSet: 'check',
1758
+ shape: 'round',
1759
+ category: undefined,
1760
+ open: false
1761
+ };
1762
+ var partiallyCorrectIcon = withStyles$f(styles$7)(PartiallyCorrect);
1763
+ const PropTypes$m = _dll_prop_types;
1764
+ const React$o = _dll_react;
1765
+ const {withStyles: withStyles$e} = _dll_material_ui__core_styles;
1766
+ const _jsxFileName$l = "/home/circleci/repo/node_modules/@pie-lib/icons/src/show-rationale-icon.jsx";
1767
+ const Info = ({fg}) => React$o.createElement('g', {
1768
+ __self: undefined,
1769
+ __source: {
1770
+ fileName: _jsxFileName$l,
1771
+ lineNumber: 7
1772
+ }
1773
+ }, React$o.createElement('rect', {
1774
+ x: "-115",
1775
+ y: "136.7",
1776
+ className: fg,
1777
+ width: "3",
1778
+ height: "3",
1779
+ __self: undefined,
1780
+ __source: {
1781
+ fileName: _jsxFileName$l,
1782
+ lineNumber: 8
1783
+ }
1784
+ }), React$o.createElement('polygon', {
1785
+ className: fg,
1786
+ 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",
1787
+ __self: undefined,
1788
+ __source: {
1789
+ fileName: _jsxFileName$l,
1790
+ lineNumber: 9
1791
+ }
1792
+ }));
1793
+ Info.propTypes = {
1794
+ fg: PropTypes$m.string
1795
+ };
1796
+ const Border = ({className}) => React$o.createElement('path', {
1797
+ className: className,
1798
+ 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",
1799
+ __self: undefined,
1800
+ __source: {
1801
+ fileName: _jsxFileName$l,
1802
+ lineNumber: 21
1803
+ }
1804
+ });
1805
+ Border.propTypes = {
1806
+ className: PropTypes$m.string
1807
+ };
1808
+ const Circle = () => React$o.createElement('g', {
1809
+ __self: undefined,
1810
+ __source: {
1811
+ fileName: _jsxFileName$l,
1812
+ lineNumber: 30
1813
+ }
1814
+ }, React$o.createElement('path', {
1815
+ style: {
1816
+ fill: '#D0CAC5',
1817
+ stroke: '#E6E3E0',
1818
+ strokeWidth: 0.75,
1819
+ strokeMiterlimit: 10
1820
+ },
1821
+ 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",
1822
+ __self: undefined,
1823
+ __source: {
1824
+ fileName: _jsxFileName$l,
1825
+ lineNumber: 31
1826
+ }
1827
+ }), React$o.createElement('path', {
1828
+ style: {
1829
+ fill: '#B3ABA4',
1830
+ stroke: '#CDC7C2',
1831
+ strokeWidth: 0.5,
1832
+ strokeMiterlimit: 10
1833
+ },
1834
+ 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",
1835
+ __self: undefined,
1836
+ __source: {
1837
+ fileName: _jsxFileName$l,
1838
+ lineNumber: 40
1839
+ }
1840
+ }), React$o.createElement('circle', {
1841
+ style: {
1842
+ fill: '#FFFFFF'
1843
+ },
1844
+ cx: "-113",
1845
+ cy: "144",
1846
+ r: "14",
1847
+ __self: undefined,
1848
+ __source: {
1849
+ fileName: _jsxFileName$l,
1850
+ lineNumber: 49
1851
+ }
1852
+ }));
1853
+ const Root = ({children, size}) => {
1854
+ size = normalizeSize(size);
1855
+ const style = {
1856
+ height: size,
1857
+ width: size,
1858
+ display: 'inline-block',
1859
+ position: 'relative'
1860
+ };
1861
+ return React$o.createElement('div', {
1862
+ style: style,
1863
+ __self: undefined,
1864
+ __source: {
1865
+ fileName: _jsxFileName$l,
1866
+ lineNumber: 63
1867
+ }
1868
+ }, React$o.createElement('svg', {
1869
+ preserveAspectRatio: "xMinYMin meet",
1870
+ viewBox: "-129 128 34 34",
1871
+ __self: undefined,
1872
+ __source: {
1873
+ fileName: _jsxFileName$l,
1874
+ lineNumber: 64
1875
+ }
1876
+ }, children));
1877
+ };
1878
+ Root.propTypes = {
1879
+ children: PropTypes$m.oneOfType([PropTypes$m.arrayOf(PropTypes$m.node), PropTypes$m.node]).isRequired,
1880
+ size: PropTypes$m.number
1881
+ };
1882
+ const styles$6 = {
1883
+ fg: {
1884
+ fill: '#1a9cff'
1885
+ },
1886
+ bg: {
1887
+ fill: '#bce2ff'
1888
+ },
1889
+ border: {
1890
+ fill: '#bbe3fd'
1891
+ },
1892
+ whiteBorder: {
1893
+ fill: 'white'
1894
+ }
1895
+ };
1896
+ class ShowRationale extends React$o.Component {
1897
+ static __initStatic() {
1898
+ this.propTypes = {
1899
+ classes: PropTypes$m.object.isRequired
1900
+ };
1901
+ }
1902
+ constructor(props) {
1903
+ super(props);
1904
+ }
1905
+ render() {
1906
+ const {classes} = this.props;
1907
+ const info = React$o.createElement(Info, {
1908
+ fg: classes.fg,
1909
+ __self: this,
1910
+ __source: {
1911
+ fileName: _jsxFileName$l,
1912
+ lineNumber: 102
1913
+ }
1914
+ });
1915
+ const icons = {
1916
+ check: React$o.createElement(Root, {
1917
+ __self: this,
1918
+ __source: {
1919
+ fileName: _jsxFileName$l,
1920
+ lineNumber: 105
1921
+ }
1922
+ }, React$o.createElement(Circle, {
1923
+ __self: this,
1924
+ __source: {
1925
+ fileName: _jsxFileName$l,
1926
+ lineNumber: 106
1927
+ }
1928
+ }), info, React$o.createElement(Border, {
1929
+ className: classes.border,
1930
+ __self: this,
1931
+ __source: {
1932
+ fileName: _jsxFileName$l,
1933
+ lineNumber: 108
1934
+ }
1935
+ })),
1936
+ emoji: React$o.createElement(Root, {
1937
+ __self: this,
1938
+ __source: {
1939
+ fileName: _jsxFileName$l,
1940
+ lineNumber: 112
1941
+ }
1942
+ }, React$o.createElement(Circle, {
1943
+ __self: this,
1944
+ __source: {
1945
+ fileName: _jsxFileName$l,
1946
+ lineNumber: 113
1947
+ }
1948
+ }), info, React$o.createElement(Border, {
1949
+ className: classes.border,
1950
+ __self: this,
1951
+ __source: {
1952
+ fileName: _jsxFileName$l,
1953
+ lineNumber: 115
1954
+ }
1955
+ })),
1956
+ open: {
1957
+ check: React$o.createElement(Root, {
1958
+ __self: this,
1959
+ __source: {
1960
+ fileName: _jsxFileName$l,
1961
+ lineNumber: 120
1962
+ }
1963
+ }, React$o.createElement('circle', {
1964
+ style: {
1965
+ fill: '#FFFFFF'
1966
+ },
1967
+ cx: "-113",
1968
+ cy: "144",
1969
+ r: "14",
1970
+ __self: this,
1971
+ __source: {
1972
+ fileName: _jsxFileName$l,
1973
+ lineNumber: 121
1974
+ }
1975
+ }), React$o.createElement(Info, {
1976
+ fg: classes.bg,
1977
+ border: classes.whiteBorder,
1978
+ __self: this,
1979
+ __source: {
1980
+ fileName: _jsxFileName$l,
1981
+ lineNumber: 122
1982
+ }
1983
+ })),
1984
+ emoji: React$o.createElement(Root, {
1985
+ __self: this,
1986
+ __source: {
1987
+ fileName: _jsxFileName$l,
1988
+ lineNumber: 126
1989
+ }
1990
+ }, React$o.createElement('circle', {
1991
+ style: {
1992
+ fill: '#FFFFFF'
1993
+ },
1994
+ cx: "-113",
1995
+ cy: "144",
1996
+ r: "14",
1997
+ __self: this,
1998
+ __source: {
1999
+ fileName: _jsxFileName$l,
2000
+ lineNumber: 127
2001
+ }
2002
+ }), React$o.createElement(Info, {
2003
+ fg: classes.bg,
2004
+ border: classes.border,
2005
+ __self: this,
2006
+ __source: {
2007
+ fileName: _jsxFileName$l,
2008
+ lineNumber: 128
2009
+ }
2010
+ }))
2011
+ }
2012
+ };
2013
+ if (this.props.open === true) {
2014
+ return icons.open[this.props.iconSet];
2015
+ } else {
2016
+ return icons[this.props.iconSet];
2017
+ }
2018
+ }
2019
+ }
2020
+ ShowRationale.__initStatic();
2021
+ ShowRationale.propTypes = {
2022
+ iconSet: PropTypes$m.oneOf(['emoji', 'check']),
2023
+ open: PropTypes$m.bool
2024
+ };
2025
+ ShowRationale.defaultProps = {
2026
+ iconSet: 'check',
2027
+ open: false
2028
+ };
2029
+ withStyles$e(styles$6)(ShowRationale);
2030
+ var CSSTransition$1 = {
2031
+ exports: {}
2032
+ };
2033
+ var addClass = {
2034
+ exports: {}
2035
+ };
2036
+ var interopRequireDefault = {
2037
+ exports: {}
2038
+ };
2039
+ (function (module) {
2040
+ function _interopRequireDefault(obj) {
2041
+ return obj && obj.__esModule ? obj : {
2042
+ "default": obj
2043
+ };
2044
+ }
2045
+ module.exports = _interopRequireDefault;
2046
+ (module.exports["default"] = module.exports, module.exports.__esModule = true);
2047
+ })(interopRequireDefault);
2048
+ getDefaultExportFromCjs(interopRequireDefault.exports);
2049
+ var hasClass = {
2050
+ exports: {}
2051
+ };
2052
+ (function (module, exports) {
2053
+ exports.__esModule = true;
2054
+ exports.default = hasClass;
2055
+ function hasClass(element, className) {
2056
+ if (element.classList) return !!className && element.classList.contains(className); else return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
2057
+ }
2058
+ module.exports = exports["default"];
2059
+ })(hasClass, hasClass.exports);
2060
+ getDefaultExportFromCjs(hasClass.exports);
2061
+ (function (module, exports) {
2062
+ var _interopRequireDefault = interopRequireDefault.exports;
2063
+ exports.__esModule = true;
2064
+ exports.default = addClass;
2065
+ var _hasClass = _interopRequireDefault(hasClass.exports);
2066
+ function addClass(element, className) {
2067
+ 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);
2068
+ }
2069
+ module.exports = exports["default"];
2070
+ })(addClass, addClass.exports);
2071
+ getDefaultExportFromCjs(addClass.exports);
2072
+ function replaceClassName(origClass, classToRemove) {
2073
+ return origClass.replace(new RegExp('(^|\\s)' + classToRemove + '(?:\\s|$)', 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, '');
2074
+ }
2075
+ var removeClass = function removeClass(element, className) {
2076
+ 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));
2077
+ };
2078
+ var Transition$1 = {};
2079
+ function componentWillMount() {
2080
+ var state = this.constructor.getDerivedStateFromProps(this.props, this.state);
2081
+ if (state !== null && state !== undefined) {
2082
+ this.setState(state);
2083
+ }
2084
+ }
2085
+ function componentWillReceiveProps(nextProps) {
2086
+ function updater(prevState) {
2087
+ var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);
2088
+ return state !== null && state !== undefined ? state : null;
2089
+ }
2090
+ this.setState(updater.bind(this));
2091
+ }
2092
+ function componentWillUpdate(nextProps, nextState) {
2093
+ try {
2094
+ var prevProps = this.props;
2095
+ var prevState = this.state;
2096
+ this.props = nextProps;
2097
+ this.state = nextState;
2098
+ this.__reactInternalSnapshotFlag = true;
2099
+ this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(prevProps, prevState);
2100
+ } finally {
2101
+ this.props = prevProps;
2102
+ this.state = prevState;
2103
+ }
2104
+ }
2105
+ componentWillMount.__suppressDeprecationWarning = true;
2106
+ componentWillReceiveProps.__suppressDeprecationWarning = true;
2107
+ componentWillUpdate.__suppressDeprecationWarning = true;
2108
+ function polyfill(Component) {
2109
+ var prototype = Component.prototype;
2110
+ if (!prototype || !prototype.isReactComponent) {
2111
+ throw new Error('Can only polyfill class components');
2112
+ }
2113
+ if (typeof Component.getDerivedStateFromProps !== 'function' && typeof prototype.getSnapshotBeforeUpdate !== 'function') {
2114
+ return Component;
2115
+ }
2116
+ var foundWillMountName = null;
2117
+ var foundWillReceivePropsName = null;
2118
+ var foundWillUpdateName = null;
2119
+ if (typeof prototype.componentWillMount === 'function') {
2120
+ foundWillMountName = 'componentWillMount';
2121
+ } else if (typeof prototype.UNSAFE_componentWillMount === 'function') {
2122
+ foundWillMountName = 'UNSAFE_componentWillMount';
2123
+ }
2124
+ if (typeof prototype.componentWillReceiveProps === 'function') {
2125
+ foundWillReceivePropsName = 'componentWillReceiveProps';
2126
+ } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {
2127
+ foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
2128
+ }
2129
+ if (typeof prototype.componentWillUpdate === 'function') {
2130
+ foundWillUpdateName = 'componentWillUpdate';
2131
+ } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {
2132
+ foundWillUpdateName = 'UNSAFE_componentWillUpdate';
2133
+ }
2134
+ if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
2135
+ var componentName = Component.displayName || Component.name;
2136
+ var newApiName = typeof Component.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';
2137
+ throw Error('Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + componentName + ' uses ' + newApiName + ' but also contains the following legacy lifecycles:' + (foundWillMountName !== null ? '\n ' + foundWillMountName : '') + (foundWillReceivePropsName !== null ? '\n ' + foundWillReceivePropsName : '') + (foundWillUpdateName !== null ? '\n ' + foundWillUpdateName : '') + '\n\nThe above lifecycles should be removed. Learn more about this warning here:\n' + 'https://fb.me/react-async-component-lifecycle-hooks');
2138
+ }
2139
+ if (typeof Component.getDerivedStateFromProps === 'function') {
2140
+ prototype.componentWillMount = componentWillMount;
2141
+ prototype.componentWillReceiveProps = componentWillReceiveProps;
2142
+ }
2143
+ if (typeof prototype.getSnapshotBeforeUpdate === 'function') {
2144
+ if (typeof prototype.componentDidUpdate !== 'function') {
2145
+ throw new Error('Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype');
2146
+ }
2147
+ prototype.componentWillUpdate = componentWillUpdate;
2148
+ var componentDidUpdate = prototype.componentDidUpdate;
2149
+ prototype.componentDidUpdate = function componentDidUpdatePolyfill(prevProps, prevState, maybeSnapshot) {
2150
+ var snapshot = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : maybeSnapshot;
2151
+ componentDidUpdate.call(this, prevProps, prevState, snapshot);
2152
+ };
2153
+ }
2154
+ return Component;
2155
+ }
2156
+ var reactLifecyclesCompat_es = Object.freeze({
2157
+ __proto__: null,
2158
+ polyfill: polyfill
2159
+ });
2160
+ var require$$2$2 = getAugmentedNamespace(reactLifecyclesCompat_es);
2161
+ var PropTypes$l = {};
2162
+ const require$$0$5 = _dll_prop_types;
2163
+ PropTypes$l.__esModule = true;
2164
+ PropTypes$l.classNamesShape = PropTypes$l.timeoutsShape = void 0;
2165
+ var _propTypes = _interopRequireDefault$2(require$$0$5);
2166
+ function _interopRequireDefault$2(obj) {
2167
+ return obj && obj.__esModule ? obj : {
2168
+ default: obj
2169
+ };
2170
+ }
2171
+ var timeoutsShape = _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
2172
+ enter: _propTypes.default.number,
2173
+ exit: _propTypes.default.number,
2174
+ appear: _propTypes.default.number
2175
+ }).isRequired]);
2176
+ PropTypes$l.timeoutsShape = timeoutsShape;
2177
+ var classNamesShape = _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({
2178
+ enter: _propTypes.default.string,
2179
+ exit: _propTypes.default.string,
2180
+ active: _propTypes.default.string
2181
+ }), _propTypes.default.shape({
2182
+ enter: _propTypes.default.string,
2183
+ enterDone: _propTypes.default.string,
2184
+ enterActive: _propTypes.default.string,
2185
+ exit: _propTypes.default.string,
2186
+ exitDone: _propTypes.default.string,
2187
+ exitActive: _propTypes.default.string
2188
+ })]);
2189
+ PropTypes$l.classNamesShape = classNamesShape;
2190
+ const require$$0$4 = _dll_prop_types;
2191
+ const require$$1$2 = _dll_react;
2192
+ const require$$2$1 = _dll_react_dom;
2193
+ Transition$1.__esModule = true;
2194
+ Transition$1.default = Transition$1.EXITING = Transition$1.ENTERED = Transition$1.ENTERING = Transition$1.EXITED = Transition$1.UNMOUNTED = void 0;
2195
+ var PropTypes$k = _interopRequireWildcard(require$$0$4);
2196
+ var _react$1 = _interopRequireDefault$1(require$$1$2);
2197
+ var _reactDom = _interopRequireDefault$1(require$$2$1);
2198
+ var _reactLifecyclesCompat = require$$2$2;
2199
+ var _PropTypes = PropTypes$l;
2200
+ function _interopRequireDefault$1(obj) {
2201
+ return obj && obj.__esModule ? obj : {
2202
+ default: obj
2203
+ };
2204
+ }
2205
+ function _interopRequireWildcard(obj) {
2206
+ if (obj && obj.__esModule) {
2207
+ return obj;
2208
+ } else {
2209
+ var newObj = {};
2210
+ if (obj != null) {
2211
+ for (var key in obj) {
2212
+ if (Object.prototype.hasOwnProperty.call(obj, key)) {
2213
+ var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {};
2214
+ if (desc.get || desc.set) {
2215
+ Object.defineProperty(newObj, key, desc);
2216
+ } else {
2217
+ newObj[key] = obj[key];
2218
+ }
2219
+ }
2220
+ }
2221
+ }
2222
+ newObj.default = obj;
2223
+ return newObj;
2224
+ }
2225
+ }
2226
+ function _objectWithoutPropertiesLoose(source, excluded) {
2227
+ if (source == null) return {};
2228
+ var target = {};
2229
+ var sourceKeys = Object.keys(source);
2230
+ var key, i;
2231
+ for (i = 0; i < sourceKeys.length; i++) {
2232
+ key = sourceKeys[i];
2233
+ if (excluded.indexOf(key) >= 0) continue;
2234
+ target[key] = source[key];
2235
+ }
2236
+ return target;
2237
+ }
2238
+ function _inheritsLoose(subClass, superClass) {
2239
+ subClass.prototype = Object.create(superClass.prototype);
2240
+ subClass.prototype.constructor = subClass;
2241
+ subClass.__proto__ = superClass;
2242
+ }
2243
+ var UNMOUNTED = 'unmounted';
2244
+ Transition$1.UNMOUNTED = UNMOUNTED;
2245
+ var EXITED = 'exited';
2246
+ Transition$1.EXITED = EXITED;
2247
+ var ENTERING = 'entering';
2248
+ Transition$1.ENTERING = ENTERING;
2249
+ var ENTERED = 'entered';
2250
+ Transition$1.ENTERED = ENTERED;
2251
+ var EXITING = 'exiting';
2252
+ Transition$1.EXITING = EXITING;
2253
+ var Transition = (function (_React$Component) {
2254
+ _inheritsLoose(Transition, _React$Component);
2255
+ function Transition(props, context) {
2256
+ var _this;
2257
+ _this = _React$Component.call(this, props, context) || this;
2258
+ var parentGroup = context.transitionGroup;
2259
+ var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
2260
+ var initialStatus;
2261
+ _this.appearStatus = null;
2262
+ if (props.in) {
2263
+ if (appear) {
2264
+ initialStatus = EXITED;
2265
+ _this.appearStatus = ENTERING;
2266
+ } else {
2267
+ initialStatus = ENTERED;
2268
+ }
2269
+ } else {
2270
+ if (props.unmountOnExit || props.mountOnEnter) {
2271
+ initialStatus = UNMOUNTED;
2272
+ } else {
2273
+ initialStatus = EXITED;
2274
+ }
2275
+ }
2276
+ _this.state = {
2277
+ status: initialStatus
2278
+ };
2279
+ _this.nextCallback = null;
2280
+ return _this;
2281
+ }
2282
+ var _proto = Transition.prototype;
2283
+ _proto.getChildContext = function getChildContext() {
2284
+ return {
2285
+ transitionGroup: null
2286
+ };
2287
+ };
2288
+ Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {
2289
+ var nextIn = _ref.in;
2290
+ if (nextIn && prevState.status === UNMOUNTED) {
2291
+ return {
2292
+ status: EXITED
2293
+ };
2294
+ }
2295
+ return null;
2296
+ };
2297
+ _proto.componentDidMount = function componentDidMount() {
2298
+ this.updateStatus(true, this.appearStatus);
2299
+ };
2300
+ _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
2301
+ var nextStatus = null;
2302
+ if (prevProps !== this.props) {
2303
+ var status = this.state.status;
2304
+ if (this.props.in) {
2305
+ if (status !== ENTERING && status !== ENTERED) {
2306
+ nextStatus = ENTERING;
2307
+ }
2308
+ } else {
2309
+ if (status === ENTERING || status === ENTERED) {
2310
+ nextStatus = EXITING;
2311
+ }
2312
+ }
2313
+ }
2314
+ this.updateStatus(false, nextStatus);
2315
+ };
2316
+ _proto.componentWillUnmount = function componentWillUnmount() {
2317
+ this.cancelNextCallback();
2318
+ };
2319
+ _proto.getTimeouts = function getTimeouts() {
2320
+ var timeout = this.props.timeout;
2321
+ var exit, enter, appear;
2322
+ exit = enter = appear = timeout;
2323
+ if (timeout != null && typeof timeout !== 'number') {
2324
+ exit = timeout.exit;
2325
+ enter = timeout.enter;
2326
+ appear = timeout.appear !== undefined ? timeout.appear : enter;
2327
+ }
2328
+ return {
2329
+ exit: exit,
2330
+ enter: enter,
2331
+ appear: appear
2332
+ };
2333
+ };
2334
+ _proto.updateStatus = function updateStatus(mounting, nextStatus) {
2335
+ if (mounting === void 0) {
2336
+ mounting = false;
2337
+ }
2338
+ if (nextStatus !== null) {
2339
+ this.cancelNextCallback();
2340
+ var node = _reactDom.default.findDOMNode(this);
2341
+ if (nextStatus === ENTERING) {
2342
+ this.performEnter(node, mounting);
2343
+ } else {
2344
+ this.performExit(node);
2345
+ }
2346
+ } else if (this.props.unmountOnExit && this.state.status === EXITED) {
2347
+ this.setState({
2348
+ status: UNMOUNTED
2349
+ });
2350
+ }
2351
+ };
2352
+ _proto.performEnter = function performEnter(node, mounting) {
2353
+ var _this2 = this;
2354
+ var enter = this.props.enter;
2355
+ var appearing = this.context.transitionGroup ? this.context.transitionGroup.isMounting : mounting;
2356
+ var timeouts = this.getTimeouts();
2357
+ var enterTimeout = appearing ? timeouts.appear : timeouts.enter;
2358
+ if (!mounting && !enter) {
2359
+ this.safeSetState({
2360
+ status: ENTERED
2361
+ }, function () {
2362
+ _this2.props.onEntered(node);
2363
+ });
2364
+ return;
2365
+ }
2366
+ this.props.onEnter(node, appearing);
2367
+ this.safeSetState({
2368
+ status: ENTERING
2369
+ }, function () {
2370
+ _this2.props.onEntering(node, appearing);
2371
+ _this2.onTransitionEnd(node, enterTimeout, function () {
2372
+ _this2.safeSetState({
2373
+ status: ENTERED
2374
+ }, function () {
2375
+ _this2.props.onEntered(node, appearing);
2376
+ });
2377
+ });
2378
+ });
2379
+ };
2380
+ _proto.performExit = function performExit(node) {
2381
+ var _this3 = this;
2382
+ var exit = this.props.exit;
2383
+ var timeouts = this.getTimeouts();
2384
+ if (!exit) {
2385
+ this.safeSetState({
2386
+ status: EXITED
2387
+ }, function () {
2388
+ _this3.props.onExited(node);
2389
+ });
2390
+ return;
2391
+ }
2392
+ this.props.onExit(node);
2393
+ this.safeSetState({
2394
+ status: EXITING
2395
+ }, function () {
2396
+ _this3.props.onExiting(node);
2397
+ _this3.onTransitionEnd(node, timeouts.exit, function () {
2398
+ _this3.safeSetState({
2399
+ status: EXITED
2400
+ }, function () {
2401
+ _this3.props.onExited(node);
2402
+ });
2403
+ });
2404
+ });
2405
+ };
2406
+ _proto.cancelNextCallback = function cancelNextCallback() {
2407
+ if (this.nextCallback !== null) {
2408
+ this.nextCallback.cancel();
2409
+ this.nextCallback = null;
2410
+ }
2411
+ };
2412
+ _proto.safeSetState = function safeSetState(nextState, callback) {
2413
+ callback = this.setNextCallback(callback);
2414
+ this.setState(nextState, callback);
2415
+ };
2416
+ _proto.setNextCallback = function setNextCallback(callback) {
2417
+ var _this4 = this;
2418
+ var active = true;
2419
+ this.nextCallback = function (event) {
2420
+ if (active) {
2421
+ active = false;
2422
+ _this4.nextCallback = null;
2423
+ callback(event);
2424
+ }
2425
+ };
2426
+ this.nextCallback.cancel = function () {
2427
+ active = false;
2428
+ };
2429
+ return this.nextCallback;
2430
+ };
2431
+ _proto.onTransitionEnd = function onTransitionEnd(node, timeout, handler) {
2432
+ this.setNextCallback(handler);
2433
+ var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
2434
+ if (!node || doesNotHaveTimeoutOrListener) {
2435
+ setTimeout(this.nextCallback, 0);
2436
+ return;
2437
+ }
2438
+ if (this.props.addEndListener) {
2439
+ this.props.addEndListener(node, this.nextCallback);
2440
+ }
2441
+ if (timeout != null) {
2442
+ setTimeout(this.nextCallback, timeout);
2443
+ }
2444
+ };
2445
+ _proto.render = function render() {
2446
+ var status = this.state.status;
2447
+ if (status === UNMOUNTED) {
2448
+ return null;
2449
+ }
2450
+ var _this$props = this.props, children = _this$props.children, childProps = _objectWithoutPropertiesLoose(_this$props, ["children"]);
2451
+ delete childProps.in;
2452
+ delete childProps.mountOnEnter;
2453
+ delete childProps.unmountOnExit;
2454
+ delete childProps.appear;
2455
+ delete childProps.enter;
2456
+ delete childProps.exit;
2457
+ delete childProps.timeout;
2458
+ delete childProps.addEndListener;
2459
+ delete childProps.onEnter;
2460
+ delete childProps.onEntering;
2461
+ delete childProps.onEntered;
2462
+ delete childProps.onExit;
2463
+ delete childProps.onExiting;
2464
+ delete childProps.onExited;
2465
+ if (typeof children === 'function') {
2466
+ return children(status, childProps);
2467
+ }
2468
+ var child = _react$1.default.Children.only(children);
2469
+ return _react$1.default.cloneElement(child, childProps);
2470
+ };
2471
+ return Transition;
2472
+ })(_react$1.default.Component);
2473
+ Transition.contextTypes = {
2474
+ transitionGroup: PropTypes$k.object
2475
+ };
2476
+ Transition.childContextTypes = {
2477
+ transitionGroup: function transitionGroup() {}
2478
+ };
2479
+ Transition.propTypes = {
2480
+ children: PropTypes$k.oneOfType([PropTypes$k.func.isRequired, PropTypes$k.element.isRequired]).isRequired,
2481
+ in: PropTypes$k.bool,
2482
+ mountOnEnter: PropTypes$k.bool,
2483
+ unmountOnExit: PropTypes$k.bool,
2484
+ appear: PropTypes$k.bool,
2485
+ enter: PropTypes$k.bool,
2486
+ exit: PropTypes$k.bool,
2487
+ timeout: function timeout(props) {
2488
+ var pt = _PropTypes.timeoutsShape;
2489
+ if (!props.addEndListener) pt = pt.isRequired;
2490
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
2491
+ args[_key - 1] = arguments[_key];
2492
+ }
2493
+ return pt.apply(void 0, [props].concat(args));
2494
+ },
2495
+ addEndListener: PropTypes$k.func,
2496
+ onEnter: PropTypes$k.func,
2497
+ onEntering: PropTypes$k.func,
2498
+ onEntered: PropTypes$k.func,
2499
+ onExit: PropTypes$k.func,
2500
+ onExiting: PropTypes$k.func,
2501
+ onExited: PropTypes$k.func
2502
+ };
2503
+ function noop$1() {}
2504
+ Transition.defaultProps = {
2505
+ in: false,
2506
+ mountOnEnter: false,
2507
+ unmountOnExit: false,
2508
+ appear: false,
2509
+ enter: true,
2510
+ exit: true,
2511
+ onEnter: noop$1,
2512
+ onEntering: noop$1,
2513
+ onEntered: noop$1,
2514
+ onExit: noop$1,
2515
+ onExiting: noop$1,
2516
+ onExited: noop$1
2517
+ };
2518
+ Transition.UNMOUNTED = 0;
2519
+ Transition.EXITED = 1;
2520
+ Transition.ENTERING = 2;
2521
+ Transition.ENTERED = 3;
2522
+ Transition.EXITING = 4;
2523
+ var _default = (0, _reactLifecyclesCompat.polyfill)(Transition);
2524
+ Transition$1.default = _default;
2525
+ const require$$0$3 = _dll_prop_types;
2526
+ const require$$3 = _dll_react;
2527
+ (function (module, exports) {
2528
+ exports.__esModule = true;
2529
+ exports.default = void 0;
2530
+ var PropTypes = _interopRequireWildcard(require$$0$3);
2531
+ var _addClass = _interopRequireDefault(addClass.exports);
2532
+ var _removeClass = _interopRequireDefault(removeClass);
2533
+ var _react = _interopRequireDefault(require$$3);
2534
+ var _Transition = _interopRequireDefault(Transition$1);
2535
+ var _PropTypes = PropTypes$l;
2536
+ function _interopRequireDefault(obj) {
2537
+ return obj && obj.__esModule ? obj : {
2538
+ default: obj
2539
+ };
2540
+ }
2541
+ function _interopRequireWildcard(obj) {
2542
+ if (obj && obj.__esModule) {
2543
+ return obj;
2544
+ } else {
2545
+ var newObj = {};
2546
+ if (obj != null) {
2547
+ for (var key in obj) {
2548
+ if (Object.prototype.hasOwnProperty.call(obj, key)) {
2549
+ var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {};
2550
+ if (desc.get || desc.set) {
2551
+ Object.defineProperty(newObj, key, desc);
2552
+ } else {
2553
+ newObj[key] = obj[key];
2554
+ }
2555
+ }
2556
+ }
2557
+ }
2558
+ newObj.default = obj;
2559
+ return newObj;
2560
+ }
2561
+ }
2562
+ function _extends() {
2563
+ _extends = Object.assign || (function (target) {
2564
+ for (var i = 1; i < arguments.length; i++) {
2565
+ var source = arguments[i];
2566
+ for (var key in source) {
2567
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
2568
+ target[key] = source[key];
2569
+ }
2570
+ }
2571
+ }
2572
+ return target;
2573
+ });
2574
+ return _extends.apply(this, arguments);
2575
+ }
2576
+ function _inheritsLoose(subClass, superClass) {
2577
+ subClass.prototype = Object.create(superClass.prototype);
2578
+ subClass.prototype.constructor = subClass;
2579
+ subClass.__proto__ = superClass;
2580
+ }
2581
+ var addClass$1 = function addClass(node, classes) {
2582
+ return node && classes && classes.split(' ').forEach(function (c) {
2583
+ return (0, _addClass.default)(node, c);
2584
+ });
2585
+ };
2586
+ var removeClass$1 = function removeClass(node, classes) {
2587
+ return node && classes && classes.split(' ').forEach(function (c) {
2588
+ return (0, _removeClass.default)(node, c);
2589
+ });
2590
+ };
2591
+ var CSSTransition = (function (_React$Component) {
2592
+ _inheritsLoose(CSSTransition, _React$Component);
2593
+ function CSSTransition() {
2594
+ var _this;
2595
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2596
+ args[_key] = arguments[_key];
2597
+ }
2598
+ _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
2599
+ _this.onEnter = function (node, appearing) {
2600
+ var _this$getClassNames = _this.getClassNames(appearing ? 'appear' : 'enter'), className = _this$getClassNames.className;
2601
+ _this.removeClasses(node, 'exit');
2602
+ addClass$1(node, className);
2603
+ if (_this.props.onEnter) {
2604
+ _this.props.onEnter(node, appearing);
2605
+ }
2606
+ };
2607
+ _this.onEntering = function (node, appearing) {
2608
+ var _this$getClassNames2 = _this.getClassNames(appearing ? 'appear' : 'enter'), activeClassName = _this$getClassNames2.activeClassName;
2609
+ _this.reflowAndAddClass(node, activeClassName);
2610
+ if (_this.props.onEntering) {
2611
+ _this.props.onEntering(node, appearing);
2612
+ }
2613
+ };
2614
+ _this.onEntered = function (node, appearing) {
2615
+ var appearClassName = _this.getClassNames('appear').doneClassName;
2616
+ var enterClassName = _this.getClassNames('enter').doneClassName;
2617
+ var doneClassName = appearing ? appearClassName + " " + enterClassName : enterClassName;
2618
+ _this.removeClasses(node, appearing ? 'appear' : 'enter');
2619
+ addClass$1(node, doneClassName);
2620
+ if (_this.props.onEntered) {
2621
+ _this.props.onEntered(node, appearing);
2622
+ }
2623
+ };
2624
+ _this.onExit = function (node) {
2625
+ var _this$getClassNames3 = _this.getClassNames('exit'), className = _this$getClassNames3.className;
2626
+ _this.removeClasses(node, 'appear');
2627
+ _this.removeClasses(node, 'enter');
2628
+ addClass$1(node, className);
2629
+ if (_this.props.onExit) {
2630
+ _this.props.onExit(node);
2631
+ }
2632
+ };
2633
+ _this.onExiting = function (node) {
2634
+ var _this$getClassNames4 = _this.getClassNames('exit'), activeClassName = _this$getClassNames4.activeClassName;
2635
+ _this.reflowAndAddClass(node, activeClassName);
2636
+ if (_this.props.onExiting) {
2637
+ _this.props.onExiting(node);
2638
+ }
2639
+ };
2640
+ _this.onExited = function (node) {
2641
+ var _this$getClassNames5 = _this.getClassNames('exit'), doneClassName = _this$getClassNames5.doneClassName;
2642
+ _this.removeClasses(node, 'exit');
2643
+ addClass$1(node, doneClassName);
2644
+ if (_this.props.onExited) {
2645
+ _this.props.onExited(node);
2646
+ }
2647
+ };
2648
+ _this.getClassNames = function (type) {
2649
+ var classNames = _this.props.classNames;
2650
+ var isStringClassNames = typeof classNames === 'string';
2651
+ var prefix = isStringClassNames && classNames ? classNames + '-' : '';
2652
+ var className = isStringClassNames ? prefix + type : classNames[type];
2653
+ var activeClassName = isStringClassNames ? className + '-active' : classNames[type + 'Active'];
2654
+ var doneClassName = isStringClassNames ? className + '-done' : classNames[type + 'Done'];
2655
+ return {
2656
+ className: className,
2657
+ activeClassName: activeClassName,
2658
+ doneClassName: doneClassName
2659
+ };
2660
+ };
2661
+ return _this;
2662
+ }
2663
+ var _proto = CSSTransition.prototype;
2664
+ _proto.removeClasses = function removeClasses(node, type) {
2665
+ var _this$getClassNames6 = this.getClassNames(type), className = _this$getClassNames6.className, activeClassName = _this$getClassNames6.activeClassName, doneClassName = _this$getClassNames6.doneClassName;
2666
+ className && removeClass$1(node, className);
2667
+ activeClassName && removeClass$1(node, activeClassName);
2668
+ doneClassName && removeClass$1(node, doneClassName);
2669
+ };
2670
+ _proto.reflowAndAddClass = function reflowAndAddClass(node, className) {
2671
+ if (className) {
2672
+ node && node.scrollTop;
2673
+ addClass$1(node, className);
2674
+ }
2675
+ };
2676
+ _proto.render = function render() {
2677
+ var props = _extends({}, this.props);
2678
+ delete props.classNames;
2679
+ return _react.default.createElement(_Transition.default, _extends({}, props, {
2680
+ onEnter: this.onEnter,
2681
+ onEntered: this.onEntered,
2682
+ onEntering: this.onEntering,
2683
+ onExit: this.onExit,
2684
+ onExiting: this.onExiting,
2685
+ onExited: this.onExited
2686
+ }));
2687
+ };
2688
+ return CSSTransition;
2689
+ })(_react.default.Component);
2690
+ CSSTransition.defaultProps = {
2691
+ classNames: ''
2692
+ };
2693
+ CSSTransition.propTypes = _extends({}, _Transition.default.propTypes, {
2694
+ classNames: _PropTypes.classNamesShape,
2695
+ onEnter: PropTypes.func,
2696
+ onEntering: PropTypes.func,
2697
+ onEntered: PropTypes.func,
2698
+ onExit: PropTypes.func,
2699
+ onExiting: PropTypes.func,
2700
+ onExited: PropTypes.func
2701
+ });
2702
+ var _default = CSSTransition;
2703
+ exports.default = _default;
2704
+ module.exports = exports["default"];
2705
+ })(CSSTransition$1, CSSTransition$1.exports);
2706
+ var CSSTransition = getDefaultExportFromCjs(CSSTransition$1.exports);
2707
+ var ReplaceTransition = {
2708
+ exports: {}
2709
+ };
2710
+ var TransitionGroup = {
2711
+ exports: {}
2712
+ };
2713
+ var ChildMapping = {};
2714
+ const require$$0$2 = _dll_react;
2715
+ ChildMapping.__esModule = true;
2716
+ ChildMapping.getChildMapping = getChildMapping;
2717
+ ChildMapping.mergeChildMappings = mergeChildMappings;
2718
+ ChildMapping.getInitialChildMapping = getInitialChildMapping;
2719
+ ChildMapping.getNextChildMapping = getNextChildMapping;
2720
+ var _react = require$$0$2;
2721
+ function getChildMapping(children, mapFn) {
2722
+ var mapper = function mapper(child) {
2723
+ return mapFn && (0, _react.isValidElement)(child) ? mapFn(child) : child;
2724
+ };
2725
+ var result = Object.create(null);
2726
+ if (children) _react.Children.map(children, function (c) {
2727
+ return c;
2728
+ }).forEach(function (child) {
2729
+ result[child.key] = mapper(child);
2730
+ });
2731
+ return result;
2732
+ }
2733
+ function mergeChildMappings(prev, next) {
2734
+ prev = prev || ({});
2735
+ next = next || ({});
2736
+ function getValueForKey(key) {
2737
+ return (key in next) ? next[key] : prev[key];
2738
+ }
2739
+ var nextKeysPending = Object.create(null);
2740
+ var pendingKeys = [];
2741
+ for (var prevKey in prev) {
2742
+ if ((prevKey in next)) {
2743
+ if (pendingKeys.length) {
2744
+ nextKeysPending[prevKey] = pendingKeys;
2745
+ pendingKeys = [];
2746
+ }
2747
+ } else {
2748
+ pendingKeys.push(prevKey);
2749
+ }
2750
+ }
2751
+ var i;
2752
+ var childMapping = {};
2753
+ for (var nextKey in next) {
2754
+ if (nextKeysPending[nextKey]) {
2755
+ for (i = 0; i < nextKeysPending[nextKey].length; i++) {
2756
+ var pendingNextKey = nextKeysPending[nextKey][i];
2757
+ childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);
2758
+ }
2759
+ }
2760
+ childMapping[nextKey] = getValueForKey(nextKey);
2761
+ }
2762
+ for (i = 0; i < pendingKeys.length; i++) {
2763
+ childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);
2764
+ }
2765
+ return childMapping;
2766
+ }
2767
+ function getProp(child, prop, props) {
2768
+ return props[prop] != null ? props[prop] : child.props[prop];
2769
+ }
2770
+ function getInitialChildMapping(props, onExited) {
2771
+ return getChildMapping(props.children, function (child) {
2772
+ return (0, _react.cloneElement)(child, {
2773
+ onExited: onExited.bind(null, child),
2774
+ in: true,
2775
+ appear: getProp(child, 'appear', props),
2776
+ enter: getProp(child, 'enter', props),
2777
+ exit: getProp(child, 'exit', props)
2778
+ });
2779
+ });
2780
+ }
2781
+ function getNextChildMapping(nextProps, prevChildMapping, onExited) {
2782
+ var nextChildMapping = getChildMapping(nextProps.children);
2783
+ var children = mergeChildMappings(prevChildMapping, nextChildMapping);
2784
+ Object.keys(children).forEach(function (key) {
2785
+ var child = children[key];
2786
+ if (!(0, _react.isValidElement)(child)) return;
2787
+ var hasPrev = (key in prevChildMapping);
2788
+ var hasNext = (key in nextChildMapping);
2789
+ var prevChild = prevChildMapping[key];
2790
+ var isLeaving = (0, _react.isValidElement)(prevChild) && !prevChild.props.in;
2791
+ if (hasNext && (!hasPrev || isLeaving)) {
2792
+ children[key] = (0, _react.cloneElement)(child, {
2793
+ onExited: onExited.bind(null, child),
2794
+ in: true,
2795
+ exit: getProp(child, 'exit', nextProps),
2796
+ enter: getProp(child, 'enter', nextProps)
2797
+ });
2798
+ } else if (!hasNext && hasPrev && !isLeaving) {
2799
+ children[key] = (0, _react.cloneElement)(child, {
2800
+ in: false
2801
+ });
2802
+ } else if (hasNext && hasPrev && (0, _react.isValidElement)(prevChild)) {
2803
+ children[key] = (0, _react.cloneElement)(child, {
2804
+ onExited: onExited.bind(null, child),
2805
+ in: prevChild.props.in,
2806
+ exit: getProp(child, 'exit', nextProps),
2807
+ enter: getProp(child, 'enter', nextProps)
2808
+ });
2809
+ }
2810
+ });
2811
+ return children;
2812
+ }
2813
+ const require$$0$1 = _dll_prop_types;
2814
+ const require$$1$1 = _dll_react;
2815
+ (function (module, exports) {
2816
+ exports.__esModule = true;
2817
+ exports.default = void 0;
2818
+ var _propTypes = _interopRequireDefault(require$$0$1);
2819
+ var _react = _interopRequireDefault(require$$1$1);
2820
+ var _reactLifecyclesCompat = require$$2$2;
2821
+ var _ChildMapping = ChildMapping;
2822
+ function _interopRequireDefault(obj) {
2823
+ return obj && obj.__esModule ? obj : {
2824
+ default: obj
2825
+ };
2826
+ }
2827
+ function _objectWithoutPropertiesLoose(source, excluded) {
2828
+ if (source == null) return {};
2829
+ var target = {};
2830
+ var sourceKeys = Object.keys(source);
2831
+ var key, i;
2832
+ for (i = 0; i < sourceKeys.length; i++) {
2833
+ key = sourceKeys[i];
2834
+ if (excluded.indexOf(key) >= 0) continue;
2835
+ target[key] = source[key];
2836
+ }
2837
+ return target;
2838
+ }
2839
+ function _extends() {
2840
+ _extends = Object.assign || (function (target) {
2841
+ for (var i = 1; i < arguments.length; i++) {
2842
+ var source = arguments[i];
2843
+ for (var key in source) {
2844
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
2845
+ target[key] = source[key];
2846
+ }
2847
+ }
2848
+ }
2849
+ return target;
2850
+ });
2851
+ return _extends.apply(this, arguments);
2852
+ }
2853
+ function _inheritsLoose(subClass, superClass) {
2854
+ subClass.prototype = Object.create(superClass.prototype);
2855
+ subClass.prototype.constructor = subClass;
2856
+ subClass.__proto__ = superClass;
2857
+ }
2858
+ function _assertThisInitialized(self) {
2859
+ if (self === void 0) {
2860
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2861
+ }
2862
+ return self;
2863
+ }
2864
+ var values = Object.values || (function (obj) {
2865
+ return Object.keys(obj).map(function (k) {
2866
+ return obj[k];
2867
+ });
2868
+ });
2869
+ var defaultProps = {
2870
+ component: 'div',
2871
+ childFactory: function childFactory(child) {
2872
+ return child;
2873
+ }
2874
+ };
2875
+ var TransitionGroup = (function (_React$Component) {
2876
+ _inheritsLoose(TransitionGroup, _React$Component);
2877
+ function TransitionGroup(props, context) {
2878
+ var _this;
2879
+ _this = _React$Component.call(this, props, context) || this;
2880
+ var handleExited = _this.handleExited.bind(_assertThisInitialized(_assertThisInitialized(_this)));
2881
+ _this.state = {
2882
+ handleExited: handleExited,
2883
+ firstRender: true
2884
+ };
2885
+ return _this;
2886
+ }
2887
+ var _proto = TransitionGroup.prototype;
2888
+ _proto.getChildContext = function getChildContext() {
2889
+ return {
2890
+ transitionGroup: {
2891
+ isMounting: !this.appeared
2892
+ }
2893
+ };
2894
+ };
2895
+ _proto.componentDidMount = function componentDidMount() {
2896
+ this.appeared = true;
2897
+ this.mounted = true;
2898
+ };
2899
+ _proto.componentWillUnmount = function componentWillUnmount() {
2900
+ this.mounted = false;
2901
+ };
2902
+ TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {
2903
+ var prevChildMapping = _ref.children, handleExited = _ref.handleExited, firstRender = _ref.firstRender;
2904
+ return {
2905
+ children: firstRender ? (0, _ChildMapping.getInitialChildMapping)(nextProps, handleExited) : (0, _ChildMapping.getNextChildMapping)(nextProps, prevChildMapping, handleExited),
2906
+ firstRender: false
2907
+ };
2908
+ };
2909
+ _proto.handleExited = function handleExited(child, node) {
2910
+ var currentChildMapping = (0, _ChildMapping.getChildMapping)(this.props.children);
2911
+ if ((child.key in currentChildMapping)) return;
2912
+ if (child.props.onExited) {
2913
+ child.props.onExited(node);
2914
+ }
2915
+ if (this.mounted) {
2916
+ this.setState(function (state) {
2917
+ var children = _extends({}, state.children);
2918
+ delete children[child.key];
2919
+ return {
2920
+ children: children
2921
+ };
2922
+ });
2923
+ }
2924
+ };
2925
+ _proto.render = function render() {
2926
+ var _this$props = this.props, Component = _this$props.component, childFactory = _this$props.childFactory, props = _objectWithoutPropertiesLoose(_this$props, ["component", "childFactory"]);
2927
+ var children = values(this.state.children).map(childFactory);
2928
+ delete props.appear;
2929
+ delete props.enter;
2930
+ delete props.exit;
2931
+ if (Component === null) {
2932
+ return children;
2933
+ }
2934
+ return _react.default.createElement(Component, props, children);
2935
+ };
2936
+ return TransitionGroup;
2937
+ })(_react.default.Component);
2938
+ TransitionGroup.childContextTypes = {
2939
+ transitionGroup: _propTypes.default.object.isRequired
2940
+ };
2941
+ TransitionGroup.propTypes = {
2942
+ component: _propTypes.default.any,
2943
+ children: _propTypes.default.node,
2944
+ appear: _propTypes.default.bool,
2945
+ enter: _propTypes.default.bool,
2946
+ exit: _propTypes.default.bool,
2947
+ childFactory: _propTypes.default.func
2948
+ };
2949
+ TransitionGroup.defaultProps = defaultProps;
2950
+ var _default = (0, _reactLifecyclesCompat.polyfill)(TransitionGroup);
2951
+ exports.default = _default;
2952
+ module.exports = exports["default"];
2953
+ })(TransitionGroup, TransitionGroup.exports);
2954
+ getDefaultExportFromCjs(TransitionGroup.exports);
2955
+ const require$$0 = _dll_prop_types;
2956
+ const require$$1 = _dll_react;
2957
+ const require$$2 = _dll_react_dom;
2958
+ (function (module, exports) {
2959
+ exports.__esModule = true;
2960
+ exports.default = void 0;
2961
+ var _propTypes = _interopRequireDefault(require$$0);
2962
+ var _react = _interopRequireDefault(require$$1);
2963
+ var _reactDom = require$$2;
2964
+ var _TransitionGroup = _interopRequireDefault(TransitionGroup.exports);
2965
+ function _interopRequireDefault(obj) {
2966
+ return obj && obj.__esModule ? obj : {
2967
+ default: obj
2968
+ };
2969
+ }
2970
+ function _objectWithoutPropertiesLoose(source, excluded) {
2971
+ if (source == null) return {};
2972
+ var target = {};
2973
+ var sourceKeys = Object.keys(source);
2974
+ var key, i;
2975
+ for (i = 0; i < sourceKeys.length; i++) {
2976
+ key = sourceKeys[i];
2977
+ if (excluded.indexOf(key) >= 0) continue;
2978
+ target[key] = source[key];
2979
+ }
2980
+ return target;
2981
+ }
2982
+ function _inheritsLoose(subClass, superClass) {
2983
+ subClass.prototype = Object.create(superClass.prototype);
2984
+ subClass.prototype.constructor = subClass;
2985
+ subClass.__proto__ = superClass;
2986
+ }
2987
+ var ReplaceTransition = (function (_React$Component) {
2988
+ _inheritsLoose(ReplaceTransition, _React$Component);
2989
+ function ReplaceTransition() {
2990
+ var _this;
2991
+ for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
2992
+ _args[_key] = arguments[_key];
2993
+ }
2994
+ _this = _React$Component.call.apply(_React$Component, [this].concat(_args)) || this;
2995
+ _this.handleEnter = function () {
2996
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
2997
+ args[_key2] = arguments[_key2];
2998
+ }
2999
+ return _this.handleLifecycle('onEnter', 0, args);
3000
+ };
3001
+ _this.handleEntering = function () {
3002
+ for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
3003
+ args[_key3] = arguments[_key3];
3004
+ }
3005
+ return _this.handleLifecycle('onEntering', 0, args);
3006
+ };
3007
+ _this.handleEntered = function () {
3008
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
3009
+ args[_key4] = arguments[_key4];
3010
+ }
3011
+ return _this.handleLifecycle('onEntered', 0, args);
3012
+ };
3013
+ _this.handleExit = function () {
3014
+ for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
3015
+ args[_key5] = arguments[_key5];
3016
+ }
3017
+ return _this.handleLifecycle('onExit', 1, args);
3018
+ };
3019
+ _this.handleExiting = function () {
3020
+ for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
3021
+ args[_key6] = arguments[_key6];
3022
+ }
3023
+ return _this.handleLifecycle('onExiting', 1, args);
3024
+ };
3025
+ _this.handleExited = function () {
3026
+ for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
3027
+ args[_key7] = arguments[_key7];
3028
+ }
3029
+ return _this.handleLifecycle('onExited', 1, args);
3030
+ };
3031
+ return _this;
3032
+ }
3033
+ var _proto = ReplaceTransition.prototype;
3034
+ _proto.handleLifecycle = function handleLifecycle(handler, idx, originalArgs) {
3035
+ var _child$props;
3036
+ var children = this.props.children;
3037
+ var child = _react.default.Children.toArray(children)[idx];
3038
+ if (child.props[handler]) (_child$props = child.props)[handler].apply(_child$props, originalArgs);
3039
+ if (this.props[handler]) this.props[handler]((0, _reactDom.findDOMNode)(this));
3040
+ };
3041
+ _proto.render = function render() {
3042
+ var _this$props = this.props, children = _this$props.children, inProp = _this$props.in, props = _objectWithoutPropertiesLoose(_this$props, ["children", "in"]);
3043
+ var _React$Children$toArr = _react.default.Children.toArray(children), first = _React$Children$toArr[0], second = _React$Children$toArr[1];
3044
+ delete props.onEnter;
3045
+ delete props.onEntering;
3046
+ delete props.onEntered;
3047
+ delete props.onExit;
3048
+ delete props.onExiting;
3049
+ delete props.onExited;
3050
+ return _react.default.createElement(_TransitionGroup.default, props, inProp ? _react.default.cloneElement(first, {
3051
+ key: 'first',
3052
+ onEnter: this.handleEnter,
3053
+ onEntering: this.handleEntering,
3054
+ onEntered: this.handleEntered
3055
+ }) : _react.default.cloneElement(second, {
3056
+ key: 'second',
3057
+ onEnter: this.handleExit,
3058
+ onEntering: this.handleExiting,
3059
+ onEntered: this.handleExited
3060
+ }));
3061
+ };
3062
+ return ReplaceTransition;
3063
+ })(_react.default.Component);
3064
+ ReplaceTransition.propTypes = {
3065
+ in: _propTypes.default.bool.isRequired,
3066
+ children: function children(props, propName) {
3067
+ if (_react.default.Children.count(props[propName]) !== 2) return new Error("\"" + propName + "\" must be exactly two transition components.");
3068
+ return null;
3069
+ }
3070
+ };
3071
+ var _default = ReplaceTransition;
3072
+ exports.default = _default;
3073
+ module.exports = exports["default"];
3074
+ })(ReplaceTransition, ReplaceTransition.exports);
3075
+ getDefaultExportFromCjs(ReplaceTransition.exports);
3076
+ var _CSSTransition = _interopRequireDefault(CSSTransition$1.exports);
3077
+ var _ReplaceTransition = _interopRequireDefault(ReplaceTransition.exports);
3078
+ var _TransitionGroup = _interopRequireDefault(TransitionGroup.exports);
3079
+ var _Transition = _interopRequireDefault(Transition$1);
3080
+ function _interopRequireDefault(obj) {
3081
+ return obj && obj.__esModule ? obj : {
3082
+ default: obj
3083
+ };
3084
+ }
3085
+ var reactTransitionGroup = {
3086
+ Transition: _Transition.default,
3087
+ TransitionGroup: _TransitionGroup.default,
3088
+ ReplaceTransition: _ReplaceTransition.default,
3089
+ CSSTransition: _CSSTransition.default
3090
+ };
3091
+ const {colors: {green: green}} = _dll_material_ui__core;
3092
+ const {colors: {orange: orange}} = _dll_material_ui__core;
3093
+ const {colors: {pink: pink}} = _dll_material_ui__core;
3094
+ const {colors: {indigo: indigo}} = _dll_material_ui__core;
3095
+ const defaults = {
3096
+ TEXT: 'black',
3097
+ DISABLED: 'grey',
3098
+ CORRECT: green[500],
3099
+ INCORRECT: orange[500],
3100
+ PRIMARY: indigo[500],
3101
+ PRIMARY_LIGHT: indigo[200],
3102
+ PRIMARY_DARK: indigo[800],
3103
+ SECONDARY: pink.A400,
3104
+ SECONDARY_LIGHT: pink[200],
3105
+ SECONDARY_DARK: pink[900],
3106
+ BACKGROUND: 'rgba(255,255,255,0)',
3107
+ SECONDARY_BACKGROUND: 'rgba(241,241,241,1)'
3108
+ };
3109
+ Object.freeze(defaults);
3110
+ const v = prefix => (...args) => {
3111
+ const fallback = args.pop();
3112
+ return args.reduceRight((acc, v) => {
3113
+ return `var(--${prefix}-${v}, ${acc})`;
3114
+ }, fallback);
3115
+ };
3116
+ const pv = v('pie');
3117
+ const text = () => pv('text', defaults.TEXT);
3118
+ const disabled = () => pv('disabled', defaults.DISABLED);
3119
+ const correct = () => pv('correct', defaults.CORRECT);
3120
+ const incorrect = () => pv('incorrect', defaults.INCORRECT);
3121
+ const primary = () => pv('primary', defaults.PRIMARY);
3122
+ const primaryDark = () => pv('primary-dark', defaults.PRIMARY_DARK);
3123
+ const secondaryLight = () => pv('secondary-light', defaults.SECONDARY_LIGHT);
3124
+ const background = () => pv('background', defaults.BACKGROUND);
3125
+ const {withStyles: withStyles$d} = _dll_material_ui__core_styles;
3126
+ const React$n = _dll_react;
3127
+ const classNames$3 = _dll_classnames;
3128
+ const PropTypes$j = _dll_prop_types;
3129
+ const _jsxFileName$k = "/home/circleci/repo/node_modules/@pie-lib/render-ui/src/feedback.jsx";
3130
+ const styleSheet = {
3131
+ corespringFeedback: {
3132
+ transformOrigin: '0% 0px 0px',
3133
+ width: '100%',
3134
+ display: 'block',
3135
+ overflow: 'hidden',
3136
+ '&:.incorrect': {
3137
+ color: '#946202'
3138
+ }
3139
+ },
3140
+ content: {
3141
+ '-webkit-font-smoothing': 'antialiased',
3142
+ backgroundColor: `var(--feedback-bg-color, ${disabled()})`,
3143
+ borderRadius: '4px',
3144
+ fontFamily: '"Roboto", "Noto", sans-serif',
3145
+ fontSize: '12px',
3146
+ lineHeight: '25px',
3147
+ margin: '0px',
3148
+ padding: '10px',
3149
+ verticalAlign: 'middle',
3150
+ color: 'var(--feedback-color, white)'
3151
+ },
3152
+ correct: {
3153
+ backgroundColor: `var(--feedback-correct-bg-color, ${correct()})`
3154
+ },
3155
+ incorrect: {
3156
+ backgroundColor: `var(--feedback-incorrect-bg-color, ${incorrect()})`
3157
+ },
3158
+ feedbackEnter: {
3159
+ height: '1px'
3160
+ },
3161
+ feedbackEnterActive: {
3162
+ height: '45px',
3163
+ transition: 'height 500ms'
3164
+ },
3165
+ feedbackLeave: {
3166
+ height: '45px'
3167
+ },
3168
+ feedbackLeaveActive: {
3169
+ height: '1px',
3170
+ transition: 'height 200ms'
3171
+ }
3172
+ };
3173
+ class Feedback extends React$n.Component {
3174
+ static __initStatic() {
3175
+ this.propTypes = {
3176
+ correctness: PropTypes$j.string,
3177
+ feedback: PropTypes$j.string,
3178
+ classes: PropTypes$j.object.isRequired
3179
+ };
3180
+ }
3181
+ render() {
3182
+ const {correctness, feedback, classes} = this.props;
3183
+ function chooseFeedback(correctness) {
3184
+ if (correctness && feedback) {
3185
+ return React$n.createElement(reactTransitionGroup.CSSTransition, {
3186
+ classNames: {
3187
+ enter: classes.feedbackEnter,
3188
+ enterActive: classes.feedbackEnterActive,
3189
+ leave: classes.feedbackLeave,
3190
+ leaveActive: classes.feedbackLeaveActive
3191
+ },
3192
+ key: "hasFeedback",
3193
+ timeout: {
3194
+ enter: 500,
3195
+ exit: 300
3196
+ },
3197
+ __self: this,
3198
+ __source: {
3199
+ fileName: _jsxFileName$k,
3200
+ lineNumber: 69
3201
+ }
3202
+ }, React$n.createElement('div', {
3203
+ className: classes.corespringFeedback,
3204
+ __self: this,
3205
+ __source: {
3206
+ fileName: _jsxFileName$k,
3207
+ lineNumber: 79
3208
+ }
3209
+ }, React$n.createElement('div', {
3210
+ className: classNames$3(classes.content, classes[correctness]),
3211
+ dangerouslySetInnerHTML: {
3212
+ __html: feedback
3213
+ },
3214
+ __self: this,
3215
+ __source: {
3216
+ fileName: _jsxFileName$k,
3217
+ lineNumber: 80
3218
+ }
3219
+ })));
3220
+ } else {
3221
+ return null;
3222
+ }
3223
+ }
3224
+ return React$n.createElement('div', {
3225
+ __self: this,
3226
+ __source: {
3227
+ fileName: _jsxFileName$k,
3228
+ lineNumber: 93
3229
+ }
3230
+ }, React$n.createElement(reactTransitionGroup.TransitionGroup, {
3231
+ __self: this,
3232
+ __source: {
3233
+ fileName: _jsxFileName$k,
3234
+ lineNumber: 94
3235
+ }
3236
+ }, chooseFeedback(correctness)));
3237
+ }
3238
+ }
3239
+ Feedback.__initStatic();
3240
+ var Feedback$1 = withStyles$d(styleSheet, {
3241
+ name: 'Feedback'
3242
+ })(Feedback);
3243
+ const React$m = _dll_react;
3244
+ const PropTypes$i = _dll_prop_types;
3245
+ const {Popover: Popover} = _dll_material_ui__core;
3246
+ const {withStyles: withStyles$c} = _dll_material_ui__core_styles;
3247
+ const debug$5 = _dll_debug;
3248
+ const _jsxFileName$j = "/home/circleci/repo/node_modules/@pie-lib/render-ui/src/response-indicators.jsx";
3249
+ const log$3 = debug$5('pie-libs:render-ui:response-indicators');
3250
+ const styles$5 = () => ({
3251
+ responseIndicator: {
3252
+ cursor: 'pointer'
3253
+ },
3254
+ paper: {
3255
+ padding: '0',
3256
+ borderRadius: '4px'
3257
+ },
3258
+ popover: {
3259
+ cursor: 'pointer'
3260
+ },
3261
+ popperClose: {
3262
+ cursor: 'pointer'
3263
+ }
3264
+ });
3265
+ const BuildIndicator = (Icon, correctness) => {
3266
+ class RawIndicator extends React$m.Component {
3267
+ constructor(props) {
3268
+ super(props);
3269
+ RawIndicator.prototype.__init.call(this);
3270
+ RawIndicator.prototype.__init2.call(this);
3271
+ this.state = {};
3272
+ }
3273
+ __init() {
3274
+ this.handlePopoverOpen = event => {
3275
+ log$3('[handlePopoverOpen]', event.target);
3276
+ this.setState({
3277
+ anchorEl: event.target
3278
+ });
3279
+ };
3280
+ }
3281
+ __init2() {
3282
+ this.handlePopoverClose = () => {
3283
+ this.setState({
3284
+ anchorEl: null
3285
+ });
3286
+ };
3287
+ }
3288
+ render() {
3289
+ const {feedback, classes} = this.props;
3290
+ const {anchorEl} = this.state;
3291
+ return React$m.createElement('div', {
3292
+ className: feedback && classes.responseIndicator,
3293
+ __self: this,
3294
+ __source: {
3295
+ fileName: _jsxFileName$j,
3296
+ lineNumber: 47
3297
+ }
3298
+ }, React$m.createElement('span', {
3299
+ ref: r => this.icon = r,
3300
+ onClick: this.handlePopoverOpen,
3301
+ __self: this,
3302
+ __source: {
3303
+ fileName: _jsxFileName$j,
3304
+ lineNumber: 48
3305
+ }
3306
+ }, React$m.createElement(Icon, {
3307
+ __self: this,
3308
+ __source: {
3309
+ fileName: _jsxFileName$j,
3310
+ lineNumber: 49
3311
+ }
3312
+ })), feedback && React$m.createElement(Popover, {
3313
+ className: classes.popover,
3314
+ classes: {
3315
+ paper: classes.paper
3316
+ },
3317
+ open: !!anchorEl,
3318
+ anchorEl: anchorEl,
3319
+ anchorOrigin: {
3320
+ vertical: 'bottom',
3321
+ horizontal: 'left'
3322
+ },
3323
+ transformOrigin: {
3324
+ vertical: 'top',
3325
+ horizontal: 'left'
3326
+ },
3327
+ onClose: this.handlePopoverClose,
3328
+ __self: this,
3329
+ __source: {
3330
+ fileName: _jsxFileName$j,
3331
+ lineNumber: 53
3332
+ }
3333
+ }, React$m.createElement(Feedback$1, {
3334
+ feedback: feedback,
3335
+ correctness: correctness,
3336
+ __self: this,
3337
+ __source: {
3338
+ fileName: _jsxFileName$j,
3339
+ lineNumber: 70
3340
+ }
3341
+ })));
3342
+ }
3343
+ }
3344
+ RawIndicator.propTypes = {
3345
+ feedback: PropTypes$i.string,
3346
+ classes: PropTypes$i.object.isRequired
3347
+ };
3348
+ return withStyles$c(styles$5)(RawIndicator);
3349
+ };
3350
+ BuildIndicator(correctIcon, 'correct');
3351
+ BuildIndicator(incorrectIcon, 'incorrect');
3352
+ BuildIndicator(partiallyCorrectIcon, 'partially-correct');
3353
+ BuildIndicator(nothingSubmittedIcon, 'nothing-submitted');
3354
+ const React$l = _dll_react;
3355
+ const {withStyles: withStyles$b} = _dll_material_ui__core_styles;
3356
+ const Collapse = _dll_material_ui__core_collapse_index;
3357
+ const PropTypes$h = _dll_prop_types;
3358
+ const {renderMath: renderMath$5} = _dll_pie_lib__math_rendering;
3359
+ const _jsxFileName$i = "/home/circleci/repo/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx";
3360
+ class Collapsible extends React$l.Component {
3361
+ constructor(...args) {
3362
+ super(...args);
3363
+ Collapsible.prototype.__init.call(this);
3364
+ Collapsible.prototype.__init2.call(this);
3365
+ }
3366
+ static __initStatic() {
3367
+ this.propTypes = {
3368
+ classes: PropTypes$h.object.isRequired,
3369
+ className: PropTypes$h.string,
3370
+ children: PropTypes$h.object,
3371
+ labels: PropTypes$h.shape({
3372
+ visible: PropTypes$h.string,
3373
+ hidden: PropTypes$h.string
3374
+ })
3375
+ };
3376
+ }
3377
+ static __initStatic2() {
3378
+ this.defaultProps = {
3379
+ labels: {}
3380
+ };
3381
+ }
3382
+ __init() {
3383
+ this.state = {
3384
+ expanded: false
3385
+ };
3386
+ }
3387
+ __init2() {
3388
+ this.toggleExpanded = () => {
3389
+ this.setState(state => ({
3390
+ expanded: !state.expanded
3391
+ }));
3392
+ };
3393
+ }
3394
+ componentDidMount() {
3395
+ renderMath$5(this.root);
3396
+ }
3397
+ componentDidUpdate() {
3398
+ renderMath$5(this.root);
3399
+ }
3400
+ render() {
3401
+ const {classes, labels, children, className} = this.props;
3402
+ const title = this.state.expanded ? labels.visible || 'Hide' : labels.hidden || 'Show';
3403
+ return React$l.createElement('div', {
3404
+ className: className,
3405
+ ref: r => this.root = r,
3406
+ __self: this,
3407
+ __source: {
3408
+ fileName: _jsxFileName$i,
3409
+ lineNumber: 43
3410
+ }
3411
+ }, React$l.createElement('div', {
3412
+ onClick: this.toggleExpanded,
3413
+ __self: this,
3414
+ __source: {
3415
+ fileName: _jsxFileName$i,
3416
+ lineNumber: 44
3417
+ }
3418
+ }, React$l.createElement('span', {
3419
+ className: classes.title,
3420
+ __self: this,
3421
+ __source: {
3422
+ fileName: _jsxFileName$i,
3423
+ lineNumber: 45
3424
+ }
3425
+ }, title)), React$l.createElement(Collapse, {
3426
+ in: this.state.expanded,
3427
+ timeout: "auto",
3428
+ unmountOnExit: true,
3429
+ className: classes.collapsible,
3430
+ __self: this,
3431
+ __source: {
3432
+ fileName: _jsxFileName$i,
3433
+ lineNumber: 47
3434
+ }
3435
+ }, children));
3436
+ }
3437
+ }
3438
+ Collapsible.__initStatic();
3439
+ Collapsible.__initStatic2();
3440
+ var Collapsible$1 = withStyles$b(theme => ({
3441
+ title: {
3442
+ color: theme.palette.primary.light,
3443
+ borderBottom: `1px dotted ${theme.palette.primary.light}`
3444
+ },
3445
+ collapsible: {
3446
+ paddingTop: theme.spacing.unit * 2
3447
+ }
3448
+ }))(Collapsible);
3449
+ const React$k = _dll_react;
3450
+ const {withStyles: withStyles$a} = _dll_material_ui__core_styles;
3451
+ const {createMuiTheme: createMuiTheme} = _dll_material_ui__core_styles;
3452
+ const PropTypes$g = _dll_prop_types;
3453
+ const _jsxFileName$h = "/home/circleci/repo/node_modules/@pie-lib/render-ui/src/preview-layout.jsx";
3454
+ class PreviewLayout extends React$k.Component {
3455
+ static __initStatic() {
3456
+ this.propTypes = {
3457
+ children: PropTypes$g.oneOfType([PropTypes$g.arrayOf(PropTypes$g.node), PropTypes$g.node]).isRequired,
3458
+ classes: PropTypes$g.object
3459
+ };
3460
+ }
3461
+ render() {
3462
+ const {children, classes} = this.props;
3463
+ return React$k.createElement('div', {
3464
+ className: classes.container,
3465
+ __self: this,
3466
+ __source: {
3467
+ fileName: _jsxFileName$h,
3468
+ lineNumber: 14
3469
+ }
3470
+ }, children);
3471
+ }
3472
+ }
3473
+ PreviewLayout.__initStatic();
3474
+ const styles$4 = () => ({
3475
+ container: {
3476
+ display: 'flex',
3477
+ flexDirection: 'column',
3478
+ position: 'relative'
3479
+ }
3480
+ });
3481
+ createMuiTheme({
3482
+ typography: {
3483
+ useNextVariants: true
3484
+ },
3485
+ palette: {
3486
+ action: {
3487
+ disabled: 'rgba(0, 0, 0, 0.54);'
3488
+ }
3489
+ },
3490
+ overrides: {
3491
+ MuiRadio: {
3492
+ root: {
3493
+ '&$checked': {
3494
+ color: '#3f51b5 !important'
3495
+ }
3496
+ }
3497
+ },
3498
+ MuiCheckbox: {
3499
+ root: {
3500
+ '&$checked': {
3501
+ color: '#3f51b5 !important'
3502
+ }
3503
+ }
3504
+ },
3505
+ MuiTabs: {
3506
+ root: {
3507
+ borderBottom: '1px solid #eee'
3508
+ }
3509
+ },
3510
+ MuiSwitch: {
3511
+ root: {
3512
+ '&$checked': {
3513
+ color: '#3f51b5 !important',
3514
+ '& + $bar': {
3515
+ backgroundColor: '#3f51b5 !important',
3516
+ opacity: 0.5
3517
+ }
3518
+ }
3519
+ }
3520
+ }
3521
+ }
3522
+ });
3523
+ withStyles$a(styles$4)(PreviewLayout);
3524
+ const React$j = _dll_react;
3525
+ const PropTypes$f = _dll_prop_types;
3526
+ const {renderMath: renderMath$4} = _dll_pie_lib__math_rendering;
3527
+ const _jsxFileName$g = "/home/circleci/repo/node_modules/@pie-lib/render-ui/src/html-and-math.js";
3528
+ class HtmlAndMath extends React$j.Component {
3529
+ static __initStatic() {
3530
+ this.propTypes = {
3531
+ tag: PropTypes$f.string,
3532
+ className: PropTypes$f.string,
3533
+ html: PropTypes$f.string
3534
+ };
3535
+ }
3536
+ static __initStatic2() {
3537
+ this.defaultProps = {
3538
+ tag: 'div',
3539
+ html: ''
3540
+ };
3541
+ }
3542
+ componentDidMount() {
3543
+ if (this.node) {
3544
+ renderMath$4(this.node);
3545
+ }
3546
+ }
3547
+ componentDidUpdate() {
3548
+ if (this.node) {
3549
+ renderMath$4(this.node);
3550
+ }
3551
+ }
3552
+ render() {
3553
+ const {tag, className, html} = this.props;
3554
+ const Tag = tag || 'div';
3555
+ return React$j.createElement(Tag, {
3556
+ ref: r => this.node = r,
3557
+ className: className,
3558
+ dangerouslySetInnerHTML: {
3559
+ __html: html
3560
+ },
3561
+ __self: this,
3562
+ __source: {
3563
+ fileName: _jsxFileName$g,
3564
+ lineNumber: 33
18
3565
  }
19
3566
  });
20
- this.component = component;
21
- this.complete = complete;
22
3567
  }
23
3568
  }
24
- ModelSetEvent.TYPE = 'model-set';
25
- var ModelSetEvent_1 = lib$1.ModelSetEvent = ModelSetEvent;
26
- class SessionChangedEvent extends CustomEvent {
27
- constructor(component, complete) {
28
- super(SessionChangedEvent.TYPE, {
29
- bubbles: true,
30
- composed: true,
31
- detail: {
32
- complete,
33
- component
3569
+ HtmlAndMath.__initStatic();
3570
+ HtmlAndMath.__initStatic2();
3571
+ const {InputLabel: InputLabel} = _dll_material_ui__core;
3572
+ const {FormControl: FormControl} = _dll_material_ui__core;
3573
+ const PropTypes$e = _dll_prop_types;
3574
+ const React$i = _dll_react;
3575
+ const classNames$2 = _dll_classnames;
3576
+ const {withStyles: withStyles$9} = _dll_material_ui__core_styles;
3577
+ const _jsxFileName$f = "/home/circleci/repo/node_modules/@pie-lib/render-ui/src/input-container.jsx";
3578
+ const RawInputContainer = props => {
3579
+ const {label, className, children, classes} = props;
3580
+ const names = classNames$2(classes.formControl, className);
3581
+ return React$i.createElement(FormControl, {
3582
+ className: names,
3583
+ __self: undefined,
3584
+ __source: {
3585
+ fileName: _jsxFileName$f,
3586
+ lineNumber: 13
3587
+ }
3588
+ }, React$i.createElement(InputLabel, {
3589
+ className: classes.label,
3590
+ shrink: true,
3591
+ __self: undefined,
3592
+ __source: {
3593
+ fileName: _jsxFileName$f,
3594
+ lineNumber: 14
3595
+ }
3596
+ }, label), children);
3597
+ };
3598
+ RawInputContainer.propTypes = {
3599
+ label: PropTypes$e.oneOfType([PropTypes$e.string, PropTypes$e.object]).isRequired,
3600
+ className: PropTypes$e.string,
3601
+ children: PropTypes$e.oneOfType([PropTypes$e.arrayOf(PropTypes$e.node), PropTypes$e.node]).isRequired,
3602
+ classes: PropTypes$e.object.isRequired
3603
+ };
3604
+ withStyles$9(theme => ({
3605
+ formControl: {
3606
+ marginLeft: 0,
3607
+ marginRight: theme.spacing.unit,
3608
+ paddingBottom: theme.spacing.unit,
3609
+ flex: '1 0 auto',
3610
+ minWidth: theme.spacing.unit * 4
3611
+ },
3612
+ label: {
3613
+ fontSize: 'inherit',
3614
+ whiteSpace: 'nowrap'
3615
+ }
3616
+ }))(RawInputContainer);
3617
+ const React$h = _dll_react;
3618
+ const {Component: Component} = _dll_react;
3619
+ const {withStyles: withStyles$8} = _dll_material_ui__core_styles;
3620
+ const PropTypes$d = _dll_prop_types;
3621
+ const _jsxFileName$e = "/home/circleci/repo/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx";
3622
+ const NEWLINE_BLOCK_REGEX = /\\embed\{newLine\}\[\]/g;
3623
+ const NEWLINE_LATEX = '\\newline ';
3624
+ class PreviewPrompt extends Component {
3625
+ constructor(...args) {
3626
+ super(...args);
3627
+ PreviewPrompt.prototype.__init.call(this);
3628
+ }
3629
+ static __initStatic() {
3630
+ this.propTypes = {
3631
+ classes: PropTypes$d.object,
3632
+ prompt: PropTypes$d.string,
3633
+ tagName: PropTypes$d.string,
3634
+ className: PropTypes$d.string,
3635
+ onClick: PropTypes$d.func,
3636
+ defaultClassName: PropTypes$d.string
3637
+ };
3638
+ }
3639
+ static __initStatic2() {
3640
+ this.defaultProps = {
3641
+ onClick: () => {}
3642
+ };
3643
+ }
3644
+ __init() {
3645
+ this.parsedText = text => {
3646
+ const div = document.createElement('div');
3647
+ div.innerHTML = text;
3648
+ const audio = div.querySelector('audio');
3649
+ if (audio) {
3650
+ const source = document.createElement('source');
3651
+ source.setAttribute('type', 'audio/mp3');
3652
+ source.setAttribute('src', audio.getAttribute('src'));
3653
+ audio.removeAttribute('src');
3654
+ audio.appendChild(source);
3655
+ }
3656
+ return div.innerHTML;
3657
+ };
3658
+ }
3659
+ render() {
3660
+ const {prompt, classes, tagName, className, onClick, defaultClassName} = this.props;
3661
+ const CustomTag = tagName || 'div';
3662
+ const customClasses = `${classes.promptTable} ${classes[className] || ''} ${defaultClassName || ''}`;
3663
+ return React$h.createElement(CustomTag, {
3664
+ onClick: onClick,
3665
+ className: customClasses,
3666
+ dangerouslySetInnerHTML: {
3667
+ __html: this.parsedText(prompt || '').replace(NEWLINE_BLOCK_REGEX, NEWLINE_LATEX)
3668
+ },
3669
+ __self: this,
3670
+ __source: {
3671
+ fileName: _jsxFileName$e,
3672
+ lineNumber: 50
34
3673
  }
35
3674
  });
36
- this.component = component;
37
- this.complete = complete;
38
3675
  }
39
3676
  }
40
- SessionChangedEvent.TYPE = 'session-changed';
41
- var SessionChangedEvent_1 = lib$1.SessionChangedEvent = SessionChangedEvent;
3677
+ PreviewPrompt.__initStatic();
3678
+ PreviewPrompt.__initStatic2();
3679
+ const styles$3 = theme => ({
3680
+ prompt: {
3681
+ verticalAlign: 'middle',
3682
+ color: text()
3683
+ },
3684
+ rationale: {
3685
+ paddingLeft: theme.spacing.unit * 16
3686
+ },
3687
+ label: {
3688
+ color: `${text()} !important`,
3689
+ display: 'inline-block',
3690
+ verticalAlign: 'middle',
3691
+ cursor: 'pointer'
3692
+ },
3693
+ promptTable: {
3694
+ '&:not(.MathJax) > table': {
3695
+ borderCollapse: 'collapse'
3696
+ },
3697
+ '&:not(.MathJax) > table tr': {
3698
+ '&:nth-child(2n)': {
3699
+ backgroundColor: '#f6f8fa'
3700
+ }
3701
+ },
3702
+ '&:not(.MathJax) > table td, &:not(.MathJax) > table th': {
3703
+ padding: '.6em 1em',
3704
+ textAlign: 'center'
3705
+ }
3706
+ }
3707
+ });
3708
+ var PreviewPrompt$1 = withStyles$8(styles$3)(PreviewPrompt);
3709
+ const PropTypes$c = _dll_prop_types;
3710
+ const React$g = _dll_react;
3711
+ const Readable = props => {
3712
+ return React$g.createElement(React$g.Fragment, null, React$g.Children.map(props.children, child => React$g.cloneElement(child, {
3713
+ 'data-pie-readable': props.false === undefined
3714
+ })));
3715
+ };
3716
+ Readable.propTypes = {
3717
+ children: PropTypes$c.node,
3718
+ false: PropTypes$c.bool
3719
+ };
3720
+ const PropTypes$b = _dll_prop_types;
3721
+ ({
3722
+ children: PropTypes$b.node,
3723
+ purpose: PropTypes$b.string
3724
+ });
3725
+ const dp = new DOMParser();
3726
+ const markupToText = s => {
3727
+ const root = dp.parseFromString(s, 'text/html');
3728
+ return root.body.textContent;
3729
+ };
3730
+ const hasText = s => {
3731
+ if (!s) {
3732
+ return false;
3733
+ }
3734
+ const tc = markupToText(s);
3735
+ return !!(tc && tc.trim());
3736
+ };
3737
+ const noTouch = {
3738
+ '-webkit-touchCcallout': 'none',
3739
+ '-webkit-user-select': 'none',
3740
+ '-khtml-user-select': 'none',
3741
+ '-moz-user-select': 'none',
3742
+ '-ms-user-select': 'none',
3743
+ 'user-select': 'none'
3744
+ };
3745
+ var styles$2 = {
3746
+ root: {
3747
+ width: '100%',
3748
+ cursor: 'pointer'
3749
+ },
3750
+ content: {
3751
+ margin: '0 auto',
3752
+ textAlign: 'center',
3753
+ display: 'flex'
3754
+ },
3755
+ label: Object.assign({
3756
+ width: '140px',
3757
+ fontFamily: "'Roboto', sans-serif",
3758
+ height: '25px',
3759
+ lineHeight: '25px',
3760
+ verticalAlign: 'middle',
3761
+ color: `var(--correct-answer-toggle-label-color, ${text()})`,
3762
+ fontSize: '15px',
3763
+ fontWeight: 'normal'
3764
+ }, noTouch),
3765
+ icon: {
3766
+ position: 'absolute',
3767
+ width: '25px'
3768
+ },
3769
+ iconHolder: {
3770
+ width: '25px',
3771
+ marginRight: '5px'
3772
+ },
3773
+ enter: {
3774
+ opacity: '0'
3775
+ },
3776
+ enterActive: {
3777
+ opacity: '1',
3778
+ transition: 'opacity 0.3s ease-in'
3779
+ },
3780
+ exit: {
3781
+ opacity: '1'
3782
+ },
3783
+ exitActive: {
3784
+ opacity: '0',
3785
+ transition: 'opacity 0.3s ease-in'
3786
+ }
3787
+ };
3788
+ const React$f = _dll_react;
3789
+ const PropTypes$a = _dll_prop_types;
3790
+ const {withStyles: withStyles$7} = _dll_material_ui__core_styles;
3791
+ const _jsxFileName$d = "/home/circleci/repo/node_modules/@pie-lib/correct-answer-toggle/src/expander.jsx";
3792
+ const Expander = props => {
3793
+ const {classes, show, children} = props;
3794
+ return React$f.createElement(reactTransitionGroup.CSSTransition, {
3795
+ in: show,
3796
+ appear: true,
3797
+ mountOnEnter: false,
3798
+ timeout: 300,
3799
+ classNames: {
3800
+ ...classes
3801
+ },
3802
+ __self: undefined,
3803
+ __source: {
3804
+ fileName: _jsxFileName$d,
3805
+ lineNumber: 10
3806
+ }
3807
+ }, React$f.createElement('div', {
3808
+ className: classes.expander,
3809
+ __self: undefined,
3810
+ __source: {
3811
+ fileName: _jsxFileName$d,
3812
+ lineNumber: 17
3813
+ }
3814
+ }, children));
3815
+ };
3816
+ Expander.propTypes = {
3817
+ show: PropTypes$a.bool.isRequired,
3818
+ className: PropTypes$a.string,
3819
+ classes: PropTypes$a.object,
3820
+ children: PropTypes$a.oneOfType([PropTypes$a.arrayOf(PropTypes$a.node), PropTypes$a.node]).isRequired
3821
+ };
3822
+ const transition = 'height ease-in 300ms, opacity ease-in 300ms';
3823
+ var Expander$1 = withStyles$7(() => ({
3824
+ expander: {
3825
+ position: 'relative',
3826
+ height: 0,
3827
+ overflow: 'hidden',
3828
+ display: 'flex',
3829
+ visibility: 'hidden',
3830
+ width: 0
3831
+ },
3832
+ enter: {
3833
+ transition,
3834
+ opacity: 1,
3835
+ height: '25px',
3836
+ width: 'auto',
3837
+ visibility: 'visible'
3838
+ },
3839
+ enterDone: {
3840
+ height: '25px',
3841
+ visibility: 'visible',
3842
+ width: 'auto'
3843
+ },
3844
+ exit: {
3845
+ transition,
3846
+ opacity: 0,
3847
+ height: 0,
3848
+ visibility: 'visible',
3849
+ width: 0
3850
+ },
3851
+ exitDone: {
3852
+ opacity: 0,
3853
+ visibility: 'hidden',
3854
+ height: 0,
3855
+ width: 0
3856
+ }
3857
+ }))(Expander);
3858
+ const {withStyles: withStyles$6} = _dll_material_ui__core_styles;
3859
+ const React$e = _dll_react;
3860
+ const classNames$1 = _dll_classnames;
3861
+ const PropTypes$9 = _dll_prop_types;
3862
+ const _jsxFileName$c = "/home/circleci/repo/node_modules/@pie-lib/correct-answer-toggle/src/index.jsx";
3863
+ class CorrectAnswerToggle extends React$e.Component {
3864
+ static __initStatic() {
3865
+ this.propTypes = {
3866
+ onToggle: PropTypes$9.func,
3867
+ toggled: PropTypes$9.bool,
3868
+ show: PropTypes$9.bool,
3869
+ hideMessage: PropTypes$9.string,
3870
+ showMessage: PropTypes$9.string,
3871
+ classes: PropTypes$9.object.isRequired,
3872
+ className: PropTypes$9.string
3873
+ };
3874
+ }
3875
+ static __initStatic2() {
3876
+ this.defaultProps = {
3877
+ showMessage: 'Show correct answer',
3878
+ hideMessage: 'Hide correct answer',
3879
+ show: false,
3880
+ toggled: false
3881
+ };
3882
+ }
3883
+ constructor(props) {
3884
+ super(props);
3885
+ this.state = {
3886
+ show: props.show
3887
+ };
3888
+ }
3889
+ onClick() {
3890
+ this.props.onToggle(!this.props.toggled);
3891
+ }
3892
+ componentWillReceiveProps(nextProps) {
3893
+ this.setState({
3894
+ show: nextProps.show
3895
+ });
3896
+ }
3897
+ render() {
3898
+ const {classes, className, toggled, hideMessage, showMessage} = this.props;
3899
+ return React$e.createElement('div', {
3900
+ className: classNames$1(classes.root, className),
3901
+ __self: this,
3902
+ __source: {
3903
+ fileName: _jsxFileName$c,
3904
+ lineNumber: 52
3905
+ }
3906
+ }, React$e.createElement(Expander$1, {
3907
+ show: this.state.show,
3908
+ className: classes.expander,
3909
+ __self: this,
3910
+ __source: {
3911
+ fileName: _jsxFileName$c,
3912
+ lineNumber: 53
3913
+ }
3914
+ }, React$e.createElement('div', {
3915
+ className: classes.content,
3916
+ onClick: this.onClick.bind(this),
3917
+ __self: this,
3918
+ __source: {
3919
+ fileName: _jsxFileName$c,
3920
+ lineNumber: 54
3921
+ }
3922
+ }, React$e.createElement('div', {
3923
+ className: classes.iconHolder,
3924
+ __self: this,
3925
+ __source: {
3926
+ fileName: _jsxFileName$c,
3927
+ lineNumber: 55
3928
+ }
3929
+ }, React$e.createElement(CSSTransition, {
3930
+ timeout: 400,
3931
+ in: toggled,
3932
+ exit: !toggled,
3933
+ classNames: classes,
3934
+ __self: this,
3935
+ __source: {
3936
+ fileName: _jsxFileName$c,
3937
+ lineNumber: 56
3938
+ }
3939
+ }, React$e.createElement(CorrectResponse$1, {
3940
+ open: toggled,
3941
+ key: "correct-open",
3942
+ className: classes.icon,
3943
+ __self: this,
3944
+ __source: {
3945
+ fileName: _jsxFileName$c,
3946
+ lineNumber: 57
3947
+ }
3948
+ })), React$e.createElement(CSSTransition, {
3949
+ timeout: 5000,
3950
+ in: !toggled,
3951
+ exit: toggled,
3952
+ classNames: classes,
3953
+ __self: this,
3954
+ __source: {
3955
+ fileName: _jsxFileName$c,
3956
+ lineNumber: 59
3957
+ }
3958
+ }, React$e.createElement(CorrectResponse$1, {
3959
+ open: toggled,
3960
+ key: "correct-closed",
3961
+ className: classes.icon,
3962
+ __self: this,
3963
+ __source: {
3964
+ fileName: _jsxFileName$c,
3965
+ lineNumber: 60
3966
+ }
3967
+ }))), React$e.createElement(Readable, {
3968
+ false: true,
3969
+ __self: this,
3970
+ __source: {
3971
+ fileName: _jsxFileName$c,
3972
+ lineNumber: 63
3973
+ }
3974
+ }, React$e.createElement('div', {
3975
+ className: classes.label,
3976
+ __self: this,
3977
+ __source: {
3978
+ fileName: _jsxFileName$c,
3979
+ lineNumber: 64
3980
+ }
3981
+ }, toggled ? hideMessage : showMessage)))));
3982
+ }
3983
+ }
3984
+ CorrectAnswerToggle.__initStatic();
3985
+ CorrectAnswerToggle.__initStatic2();
3986
+ var CorrectAnswerToggle$1 = withStyles$6(styles$2)(CorrectAnswerToggle);
42
3987
  var toString$1 = Object.prototype.toString;
43
3988
  var typeOf = function (val) {
44
3989
  switch (toString$1.call(val)) {
@@ -12904,7 +16849,8 @@ const parseStyleString = s => {
12904
16849
  return result;
12905
16850
  };
12906
16851
  const reactAttributes = o => toStyle.object(o, {
12907
- camelize: true
16852
+ camelize: true,
16853
+ addUnits: false
12908
16854
  });
12909
16855
  const handleStyles = (el, attribute) => {
12910
16856
  const styleString = el.getAttribute(attribute);
@@ -13385,7 +17331,6 @@ const debug = _dll_debug;
13385
17331
  const {withStyles: withStyles$3} = _dll_material_ui__core_styles;
13386
17332
  const {Chip: Chip} = _dll_material_ui__core;
13387
17333
  const classnames$1 = _dll_classnames;
13388
- const {color: color$3} = _dll_pie_lib__render_ui;
13389
17334
  const {renderMath: renderMath$2} = _dll_pie_lib__math_rendering;
13390
17335
  const {DragSource: DragSource} = _dll_pie_lib__drag;
13391
17336
  const {DropTarget: DropTarget} = _dll_pie_lib__drag;
@@ -13394,7 +17339,7 @@ const log = debug('pie-lib:mask-markup:blank');
13394
17339
  const DRAG_TYPE = 'MaskBlank';
13395
17340
  const useStyles = withStyles$3(() => ({
13396
17341
  content: {
13397
- border: `solid 0px ${color$3.primary()}`,
17342
+ border: `solid 0px ${primary()}`,
13398
17343
  minWidth: '200px'
13399
17344
  },
13400
17345
  chip: {
@@ -13421,10 +17366,10 @@ const useStyles = withStyles$3(() => ({
13421
17366
  maxWidth: '60px'
13422
17367
  },
13423
17368
  correct: {
13424
- border: `solid 1px ${color$3.correct()}`
17369
+ border: `solid 1px ${correct()}`
13425
17370
  },
13426
17371
  incorrect: {
13427
- border: `solid 1px ${color$3.incorrect()}`
17372
+ border: `solid 1px ${incorrect()}`
13428
17373
  },
13429
17374
  over: {
13430
17375
  whiteSpace: 'nowrap',
@@ -13737,15 +17682,14 @@ const React$6 = _dll_react;
13737
17682
  const {OutlinedInput: OutlinedInput} = _dll_material_ui__core;
13738
17683
  const classnames = _dll_classnames;
13739
17684
  const {withStyles: withStyles$2} = _dll_material_ui__core_styles;
13740
- const {color: color$2} = _dll_pie_lib__render_ui;
13741
17685
  const _jsxFileName$5 = "/home/circleci/repo/node_modules/@pie-lib/mask-markup/src/components/correct-input.jsx";
13742
17686
  const correctStyle = color => ({
13743
17687
  borderColor: `${color} !important`
13744
17688
  });
13745
17689
  var CorrectInput = withStyles$2(() => ({
13746
17690
  input: {
13747
- color: color$2.text(),
13748
- backgroundColor: color$2.background(),
17691
+ color: text(),
17692
+ backgroundColor: background(),
13749
17693
  borderRadius: '4px !important',
13750
17694
  borderWidth: '1px',
13751
17695
  borderStyle: 'solid',
@@ -13755,20 +17699,20 @@ var CorrectInput = withStyles$2(() => ({
13755
17699
  cursor: 'not-allowed !important'
13756
17700
  },
13757
17701
  '&:hover': {
13758
- borderColor: color$2.primary(),
17702
+ borderColor: primary(),
13759
17703
  '&:disabled': {
13760
17704
  borderColor: 'initial'
13761
17705
  }
13762
17706
  },
13763
17707
  '&:focus': {
13764
- borderColor: color$2.primaryDark()
17708
+ borderColor: primaryDark()
13765
17709
  }
13766
17710
  },
13767
17711
  crInput: {
13768
17712
  padding: '8px !important'
13769
17713
  },
13770
- correct: correctStyle(color$2.correct()),
13771
- incorrect: correctStyle(color$2.incorrect()),
17714
+ correct: correctStyle(correct()),
17715
+ incorrect: correctStyle(incorrect()),
13772
17716
  box: {
13773
17717
  fontSize: 'inherit'
13774
17718
  },
@@ -13780,7 +17724,7 @@ var CorrectInput = withStyles$2(() => ({
13780
17724
  }
13781
17725
  },
13782
17726
  notchedOutline: {
13783
- borderColor: color$2.correct()
17727
+ borderColor: correct()
13784
17728
  }
13785
17729
  }))(props => {
13786
17730
  const {correct, charactersLimit, classes, disabled, isBox, isConstructedResponse, width, ...rest} = props;
@@ -13881,7 +17825,6 @@ const PropTypes$1 = _dll_prop_types;
13881
17825
  const {Select: Select} = _dll_material_ui__core;
13882
17826
  const {MenuItem: MenuItem} = _dll_material_ui__core;
13883
17827
  const {withStyles: withStyles$1} = _dll_material_ui__core_styles;
13884
- const {color: color$1} = _dll_pie_lib__render_ui;
13885
17828
  const _jsxFileName$2 = "/home/circleci/repo/node_modules/@pie-lib/mask-markup/src/components/dropdown.jsx";
13886
17829
  class Dropdown extends React$3.Component {
13887
17830
  static __initStatic() {
@@ -13997,16 +17940,16 @@ class Dropdown extends React$3.Component {
13997
17940
  Dropdown.__initStatic();
13998
17941
  const styles$1 = () => ({
13999
17942
  root: {
14000
- color: color$1.text(),
14001
- backgroundColor: color$1.background(),
14002
- borderColor: color$1.secondaryLight(),
17943
+ color: text(),
17944
+ backgroundColor: background(),
17945
+ borderColor: secondaryLight(),
14003
17946
  '& ul': {
14004
17947
  paddingTop: 0,
14005
17948
  paddingBottom: 0,
14006
- border: `1px solid ${color$1.text()}`,
17949
+ border: `1px solid ${text()}`,
14007
17950
  borderRadius: '5px',
14008
- color: color$1.text(),
14009
- backgroundColor: color$1.background()
17951
+ color: text(),
17952
+ backgroundColor: background()
14010
17953
  }
14011
17954
  },
14012
17955
  select: {
@@ -14015,7 +17958,7 @@ const styles$1 = () => ({
14015
17958
  }
14016
17959
  },
14017
17960
  selectMenu: {
14018
- backgroundColor: color$1.background(),
17961
+ backgroundColor: background(),
14019
17962
  '&:hover': {
14020
17963
  borderColor: 'initial'
14021
17964
  },
@@ -14024,26 +17967,26 @@ const styles$1 = () => ({
14024
17967
  }
14025
17968
  },
14026
17969
  icon: {
14027
- color: color$1.text()
17970
+ color: text()
14028
17971
  },
14029
17972
  selected: {
14030
- color: `${color$1.text()} !important`,
14031
- backgroundColor: `${color$1.background()} !important`,
17973
+ color: `${text()} !important`,
17974
+ backgroundColor: `${background()} !important`,
14032
17975
  '&:hover': {
14033
- color: color$1.text(),
14034
- backgroundColor: `${color$1.secondaryLight()} !important`
17976
+ color: text(),
17977
+ backgroundColor: `${secondaryLight()} !important`
14035
17978
  }
14036
17979
  },
14037
17980
  menuRoot: {
14038
- color: color$1.text(),
14039
- backgroundColor: color$1.background(),
17981
+ color: text(),
17982
+ backgroundColor: background(),
14040
17983
  '&:focus': {
14041
- color: color$1.text(),
14042
- backgroundColor: color$1.background()
17984
+ color: text(),
17985
+ backgroundColor: background()
14043
17986
  },
14044
17987
  '&:hover': {
14045
- color: color$1.text(),
14046
- backgroundColor: color$1.secondaryLight()
17988
+ color: text(),
17989
+ backgroundColor: secondaryLight()
14047
17990
  },
14048
17991
  boxSizing: 'border-box',
14049
17992
  padding: '25px',
@@ -14089,10 +18032,6 @@ const PropTypes = _dll_prop_types;
14089
18032
  const {debounce: debounce} = _dll_lodash;
14090
18033
  const {isEmpty: isEmpty} = _dll_lodash;
14091
18034
  const {isEqual: isEqual} = _dll_lodash;
14092
- const CorrectAnswerToggle = _dll_pie_lib__correct_answer_toggle;
14093
- const {color: color} = _dll_pie_lib__render_ui;
14094
- const {Collapsible: Collapsible} = _dll_pie_lib__render_ui;
14095
- const {hasText: hasText} = _dll_pie_lib__render_ui;
14096
18035
  const {withStyles: withStyles} = _dll_material_ui__core_styles;
14097
18036
  const classNames = _dll_classnames;
14098
18037
  const _jsxFileName = "/home/circleci/repo/packages/explicit-constructed-response/src/main.js";
@@ -14183,26 +18122,21 @@ class Main extends React$1.Component {
14183
18122
  const mainClasses = classNames([classes.mainContainer, {
14184
18123
  [classes.noBorderColor]: alwaysShowCorrect
14185
18124
  }]);
14186
- const teacherInstructionsDiv = React$1.createElement('div', {
14187
- className: "teacher-instructions",
14188
- dangerouslySetInnerHTML: {
14189
- __html: teacherInstructions
14190
- },
18125
+ const teacherInstructionsDiv = React$1.createElement(PreviewPrompt$1, {
18126
+ defaultClassName: "teacher-instructions",
18127
+ prompt: teacherInstructions,
14191
18128
  __self: this,
14192
18129
  __source: {
14193
18130
  fileName: _jsxFileName,
14194
18131
  lineNumber: 97
14195
18132
  }
14196
18133
  });
14197
- const rationaleDiv = React$1.createElement('div', {
14198
- className: "rationale",
14199
- dangerouslySetInnerHTML: {
14200
- __html: rationale
14201
- },
18134
+ const rationaleDiv = React$1.createElement(PreviewPrompt$1, {
18135
+ prompt: rationale,
14202
18136
  __self: this,
14203
18137
  __source: {
14204
18138
  fileName: _jsxFileName,
14205
- lineNumber: 102
18139
+ lineNumber: 99
14206
18140
  }
14207
18141
  });
14208
18142
  return React$1.createElement('div', {
@@ -14213,16 +18147,16 @@ class Main extends React$1.Component {
14213
18147
  __self: this,
14214
18148
  __source: {
14215
18149
  fileName: _jsxFileName,
14216
- lineNumber: 105
18150
+ lineNumber: 102
14217
18151
  }
14218
18152
  }, teacherInstructions && hasText(teacherInstructions) && React$1.createElement('div', {
14219
18153
  className: classes.collapsible,
14220
18154
  __self: this,
14221
18155
  __source: {
14222
18156
  fileName: _jsxFileName,
14223
- lineNumber: 108
18157
+ lineNumber: 105
14224
18158
  }
14225
- }, !animationsDisabled ? React$1.createElement(Collapsible, {
18159
+ }, !animationsDisabled ? React$1.createElement(Collapsible$1, {
14226
18160
  labels: {
14227
18161
  hidden: 'Show Teacher Instructions',
14228
18162
  visible: 'Hide Teacher Instructions'
@@ -14230,26 +18164,23 @@ class Main extends React$1.Component {
14230
18164
  __self: this,
14231
18165
  __source: {
14232
18166
  fileName: _jsxFileName,
14233
- lineNumber: 109
18167
+ lineNumber: 106
14234
18168
  }
14235
- }, teacherInstructionsDiv) : teacherInstructionsDiv), !alwaysShowCorrect && React$1.createElement(CorrectAnswerToggle, {
18169
+ }, teacherInstructionsDiv) : teacherInstructionsDiv), !alwaysShowCorrect && React$1.createElement(CorrectAnswerToggle$1, {
14236
18170
  show: mode === 'evaluate',
14237
18171
  toggled: showCorrectAnswer,
14238
18172
  onToggle: this.toggleShowCorrect,
14239
18173
  __self: this,
14240
18174
  __source: {
14241
18175
  fileName: _jsxFileName,
14242
- lineNumber: 118
18176
+ lineNumber: 115
14243
18177
  }
14244
- }), prompt && React$1.createElement('div', {
14245
- className: "prompt",
14246
- dangerouslySetInnerHTML: {
14247
- __html: prompt
14248
- },
18178
+ }), prompt && React$1.createElement(PreviewPrompt$1, {
18179
+ prompt: prompt,
14249
18180
  __self: this,
14250
18181
  __source: {
14251
18182
  fileName: _jsxFileName,
14252
- lineNumber: 123
18183
+ lineNumber: 120
14253
18184
  }
14254
18185
  }), React$1.createElement(ConstructedResponse, {
14255
18186
  ...this.props,
@@ -14261,7 +18192,7 @@ class Main extends React$1.Component {
14261
18192
  __self: this,
14262
18193
  __source: {
14263
18194
  fileName: _jsxFileName,
14264
- lineNumber: 124
18195
+ lineNumber: 121
14265
18196
  }
14266
18197
  }), displayNote && React$1.createElement('div', {
14267
18198
  className: classNames(classes.note, 'note'),
@@ -14271,16 +18202,16 @@ class Main extends React$1.Component {
14271
18202
  __self: this,
14272
18203
  __source: {
14273
18204
  fileName: _jsxFileName,
14274
- lineNumber: 133
18205
+ lineNumber: 130
14275
18206
  }
14276
18207
  }), rationale && hasText(rationale) && React$1.createElement('div', {
14277
18208
  className: classes.collapsible,
14278
18209
  __self: this,
14279
18210
  __source: {
14280
18211
  fileName: _jsxFileName,
14281
- lineNumber: 139
18212
+ lineNumber: 136
14282
18213
  }
14283
- }, !animationsDisabled ? React$1.createElement(Collapsible, {
18214
+ }, !animationsDisabled ? React$1.createElement(Collapsible$1, {
14284
18215
  labels: {
14285
18216
  hidden: 'Show Rationale',
14286
18217
  visible: 'Hide Rationale'
@@ -14288,7 +18219,7 @@ class Main extends React$1.Component {
14288
18219
  __self: this,
14289
18220
  __source: {
14290
18221
  fileName: _jsxFileName,
14291
- lineNumber: 140
18222
+ lineNumber: 137
14292
18223
  }
14293
18224
  }, rationaleDiv) : rationaleDiv));
14294
18225
  }
@@ -14298,8 +18229,8 @@ Main.__initStatic2();
14298
18229
  const styles = theme => ({
14299
18230
  mainContainer: {
14300
18231
  padding: theme.spacing.unit,
14301
- color: color.text(),
14302
- backgroundColor: color.background()
18232
+ color: text(),
18233
+ backgroundColor: background()
14303
18234
  },
14304
18235
  inlineDisplay: {
14305
18236
  display: 'inline-block'
@@ -14315,7 +18246,7 @@ const styles = theme => ({
14315
18246
  },
14316
18247
  noBorderColor: {
14317
18248
  '& *': {
14318
- borderColor: `${color.text()} !important`
18249
+ borderColor: `${text()} !important`
14319
18250
  }
14320
18251
  }
14321
18252
  });