@pie-element/charting 12.1.2-next.2 → 12.1.2-next.20
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/author.js +2 -0
- package/dist/author/charting-config.js +4 -4
- package/dist/author/configure.js +3 -3
- package/dist/author/correct-response.js +4 -4
- package/dist/author/index.d.ts +1 -0
- package/dist/author/index.js +5 -2
- package/dist/author/utils.js +1 -1
- package/dist/browser/assets/Symbola-4c507403.woff2 +0 -0
- package/dist/browser/author/index.js +2245 -301
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/{chart-C1GUG3cz.js → chart-Cs8wCdj9.js} +18463 -24468
- package/dist/browser/chart-Cs8wCdj9.js.map +1 -0
- package/dist/browser/controller/index.js +3 -3
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/delivery/index.js +104 -86
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/browser/{dist-CA-Ok7CW.js → dist-D6aoYeoC.js} +6 -2
- package/dist/browser/{dist-CA-Ok7CW.js.map → dist-D6aoYeoC.js.map} +1 -1
- package/dist/browser/editor-runtime/assets/Symbola-4c507403.woff2 +0 -0
- package/dist/browser/editor-runtime/author/index.js +3186 -0
- package/dist/browser/editor-runtime/author/index.js.map +1 -0
- package/dist/browser/editor-runtime/chart-DzM_FFhs.js +36529 -0
- package/dist/browser/editor-runtime/chart-DzM_FFhs.js.map +1 -0
- package/dist/browser/editor-runtime/controller/index.js +194 -0
- package/dist/browser/editor-runtime/controller/index.js.map +1 -0
- package/dist/browser/editor-runtime/delivery/index.js +535 -0
- package/dist/browser/editor-runtime/delivery/index.js.map +1 -0
- package/dist/browser/editor-runtime/dist-4_gVzyUN.js +334 -0
- package/dist/browser/editor-runtime/dist-4_gVzyUN.js.map +1 -0
- package/dist/controller/index.js +1 -1
- package/dist/delivery/index.d.ts +3 -0
- package/dist/delivery/index.js +25 -7
- package/dist/delivery/main.js +1 -1
- package/dist/index.iife.js +104 -140
- package/package.json +33 -23
- package/dist/browser/chart-C1GUG3cz.js.map +0 -1
- package/dist/browser/charting.css +0 -2
|
@@ -0,0 +1,535 @@
|
|
|
1
|
+
import { C as e, t } from "../dist-4_gVzyUN.js";
|
|
2
|
+
import { B as n, M as r, Q as i, S as a, U as o, V as s, b as c, g as l, j as u, k as d, n as f, o as p, s as m, t as h, v as g, x as _, y as v } from "../chart-DzM_FFhs.js";
|
|
3
|
+
import y, { useRef as b } from "react";
|
|
4
|
+
import { createRoot as x } from "react-dom/client";
|
|
5
|
+
import { jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
6
|
+
//#region ../../lib-react/icons/dist/correct-response-icon.js
|
|
7
|
+
var w = /* @__PURE__ */ e(i(), 1), T = ({ bgFill: e, fgFill: t }) => /* @__PURE__ */ C("svg", {
|
|
8
|
+
preserveAspectRatio: "xMinYMin meet",
|
|
9
|
+
version: "1.1",
|
|
10
|
+
viewBox: "-283 359 34 35",
|
|
11
|
+
style: { enableBackground: "new -283 359 34 35" },
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ S("circle", {
|
|
14
|
+
cx: "-266",
|
|
15
|
+
cy: "375.9",
|
|
16
|
+
r: "14",
|
|
17
|
+
fill: e
|
|
18
|
+
}),
|
|
19
|
+
/* @__PURE__ */ S("path", {
|
|
20
|
+
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\n 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",
|
|
21
|
+
fill: e
|
|
22
|
+
}),
|
|
23
|
+
/* @__PURE__ */ S("polygon", {
|
|
24
|
+
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",
|
|
25
|
+
fill: t
|
|
26
|
+
})
|
|
27
|
+
]
|
|
28
|
+
});
|
|
29
|
+
T.propTypes = {
|
|
30
|
+
bgFill: w.default.string.isRequired,
|
|
31
|
+
fgFill: w.default.string.isRequired
|
|
32
|
+
};
|
|
33
|
+
var E = ({ bgFill: e, fgFill: t, borderFill: n }) => /* @__PURE__ */ C("svg", {
|
|
34
|
+
preserveAspectRatio: "xMinYMin meet",
|
|
35
|
+
version: "1.1",
|
|
36
|
+
viewBox: "-129.5 127 34 35",
|
|
37
|
+
style: { enableBackground: "new -129.5 127 34 35" },
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ S("path", {
|
|
40
|
+
style: {
|
|
41
|
+
fill: "#D0CAC5",
|
|
42
|
+
stroke: "#E6E3E0",
|
|
43
|
+
strokeWidth: .75,
|
|
44
|
+
strokeMiterlimit: 10
|
|
45
|
+
},
|
|
46
|
+
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\n C-97.4,153.5-104.3,160.4-112.9,160.4z"
|
|
47
|
+
}),
|
|
48
|
+
/* @__PURE__ */ S("path", {
|
|
49
|
+
style: {
|
|
50
|
+
fill: "#B3ABA4",
|
|
51
|
+
stroke: "#CDC7C2",
|
|
52
|
+
strokeWidth: .5,
|
|
53
|
+
strokeMiterlimit: 10
|
|
54
|
+
},
|
|
55
|
+
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"
|
|
56
|
+
}),
|
|
57
|
+
/* @__PURE__ */ S("circle", {
|
|
58
|
+
cx: "-114.2",
|
|
59
|
+
cy: "143.5",
|
|
60
|
+
r: "14",
|
|
61
|
+
fill: e
|
|
62
|
+
}),
|
|
63
|
+
/* @__PURE__ */ S("path", {
|
|
64
|
+
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\n 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",
|
|
65
|
+
fill: n
|
|
66
|
+
}),
|
|
67
|
+
/* @__PURE__ */ S("polygon", {
|
|
68
|
+
points: "-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2",
|
|
69
|
+
fill: t
|
|
70
|
+
})
|
|
71
|
+
]
|
|
72
|
+
});
|
|
73
|
+
E.propTypes = {
|
|
74
|
+
bgFill: w.default.string.isRequired,
|
|
75
|
+
fgFill: w.default.string.isRequired,
|
|
76
|
+
borderFill: w.default.string.isRequired
|
|
77
|
+
};
|
|
78
|
+
var D = o("div")(({ size: e }) => ({
|
|
79
|
+
width: e || "25px",
|
|
80
|
+
height: e || "25px"
|
|
81
|
+
})), O = ({ open: e, size: t }) => /* @__PURE__ */ S(D, {
|
|
82
|
+
size: t,
|
|
83
|
+
children: e ? /* @__PURE__ */ S(T, {
|
|
84
|
+
bgFill: "#bce2ff",
|
|
85
|
+
fgFill: "#1a9cff"
|
|
86
|
+
}) : /* @__PURE__ */ S(E, {
|
|
87
|
+
bgFill: "white",
|
|
88
|
+
fgFill: "#1a9cff",
|
|
89
|
+
borderFill: "#bce2ff"
|
|
90
|
+
})
|
|
91
|
+
});
|
|
92
|
+
O.propTypes = {
|
|
93
|
+
open: w.default.bool,
|
|
94
|
+
size: w.default.string
|
|
95
|
+
}, O.defaultProps = { open: !1 };
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region ../../lib-react/charting/dist/key-legend.js
|
|
98
|
+
var ee = o("div")(({ theme: e }) => ({
|
|
99
|
+
backgroundColor: s.defaults.WHITE,
|
|
100
|
+
padding: e.spacing(2),
|
|
101
|
+
width: "355px",
|
|
102
|
+
boxShadow: "inset 0px 1px 5px 0px #9297A6",
|
|
103
|
+
display: "flex",
|
|
104
|
+
flexDirection: "column",
|
|
105
|
+
gap: "16px"
|
|
106
|
+
})), k = o("div")(() => ({
|
|
107
|
+
display: "flex",
|
|
108
|
+
alignItems: "center",
|
|
109
|
+
gap: "12px"
|
|
110
|
+
})), A = o("div")(({ theme: e }) => ({
|
|
111
|
+
fontSize: e.typography.h6.fontSize,
|
|
112
|
+
fontWeight: "700"
|
|
113
|
+
})), te = o("div")(() => ({ marginLeft: "2px" })), j = o(l)(({ theme: e }) => ({
|
|
114
|
+
backgroundColor: s.correct(),
|
|
115
|
+
borderRadius: e.spacing(2),
|
|
116
|
+
color: s.defaults.WHITE
|
|
117
|
+
})), M = o(m)(({ theme: e }) => ({
|
|
118
|
+
backgroundColor: s.incorrectWithIcon(),
|
|
119
|
+
borderRadius: e.spacing(2),
|
|
120
|
+
color: s.defaults.WHITE
|
|
121
|
+
})), ne = o("div")(() => ({
|
|
122
|
+
marginLeft: "3px",
|
|
123
|
+
display: "flex",
|
|
124
|
+
alignItems: "center",
|
|
125
|
+
gap: "12px"
|
|
126
|
+
})), { translator: N } = f, P = ({ language: e }) => /* @__PURE__ */ C(ee, { children: [
|
|
127
|
+
/* @__PURE__ */ S(A, { children: "Key" }),
|
|
128
|
+
/* @__PURE__ */ C(k, { children: [/* @__PURE__ */ S(M, {}), /* @__PURE__ */ S("div", { children: N.t("charting.keyLegend.incorrectAnswer", { lng: e }) })] }),
|
|
129
|
+
/* @__PURE__ */ C(k, { children: [/* @__PURE__ */ S(j, {}), /* @__PURE__ */ S("div", { children: N.t("charting.keyLegend.correctAnswer", { lng: e }) })] }),
|
|
130
|
+
/* @__PURE__ */ C(ne, { children: [/* @__PURE__ */ S(j, { fontSize: "small" }), /* @__PURE__ */ S(te, { children: N.t("charting.keyLegend.correctKeyAnswer", { lng: e }) })] })
|
|
131
|
+
] });
|
|
132
|
+
P.propTypes = { language: w.default.string };
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region ../../lib-react/correct-answer-toggle/dist/expander.js
|
|
135
|
+
var F = "height ease-in 300ms, opacity ease-in 300ms", re = o("div")(() => ({
|
|
136
|
+
position: "relative",
|
|
137
|
+
height: 0,
|
|
138
|
+
overflow: "hidden",
|
|
139
|
+
display: "flex",
|
|
140
|
+
visibility: "hidden",
|
|
141
|
+
width: 0,
|
|
142
|
+
"&.enter": {
|
|
143
|
+
transition: F,
|
|
144
|
+
opacity: 1,
|
|
145
|
+
height: "auto",
|
|
146
|
+
width: "auto",
|
|
147
|
+
visibility: "visible",
|
|
148
|
+
minHeight: "25px"
|
|
149
|
+
},
|
|
150
|
+
"&.enter-done": {
|
|
151
|
+
height: "auto",
|
|
152
|
+
visibility: "visible",
|
|
153
|
+
width: "auto",
|
|
154
|
+
minHeight: "25px"
|
|
155
|
+
},
|
|
156
|
+
"&.exit": {
|
|
157
|
+
transition: F,
|
|
158
|
+
opacity: 0,
|
|
159
|
+
height: 0,
|
|
160
|
+
visibility: "visible",
|
|
161
|
+
width: 0
|
|
162
|
+
},
|
|
163
|
+
"&.exit-done": {
|
|
164
|
+
opacity: 0,
|
|
165
|
+
visibility: "hidden",
|
|
166
|
+
height: 0,
|
|
167
|
+
width: 0
|
|
168
|
+
}
|
|
169
|
+
})), I = (e) => {
|
|
170
|
+
let { show: t, children: r, className: i } = e, a = b(null);
|
|
171
|
+
return /* @__PURE__ */ S(n, {
|
|
172
|
+
nodeRef: a,
|
|
173
|
+
in: t,
|
|
174
|
+
appear: !0,
|
|
175
|
+
mountOnEnter: !1,
|
|
176
|
+
timeout: 300,
|
|
177
|
+
classNames: {
|
|
178
|
+
enter: "enter",
|
|
179
|
+
enterDone: "enter-done",
|
|
180
|
+
exit: "exit",
|
|
181
|
+
exitDone: "exit-done"
|
|
182
|
+
},
|
|
183
|
+
children: /* @__PURE__ */ S(re, {
|
|
184
|
+
ref: a,
|
|
185
|
+
className: i,
|
|
186
|
+
children: r
|
|
187
|
+
})
|
|
188
|
+
});
|
|
189
|
+
};
|
|
190
|
+
I.propTypes = {
|
|
191
|
+
show: w.default.bool.isRequired,
|
|
192
|
+
className: w.default.string,
|
|
193
|
+
children: w.default.oneOfType([w.default.arrayOf(w.default.node), w.default.node]).isRequired
|
|
194
|
+
};
|
|
195
|
+
//#endregion
|
|
196
|
+
//#region ../../lib-react/correct-answer-toggle/dist/index.js
|
|
197
|
+
function L(e) {
|
|
198
|
+
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
199
|
+
}
|
|
200
|
+
function R(e, t) {
|
|
201
|
+
return !e || L(e) ? e : L(e.default) ? e.default : t && L(e[t]) ? e[t] : t && L(e[t]?.default) ? e[t].default : e;
|
|
202
|
+
}
|
|
203
|
+
var ie = R(_, "Readable") || R(ae.Readable, "Readable"), z = g, B = z.default, ae = B && typeof B == "object" ? B : z, { translator: V } = f, oe = {
|
|
204
|
+
WebkitTouchCallout: "none",
|
|
205
|
+
WebkitUserSelect: "none",
|
|
206
|
+
KhtmlUserSelect: "none",
|
|
207
|
+
MozUserSelect: "none",
|
|
208
|
+
msUserSelect: "none",
|
|
209
|
+
userSelect: "none"
|
|
210
|
+
}, se = o("div")(() => ({
|
|
211
|
+
width: "100%",
|
|
212
|
+
cursor: "pointer"
|
|
213
|
+
})), ce = o("div")(() => ({
|
|
214
|
+
margin: "0 auto",
|
|
215
|
+
textAlign: "center",
|
|
216
|
+
display: "flex"
|
|
217
|
+
})), le = o("div")(() => ({
|
|
218
|
+
width: "fit-content",
|
|
219
|
+
minWidth: "140px",
|
|
220
|
+
alignSelf: "center",
|
|
221
|
+
verticalAlign: "middle",
|
|
222
|
+
color: `var(--correct-answer-toggle-label-color, ${s.text()})`,
|
|
223
|
+
fontWeight: "normal",
|
|
224
|
+
...oe
|
|
225
|
+
})), H = o("div")(() => ({
|
|
226
|
+
position: "absolute",
|
|
227
|
+
width: "25px",
|
|
228
|
+
"&.enter": { opacity: "0" },
|
|
229
|
+
"&.enter-active": {
|
|
230
|
+
opacity: "1",
|
|
231
|
+
transition: "opacity 0.3s ease-in"
|
|
232
|
+
},
|
|
233
|
+
"&.exit": { opacity: "1" },
|
|
234
|
+
"&.exit-active": {
|
|
235
|
+
opacity: "0",
|
|
236
|
+
transition: "opacity 0.3s ease-in"
|
|
237
|
+
}
|
|
238
|
+
})), U = o("div")(() => ({
|
|
239
|
+
width: "25px",
|
|
240
|
+
marginRight: "5px",
|
|
241
|
+
display: "flex",
|
|
242
|
+
alignItems: "center"
|
|
243
|
+
})), ue = class e extends y.Component {
|
|
244
|
+
static propTypes = {
|
|
245
|
+
onToggle: w.default.func,
|
|
246
|
+
toggled: w.default.bool,
|
|
247
|
+
show: w.default.bool,
|
|
248
|
+
hideMessage: w.default.string,
|
|
249
|
+
showMessage: w.default.string,
|
|
250
|
+
className: w.default.string,
|
|
251
|
+
language: w.default.string
|
|
252
|
+
};
|
|
253
|
+
static defaultProps = {
|
|
254
|
+
showMessage: "Show correct answer",
|
|
255
|
+
hideMessage: "Hide correct answer",
|
|
256
|
+
show: !1,
|
|
257
|
+
toggled: !1
|
|
258
|
+
};
|
|
259
|
+
constructor(t) {
|
|
260
|
+
super(t), this.state = { show: t.show }, this.openIconRef = y.createRef(), this.closedIconRef = y.createRef(), e.defaultProps = {
|
|
261
|
+
...e.defaultProps,
|
|
262
|
+
showMessage: V.t("common:showCorrectAnswer", { lng: t.language }),
|
|
263
|
+
hideMessage: V.t("common:hideCorrectAnswer", { lng: t.language })
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
onClick() {
|
|
267
|
+
this.props.onToggle(!this.props.toggled);
|
|
268
|
+
}
|
|
269
|
+
onTouch(e) {
|
|
270
|
+
e.preventDefault(), this.props.onToggle(!this.props.toggled);
|
|
271
|
+
}
|
|
272
|
+
UNSAFE_componentWillReceiveProps(t) {
|
|
273
|
+
this.setState({ show: t.show }), t.language !== this.props?.language && (e.defaultProps = {
|
|
274
|
+
...e.defaultProps,
|
|
275
|
+
showMessage: V.t("common:showCorrectAnswer", { lng: t.language }),
|
|
276
|
+
hideMessage: V.t("common:hideCorrectAnswer", { lng: t.language })
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
render() {
|
|
280
|
+
let { className: e, toggled: t, hideMessage: r, showMessage: i } = this.props;
|
|
281
|
+
return /* @__PURE__ */ S(se, {
|
|
282
|
+
className: e,
|
|
283
|
+
children: /* @__PURE__ */ S(I, {
|
|
284
|
+
show: this.state.show,
|
|
285
|
+
children: /* @__PURE__ */ C(ce, {
|
|
286
|
+
onClick: this.onClick.bind(this),
|
|
287
|
+
onTouchEnd: this.onTouch.bind(this),
|
|
288
|
+
children: [/* @__PURE__ */ C(U, { children: [/* @__PURE__ */ S(n, {
|
|
289
|
+
nodeRef: this.openIconRef,
|
|
290
|
+
timeout: 400,
|
|
291
|
+
in: t,
|
|
292
|
+
exit: !t,
|
|
293
|
+
classNames: {
|
|
294
|
+
enter: "enter",
|
|
295
|
+
enterActive: "enter-active",
|
|
296
|
+
exit: "exit",
|
|
297
|
+
exitActive: "exit-active"
|
|
298
|
+
},
|
|
299
|
+
children: /* @__PURE__ */ S(H, {
|
|
300
|
+
ref: this.openIconRef,
|
|
301
|
+
children: /* @__PURE__ */ S(O, { open: t }, "correct-open")
|
|
302
|
+
})
|
|
303
|
+
}), /* @__PURE__ */ S(n, {
|
|
304
|
+
nodeRef: this.closedIconRef,
|
|
305
|
+
timeout: 5e3,
|
|
306
|
+
in: !t,
|
|
307
|
+
exit: t,
|
|
308
|
+
classNames: {
|
|
309
|
+
enter: "enter",
|
|
310
|
+
enterActive: "enter-active",
|
|
311
|
+
exit: "exit",
|
|
312
|
+
exitActive: "exit-active"
|
|
313
|
+
},
|
|
314
|
+
children: /* @__PURE__ */ S(H, {
|
|
315
|
+
ref: this.closedIconRef,
|
|
316
|
+
children: /* @__PURE__ */ S(O, { open: t }, "correct-closed")
|
|
317
|
+
})
|
|
318
|
+
})] }), /* @__PURE__ */ S(ie, {
|
|
319
|
+
false: !0,
|
|
320
|
+
children: /* @__PURE__ */ S(le, {
|
|
321
|
+
"aria-hidden": !this.state.show,
|
|
322
|
+
children: t ? r : i
|
|
323
|
+
})
|
|
324
|
+
})]
|
|
325
|
+
})
|
|
326
|
+
})
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
//#endregion
|
|
331
|
+
//#region src/delivery/main.tsx
|
|
332
|
+
function W(e) {
|
|
333
|
+
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
334
|
+
}
|
|
335
|
+
function G(e, t) {
|
|
336
|
+
return !e || W(e) ? e : W(e.default) ? e.default : t && W(e[t]) ? e[t] : t && W(e[t]?.default) ? e[t].default : e;
|
|
337
|
+
}
|
|
338
|
+
var de = G(d, "UiLayout") || G(X.UiLayout, "UiLayout"), K = G(a, "PreviewPrompt") || G(X.PreviewPrompt, "PreviewPrompt"), q = G(u, "Collapsible") || G(X.Collapsible, "Collapsible"), J = g, Y = J.default, X = Y && typeof Y == "object" ? Y : J, fe = o(de)({
|
|
339
|
+
color: s.text(),
|
|
340
|
+
backgroundColor: s.background(),
|
|
341
|
+
overflowX: "scroll",
|
|
342
|
+
overflowY: "hidden"
|
|
343
|
+
}), Z = o(h)(({ theme: e }) => ({
|
|
344
|
+
marginTop: e.spacing(2),
|
|
345
|
+
marginBottom: e.spacing(2)
|
|
346
|
+
})), pe = o(q)(({ theme: e }) => ({ marginBottom: e.spacing(2) })), Q = class extends y.Component {
|
|
347
|
+
static propTypes = {
|
|
348
|
+
model: w.default.object.isRequired,
|
|
349
|
+
onAnswersChange: w.default.func,
|
|
350
|
+
categories: w.default.array
|
|
351
|
+
};
|
|
352
|
+
constructor(e) {
|
|
353
|
+
super(e), this.state = {
|
|
354
|
+
categories: e.categories || e.model.data,
|
|
355
|
+
showingCorrect: !1
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
componentDidUpdate(e) {
|
|
359
|
+
t(e.categories, this.props.categories) ? t(e.model.data, this.props.model.data) || this.setState({ categories: this.props.model.data }) : this.setState({ categories: this.props.categories });
|
|
360
|
+
}
|
|
361
|
+
changeData = (e) => this.setState({ categories: e }, () => this.props.onAnswersChange(e));
|
|
362
|
+
toggleCorrect = (e) => this.setState({ showingCorrect: e });
|
|
363
|
+
render() {
|
|
364
|
+
let { categories: e, showingCorrect: t } = this.state, { model: n } = this.props, { teacherInstructions: r, prompt: i, chartType: a, size: o, domain: s, range: l, title: u, addCategoryEnabled: d, studentNewCategoryDefaultLabel: f, showToggle: m, rationale: h, correctAnswer: g, language: _, env: y, showKeyLegend: b } = n, { correctedAnswer: x, extraCSSRules: w } = n, T = (g?.data || []).map((e) => ({
|
|
365
|
+
...e,
|
|
366
|
+
interactive: !1,
|
|
367
|
+
editable: !1
|
|
368
|
+
})), { mode: E } = y || {};
|
|
369
|
+
E === "view" && (x = (x || []).map((e) => ({
|
|
370
|
+
...e,
|
|
371
|
+
editable: !1
|
|
372
|
+
})));
|
|
373
|
+
let D = n.rationale && (c(n.rationale) || v(n.rationale));
|
|
374
|
+
return /* @__PURE__ */ C(fe, {
|
|
375
|
+
extraCSSRules: w,
|
|
376
|
+
children: [
|
|
377
|
+
n.teacherInstructions && (c(n.teacherInstructions) || v(n.teacherInstructions)) && /* @__PURE__ */ S(pe, {
|
|
378
|
+
labels: {
|
|
379
|
+
hidden: "Show Teacher Instructions",
|
|
380
|
+
visible: "Hide Teacher Instructions"
|
|
381
|
+
},
|
|
382
|
+
children: /* @__PURE__ */ S(K, { prompt: r })
|
|
383
|
+
}),
|
|
384
|
+
i && /* @__PURE__ */ S(K, {
|
|
385
|
+
className: "prompt",
|
|
386
|
+
prompt: i
|
|
387
|
+
}),
|
|
388
|
+
/* @__PURE__ */ S(ue, {
|
|
389
|
+
show: m,
|
|
390
|
+
toggled: t,
|
|
391
|
+
onToggle: this.toggleCorrect,
|
|
392
|
+
language: _
|
|
393
|
+
}),
|
|
394
|
+
t && m ? /* @__PURE__ */ S(Z, {
|
|
395
|
+
chartType: a,
|
|
396
|
+
size: o,
|
|
397
|
+
domain: s,
|
|
398
|
+
range: l,
|
|
399
|
+
charts: [
|
|
400
|
+
p.Bar(),
|
|
401
|
+
p.Histogram(),
|
|
402
|
+
p.LineDot(),
|
|
403
|
+
p.LineCross(),
|
|
404
|
+
p.DotPlot(),
|
|
405
|
+
p.LinePlot()
|
|
406
|
+
],
|
|
407
|
+
data: T || e,
|
|
408
|
+
title: u,
|
|
409
|
+
onDataChange: this.changeData,
|
|
410
|
+
addCategoryEnabled: !1,
|
|
411
|
+
categoryDefaultLabel: f,
|
|
412
|
+
language: _,
|
|
413
|
+
labelsPlaceholders: {}
|
|
414
|
+
}) : /* @__PURE__ */ S(Z, {
|
|
415
|
+
chartType: a,
|
|
416
|
+
size: o,
|
|
417
|
+
domain: s,
|
|
418
|
+
range: l,
|
|
419
|
+
charts: [
|
|
420
|
+
p.Bar(),
|
|
421
|
+
p.Histogram(),
|
|
422
|
+
p.LineDot(),
|
|
423
|
+
p.LineCross(),
|
|
424
|
+
p.DotPlot(),
|
|
425
|
+
p.LinePlot()
|
|
426
|
+
],
|
|
427
|
+
data: x || e,
|
|
428
|
+
title: u,
|
|
429
|
+
onDataChange: this.changeData,
|
|
430
|
+
addCategoryEnabled: d,
|
|
431
|
+
categoryDefaultLabel: f,
|
|
432
|
+
language: _,
|
|
433
|
+
labelsPlaceholders: {},
|
|
434
|
+
correctData: m ? T : void 0
|
|
435
|
+
}),
|
|
436
|
+
!t && b && /* @__PURE__ */ S(P, { language: _ }),
|
|
437
|
+
D && /* @__PURE__ */ S(q, {
|
|
438
|
+
labels: {
|
|
439
|
+
hidden: "Show Rationale",
|
|
440
|
+
visible: "Hide Rationale"
|
|
441
|
+
},
|
|
442
|
+
children: /* @__PURE__ */ S(K, { prompt: h })
|
|
443
|
+
})
|
|
444
|
+
]
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
}, $ = class e extends CustomEvent {
|
|
448
|
+
static {
|
|
449
|
+
this.TYPE = "model-set";
|
|
450
|
+
}
|
|
451
|
+
constructor(t, n, r) {
|
|
452
|
+
super(e.TYPE, {
|
|
453
|
+
bubbles: !0,
|
|
454
|
+
composed: !0,
|
|
455
|
+
detail: {
|
|
456
|
+
complete: n,
|
|
457
|
+
component: t,
|
|
458
|
+
hasModel: r
|
|
459
|
+
}
|
|
460
|
+
}), this.component = t, this.complete = n;
|
|
461
|
+
}
|
|
462
|
+
}, me = class e extends CustomEvent {
|
|
463
|
+
static {
|
|
464
|
+
this.TYPE = "session-changed";
|
|
465
|
+
}
|
|
466
|
+
constructor(t, n) {
|
|
467
|
+
super(e.TYPE, {
|
|
468
|
+
bubbles: !0,
|
|
469
|
+
composed: !0,
|
|
470
|
+
detail: {
|
|
471
|
+
complete: n,
|
|
472
|
+
component: t
|
|
473
|
+
}
|
|
474
|
+
}), this.component = t, this.complete = n;
|
|
475
|
+
}
|
|
476
|
+
}, he = class extends HTMLElement {
|
|
477
|
+
constructor() {
|
|
478
|
+
super(), this._root = null, this._mathObserver = null, this._mathRenderPending = !1;
|
|
479
|
+
}
|
|
480
|
+
_scheduleMathRender = () => {
|
|
481
|
+
this._mathRenderPending || (this._mathRenderPending = !0, requestAnimationFrame(() => {
|
|
482
|
+
this._mathObserver && this._mathObserver.disconnect(), r(this), this._mathRenderPending = !1, setTimeout(() => {
|
|
483
|
+
this._mathObserver && this._mathObserver.observe(this, {
|
|
484
|
+
childList: !0,
|
|
485
|
+
subtree: !0
|
|
486
|
+
});
|
|
487
|
+
}, 50);
|
|
488
|
+
}));
|
|
489
|
+
};
|
|
490
|
+
_initMathObserver() {
|
|
491
|
+
this._mathObserver || (this._mathObserver = new MutationObserver(this._scheduleMathRender), this._mathObserver.observe(this, {
|
|
492
|
+
childList: !0,
|
|
493
|
+
subtree: !0
|
|
494
|
+
}));
|
|
495
|
+
}
|
|
496
|
+
_disconnectMathObserver() {
|
|
497
|
+
this._mathObserver &&= (this._mathObserver.disconnect(), null);
|
|
498
|
+
}
|
|
499
|
+
set model(e) {
|
|
500
|
+
this._model = e, this._session && this.isComplete(this._session.answer) ? this.dispatchEvent(new $(this.tagName.toLowerCase(), !0, !!this._model)) : this.dispatchEvent(new $(this.tagName.toLowerCase(), !1, !!this._model)), this._render();
|
|
501
|
+
}
|
|
502
|
+
set session(e) {
|
|
503
|
+
this._session = e, this._render();
|
|
504
|
+
}
|
|
505
|
+
get session() {
|
|
506
|
+
return this._session;
|
|
507
|
+
}
|
|
508
|
+
connectedCallback() {
|
|
509
|
+
this._initMathObserver(), this._render();
|
|
510
|
+
}
|
|
511
|
+
isComplete = (e) => Array.isArray(e) && e.length > 0;
|
|
512
|
+
changeAnswers = (e) => {
|
|
513
|
+
this._session.answer = e, this.dispatchEvent(new me(this.tagName.toLowerCase(), this.isComplete(this._session.answer))), this._render();
|
|
514
|
+
};
|
|
515
|
+
_render() {
|
|
516
|
+
if (!this._model || !this._session) return;
|
|
517
|
+
this._initMathObserver();
|
|
518
|
+
let e = {
|
|
519
|
+
...this._model,
|
|
520
|
+
data: this._model.data ? [...this._model.data] : this._model.data
|
|
521
|
+
}, t = y.createElement(Q, {
|
|
522
|
+
model: e,
|
|
523
|
+
categories: this._session.answer,
|
|
524
|
+
onAnswersChange: this.changeAnswers
|
|
525
|
+
});
|
|
526
|
+
this._root ||= x(this), this._root.render(t);
|
|
527
|
+
}
|
|
528
|
+
disconnectedCallback() {
|
|
529
|
+
this._disconnectMathObserver(), this._root &&= (this._root.unmount(), null);
|
|
530
|
+
}
|
|
531
|
+
};
|
|
532
|
+
//#endregion
|
|
533
|
+
export { Q as Component, he as default };
|
|
534
|
+
|
|
535
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../../lib-react/icons/dist/correct-response-icon.js","../../../../../../lib-react/charting/dist/key-legend.js","../../../../../../lib-react/correct-answer-toggle/dist/expander.js","../../../../../../lib-react/correct-answer-toggle/dist/index.js","../../../../src/delivery/main.tsx","../../../../../../shared/player-events/dist/index.js","../../../../src/delivery/index.ts"],"sourcesContent":["import \"react\";\nimport e from \"prop-types\";\nimport { jsx as t, jsxs as n } from \"react/jsx-runtime\";\nimport { styled as r } from \"@mui/material/styles\";\n//#region src/correct-response-icon.tsx\nvar i = ({ bgFill: e, fgFill: r }) => /* @__PURE__ */ n(\"svg\", {\n\tpreserveAspectRatio: \"xMinYMin meet\",\n\tversion: \"1.1\",\n\tviewBox: \"-283 359 34 35\",\n\tstyle: { enableBackground: \"new -283 359 34 35\" },\n\tchildren: [\n\t\t/* @__PURE__ */ t(\"circle\", {\n\t\t\tcx: \"-266\",\n\t\t\tcy: \"375.9\",\n\t\t\tr: \"14\",\n\t\t\tfill: e\n\t\t}),\n\t\t/* @__PURE__ */ t(\"path\", {\n\t\t\td: \"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\\n 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\",\n\t\t\tfill: e\n\t\t}),\n\t\t/* @__PURE__ */ t(\"polygon\", {\n\t\t\tpoints: \"-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6\",\n\t\t\tfill: r\n\t\t})\n\t]\n});\ni.propTypes = {\n\tbgFill: e.string.isRequired,\n\tfgFill: e.string.isRequired\n};\nvar a = ({ bgFill: e, fgFill: r, borderFill: i }) => /* @__PURE__ */ n(\"svg\", {\n\tpreserveAspectRatio: \"xMinYMin meet\",\n\tversion: \"1.1\",\n\tviewBox: \"-129.5 127 34 35\",\n\tstyle: { enableBackground: \"new -129.5 127 34 35\" },\n\tchildren: [\n\t\t/* @__PURE__ */ t(\"path\", {\n\t\t\tstyle: {\n\t\t\t\tfill: \"#D0CAC5\",\n\t\t\t\tstroke: \"#E6E3E0\",\n\t\t\t\tstrokeWidth: .75,\n\t\t\t\tstrokeMiterlimit: 10\n\t\t\t},\n\t\t\td: \"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\\n C-97.4,153.5-104.3,160.4-112.9,160.4z\"\n\t\t}),\n\t\t/* @__PURE__ */ t(\"path\", {\n\t\t\tstyle: {\n\t\t\t\tfill: \"#B3ABA4\",\n\t\t\t\tstroke: \"#CDC7C2\",\n\t\t\t\tstrokeWidth: .5,\n\t\t\t\tstrokeMiterlimit: 10\n\t\t\t},\n\t\t\td: \"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\"\n\t\t}),\n\t\t/* @__PURE__ */ t(\"circle\", {\n\t\t\tcx: \"-114.2\",\n\t\t\tcy: \"143.5\",\n\t\t\tr: \"14\",\n\t\t\tfill: e\n\t\t}),\n\t\t/* @__PURE__ */ t(\"path\", {\n\t\t\td: \"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\\n 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\",\n\t\t\tfill: i\n\t\t}),\n\t\t/* @__PURE__ */ t(\"polygon\", {\n\t\t\tpoints: \"-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2\",\n\t\t\tfill: r\n\t\t})\n\t]\n});\na.propTypes = {\n\tbgFill: e.string.isRequired,\n\tfgFill: e.string.isRequired,\n\tborderFill: e.string.isRequired\n};\nvar o = r(\"div\")(({ size: e }) => ({\n\twidth: e || \"25px\",\n\theight: e || \"25px\"\n})), s = ({ open: e, size: n }) => /* @__PURE__ */ t(o, {\n\tsize: n,\n\tchildren: e ? /* @__PURE__ */ t(i, {\n\t\tbgFill: \"#bce2ff\",\n\t\tfgFill: \"#1a9cff\"\n\t}) : /* @__PURE__ */ t(a, {\n\t\tbgFill: \"white\",\n\t\tfgFill: \"#1a9cff\",\n\t\tborderFill: \"#bce2ff\"\n\t})\n});\ns.propTypes = {\n\topen: e.bool,\n\tsize: e.string\n}, s.defaultProps = { open: !1 };\n//#endregion\nexport { s as default };\n","import \"react\";\nimport e from \"prop-types\";\nimport { styled as t } from \"@mui/material/styles\";\nimport { jsx as n, jsxs as r } from \"react/jsx-runtime\";\nimport { color as i } from \"@pie-lib/render-ui\";\nimport a from \"@mui/icons-material/Check\";\nimport o from \"@mui/icons-material/Close\";\nimport s from \"@pie-lib/translator\";\n//#region src/key-legend.tsx\nvar c = t(\"div\")(({ theme: e }) => ({\n\tbackgroundColor: i.defaults.WHITE,\n\tpadding: e.spacing(2),\n\twidth: \"355px\",\n\tboxShadow: \"inset 0px 1px 5px 0px #9297A6\",\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\tgap: \"16px\"\n})), l = t(\"div\")(() => ({\n\tdisplay: \"flex\",\n\talignItems: \"center\",\n\tgap: \"12px\"\n})), u = t(\"div\")(({ theme: e }) => ({\n\tfontSize: e.typography.h6.fontSize,\n\tfontWeight: \"700\"\n})), d = t(\"div\")(() => ({ marginLeft: \"2px\" })), f = t(a)(({ theme: e }) => ({\n\tbackgroundColor: i.correct(),\n\tborderRadius: e.spacing(2),\n\tcolor: i.defaults.WHITE\n})), p = t(o)(({ theme: e }) => ({\n\tbackgroundColor: i.incorrectWithIcon(),\n\tborderRadius: e.spacing(2),\n\tcolor: i.defaults.WHITE\n})), m = t(\"div\")(() => ({\n\tmarginLeft: \"3px\",\n\tdisplay: \"flex\",\n\talignItems: \"center\",\n\tgap: \"12px\"\n})), { translator: h } = s, g = ({ language: e }) => /* @__PURE__ */ r(c, { children: [\n\t/* @__PURE__ */ n(u, { children: \"Key\" }),\n\t/* @__PURE__ */ r(l, { children: [/* @__PURE__ */ n(p, {}), /* @__PURE__ */ n(\"div\", { children: h.t(\"charting.keyLegend.incorrectAnswer\", { lng: e }) })] }),\n\t/* @__PURE__ */ r(l, { children: [/* @__PURE__ */ n(f, {}), /* @__PURE__ */ n(\"div\", { children: h.t(\"charting.keyLegend.correctAnswer\", { lng: e }) })] }),\n\t/* @__PURE__ */ r(m, { children: [/* @__PURE__ */ n(f, { fontSize: \"small\" }), /* @__PURE__ */ n(d, { children: h.t(\"charting.keyLegend.correctKeyAnswer\", { lng: e }) })] })\n] });\ng.propTypes = { language: e.string };\n//#endregion\nexport { g as default };\n","import { styled as e } from \"@mui/material/styles\";\nimport { CSSTransition as t } from \"react-transition-group\";\nimport { jsx as n } from \"react/jsx-runtime\";\nimport { useRef as r } from \"react\";\nimport i from \"prop-types\";\n//#region src/expander.tsx\nvar a = \"height ease-in 300ms, opacity ease-in 300ms\", o = e(\"div\")(() => ({\n\tposition: \"relative\",\n\theight: 0,\n\toverflow: \"hidden\",\n\tdisplay: \"flex\",\n\tvisibility: \"hidden\",\n\twidth: 0,\n\t\"&.enter\": {\n\t\ttransition: a,\n\t\topacity: 1,\n\t\theight: \"auto\",\n\t\twidth: \"auto\",\n\t\tvisibility: \"visible\",\n\t\tminHeight: \"25px\"\n\t},\n\t\"&.enter-done\": {\n\t\theight: \"auto\",\n\t\tvisibility: \"visible\",\n\t\twidth: \"auto\",\n\t\tminHeight: \"25px\"\n\t},\n\t\"&.exit\": {\n\t\ttransition: a,\n\t\topacity: 0,\n\t\theight: 0,\n\t\tvisibility: \"visible\",\n\t\twidth: 0\n\t},\n\t\"&.exit-done\": {\n\t\topacity: 0,\n\t\tvisibility: \"hidden\",\n\t\theight: 0,\n\t\twidth: 0\n\t}\n})), s = (e) => {\n\tlet { show: i, children: a, className: s } = e, c = r(null);\n\treturn /* @__PURE__ */ n(t, {\n\t\tnodeRef: c,\n\t\tin: i,\n\t\tappear: !0,\n\t\tmountOnEnter: !1,\n\t\ttimeout: 300,\n\t\tclassNames: {\n\t\t\tenter: \"enter\",\n\t\t\tenterDone: \"enter-done\",\n\t\t\texit: \"exit\",\n\t\t\texitDone: \"exit-done\"\n\t\t},\n\t\tchildren: /* @__PURE__ */ n(o, {\n\t\t\tref: c,\n\t\t\tclassName: s,\n\t\t\tchildren: a\n\t\t})\n\t});\n};\ns.propTypes = {\n\tshow: i.bool.isRequired,\n\tclassName: i.string,\n\tchildren: i.oneOfType([i.arrayOf(i.node), i.node]).isRequired\n};\n//#endregion\nexport { s as default };\n","import e from \"./expander.js\";\nimport { styled as t } from \"@mui/material/styles\";\nimport { CSSTransition as n } from \"react-transition-group\";\nimport { CorrectResponse as r } from \"@pie-lib/icons\";\nimport * as i from \"@pie-lib/render-ui\";\nimport { Readable as a, color as o } from \"@pie-lib/render-ui\";\nimport { jsx as s, jsxs as c } from \"react/jsx-runtime\";\nimport l from \"react\";\nimport u from \"prop-types\";\nimport d from \"@pie-lib/translator\";\n//#region src/index.tsx\nfunction f(e) {\n\treturn typeof e == \"function\" || typeof e == \"object\" && !!e && typeof e.$$typeof == \"symbol\";\n}\nfunction p(e, t) {\n\treturn !e || f(e) ? e : f(e.default) ? e.default : t && f(e[t]) ? e[t] : t && f(e[t]?.default) ? e[t].default : e;\n}\nvar m = p(a, \"Readable\") || p(_.Readable, \"Readable\"), h = i, g = h.default, _ = g && typeof g == \"object\" ? g : h, { translator: v } = d, y = {\n\tWebkitTouchCallout: \"none\",\n\tWebkitUserSelect: \"none\",\n\tKhtmlUserSelect: \"none\",\n\tMozUserSelect: \"none\",\n\tmsUserSelect: \"none\",\n\tuserSelect: \"none\"\n}, b = t(\"div\")(() => ({\n\twidth: \"100%\",\n\tcursor: \"pointer\"\n})), x = t(\"div\")(() => ({\n\tmargin: \"0 auto\",\n\ttextAlign: \"center\",\n\tdisplay: \"flex\"\n})), S = t(\"div\")(() => ({\n\twidth: \"fit-content\",\n\tminWidth: \"140px\",\n\talignSelf: \"center\",\n\tverticalAlign: \"middle\",\n\tcolor: `var(--correct-answer-toggle-label-color, ${o.text()})`,\n\tfontWeight: \"normal\",\n\t...y\n})), C = t(\"div\")(() => ({\n\tposition: \"absolute\",\n\twidth: \"25px\",\n\t\"&.enter\": { opacity: \"0\" },\n\t\"&.enter-active\": {\n\t\topacity: \"1\",\n\t\ttransition: \"opacity 0.3s ease-in\"\n\t},\n\t\"&.exit\": { opacity: \"1\" },\n\t\"&.exit-active\": {\n\t\topacity: \"0\",\n\t\ttransition: \"opacity 0.3s ease-in\"\n\t}\n})), w = t(\"div\")(() => ({\n\twidth: \"25px\",\n\tmarginRight: \"5px\",\n\tdisplay: \"flex\",\n\talignItems: \"center\"\n})), T = class t extends l.Component {\n\tstatic propTypes = {\n\t\tonToggle: u.func,\n\t\ttoggled: u.bool,\n\t\tshow: u.bool,\n\t\thideMessage: u.string,\n\t\tshowMessage: u.string,\n\t\tclassName: u.string,\n\t\tlanguage: u.string\n\t};\n\tstatic defaultProps = {\n\t\tshowMessage: \"Show correct answer\",\n\t\thideMessage: \"Hide correct answer\",\n\t\tshow: !1,\n\t\ttoggled: !1\n\t};\n\tconstructor(e) {\n\t\tsuper(e), this.state = { show: e.show }, this.openIconRef = l.createRef(), this.closedIconRef = l.createRef(), t.defaultProps = {\n\t\t\t...t.defaultProps,\n\t\t\tshowMessage: v.t(\"common:showCorrectAnswer\", { lng: e.language }),\n\t\t\thideMessage: v.t(\"common:hideCorrectAnswer\", { lng: e.language })\n\t\t};\n\t}\n\tonClick() {\n\t\tthis.props.onToggle(!this.props.toggled);\n\t}\n\tonTouch(e) {\n\t\te.preventDefault(), this.props.onToggle(!this.props.toggled);\n\t}\n\tUNSAFE_componentWillReceiveProps(e) {\n\t\tthis.setState({ show: e.show }), e.language !== this.props?.language && (t.defaultProps = {\n\t\t\t...t.defaultProps,\n\t\t\tshowMessage: v.t(\"common:showCorrectAnswer\", { lng: e.language }),\n\t\t\thideMessage: v.t(\"common:hideCorrectAnswer\", { lng: e.language })\n\t\t});\n\t}\n\trender() {\n\t\tlet { className: t, toggled: i, hideMessage: a, showMessage: o } = this.props;\n\t\treturn /* @__PURE__ */ s(b, {\n\t\t\tclassName: t,\n\t\t\tchildren: /* @__PURE__ */ s(e, {\n\t\t\t\tshow: this.state.show,\n\t\t\t\tchildren: /* @__PURE__ */ c(x, {\n\t\t\t\t\tonClick: this.onClick.bind(this),\n\t\t\t\t\tonTouchEnd: this.onTouch.bind(this),\n\t\t\t\t\tchildren: [/* @__PURE__ */ c(w, { children: [/* @__PURE__ */ s(n, {\n\t\t\t\t\t\tnodeRef: this.openIconRef,\n\t\t\t\t\t\ttimeout: 400,\n\t\t\t\t\t\tin: i,\n\t\t\t\t\t\texit: !i,\n\t\t\t\t\t\tclassNames: {\n\t\t\t\t\t\t\tenter: \"enter\",\n\t\t\t\t\t\t\tenterActive: \"enter-active\",\n\t\t\t\t\t\t\texit: \"exit\",\n\t\t\t\t\t\t\texitActive: \"exit-active\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\tchildren: /* @__PURE__ */ s(C, {\n\t\t\t\t\t\t\tref: this.openIconRef,\n\t\t\t\t\t\t\tchildren: /* @__PURE__ */ s(r, { open: i }, \"correct-open\")\n\t\t\t\t\t\t})\n\t\t\t\t\t}), /* @__PURE__ */ s(n, {\n\t\t\t\t\t\tnodeRef: this.closedIconRef,\n\t\t\t\t\t\ttimeout: 5e3,\n\t\t\t\t\t\tin: !i,\n\t\t\t\t\t\texit: i,\n\t\t\t\t\t\tclassNames: {\n\t\t\t\t\t\t\tenter: \"enter\",\n\t\t\t\t\t\t\tenterActive: \"enter-active\",\n\t\t\t\t\t\t\texit: \"exit\",\n\t\t\t\t\t\t\texitActive: \"exit-active\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\tchildren: /* @__PURE__ */ s(C, {\n\t\t\t\t\t\t\tref: this.closedIconRef,\n\t\t\t\t\t\t\tchildren: /* @__PURE__ */ s(r, { open: i }, \"correct-closed\")\n\t\t\t\t\t\t})\n\t\t\t\t\t})] }), /* @__PURE__ */ s(m, {\n\t\t\t\t\t\tfalse: !0,\n\t\t\t\t\t\tchildren: /* @__PURE__ */ s(S, {\n\t\t\t\t\t\t\t\"aria-hidden\": !this.state.show,\n\t\t\t\t\t\t\tchildren: i ? a : o\n\t\t\t\t\t\t})\n\t\t\t\t\t})]\n\t\t\t\t})\n\t\t\t})\n\t\t});\n\t}\n};\n//#endregion\nexport { T as CorrectAnswerToggle, T as default };\n","// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/charting/src/main.jsx\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@mui/material/styles';\nimport { color, Collapsible as CollapsibleImport, hasText, PreviewPrompt as PreviewPromptImport, UiLayout as UiLayoutImport, hasMedia } from '@pie-lib/render-ui';\n\nfunction isRenderableReactInteropType(value: any) {\n return (\n typeof value === 'function' ||\n (typeof value === 'object' && value !== null && typeof value.$$typeof === 'symbol')\n );\n}\n\nfunction unwrapReactInteropSymbol(maybeSymbol: any, namedExport?: string) {\n if (!maybeSymbol) return maybeSymbol;\n if (isRenderableReactInteropType(maybeSymbol)) return maybeSymbol;\n if (isRenderableReactInteropType(maybeSymbol.default)) return maybeSymbol.default;\n if (namedExport && isRenderableReactInteropType(maybeSymbol[namedExport])) {\n return maybeSymbol[namedExport];\n }\n if (namedExport && isRenderableReactInteropType(maybeSymbol[namedExport]?.default)) {\n return maybeSymbol[namedExport].default;\n }\n return maybeSymbol;\n}\nconst UiLayout = unwrapReactInteropSymbol(UiLayoutImport, 'UiLayout') || unwrapReactInteropSymbol(renderUi.UiLayout, 'UiLayout');\nconst PreviewPrompt = unwrapReactInteropSymbol(PreviewPromptImport, 'PreviewPrompt') || unwrapReactInteropSymbol(renderUi.PreviewPrompt, 'PreviewPrompt');\nconst Collapsible = unwrapReactInteropSymbol(CollapsibleImport, 'Collapsible') || unwrapReactInteropSymbol(renderUi.Collapsible, 'Collapsible');\nimport * as RenderUiNamespace from '@pie-lib/render-ui';\nconst renderUiNamespaceAny = RenderUiNamespace as any;\nconst renderUiDefaultMaybe = renderUiNamespaceAny['default'];\nconst renderUi =\n renderUiDefaultMaybe && typeof renderUiDefaultMaybe === 'object'\n ? renderUiDefaultMaybe\n : renderUiNamespaceAny;\nimport { Chart, chartTypes, KeyLegend } from '@pie-lib/charting';\nimport { isEqual } from '@pie-element/shared-lodash';\nimport CorrectAnswerToggle from '@pie-lib/correct-answer-toggle';\n\nconst StyledUiLayout: any = styled(UiLayout)({\n color: color.text(),\n backgroundColor: color.background(),\n overflowX: 'scroll',\n overflowY: 'hidden',\n});\n\nconst StyledChart: any = styled(Chart)(({ theme }) => ({\n marginTop: theme.spacing(2),\n marginBottom: theme.spacing(2),\n}));\n\nconst StyledCollapsible: any = styled(Collapsible)(({ theme }) => ({\n marginBottom: theme.spacing(2),\n}));\n\nexport class Main extends React.Component {\n static propTypes = {\n model: PropTypes.object.isRequired,\n onAnswersChange: PropTypes.func,\n categories: PropTypes.array,\n };\n\n constructor(props) {\n super(props);\n\n this.state = {\n categories: props.categories || props.model.data,\n showingCorrect: false,\n };\n }\n\n componentDidUpdate(prevProps) {\n if (!isEqual(prevProps.categories, this.props.categories)) {\n this.setState({ categories: this.props.categories });\n } else if (!isEqual(prevProps.model.data, this.props.model.data)) {\n this.setState({ categories: this.props.model.data });\n }\n }\n\n changeData = (data) =>\n this.setState(\n {\n categories: data,\n },\n () => this.props.onAnswersChange(data),\n );\n\n toggleCorrect = (showingCorrect) => this.setState({ showingCorrect });\n\n render() {\n const { categories, showingCorrect } = this.state;\n const { model } = this.props;\n const {\n teacherInstructions,\n prompt,\n chartType,\n size,\n domain,\n range,\n title,\n addCategoryEnabled,\n studentNewCategoryDefaultLabel,\n showToggle,\n rationale,\n correctAnswer,\n language,\n env,\n showKeyLegend,\n } = model;\n\n let { correctedAnswer, extraCSSRules } = model;\n\n const correctData = (correctAnswer?.data || []).map((data) => ({ ...data, interactive: false, editable: false }));\n const { mode } = env || {};\n // need to make labels disabled in view mode PD-3928\n if (mode === 'view') {\n correctedAnswer = (correctedAnswer || []).map((data) => ({ ...data, editable: false }));\n }\n\n const showRationale = model.rationale && (hasText(model.rationale) || hasMedia(model.rationale));\n const showTeacherInstructions =\n model.teacherInstructions && (hasText(model.teacherInstructions) || hasMedia(model.teacherInstructions));\n\n return (\n <StyledUiLayout extraCSSRules={extraCSSRules}>\n {showTeacherInstructions && (\n <StyledCollapsible\n labels={{\n hidden: 'Show Teacher Instructions',\n visible: 'Hide Teacher Instructions',\n }}\n >\n <PreviewPrompt prompt={teacherInstructions} />\n </StyledCollapsible>\n )}\n\n {prompt && <PreviewPrompt className=\"prompt\" prompt={prompt} />}\n\n <CorrectAnswerToggle\n show={showToggle}\n toggled={showingCorrect}\n onToggle={this.toggleCorrect}\n language={language}\n />\n\n {showingCorrect && showToggle ? (\n <StyledChart\n chartType={chartType}\n size={size}\n domain={domain}\n range={range}\n charts={[\n chartTypes.Bar(),\n chartTypes.Histogram(),\n chartTypes.LineDot(),\n chartTypes.LineCross(),\n chartTypes.DotPlot(),\n chartTypes.LinePlot(),\n ]}\n data={correctData || categories}\n title={title}\n onDataChange={this.changeData}\n addCategoryEnabled={false}\n categoryDefaultLabel={studentNewCategoryDefaultLabel}\n language={language}\n labelsPlaceholders={{}}\n />\n ) : (\n <StyledChart\n chartType={chartType}\n size={size}\n domain={domain}\n range={range}\n charts={[\n chartTypes.Bar(),\n chartTypes.Histogram(),\n chartTypes.LineDot(),\n chartTypes.LineCross(),\n chartTypes.DotPlot(),\n chartTypes.LinePlot(),\n ]}\n data={correctedAnswer || categories}\n title={title}\n onDataChange={this.changeData}\n addCategoryEnabled={addCategoryEnabled}\n categoryDefaultLabel={studentNewCategoryDefaultLabel}\n language={language}\n labelsPlaceholders={{}}\n correctData={showToggle ? correctData : undefined}\n />\n )}\n {!showingCorrect && showKeyLegend && <KeyLegend language={language}></KeyLegend>}\n {showRationale && (\n <Collapsible labels={{ hidden: 'Show Rationale', visible: 'Hide Rationale' }}>\n <PreviewPrompt prompt={rationale} />\n </Collapsible>\n )}\n </StyledUiLayout>\n );\n }\n}\n\nexport default Main;\n","//#region src/session-notifier.ts\nvar e = \"commitPendingSession\", t = /* @__PURE__ */ new WeakMap();\nfunction n(e, n) {\n\tlet r = t.get(e);\n\tr || (r = /* @__PURE__ */ new Set(), t.set(e, r)), r.add(n);\n}\nfunction r(t) {\n\treturn Object.getOwnPropertyDescriptor(t, e) !== void 0;\n}\nfunction i(t) {\n\tif (r(t)) return;\n\tlet n = t[e];\n\tObject.defineProperty(t, e, {\n\t\tvalue: () => {\n\t\t\tif (typeof n == \"function\") try {\n\t\t\t\tn.call(t);\n\t\t\t} catch {}\n\t\t\to(t);\n\t\t},\n\t\tconfigurable: !0,\n\t\tenumerable: !1,\n\t\twritable: !0\n\t});\n}\nfunction a(e, t, r = {}) {\n\tlet a = r.delayMs, o = typeof a == \"function\" ? a : () => a ?? 0, s = r.maxWaitMs, c = null, l = null, u = !1, d = () => {\n\t\tc !== null && (clearTimeout(c), c = null), l !== null && (clearTimeout(l), l = null);\n\t}, f = () => {\n\t\td(), u && (u = !1, t());\n\t}, p = {\n\t\tnotify() {\n\t\t\tu = !0, c !== null && clearTimeout(c), c = setTimeout(f, Math.max(0, o())), s !== void 0 && l === null && (l = setTimeout(f, Math.max(0, s)));\n\t\t},\n\t\tflush() {\n\t\t\tif (!u) {\n\t\t\t\td();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tf();\n\t\t\t} catch (e) {\n\t\t\t\tconsole.warn(\"[session-notifier] a committed session-changed dispatch threw\", e);\n\t\t\t}\n\t\t}\n\t};\n\treturn n(e, p), i(e), p;\n}\nfunction o(e) {\n\tlet n = t.get(e);\n\tif (n) for (let e of [...n]) e.flush();\n}\n//#endregion\n//#region src/index.ts\nvar s = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"model-set\";\n\t}\n\tconstructor(t, n, r) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tcomposed: !0,\n\t\t\tdetail: {\n\t\t\t\tcomplete: n,\n\t\t\t\tcomponent: t,\n\t\t\t\thasModel: r\n\t\t\t}\n\t\t}), this.component = t, this.complete = n;\n\t}\n}, c = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"session-changed\";\n\t}\n\tconstructor(t, n) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tcomposed: !0,\n\t\t\tdetail: {\n\t\t\t\tcomplete: n,\n\t\t\t\tcomponent: t\n\t\t\t}\n\t\t}), this.component = t, this.complete = n;\n\t}\n};\n//#endregion\nexport { s as ModelSetEvent, e as SESSION_COMMIT_METHOD, c as SessionChangedEvent, a as createSessionNotifier, o as flushSessionNotifiers };\n","// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/charting/src/index.js\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport Main from './main.js';\nimport { SessionChangedEvent, ModelSetEvent } from '@pie-element/shared-player-events';\nimport { renderMath } from '@pie-element/shared-math-rendering-mathjax';\n\nexport { Main as Component };\n\nexport default class Graphing extends HTMLElement {\n constructor() {\n super();\n this._root = null;\n this._mathObserver = null;\n this._mathRenderPending = false;\n }\n\n // The title and axis labels are injected synchronously via dangerouslySetInnerHTML,\n // but createRoot().render() commits asynchronously, so a queueMicrotask(renderMath)\n // would run before the LaTeX spans are in the DOM and leave raw LaTeX on first render.\n // Observing the DOM and typesetting after each commit keeps math in sync regardless of timing.\n _scheduleMathRender: any = () => {\n if (this._mathRenderPending) return;\n this._mathRenderPending = true;\n\n requestAnimationFrame(() => {\n if (this._mathObserver) {\n this._mathObserver.disconnect();\n }\n renderMath(this);\n this._mathRenderPending = false;\n setTimeout(() => {\n if (this._mathObserver) {\n this._mathObserver.observe(this, { childList: true, subtree: true });\n }\n }, 50);\n });\n };\n\n _initMathObserver() {\n if (this._mathObserver) return;\n this._mathObserver = new MutationObserver(this._scheduleMathRender);\n this._mathObserver.observe(this, { childList: true, subtree: true });\n }\n\n _disconnectMathObserver() {\n if (this._mathObserver) {\n this._mathObserver.disconnect();\n this._mathObserver = null;\n }\n }\n\n set model(m) {\n this._model = m;\n\n if (this._session && this.isComplete(this._session.answer)) {\n this.dispatchEvent(new ModelSetEvent(this.tagName.toLowerCase(), true, !!this._model));\n } else {\n this.dispatchEvent(new ModelSetEvent(this.tagName.toLowerCase(), false, !!this._model));\n }\n\n this._render();\n }\n\n set session(s) {\n this._session = s;\n this._render();\n }\n\n get session() {\n return this._session;\n }\n\n connectedCallback() {\n this._initMathObserver();\n this._render();\n }\n\n isComplete = (answer) => Array.isArray(answer) && answer.length > 0;\n\n changeAnswers: any = (answer) => {\n this._session.answer = answer;\n\n this.dispatchEvent(new SessionChangedEvent(this.tagName.toLowerCase(), this.isComplete(this._session.answer)));\n\n this._render();\n };\n\n _render() {\n if (!this._model || !this._session) {\n return;\n }\n\n this._initMathObserver();\n\n const modelClone = {\n ...this._model,\n data: this._model.data ? [...this._model.data] : this._model.data,\n };\n\n const el = React.createElement(Main, {\n model: modelClone,\n categories: this._session.answer,\n onAnswersChange: this.changeAnswers,\n });\n\n if (!this._root) {\n this._root = createRoot(this);\n }\n this._root.render(el);\n }\n\n disconnectedCallback() {\n this._disconnectMathObserver();\n if (this._root) {\n this._root.unmount();\n this._root = null;\n }\n }\n}\n"],"mappings":";;;;;;mCAKI,KAAK,EAAE,QAAQ,GAAG,QAAQ,QAAwB,kBAAE,OAAO;CAC9D,qBAAqB;CACrB,SAAS;CACT,SAAS;CACT,OAAO,EAAE,kBAAkB,qBAAqB;CAChD,UAAU;EACO,kBAAE,UAAU;GAC3B,IAAI;GACJ,IAAI;GACJ,GAAG;GACH,MAAM;EACP,CAAC;EACe,kBAAE,QAAQ;GACzB,GAAG;GACH,MAAM;EACP,CAAC;EACe,kBA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