@pie-element/multi-trait-rubric 9.0.2-next.20261007003844 → 9.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{Typography-DKQL_lzf.js → Typography-7pyD6Kbe.js} +2565 -1642
- package/dist/browser/Typography-7pyD6Kbe.js.map +1 -0
- package/dist/browser/author/index.js +1227 -1227
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/delivery/index.js +83 -83
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/browser/editor-runtime/{Typography-BNk5ubng.js → Typography-9Zm_a8OS.js} +2597 -1674
- package/dist/browser/editor-runtime/Typography-9Zm_a8OS.js.map +1 -0
- package/dist/browser/editor-runtime/author/index.js +1259 -1259
- package/dist/browser/editor-runtime/author/index.js.map +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +82 -82
- package/dist/browser/editor-runtime/delivery/index.js.map +1 -1
- package/dist/browser/{mathjax-BKrHE4xs-CO0g28Yn.js → editor-runtime/mathjax-BKrHE4xs-DJZ7oXS7.js} +2 -2
- package/dist/browser/editor-runtime/{mathjax-BKrHE4xs-CUxVqXGp.js.map → mathjax-BKrHE4xs-DJZ7oXS7.js.map} +1 -1
- package/dist/browser/{editor-runtime/mathjax-BKrHE4xs-CUxVqXGp.js → mathjax-BKrHE4xs-Bu6C_Knc.js} +12 -12
- package/dist/browser/{mathjax-BKrHE4xs-CO0g28Yn.js.map → mathjax-BKrHE4xs-Bu6C_Knc.js.map} +1 -1
- package/dist/delivery/scale.js +40 -39
- package/dist/delivery/trait.js +16 -15
- package/dist/index.iife.js +48 -46
- package/package.json +12 -11
- package/dist/browser/Typography-DKQL_lzf.js.map +0 -1
- package/dist/browser/editor-runtime/Typography-BNk5ubng.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import { createRoot as
|
|
1
|
+
import { At as e, C as t, Dt as n, It as r, N as i, Ot as a, St as o, T as s, Tt as c, U as l, Z as u, _ as d, gt as f, i as p, kt as m, mt as h, n as g, pt as _, r as v, t as y, ut as b, w as x, x as S, yt as C, zt as w } from "../Typography-7pyD6Kbe.js";
|
|
2
|
+
import * as T from "react";
|
|
3
|
+
import E from "react";
|
|
4
|
+
import { createRoot as ee } from "react-dom/client";
|
|
5
5
|
import { jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
6
6
|
//#region ../../shared/player-events/dist/index.js
|
|
7
7
|
var k = class e extends CustomEvent {
|
|
@@ -37,18 +37,18 @@ var k = class e extends CustomEvent {
|
|
|
37
37
|
});
|
|
38
38
|
//#endregion
|
|
39
39
|
//#region src/delivery/trait.tsx
|
|
40
|
-
var A = /* @__PURE__ */
|
|
40
|
+
var A = /* @__PURE__ */ w(r(), 1), j = f("td")({
|
|
41
41
|
color: h.primaryDark(),
|
|
42
42
|
verticalAlign: "middle"
|
|
43
|
-
}), M =
|
|
43
|
+
}), M = f("div")({
|
|
44
44
|
color: h.secondaryBackground(),
|
|
45
45
|
textAlign: "center"
|
|
46
46
|
}), N = (e) => {
|
|
47
47
|
let { trait: t, traitIndex: n, scaleIndex: r, showStandards: i, showDescription: a, scorePointsValues: o } = e, { name: s, standards: c, scorePointsDescriptors: l, description: u } = t || {};
|
|
48
48
|
return /* @__PURE__ */ O("tr", { children: [
|
|
49
|
-
/* @__PURE__ */ D(j, { children: /* @__PURE__ */ D("div", { dangerouslySetInnerHTML: { __html: s } }) }),
|
|
50
|
-
i ? /* @__PURE__ */ D("td", { children: /* @__PURE__ */ D("div", { dangerouslySetInnerHTML: { __html: c.join(",") } }) }) : null,
|
|
51
|
-
a ? /* @__PURE__ */ D("td", { children: /* @__PURE__ */ D("div", { dangerouslySetInnerHTML: { __html: u } }) }) : null,
|
|
49
|
+
/* @__PURE__ */ D(j, { children: /* @__PURE__ */ D("div", { dangerouslySetInnerHTML: { __html: _(s) } }) }),
|
|
50
|
+
i ? /* @__PURE__ */ D("td", { children: /* @__PURE__ */ D("div", { dangerouslySetInnerHTML: { __html: _(c.join(",")) } }) }) : null,
|
|
51
|
+
a ? /* @__PURE__ */ D("td", { children: /* @__PURE__ */ D("div", { dangerouslySetInnerHTML: { __html: _(u) } }) }) : null,
|
|
52
52
|
o && o.map((e, t) => {
|
|
53
53
|
let n;
|
|
54
54
|
try {
|
|
@@ -56,7 +56,7 @@ var A = /* @__PURE__ */ o(r(), 1), j = d("td")({
|
|
|
56
56
|
} catch {
|
|
57
57
|
n = "";
|
|
58
58
|
}
|
|
59
|
-
return /* @__PURE__ */ D("td", { children: n ? /* @__PURE__ */ D("div", { dangerouslySetInnerHTML: { __html: n } }) : /* @__PURE__ */ D(M, { dangerouslySetInnerHTML: { __html: "No Description" } }) }, `table-cell-${t}`);
|
|
59
|
+
return /* @__PURE__ */ D("td", { children: n ? /* @__PURE__ */ D("div", { dangerouslySetInnerHTML: { __html: _(n) } }) : /* @__PURE__ */ D(M, { dangerouslySetInnerHTML: { __html: "No Description" } }) }, `table-cell-${t}`);
|
|
60
60
|
})
|
|
61
61
|
] }, `scale-${r}-trait-${n}`);
|
|
62
62
|
};
|
|
@@ -75,13 +75,13 @@ N.propTypes = {
|
|
|
75
75
|
};
|
|
76
76
|
//#endregion
|
|
77
77
|
//#region src/delivery/scale.tsx
|
|
78
|
-
var P =
|
|
78
|
+
var P = f("div")({
|
|
79
79
|
display: "flex",
|
|
80
80
|
position: "relative"
|
|
81
|
-
}), F =
|
|
81
|
+
}), F = f("div")({
|
|
82
82
|
width: "100%",
|
|
83
83
|
overflow: "auto"
|
|
84
|
-
}), I =
|
|
84
|
+
}), I = f("table")(({ theme: e }) => ({
|
|
85
85
|
borderSpacing: 0,
|
|
86
86
|
marginBottom: e.spacing(2),
|
|
87
87
|
borderRadius: "4px",
|
|
@@ -105,12 +105,12 @@ var P = d("div")({
|
|
|
105
105
|
padding: `${e.spacing(2)} ${e.spacing(1)}`,
|
|
106
106
|
verticalAlign: "top"
|
|
107
107
|
}
|
|
108
|
-
})),
|
|
108
|
+
})), L = f("table")({ "& td": {
|
|
109
109
|
border: 0,
|
|
110
110
|
padding: 0,
|
|
111
111
|
textAlign: "center",
|
|
112
112
|
minWidth: "200px"
|
|
113
|
-
} }),
|
|
113
|
+
} }), R = f("div")({ marginBottom: "4px" }), z = f("td")({ fontWeight: "normal" }), B = ({ show: e, onClick: t, extraStyles: n, children: r }) => /* @__PURE__ */ D("div", {
|
|
114
114
|
style: {
|
|
115
115
|
height: "calc(100% - 1px)",
|
|
116
116
|
top: "1px",
|
|
@@ -126,13 +126,13 @@ var P = d("div")({
|
|
|
126
126
|
onClick: t,
|
|
127
127
|
children: r
|
|
128
128
|
});
|
|
129
|
-
|
|
129
|
+
B.propTypes = {
|
|
130
130
|
show: A.default.bool,
|
|
131
131
|
onClick: A.default.func,
|
|
132
132
|
extraStyles: A.default.object,
|
|
133
133
|
children: A.default.object
|
|
134
134
|
};
|
|
135
|
-
var
|
|
135
|
+
var V = class extends E.Component {
|
|
136
136
|
state = {};
|
|
137
137
|
componentDidMount() {
|
|
138
138
|
this.tableWrapper && this.tableWrapper.offsetWidth < this.tableWrapper.scrollWidth && this.setState({ showRight: !0 });
|
|
@@ -151,7 +151,7 @@ var z = class extends T.Component {
|
|
|
151
151
|
});
|
|
152
152
|
};
|
|
153
153
|
render() {
|
|
154
|
-
let { showRight: e, showLeft: t } = this.state, { scale: n, scaleIndex: r, showDescription: i, showPointsLabels: a, showStandards: o, arrowsDisabled: s } = this.props, { excludeZero: c, maxPoints: l, traitLabel: u, traits: d, scorePointsLabels: f } = n || {}, p = [],
|
|
154
|
+
let { showRight: e, showLeft: t } = this.state, { scale: n, scaleIndex: r, showDescription: i, showPointsLabels: a, showStandards: o, arrowsDisabled: s } = this.props, { excludeZero: c, maxPoints: l, traitLabel: u, traits: d, scorePointsLabels: f } = n || {}, p = [], m, y, b;
|
|
155
155
|
try {
|
|
156
156
|
for (let e = l; +(e >= c); --e) p.push(e);
|
|
157
157
|
let { traitStandards: e, traitDescriptions: t } = d.reduce((e, t) => ({
|
|
@@ -161,19 +161,19 @@ var z = class extends T.Component {
|
|
|
161
161
|
traitStandards: [],
|
|
162
162
|
traitDescriptions: []
|
|
163
163
|
});
|
|
164
|
-
|
|
164
|
+
m = i && t.length, y = a && f.length, b = o && e.length;
|
|
165
165
|
} catch {
|
|
166
|
-
|
|
166
|
+
m = !1, y = !1, b = !1;
|
|
167
167
|
}
|
|
168
168
|
return /* @__PURE__ */ O(P, { children: [
|
|
169
|
-
/* @__PURE__ */ D(
|
|
169
|
+
/* @__PURE__ */ D(B, {
|
|
170
170
|
show: t && !s,
|
|
171
171
|
onClick: this.scrollLeft,
|
|
172
172
|
extraStyles: {
|
|
173
173
|
left: 0,
|
|
174
174
|
background: `linear-gradient(to right, white, ${h.background()})`
|
|
175
175
|
},
|
|
176
|
-
children: /* @__PURE__ */ D(
|
|
176
|
+
children: /* @__PURE__ */ D(v, {})
|
|
177
177
|
}),
|
|
178
178
|
/* @__PURE__ */ O(F, {
|
|
179
179
|
ref: (e) => {
|
|
@@ -186,9 +186,9 @@ var z = class extends T.Component {
|
|
|
186
186
|
});
|
|
187
187
|
},
|
|
188
188
|
children: [s && (e || t) ? /* @__PURE__ */ D("div", { children: "The item is too large to fit in print mode." }) : null, /* @__PURE__ */ O(I, { children: [/* @__PURE__ */ D("thead", { children: /* @__PURE__ */ O("tr", { children: [
|
|
189
|
-
/* @__PURE__ */ D("th", { children: /* @__PURE__ */ D("div", { dangerouslySetInnerHTML: { __html: u } }) }),
|
|
190
|
-
|
|
191
|
-
|
|
189
|
+
/* @__PURE__ */ D("th", { children: /* @__PURE__ */ D("div", { dangerouslySetInnerHTML: { __html: _(u) } }) }),
|
|
190
|
+
b ? /* @__PURE__ */ D("th", { children: /* @__PURE__ */ D("div", { children: "Standard(s)" }) }) : null,
|
|
191
|
+
m ? /* @__PURE__ */ D("th", { children: /* @__PURE__ */ D("div", { children: "Description" }) }) : null,
|
|
192
192
|
p && p.map((e, t) => {
|
|
193
193
|
let n = "";
|
|
194
194
|
try {
|
|
@@ -196,31 +196,31 @@ var z = class extends T.Component {
|
|
|
196
196
|
} catch {
|
|
197
197
|
n = "";
|
|
198
198
|
}
|
|
199
|
-
return /* @__PURE__ */ D("th", { children: /* @__PURE__ */ D(
|
|
199
|
+
return /* @__PURE__ */ D("th", { children: /* @__PURE__ */ D(L, { children: /* @__PURE__ */ O("thead", { children: [y ? /* @__PURE__ */ D("tr", { children: /* @__PURE__ */ D("td", { children: /* @__PURE__ */ D(R, { dangerouslySetInnerHTML: { __html: _(n) } }) }) }) : null, /* @__PURE__ */ D("tr", { children: /* @__PURE__ */ D(z, { children: e === 1 ? `${e} point` : `${e} points` }) })] }) }) }, `table-header-${t}`);
|
|
200
200
|
})
|
|
201
201
|
] }) }), /* @__PURE__ */ D("tbody", { children: d && d.map((e, t) => /* @__PURE__ */ D(N, {
|
|
202
202
|
trait: e,
|
|
203
203
|
traitIndex: t,
|
|
204
|
-
showDescription: !!
|
|
205
|
-
showStandards: !!
|
|
204
|
+
showDescription: !!m,
|
|
205
|
+
showStandards: !!b,
|
|
206
206
|
scaleIndex: r,
|
|
207
207
|
scorePointsValues: p,
|
|
208
208
|
excludeZero: c
|
|
209
209
|
}, `trait_${r}_${t}`)) })] }, `scale-${r}`)]
|
|
210
210
|
}),
|
|
211
|
-
/* @__PURE__ */ D(
|
|
211
|
+
/* @__PURE__ */ D(B, {
|
|
212
212
|
show: e && !s,
|
|
213
213
|
onClick: this.scrollRight,
|
|
214
214
|
extraStyles: {
|
|
215
215
|
right: 0,
|
|
216
216
|
background: `linear-gradient(to left, white, ${h.background()})`
|
|
217
217
|
},
|
|
218
|
-
children: /* @__PURE__ */ D(
|
|
218
|
+
children: /* @__PURE__ */ D(g, {})
|
|
219
219
|
})
|
|
220
220
|
] });
|
|
221
221
|
}
|
|
222
222
|
};
|
|
223
|
-
|
|
223
|
+
V.propTypes = {
|
|
224
224
|
scaleIndex: A.default.number,
|
|
225
225
|
scale: A.default.shape({
|
|
226
226
|
excludeZero: A.default.bool,
|
|
@@ -241,25 +241,25 @@ z.propTypes = {
|
|
|
241
241
|
};
|
|
242
242
|
//#endregion
|
|
243
243
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Link/linkClasses.js
|
|
244
|
-
function
|
|
245
|
-
return
|
|
244
|
+
function H(e) {
|
|
245
|
+
return a("MuiLink", e);
|
|
246
246
|
}
|
|
247
|
-
var
|
|
247
|
+
var U = n("MuiLink", [
|
|
248
248
|
"root",
|
|
249
249
|
"underlineNone",
|
|
250
250
|
"underlineHover",
|
|
251
251
|
"underlineAlways",
|
|
252
252
|
"button",
|
|
253
253
|
"focusVisible"
|
|
254
|
-
]),
|
|
255
|
-
let
|
|
256
|
-
if ("colorSpace" in
|
|
257
|
-
let
|
|
258
|
-
return
|
|
254
|
+
]), W = ({ theme: t, ownerState: n }) => {
|
|
255
|
+
let r = n.color;
|
|
256
|
+
if ("colorSpace" in t && t.colorSpace) {
|
|
257
|
+
let i = e(t, `palette.${r}.main`) || e(t, `palette.${r}`) || n.color;
|
|
258
|
+
return t.alpha(i, .4);
|
|
259
259
|
}
|
|
260
|
-
let
|
|
261
|
-
return "vars" in
|
|
262
|
-
},
|
|
260
|
+
let i = e(t, `palette.${r}.main`, !1) || e(t, `palette.${r}`, !1) || n.color, a = e(t, `palette.${r}.mainChannel`) || e(t, `palette.${r}Channel`);
|
|
261
|
+
return "vars" in t && a ? `rgba(${a} / 0.4)` : c(i, .4);
|
|
262
|
+
}, G = {
|
|
263
263
|
primary: !0,
|
|
264
264
|
secondary: !0,
|
|
265
265
|
error: !0,
|
|
@@ -269,26 +269,26 @@ var V = n("MuiLink", [
|
|
|
269
269
|
textPrimary: !0,
|
|
270
270
|
textSecondary: !0,
|
|
271
271
|
textDisabled: !0
|
|
272
|
-
},
|
|
272
|
+
}, K = (e) => {
|
|
273
273
|
let { classes: t, component: n, focusVisible: r, underline: i } = e;
|
|
274
|
-
return
|
|
274
|
+
return o({ root: [
|
|
275
275
|
"root",
|
|
276
|
-
`underline${
|
|
276
|
+
`underline${l(i)}`,
|
|
277
277
|
n === "button" && "button",
|
|
278
278
|
r && "focusVisible"
|
|
279
|
-
] },
|
|
280
|
-
},
|
|
279
|
+
] }, H, t);
|
|
280
|
+
}, q = f(y, {
|
|
281
281
|
name: "MuiLink",
|
|
282
282
|
slot: "Root",
|
|
283
283
|
overridesResolver: (e, t) => {
|
|
284
284
|
let { ownerState: n } = e;
|
|
285
285
|
return [
|
|
286
286
|
t.root,
|
|
287
|
-
t[`underline${
|
|
287
|
+
t[`underline${l(n.underline)}`],
|
|
288
288
|
n.component === "button" && t.button
|
|
289
289
|
];
|
|
290
290
|
}
|
|
291
|
-
})(
|
|
291
|
+
})(u(({ theme: e }) => ({ variants: [
|
|
292
292
|
{
|
|
293
293
|
props: { underline: "none" },
|
|
294
294
|
style: { textDecoration: "none" }
|
|
@@ -360,53 +360,53 @@ var V = n("MuiLink", [
|
|
|
360
360
|
MozAppearance: "none",
|
|
361
361
|
WebkitAppearance: "none",
|
|
362
362
|
"&::-moz-focus-inner": { borderStyle: "none" },
|
|
363
|
-
[`&.${
|
|
363
|
+
[`&.${U.focusVisible}`]: { outline: "auto" }
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
] }))),
|
|
367
|
-
let r =
|
|
368
|
-
props:
|
|
366
|
+
] }))), te = /*#__PURE__*/ T.forwardRef(function(e, n) {
|
|
367
|
+
let r = b({
|
|
368
|
+
props: e,
|
|
369
369
|
name: "MuiLink"
|
|
370
|
-
}), i =
|
|
371
|
-
e
|
|
372
|
-
},
|
|
373
|
-
e
|
|
374
|
-
},
|
|
370
|
+
}), i = C(), { className: a, color: o = "primary", component: s = "a", onBlur: c, onFocus: l, TypographyClasses: u, underline: d = "always", variant: f = "inherit", sx: p, ...h } = r, [g, _] = T.useState(!1), v = (e) => {
|
|
371
|
+
t(e.target) || _(!1), c && c(e);
|
|
372
|
+
}, y = (e) => {
|
|
373
|
+
t(e.target) && _(!0), l && l(e);
|
|
374
|
+
}, x = {
|
|
375
375
|
...r,
|
|
376
|
-
color:
|
|
377
|
-
component:
|
|
376
|
+
color: o,
|
|
377
|
+
component: s,
|
|
378
378
|
focusVisible: g,
|
|
379
|
-
underline:
|
|
380
|
-
variant:
|
|
379
|
+
underline: d,
|
|
380
|
+
variant: f
|
|
381
381
|
};
|
|
382
|
-
return /*#__PURE__*/ D(
|
|
383
|
-
color:
|
|
384
|
-
className:
|
|
385
|
-
classes:
|
|
386
|
-
component:
|
|
387
|
-
onBlur:
|
|
388
|
-
onFocus:
|
|
382
|
+
return /*#__PURE__*/ D(q, {
|
|
383
|
+
color: o,
|
|
384
|
+
className: m(K(x).root, a),
|
|
385
|
+
classes: u,
|
|
386
|
+
component: s,
|
|
387
|
+
onBlur: v,
|
|
388
|
+
onFocus: y,
|
|
389
389
|
ref: n,
|
|
390
|
-
ownerState:
|
|
391
|
-
variant:
|
|
390
|
+
ownerState: x,
|
|
391
|
+
variant: f,
|
|
392
392
|
...h,
|
|
393
|
-
sx: [...
|
|
393
|
+
sx: [...G[o] === void 0 ? [{ color: o }] : [], ...Array.isArray(p) ? p : [p]],
|
|
394
394
|
style: {
|
|
395
395
|
...h.style,
|
|
396
|
-
...
|
|
396
|
+
...d === "always" && o !== "inherit" && !G[o] && { "--Link-underlineColor": W({
|
|
397
397
|
theme: i,
|
|
398
|
-
ownerState:
|
|
398
|
+
ownerState: x
|
|
399
399
|
}) }
|
|
400
400
|
}
|
|
401
401
|
});
|
|
402
|
-
}), { translator:
|
|
402
|
+
}), { translator: ne } = x;
|
|
403
403
|
function J(e) {
|
|
404
404
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
405
405
|
}
|
|
406
406
|
function Y(e, t) {
|
|
407
407
|
return !e || J(e) ? e : J(e.default) ? e.default : t && J(e[t]) ? e[t] : t && J(e[t]?.default) ? e[t].default : e;
|
|
408
408
|
}
|
|
409
|
-
var X = Y(
|
|
409
|
+
var X = Y(d, "UiLayout") || Y(re.UiLayout, "UiLayout"), Z = p, Q = Z.default, re = Q && typeof Q == "object" ? Q : Z, $ = class extends E.Component {
|
|
410
410
|
constructor(e) {
|
|
411
411
|
super(e), this.state = { rubricOpen: !1 }, this.toggleRubric = this.toggleRubric.bind(this);
|
|
412
412
|
}
|
|
@@ -426,7 +426,7 @@ var X = Y(u, "UiLayout") || Y(ne.UiLayout, "UiLayout"), Z = f, Q = Z.default, ne
|
|
|
426
426
|
children: [r ? /* @__PURE__ */ D("div", {
|
|
427
427
|
style: { marginBottom: "16px" },
|
|
428
428
|
children: "* Half-point or in-between scores are permitted under this rubric."
|
|
429
|
-
}) : null, a.map((e, t) => /* @__PURE__ */ D(
|
|
429
|
+
}) : null, a.map((e, t) => /* @__PURE__ */ D(V, {
|
|
430
430
|
scale: e,
|
|
431
431
|
scaleIndex: t,
|
|
432
432
|
showPointsLabels: s,
|
|
@@ -441,7 +441,7 @@ var X = Y(u, "UiLayout") || Y(ne.UiLayout, "UiLayout"), Z = f, Q = Z.default, ne
|
|
|
441
441
|
color: h.text(),
|
|
442
442
|
backgroundColor: h.background()
|
|
443
443
|
},
|
|
444
|
-
children: [/* @__PURE__ */ D(
|
|
444
|
+
children: [/* @__PURE__ */ D(te, {
|
|
445
445
|
component: "button",
|
|
446
446
|
type: "button",
|
|
447
447
|
"aria-expanded": this.state.rubricOpen,
|
|
@@ -450,7 +450,7 @@ var X = Y(u, "UiLayout") || Y(ne.UiLayout, "UiLayout"), Z = f, Q = Z.default, ne
|
|
|
450
450
|
minHeight: "24px"
|
|
451
451
|
},
|
|
452
452
|
onClick: this.toggleRubric,
|
|
453
|
-
children:
|
|
453
|
+
children: ne.t(this.state.rubricOpen ? "rubric.hideRubric" : "rubric.showRubric", { lng: e.language })
|
|
454
454
|
}), /* @__PURE__ */ D(i, {
|
|
455
455
|
style: { marginTop: "16px" },
|
|
456
456
|
in: this.state.rubricOpen,
|
|
@@ -488,7 +488,7 @@ $.propTypes = {
|
|
|
488
488
|
};
|
|
489
489
|
//#endregion
|
|
490
490
|
//#region src/delivery/index.ts
|
|
491
|
-
var
|
|
491
|
+
var ie = class extends HTMLElement {
|
|
492
492
|
constructor() {
|
|
493
493
|
super(), this._model = {}, this._session = null, this._root = null, this._mathObserver = null, this._mathRenderPending = !1;
|
|
494
494
|
}
|
|
@@ -525,17 +525,17 @@ var re = class extends HTMLElement {
|
|
|
525
525
|
}
|
|
526
526
|
_render() {
|
|
527
527
|
this._initMathObserver();
|
|
528
|
-
let e =
|
|
528
|
+
let e = E.createElement($, {
|
|
529
529
|
model: this._model,
|
|
530
530
|
session: this._session
|
|
531
531
|
});
|
|
532
|
-
this._root ||=
|
|
532
|
+
this._root ||= ee(this), this._root.render(e);
|
|
533
533
|
}
|
|
534
534
|
disconnectedCallback() {
|
|
535
535
|
this._disconnectMathObserver(), this._root &&= (this._root.unmount(), null);
|
|
536
536
|
}
|
|
537
537
|
};
|
|
538
538
|
//#endregion
|
|
539
|
-
export {
|
|
539
|
+
export { ie as default };
|
|
540
540
|
|
|
541
541
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["capitalize","React"],"sources":["../../../../../shared/player-events/dist/index.js","../../../src/delivery/trait.tsx","../../../src/delivery/scale.tsx","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Link/linkClasses.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Link/getTextDecoration.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Link/Link.js","../../../src/delivery/main.tsx","../../../src/delivery/index.ts"],"sourcesContent":["//#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\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@mui/material/styles';\nimport { color } from '@pie-lib/render-ui';\n\nconst TraitName: any = styled('td')({\n color: color.primaryDark(),\n verticalAlign: 'middle',\n});\n\nconst NoDescription: any = styled('div')({\n color: color.secondaryBackground(),\n textAlign: 'center',\n});\n\nconst Trait = (props) => {\n const { trait, traitIndex, scaleIndex, showStandards, showDescription, scorePointsValues } = props;\n const { name, standards, scorePointsDescriptors, description } = trait || {};\n\n return (\n <tr key={`scale-${scaleIndex}-trait-${traitIndex}`}>\n <TraitName>\n <div dangerouslySetInnerHTML={{ __html: name }} />\n </TraitName>\n\n {showStandards ? (\n <td>\n <div dangerouslySetInnerHTML={{ __html: standards.join(',') }} />\n </td>\n ) : null}\n\n {showDescription ? (\n <td>\n <div dangerouslySetInnerHTML={{ __html: description }} />\n </td>\n ) : null}\n\n {scorePointsValues &&\n scorePointsValues.map((scorePointValue, index) => {\n let scoreDescriptor;\n\n try {\n scoreDescriptor = scorePointsDescriptors[scorePointsValues.length - index - 1] || '';\n } catch (e) {\n scoreDescriptor = '';\n }\n\n return (\n <td key={`table-cell-${index}`}>\n {!scoreDescriptor ? (\n <NoDescription dangerouslySetInnerHTML={{ __html: 'No Description' }} />\n ) : (\n <div dangerouslySetInnerHTML={{ __html: scoreDescriptor }} />\n )}\n </td>\n );\n })}\n </tr>\n );\n};\n\nTrait.propTypes = {\n showStandards: PropTypes.bool,\n showDescription: PropTypes.bool,\n scorePointsValues: PropTypes.arrayOf(PropTypes.number),\n scaleIndex: PropTypes.number,\n traitIndex: PropTypes.number,\n trait: PropTypes.shape({\n name: PropTypes.string,\n standards: PropTypes.arrayOf(PropTypes.string),\n scorePointsDescriptors: PropTypes.arrayOf(PropTypes.string),\n description: PropTypes.string,\n }),\n};\n\nexport default Trait;\n","// @ts-nocheck\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@mui/material/styles';\nimport { color } from '@pie-lib/render-ui';\nimport Trait from './trait.js';\nimport ArrowBackIosIcon from '@mui/icons-material/ArrowBackIos';\nimport ArrowForwardIosIcon from '@mui/icons-material/ArrowForwardIos';\n\nconst Wrapper: any = styled('div')({\n display: 'flex',\n position: 'relative',\n});\n\nconst TableWrapper: any = styled('div')({\n width: '100%',\n overflow: 'auto',\n});\n\nconst Table: any = styled('table')(({ theme }) => ({\n borderSpacing: 0,\n marginBottom: theme.spacing(2),\n borderRadius: '4px',\n color: color.text(),\n fontSize: theme.typography.fontSize,\n lineHeight: '16px',\n overflow: 'unset',\n\n '& ul, ol': {\n marginBlockStart: 0,\n paddingInlineStart: theme.spacing(2),\n },\n\n '& th': {\n padding: theme.spacing(2),\n textAlign: 'left',\n backgroundColor: color.secondaryBackground(),\n verticalAlign: 'bottom',\n },\n\n '& th div': {\n width: '200px',\n },\n\n '& td': {\n width: '200px',\n padding: `${theme.spacing(2)} ${theme.spacing(1)}`,\n verticalAlign: 'top',\n },\n}));\n\nconst ScorePointHeaderTable: any = styled('table')({\n '& td': {\n border: 0,\n padding: 0,\n textAlign: 'center',\n minWidth: '200px',\n },\n});\n\nconst PointLabel: any = styled('div')({\n marginBottom: '4px',\n});\n\nconst ScorePointValue: any = styled('td')({\n fontWeight: 'normal',\n});\n\nconst ArrowContainer = ({ show, onClick, extraStyles, children }) => (\n <div\n style={{\n height: 'calc(100% - 1px)',\n top: '1px',\n display: show ? 'flex' : 'none',\n width: '50px',\n margin: 'auto',\n position: 'absolute',\n alignItems: 'center',\n justifyContent: 'center',\n cursor: 'pointer',\n ...extraStyles,\n }}\n onClick={onClick}\n >\n {children}\n </div>\n);\n\nArrowContainer.propTypes = {\n show: PropTypes.bool,\n onClick: PropTypes.func,\n extraStyles: PropTypes.object,\n children: PropTypes.object,\n};\n\nclass Scale extends React.Component {\n state = {};\n\n componentDidMount() {\n if (this.tableWrapper) {\n if (this.tableWrapper.offsetWidth < this.tableWrapper.scrollWidth) {\n this.setState({ showRight: true });\n }\n }\n }\n\n scrollLeft: any = () => {\n this.tableWrapper.scrollLeft -= this.tableWrapper.offsetWidth / 2;\n\n this.setState({\n showRight: this.tableWrapper.scrollLeft < this.tableWrapper.scrollWidth,\n showLeft: this.tableWrapper.scrollLeft < this.tableWrapper.scrollWidth && this.tableWrapper.scrollLeft > 0,\n });\n };\n\n scrollRight: any = () => {\n const initialScrollLeft = this.tableWrapper.scrollLeft;\n this.tableWrapper.scrollLeft += this.tableWrapper.offsetWidth / 2;\n\n this.setState({\n showRight:\n initialScrollLeft !== this.tableWrapper.scrollLeft &&\n this.tableWrapper.scrollLeft < this.tableWrapper.scrollWidth,\n showLeft: this.tableWrapper.scrollLeft < this.tableWrapper.scrollWidth && this.tableWrapper.scrollLeft > 0,\n });\n };\n\n render() {\n const { showRight, showLeft } = this.state;\n const { scale, scaleIndex, showDescription, showPointsLabels, showStandards, arrowsDisabled } = this.props;\n const { excludeZero, maxPoints, traitLabel, traits, scorePointsLabels } = scale || {};\n\n let scorePointsValues = [];\n let descriptions;\n let pointsLabels;\n let standards;\n\n try {\n // determining the score points values\n for (let pointValue = maxPoints; pointValue >= excludeZero ? 1 : 0; pointValue -= 1) {\n scorePointsValues.push(pointValue);\n }\n\n const { traitStandards, traitDescriptions } = traits.reduce(\n (tcc, trait) => ({\n traitStandards: [...tcc.traitStandards, ...(trait.standards || [])],\n traitDescriptions: [...tcc.traitDescriptions, ...(trait.description || [])],\n }),\n {\n traitStandards: [],\n traitDescriptions: [],\n },\n );\n\n descriptions = showDescription && traitDescriptions.length;\n pointsLabels = showPointsLabels && scorePointsLabels.length;\n standards = showStandards && traitStandards.length;\n } catch (e) {\n descriptions = false;\n pointsLabels = false;\n standards = false;\n }\n\n return (\n <Wrapper>\n <ArrowContainer\n show={showLeft && !arrowsDisabled}\n onClick={this.scrollLeft}\n extraStyles={{\n left: 0,\n background: `linear-gradient(to right, white, ${color.background()})`,\n }}\n >\n <ArrowBackIosIcon />\n </ArrowContainer>\n\n <TableWrapper\n ref={(ref) => {\n this.tableWrapper = ref;\n }}\n onScroll={() => {\n this.setState({\n // 5 is a margin of error\n showRight:\n this.tableWrapper.scrollLeft + this.tableWrapper.offsetWidth < this.tableWrapper.scrollWidth - 5 &&\n this.tableWrapper.scrollLeft < this.tableWrapper.scrollWidth,\n showLeft:\n this.tableWrapper.scrollLeft < this.tableWrapper.scrollWidth && this.tableWrapper.scrollLeft > 0,\n });\n }}\n >\n {arrowsDisabled && (showRight || showLeft) ? <div>The item is too large to fit in print mode.</div> : null}\n <Table key={`scale-${scaleIndex}`}>\n <thead>\n <tr>\n <th>\n <div dangerouslySetInnerHTML={{ __html: traitLabel }} />\n </th>\n\n {standards ? (\n <th>\n <div>Standard(s)</div>\n </th>\n ) : null}\n\n {descriptions ? (\n <th>\n <div>Description</div>\n </th>\n ) : null}\n\n {scorePointsValues &&\n scorePointsValues.map((scorePointValue, index) => {\n let pointLabel = '';\n\n // to handle the case when there aren't enough labels\n try {\n pointLabel = scorePointsLabels[scorePointsValues.length - index - 1] || '';\n } catch (e) {\n pointLabel = '';\n }\n\n return (\n <th key={`table-header-${index}`}>\n <ScorePointHeaderTable>\n <thead>\n {pointsLabels ? (\n <tr>\n <td>\n <PointLabel\n dangerouslySetInnerHTML={{ __html: pointLabel }}\n />\n </td>\n </tr>\n ) : null}\n <tr>\n <ScorePointValue>\n {scorePointValue === 1 ? `${scorePointValue} point` : `${scorePointValue} points`}\n </ScorePointValue>\n </tr>\n </thead>\n </ScorePointHeaderTable>\n </th>\n );\n })}\n </tr>\n </thead>\n\n <tbody>\n {traits &&\n traits.map((trait, traitIndex) => (\n <Trait\n key={`trait_${scaleIndex}_${traitIndex}`}\n trait={trait}\n traitIndex={traitIndex}\n showDescription={!!descriptions}\n showStandards={!!standards}\n scaleIndex={scaleIndex}\n scorePointsValues={scorePointsValues}\n excludeZero={excludeZero}\n />\n ))}\n </tbody>\n </Table>\n </TableWrapper>\n\n <ArrowContainer\n show={showRight && !arrowsDisabled}\n onClick={this.scrollRight}\n extraStyles={{\n right: 0,\n background: `linear-gradient(to left, white, ${color.background()})`,\n }}\n >\n <ArrowForwardIosIcon />\n </ArrowContainer>\n </Wrapper>\n );\n }\n}\n\nScale.propTypes = {\n scaleIndex: PropTypes.number,\n scale: PropTypes.shape({\n excludeZero: PropTypes.bool,\n maxPoints: PropTypes.number,\n scorePointsLabels: PropTypes.arrayOf(PropTypes.string),\n traitLabel: PropTypes.string,\n traits: PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string,\n standards: PropTypes.arrayOf(PropTypes.string),\n scorePointsDescriptors: PropTypes.arrayOf(PropTypes.string),\n description: PropTypes.string,\n }),\n ),\n }),\n showPointsLabels: PropTypes.bool,\n showDescription: PropTypes.bool,\n showStandards: PropTypes.bool,\n arrowsDisabled: PropTypes.bool,\n};\n\nexport default Scale;\n","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getLinkUtilityClass(slot) {\n return generateUtilityClass('MuiLink', slot);\n}\nconst linkClasses = generateUtilityClasses('MuiLink', ['root', 'underlineNone', 'underlineHover', 'underlineAlways', 'button', 'focusVisible']);\nexport default linkClasses;","import { getPath } from '@mui/system/style';\nimport { alpha } from '@mui/system/colorManipulator';\nconst getTextDecoration = ({\n theme,\n ownerState\n}) => {\n const transformedColor = ownerState.color;\n if ('colorSpace' in theme && theme.colorSpace) {\n const color = getPath(theme, `palette.${transformedColor}.main`) || getPath(theme, `palette.${transformedColor}`) || ownerState.color;\n return theme.alpha(color, 0.4);\n }\n\n // check the `main` color first for a custom palette, then fallback to the color itself\n const color = getPath(theme, `palette.${transformedColor}.main`, false) || getPath(theme, `palette.${transformedColor}`, false) || ownerState.color;\n const channelColor = getPath(theme, `palette.${transformedColor}.mainChannel`) || getPath(theme, `palette.${transformedColor}Channel`);\n if ('vars' in theme && channelColor) {\n return `rgba(${channelColor} / 0.4)`;\n }\n return alpha(color, 0.4);\n};\nexport default getTextDecoration;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';\nimport composeClasses from '@mui/utils/composeClasses';\nimport isFocusVisible from '@mui/utils/isFocusVisible';\nimport capitalize from \"../utils/capitalize.js\";\nimport { styled, useTheme } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport Typography from \"../Typography/index.js\";\nimport linkClasses, { getLinkUtilityClass } from \"./linkClasses.js\";\nimport getTextDecoration from \"./getTextDecoration.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst v6Colors = {\n primary: true,\n secondary: true,\n error: true,\n info: true,\n success: true,\n warning: true,\n textPrimary: true,\n textSecondary: true,\n textDisabled: true\n};\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n component,\n focusVisible,\n underline\n } = ownerState;\n const slots = {\n root: ['root', `underline${capitalize(underline)}`, component === 'button' && 'button', focusVisible && 'focusVisible']\n };\n return composeClasses(slots, getLinkUtilityClass, classes);\n};\nconst LinkRoot = styled(Typography, {\n name: 'MuiLink',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[`underline${capitalize(ownerState.underline)}`], ownerState.component === 'button' && styles.button];\n }\n})(memoTheme(({\n theme\n}) => {\n return {\n variants: [{\n props: {\n underline: 'none'\n },\n style: {\n textDecoration: 'none'\n }\n }, {\n props: {\n underline: 'hover'\n },\n style: {\n textDecoration: 'none',\n '&:hover': {\n textDecoration: 'underline'\n }\n }\n }, {\n props: {\n underline: 'always'\n },\n style: {\n textDecoration: 'underline',\n '&:hover': {\n textDecorationColor: 'inherit'\n }\n }\n }, {\n props: ({\n underline,\n ownerState\n }) => underline === 'always' && ownerState.color !== 'inherit',\n style: {\n textDecorationColor: 'var(--Link-underlineColor)'\n }\n }, {\n props: ({\n underline,\n ownerState\n }) => underline === 'always' && ownerState.color === 'inherit',\n style: theme.colorSpace ? {\n textDecorationColor: theme.alpha('currentColor', 0.4)\n } : null\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n underline: 'always',\n color\n },\n style: {\n '--Link-underlineColor': theme.alpha((theme.vars || theme).palette[color].main, 0.4)\n }\n })), {\n props: {\n underline: 'always',\n color: 'textPrimary'\n },\n style: {\n '--Link-underlineColor': theme.alpha((theme.vars || theme).palette.text.primary, 0.4)\n }\n }, {\n props: {\n underline: 'always',\n color: 'textSecondary'\n },\n style: {\n '--Link-underlineColor': theme.alpha((theme.vars || theme).palette.text.secondary, 0.4)\n }\n }, {\n props: {\n underline: 'always',\n color: 'textDisabled'\n },\n style: {\n '--Link-underlineColor': (theme.vars || theme).palette.text.disabled\n }\n }, {\n props: {\n component: 'button'\n },\n style: {\n position: 'relative',\n WebkitTapHighlightColor: 'transparent',\n backgroundColor: 'transparent',\n // Reset default value\n // We disable the focus ring for mouse, touch and keyboard users.\n outline: 0,\n border: 0,\n margin: 0,\n // Remove the margin in Safari\n borderRadius: 0,\n padding: 0,\n // Remove the padding in Firefox\n cursor: 'pointer',\n userSelect: 'none',\n verticalAlign: 'middle',\n MozAppearance: 'none',\n // Reset\n WebkitAppearance: 'none',\n // Reset\n '&::-moz-focus-inner': {\n borderStyle: 'none' // Remove Firefox dotted outline.\n },\n [`&.${linkClasses.focusVisible}`]: {\n outline: 'auto'\n }\n }\n }]\n };\n}));\nconst Link = /*#__PURE__*/React.forwardRef(function Link(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiLink'\n });\n const theme = useTheme();\n const {\n className,\n color = 'primary',\n component = 'a',\n onBlur,\n onFocus,\n TypographyClasses,\n underline = 'always',\n variant = 'inherit',\n sx,\n ...other\n } = props;\n const [focusVisible, setFocusVisible] = React.useState(false);\n const handleBlur = event => {\n if (!isFocusVisible(event.target)) {\n setFocusVisible(false);\n }\n if (onBlur) {\n onBlur(event);\n }\n };\n const handleFocus = event => {\n if (isFocusVisible(event.target)) {\n setFocusVisible(true);\n }\n if (onFocus) {\n onFocus(event);\n }\n };\n const ownerState = {\n ...props,\n color,\n component,\n focusVisible,\n underline,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(LinkRoot, {\n color: color,\n className: clsx(classes.root, className),\n classes: TypographyClasses,\n component: component,\n onBlur: handleBlur,\n onFocus: handleFocus,\n ref: ref,\n ownerState: ownerState,\n variant: variant,\n ...other,\n sx: [...(v6Colors[color] === undefined ? [{\n color\n }] : []), ...(Array.isArray(sx) ? sx : [sx])],\n style: {\n ...other.style,\n ...(underline === 'always' && color !== 'inherit' && !v6Colors[color] && {\n '--Link-underlineColor': getTextDecoration({\n theme,\n ownerState\n })\n })\n }\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Link.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the link.\n * @default 'primary'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'success', 'error', 'info', 'warning', 'textPrimary', 'textSecondary', 'textDisabled']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: elementTypeAcceptingRef,\n /**\n * @ignore\n */\n onBlur: PropTypes.func,\n /**\n * @ignore\n */\n onFocus: PropTypes.func,\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * `classes` prop applied to the [`Typography`](https://mui.com/material-ui/api/typography/) element.\n */\n TypographyClasses: PropTypes.object,\n /**\n * Controls when the link should have an underline.\n * @default 'always'\n */\n underline: PropTypes.oneOf(['always', 'hover', 'none']),\n /**\n * Applies the theme typography styles.\n * @default 'inherit'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['body1', 'body2', 'button', 'caption', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'inherit', 'overline', 'subtitle1', 'subtitle2']), PropTypes.string])\n} : void 0;\nexport default Link;","// @ts-nocheck\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\n\nimport Scale from './scale.js';\nimport Link from '@mui/material/Link';\nimport Collapse from '@mui/material/Collapse';\nimport { color, UiLayout as UiLayoutImport } from '@pie-lib/render-ui';\nimport Translator from '@pie-lib/translator';\n\nconst { translator } = Translator;\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');\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;\nclass Main extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n rubricOpen: false,\n };\n this.toggleRubric = this.toggleRubric.bind(this);\n }\n\n toggleRubric() {\n this.setState({ rubricOpen: !this.state.rubricOpen });\n }\n\n render() {\n const { model } = this.props;\n let { animationsDisabled } = this.props;\n const { extraCSSRules, halfScoring, scales, visible, pointLabels, description, standards, arrowsDisabled } =\n model || {};\n animationsDisabled = animationsDisabled || model.animationsDisabled;\n\n if (!scales || !visible) {\n return null;\n }\n\n const rubricItem = (\n <UiLayout\n extraCSSRules={extraCSSRules}\n style={{ fontFamily: 'Cerebri Sans', color: color.text(), backgroundColor: color.background() }}\n >\n {halfScoring ? (\n <div style={{ marginBottom: '16px' }}>* Half-point or in-between scores are permitted under this rubric.</div>\n ) : null}\n\n {scales.map((scale, scaleIndex) => (\n <Scale\n key={`scale_${scaleIndex}`}\n scale={scale}\n scaleIndex={scaleIndex}\n showPointsLabels={pointLabels}\n showDescription={description}\n showStandards={standards}\n arrowsDisabled={arrowsDisabled}\n />\n ))}\n </UiLayout>\n );\n\n if (animationsDisabled) {\n return rubricItem;\n }\n\n return (\n <UiLayout extraCSSRules={extraCSSRules} style={{ color: color.text(), backgroundColor: color.background() }}>\n <Link\n component=\"button\"\n type=\"button\"\n aria-expanded={this.state.rubricOpen}\n style={{ backgroundColor: color.background(), minHeight: '24px' }}\n onClick={this.toggleRubric}\n >\n {translator.t(this.state.rubricOpen ? 'rubric.hideRubric' : 'rubric.showRubric', { lng: model.language })}\n </Link>\n <Collapse style={{ marginTop: '16px' }} in={this.state.rubricOpen} timeout={{ enter: 225, exit: 195 }}>\n {rubricItem}\n </Collapse>\n </UiLayout>\n );\n }\n}\n\nMain.propTypes = {\n model: PropTypes.shape({\n halfScoring: PropTypes.bool,\n scales: PropTypes.arrayOf(\n PropTypes.shape({\n excludeZero: PropTypes.bool,\n maxPoints: PropTypes.number,\n scorePointsLabels: PropTypes.arrayOf(PropTypes.string),\n traitLabel: PropTypes.string,\n traits: PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string,\n description: PropTypes.string,\n scorePointsDescriptors: PropTypes.arrayOf(PropTypes.string),\n standards: PropTypes.arrayOf(PropTypes.string),\n }),\n ),\n }),\n ),\n visible: PropTypes.bool,\n pointLabels: PropTypes.bool,\n description: PropTypes.bool,\n standards: PropTypes.bool,\n animationsDisabled: PropTypes.bool,\n }),\n animationsDisabled: PropTypes.bool,\n};\n\nexport default Main;\n","// @ts-nocheck\n\nimport React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport { ModelSetEvent } from '@pie-element/shared-player-events';\nimport Main from './main.js';\nimport { renderMath } from '@pie-element/shared-math-rendering-mathjax';\n\nexport default class MultiTraitRubric extends HTMLElement {\n constructor() {\n super();\n this._model = {};\n this._session = null;\n this._root = null;\n this._mathObserver = null;\n this._mathRenderPending = false;\n }\n\n // React commits asynchronously, so a queueMicrotask(renderMath) can run before\n // the LaTeX spans are in the DOM and leave raw LaTeX on first render — this is\n // especially visible when this element is mounted inside complex-rubric, which\n // swaps its innerHTML and re-defines the inner element. Observing the DOM and\n // 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(s) {\n this._model = s;\n this.dispatchEvent(new ModelSetEvent(this.tagName.toLowerCase(), this._session, !!this._model));\n\n this._render();\n }\n\n set session(s) {\n this._session = s;\n }\n\n get session() {\n return this._session;\n }\n\n connectedCallback() {\n this._initMathObserver();\n this._render();\n }\n\n _render() {\n this._initMathObserver();\n\n const el = React.createElement(Main, { model: this._model, session: this._session });\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"],"x_google_ignoreList":[3,4,5],"mappings":";;;;;;AAqDA,IAAI,IAAI,MAAM,UAAU,YAAY;CACnC;EACC,KAAK,OAAO;CACb;CACA,YAAY,GAAG,GAAG,GAAG;EACpB,MAAM,EAAE,MAAM;GACb,SAAS,CAAC;GACV,UAAU,CAAC;GACX,QAAQ;IACP,UAAU;IACV,WAAW;IACX,UAAU;GACX;EACD,CAAC,GAAG,KAAK,YAAY,GAAG,KAAK,WAAW;CACzC;AACD;CAAO,MAAM,UAAU,YAAY;CAClC;EACC,KAAK,OAAO;CACb;CACA,YAAY,GAAG,GAAG;EACjB,MAAM,EAAE,MAAM;GACb,SAAS,CAAC;GACV,UAAU,CAAC;GACX,QAAQ;IACP,UAAU;IACV,WAAW;GACZ;EACD,CAAC,GAAG,KAAK,YAAY,GAAG,KAAK,WAAW;CACzC;AACD;;;mCC3EM,IAAiB,EAAO,IAAI,CAAC,CAAC;CAClC,OAAO,EA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cAAc,GAAM;GAAE,OAAO,KAAK;GAAQ,SAAS,KAAK;EAAS,CAAC;EAKnF,AAHA,AACE,KAAK,UAAQ,EAAW,IAAI,GAE9B,KAAK,MAAM,OAAO,CAAE;CACtB;CAEA,uBAAuB;EAErB,AADA,KAAK,wBAAwB,GAC7B,AAEE,KAAK,WADL,KAAK,MAAM,QAAQ,GACN;CAEjB;AACF"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["capitalize","React"],"sources":["../../../../../shared/player-events/dist/index.js","../../../src/delivery/trait.tsx","../../../src/delivery/scale.tsx","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Link/linkClasses.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Link/getTextDecoration.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Link/Link.js","../../../src/delivery/main.tsx","../../../src/delivery/index.ts"],"sourcesContent":["//#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\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@mui/material/styles';\nimport { color } from '@pie-lib/render-ui';\nimport { sanitizeModelHtml } from '@pie-element/shared-utils';\n\nconst TraitName: any = styled('td')({\n color: color.primaryDark(),\n verticalAlign: 'middle',\n});\n\nconst NoDescription: any = styled('div')({\n color: color.secondaryBackground(),\n textAlign: 'center',\n});\n\nconst Trait = (props) => {\n const { trait, traitIndex, scaleIndex, showStandards, showDescription, scorePointsValues } = props;\n const { name, standards, scorePointsDescriptors, description } = trait || {};\n\n return (\n <tr key={`scale-${scaleIndex}-trait-${traitIndex}`}>\n <TraitName>\n <div dangerouslySetInnerHTML={{ __html: sanitizeModelHtml(name) }} />\n </TraitName>\n\n {showStandards ? (\n <td>\n <div dangerouslySetInnerHTML={{ __html: sanitizeModelHtml(standards.join(',')) }} />\n </td>\n ) : null}\n\n {showDescription ? (\n <td>\n <div dangerouslySetInnerHTML={{ __html: sanitizeModelHtml(description) }} />\n </td>\n ) : null}\n\n {scorePointsValues &&\n scorePointsValues.map((scorePointValue, index) => {\n let scoreDescriptor;\n\n try {\n scoreDescriptor = scorePointsDescriptors[scorePointsValues.length - index - 1] || '';\n } catch (e) {\n scoreDescriptor = '';\n }\n\n return (\n <td key={`table-cell-${index}`}>\n {!scoreDescriptor ? (\n <NoDescription dangerouslySetInnerHTML={{ __html: 'No Description' }} />\n ) : (\n <div dangerouslySetInnerHTML={{ __html: sanitizeModelHtml(scoreDescriptor) }} />\n )}\n </td>\n );\n })}\n </tr>\n );\n};\n\nTrait.propTypes = {\n showStandards: PropTypes.bool,\n showDescription: PropTypes.bool,\n scorePointsValues: PropTypes.arrayOf(PropTypes.number),\n scaleIndex: PropTypes.number,\n traitIndex: PropTypes.number,\n trait: PropTypes.shape({\n name: PropTypes.string,\n standards: PropTypes.arrayOf(PropTypes.string),\n scorePointsDescriptors: PropTypes.arrayOf(PropTypes.string),\n description: PropTypes.string,\n }),\n};\n\nexport default Trait;\n","// @ts-nocheck\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@mui/material/styles';\nimport { color } from '@pie-lib/render-ui';\nimport Trait from './trait.js';\nimport ArrowBackIosIcon from '@mui/icons-material/ArrowBackIos';\nimport ArrowForwardIosIcon from '@mui/icons-material/ArrowForwardIos';\nimport { sanitizeModelHtml } from '@pie-element/shared-utils';\n\nconst Wrapper: any = styled('div')({\n display: 'flex',\n position: 'relative',\n});\n\nconst TableWrapper: any = styled('div')({\n width: '100%',\n overflow: 'auto',\n});\n\nconst Table: any = styled('table')(({ theme }) => ({\n borderSpacing: 0,\n marginBottom: theme.spacing(2),\n borderRadius: '4px',\n color: color.text(),\n fontSize: theme.typography.fontSize,\n lineHeight: '16px',\n overflow: 'unset',\n\n '& ul, ol': {\n marginBlockStart: 0,\n paddingInlineStart: theme.spacing(2),\n },\n\n '& th': {\n padding: theme.spacing(2),\n textAlign: 'left',\n backgroundColor: color.secondaryBackground(),\n verticalAlign: 'bottom',\n },\n\n '& th div': {\n width: '200px',\n },\n\n '& td': {\n width: '200px',\n padding: `${theme.spacing(2)} ${theme.spacing(1)}`,\n verticalAlign: 'top',\n },\n}));\n\nconst ScorePointHeaderTable: any = styled('table')({\n '& td': {\n border: 0,\n padding: 0,\n textAlign: 'center',\n minWidth: '200px',\n },\n});\n\nconst PointLabel: any = styled('div')({\n marginBottom: '4px',\n});\n\nconst ScorePointValue: any = styled('td')({\n fontWeight: 'normal',\n});\n\nconst ArrowContainer = ({ show, onClick, extraStyles, children }) => (\n <div\n style={{\n height: 'calc(100% - 1px)',\n top: '1px',\n display: show ? 'flex' : 'none',\n width: '50px',\n margin: 'auto',\n position: 'absolute',\n alignItems: 'center',\n justifyContent: 'center',\n cursor: 'pointer',\n ...extraStyles,\n }}\n onClick={onClick}\n >\n {children}\n </div>\n);\n\nArrowContainer.propTypes = {\n show: PropTypes.bool,\n onClick: PropTypes.func,\n extraStyles: PropTypes.object,\n children: PropTypes.object,\n};\n\nclass Scale extends React.Component {\n state = {};\n\n componentDidMount() {\n if (this.tableWrapper) {\n if (this.tableWrapper.offsetWidth < this.tableWrapper.scrollWidth) {\n this.setState({ showRight: true });\n }\n }\n }\n\n scrollLeft: any = () => {\n this.tableWrapper.scrollLeft -= this.tableWrapper.offsetWidth / 2;\n\n this.setState({\n showRight: this.tableWrapper.scrollLeft < this.tableWrapper.scrollWidth,\n showLeft: this.tableWrapper.scrollLeft < this.tableWrapper.scrollWidth && this.tableWrapper.scrollLeft > 0,\n });\n };\n\n scrollRight: any = () => {\n const initialScrollLeft = this.tableWrapper.scrollLeft;\n this.tableWrapper.scrollLeft += this.tableWrapper.offsetWidth / 2;\n\n this.setState({\n showRight:\n initialScrollLeft !== this.tableWrapper.scrollLeft &&\n this.tableWrapper.scrollLeft < this.tableWrapper.scrollWidth,\n showLeft: this.tableWrapper.scrollLeft < this.tableWrapper.scrollWidth && this.tableWrapper.scrollLeft > 0,\n });\n };\n\n render() {\n const { showRight, showLeft } = this.state;\n const { scale, scaleIndex, showDescription, showPointsLabels, showStandards, arrowsDisabled } = this.props;\n const { excludeZero, maxPoints, traitLabel, traits, scorePointsLabels } = scale || {};\n\n let scorePointsValues = [];\n let descriptions;\n let pointsLabels;\n let standards;\n\n try {\n // determining the score points values\n for (let pointValue = maxPoints; pointValue >= excludeZero ? 1 : 0; pointValue -= 1) {\n scorePointsValues.push(pointValue);\n }\n\n const { traitStandards, traitDescriptions } = traits.reduce(\n (tcc, trait) => ({\n traitStandards: [...tcc.traitStandards, ...(trait.standards || [])],\n traitDescriptions: [...tcc.traitDescriptions, ...(trait.description || [])],\n }),\n {\n traitStandards: [],\n traitDescriptions: [],\n },\n );\n\n descriptions = showDescription && traitDescriptions.length;\n pointsLabels = showPointsLabels && scorePointsLabels.length;\n standards = showStandards && traitStandards.length;\n } catch (e) {\n descriptions = false;\n pointsLabels = false;\n standards = false;\n }\n\n return (\n <Wrapper>\n <ArrowContainer\n show={showLeft && !arrowsDisabled}\n onClick={this.scrollLeft}\n extraStyles={{\n left: 0,\n background: `linear-gradient(to right, white, ${color.background()})`,\n }}\n >\n <ArrowBackIosIcon />\n </ArrowContainer>\n\n <TableWrapper\n ref={(ref) => {\n this.tableWrapper = ref;\n }}\n onScroll={() => {\n this.setState({\n // 5 is a margin of error\n showRight:\n this.tableWrapper.scrollLeft + this.tableWrapper.offsetWidth < this.tableWrapper.scrollWidth - 5 &&\n this.tableWrapper.scrollLeft < this.tableWrapper.scrollWidth,\n showLeft:\n this.tableWrapper.scrollLeft < this.tableWrapper.scrollWidth && this.tableWrapper.scrollLeft > 0,\n });\n }}\n >\n {arrowsDisabled && (showRight || showLeft) ? <div>The item is too large to fit in print mode.</div> : null}\n <Table key={`scale-${scaleIndex}`}>\n <thead>\n <tr>\n <th>\n <div dangerouslySetInnerHTML={{ __html: sanitizeModelHtml(traitLabel) }} />\n </th>\n\n {standards ? (\n <th>\n <div>Standard(s)</div>\n </th>\n ) : null}\n\n {descriptions ? (\n <th>\n <div>Description</div>\n </th>\n ) : null}\n\n {scorePointsValues &&\n scorePointsValues.map((scorePointValue, index) => {\n let pointLabel = '';\n\n // to handle the case when there aren't enough labels\n try {\n pointLabel = scorePointsLabels[scorePointsValues.length - index - 1] || '';\n } catch (e) {\n pointLabel = '';\n }\n\n return (\n <th key={`table-header-${index}`}>\n <ScorePointHeaderTable>\n <thead>\n {pointsLabels ? (\n <tr>\n <td>\n <PointLabel\n dangerouslySetInnerHTML={{ __html: sanitizeModelHtml(pointLabel) }}\n />\n </td>\n </tr>\n ) : null}\n <tr>\n <ScorePointValue>\n {scorePointValue === 1 ? `${scorePointValue} point` : `${scorePointValue} points`}\n </ScorePointValue>\n </tr>\n </thead>\n </ScorePointHeaderTable>\n </th>\n );\n })}\n </tr>\n </thead>\n\n <tbody>\n {traits &&\n traits.map((trait, traitIndex) => (\n <Trait\n key={`trait_${scaleIndex}_${traitIndex}`}\n trait={trait}\n traitIndex={traitIndex}\n showDescription={!!descriptions}\n showStandards={!!standards}\n scaleIndex={scaleIndex}\n scorePointsValues={scorePointsValues}\n excludeZero={excludeZero}\n />\n ))}\n </tbody>\n </Table>\n </TableWrapper>\n\n <ArrowContainer\n show={showRight && !arrowsDisabled}\n onClick={this.scrollRight}\n extraStyles={{\n right: 0,\n background: `linear-gradient(to left, white, ${color.background()})`,\n }}\n >\n <ArrowForwardIosIcon />\n </ArrowContainer>\n </Wrapper>\n );\n }\n}\n\nScale.propTypes = {\n scaleIndex: PropTypes.number,\n scale: PropTypes.shape({\n excludeZero: PropTypes.bool,\n maxPoints: PropTypes.number,\n scorePointsLabels: PropTypes.arrayOf(PropTypes.string),\n traitLabel: PropTypes.string,\n traits: PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string,\n standards: PropTypes.arrayOf(PropTypes.string),\n scorePointsDescriptors: PropTypes.arrayOf(PropTypes.string),\n description: PropTypes.string,\n }),\n ),\n }),\n showPointsLabels: PropTypes.bool,\n showDescription: PropTypes.bool,\n showStandards: PropTypes.bool,\n arrowsDisabled: PropTypes.bool,\n};\n\nexport default Scale;\n","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getLinkUtilityClass(slot) {\n return generateUtilityClass('MuiLink', slot);\n}\nconst linkClasses = generateUtilityClasses('MuiLink', ['root', 'underlineNone', 'underlineHover', 'underlineAlways', 'button', 'focusVisible']);\nexport default linkClasses;","import { getPath } from '@mui/system/style';\nimport { alpha } from '@mui/system/colorManipulator';\nconst getTextDecoration = ({\n theme,\n ownerState\n}) => {\n const transformedColor = ownerState.color;\n if ('colorSpace' in theme && theme.colorSpace) {\n const color = getPath(theme, `palette.${transformedColor}.main`) || getPath(theme, `palette.${transformedColor}`) || ownerState.color;\n return theme.alpha(color, 0.4);\n }\n\n // check the `main` color first for a custom palette, then fallback to the color itself\n const color = getPath(theme, `palette.${transformedColor}.main`, false) || getPath(theme, `palette.${transformedColor}`, false) || ownerState.color;\n const channelColor = getPath(theme, `palette.${transformedColor}.mainChannel`) || getPath(theme, `palette.${transformedColor}Channel`);\n if ('vars' in theme && channelColor) {\n return `rgba(${channelColor} / 0.4)`;\n }\n return alpha(color, 0.4);\n};\nexport default getTextDecoration;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';\nimport composeClasses from '@mui/utils/composeClasses';\nimport isFocusVisible from '@mui/utils/isFocusVisible';\nimport capitalize from \"../utils/capitalize.js\";\nimport { styled, useTheme } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport Typography from \"../Typography/index.js\";\nimport linkClasses, { getLinkUtilityClass } from \"./linkClasses.js\";\nimport getTextDecoration from \"./getTextDecoration.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst v6Colors = {\n primary: true,\n secondary: true,\n error: true,\n info: true,\n success: true,\n warning: true,\n textPrimary: true,\n textSecondary: true,\n textDisabled: true\n};\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n component,\n focusVisible,\n underline\n } = ownerState;\n const slots = {\n root: ['root', `underline${capitalize(underline)}`, component === 'button' && 'button', focusVisible && 'focusVisible']\n };\n return composeClasses(slots, getLinkUtilityClass, classes);\n};\nconst LinkRoot = styled(Typography, {\n name: 'MuiLink',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[`underline${capitalize(ownerState.underline)}`], ownerState.component === 'button' && styles.button];\n }\n})(memoTheme(({\n theme\n}) => {\n return {\n variants: [{\n props: {\n underline: 'none'\n },\n style: {\n textDecoration: 'none'\n }\n }, {\n props: {\n underline: 'hover'\n },\n style: {\n textDecoration: 'none',\n '&:hover': {\n textDecoration: 'underline'\n }\n }\n }, {\n props: {\n underline: 'always'\n },\n style: {\n textDecoration: 'underline',\n '&:hover': {\n textDecorationColor: 'inherit'\n }\n }\n }, {\n props: ({\n underline,\n ownerState\n }) => underline === 'always' && ownerState.color !== 'inherit',\n style: {\n textDecorationColor: 'var(--Link-underlineColor)'\n }\n }, {\n props: ({\n underline,\n ownerState\n }) => underline === 'always' && ownerState.color === 'inherit',\n style: theme.colorSpace ? {\n textDecorationColor: theme.alpha('currentColor', 0.4)\n } : null\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n underline: 'always',\n color\n },\n style: {\n '--Link-underlineColor': theme.alpha((theme.vars || theme).palette[color].main, 0.4)\n }\n })), {\n props: {\n underline: 'always',\n color: 'textPrimary'\n },\n style: {\n '--Link-underlineColor': theme.alpha((theme.vars || theme).palette.text.primary, 0.4)\n }\n }, {\n props: {\n underline: 'always',\n color: 'textSecondary'\n },\n style: {\n '--Link-underlineColor': theme.alpha((theme.vars || theme).palette.text.secondary, 0.4)\n }\n }, {\n props: {\n underline: 'always',\n color: 'textDisabled'\n },\n style: {\n '--Link-underlineColor': (theme.vars || theme).palette.text.disabled\n }\n }, {\n props: {\n component: 'button'\n },\n style: {\n position: 'relative',\n WebkitTapHighlightColor: 'transparent',\n backgroundColor: 'transparent',\n // Reset default value\n // We disable the focus ring for mouse, touch and keyboard users.\n outline: 0,\n border: 0,\n margin: 0,\n // Remove the margin in Safari\n borderRadius: 0,\n padding: 0,\n // Remove the padding in Firefox\n cursor: 'pointer',\n userSelect: 'none',\n verticalAlign: 'middle',\n MozAppearance: 'none',\n // Reset\n WebkitAppearance: 'none',\n // Reset\n '&::-moz-focus-inner': {\n borderStyle: 'none' // Remove Firefox dotted outline.\n },\n [`&.${linkClasses.focusVisible}`]: {\n outline: 'auto'\n }\n }\n }]\n };\n}));\nconst Link = /*#__PURE__*/React.forwardRef(function Link(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiLink'\n });\n const theme = useTheme();\n const {\n className,\n color = 'primary',\n component = 'a',\n onBlur,\n onFocus,\n TypographyClasses,\n underline = 'always',\n variant = 'inherit',\n sx,\n ...other\n } = props;\n const [focusVisible, setFocusVisible] = React.useState(false);\n const handleBlur = event => {\n if (!isFocusVisible(event.target)) {\n setFocusVisible(false);\n }\n if (onBlur) {\n onBlur(event);\n }\n };\n const handleFocus = event => {\n if (isFocusVisible(event.target)) {\n setFocusVisible(true);\n }\n if (onFocus) {\n onFocus(event);\n }\n };\n const ownerState = {\n ...props,\n color,\n component,\n focusVisible,\n underline,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(LinkRoot, {\n color: color,\n className: clsx(classes.root, className),\n classes: TypographyClasses,\n component: component,\n onBlur: handleBlur,\n onFocus: handleFocus,\n ref: ref,\n ownerState: ownerState,\n variant: variant,\n ...other,\n sx: [...(v6Colors[color] === undefined ? [{\n color\n }] : []), ...(Array.isArray(sx) ? sx : [sx])],\n style: {\n ...other.style,\n ...(underline === 'always' && color !== 'inherit' && !v6Colors[color] && {\n '--Link-underlineColor': getTextDecoration({\n theme,\n ownerState\n })\n })\n }\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Link.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the link.\n * @default 'primary'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'success', 'error', 'info', 'warning', 'textPrimary', 'textSecondary', 'textDisabled']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: elementTypeAcceptingRef,\n /**\n * @ignore\n */\n onBlur: PropTypes.func,\n /**\n * @ignore\n */\n onFocus: PropTypes.func,\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * `classes` prop applied to the [`Typography`](https://mui.com/material-ui/api/typography/) element.\n */\n TypographyClasses: PropTypes.object,\n /**\n * Controls when the link should have an underline.\n * @default 'always'\n */\n underline: PropTypes.oneOf(['always', 'hover', 'none']),\n /**\n * Applies the theme typography styles.\n * @default 'inherit'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['body1', 'body2', 'button', 'caption', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'inherit', 'overline', 'subtitle1', 'subtitle2']), PropTypes.string])\n} : void 0;\nexport default Link;","// @ts-nocheck\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\n\nimport Scale from './scale.js';\nimport Link from '@mui/material/Link';\nimport Collapse from '@mui/material/Collapse';\nimport { color, UiLayout as UiLayoutImport } from '@pie-lib/render-ui';\nimport Translator from '@pie-lib/translator';\n\nconst { translator } = Translator;\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');\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;\nclass Main extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n rubricOpen: false,\n };\n this.toggleRubric = this.toggleRubric.bind(this);\n }\n\n toggleRubric() {\n this.setState({ rubricOpen: !this.state.rubricOpen });\n }\n\n render() {\n const { model } = this.props;\n let { animationsDisabled } = this.props;\n const { extraCSSRules, halfScoring, scales, visible, pointLabels, description, standards, arrowsDisabled } =\n model || {};\n animationsDisabled = animationsDisabled || model.animationsDisabled;\n\n if (!scales || !visible) {\n return null;\n }\n\n const rubricItem = (\n <UiLayout\n extraCSSRules={extraCSSRules}\n style={{ fontFamily: 'Cerebri Sans', color: color.text(), backgroundColor: color.background() }}\n >\n {halfScoring ? (\n <div style={{ marginBottom: '16px' }}>* Half-point or in-between scores are permitted under this rubric.</div>\n ) : null}\n\n {scales.map((scale, scaleIndex) => (\n <Scale\n key={`scale_${scaleIndex}`}\n scale={scale}\n scaleIndex={scaleIndex}\n showPointsLabels={pointLabels}\n showDescription={description}\n showStandards={standards}\n arrowsDisabled={arrowsDisabled}\n />\n ))}\n </UiLayout>\n );\n\n if (animationsDisabled) {\n return rubricItem;\n }\n\n return (\n <UiLayout extraCSSRules={extraCSSRules} style={{ color: color.text(), backgroundColor: color.background() }}>\n <Link\n component=\"button\"\n type=\"button\"\n aria-expanded={this.state.rubricOpen}\n style={{ backgroundColor: color.background(), minHeight: '24px' }}\n onClick={this.toggleRubric}\n >\n {translator.t(this.state.rubricOpen ? 'rubric.hideRubric' : 'rubric.showRubric', { lng: model.language })}\n </Link>\n <Collapse style={{ marginTop: '16px' }} in={this.state.rubricOpen} timeout={{ enter: 225, exit: 195 }}>\n {rubricItem}\n </Collapse>\n </UiLayout>\n );\n }\n}\n\nMain.propTypes = {\n model: PropTypes.shape({\n halfScoring: PropTypes.bool,\n scales: PropTypes.arrayOf(\n PropTypes.shape({\n excludeZero: PropTypes.bool,\n maxPoints: PropTypes.number,\n scorePointsLabels: PropTypes.arrayOf(PropTypes.string),\n traitLabel: PropTypes.string,\n traits: PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string,\n description: PropTypes.string,\n scorePointsDescriptors: PropTypes.arrayOf(PropTypes.string),\n standards: PropTypes.arrayOf(PropTypes.string),\n }),\n ),\n }),\n ),\n visible: PropTypes.bool,\n pointLabels: PropTypes.bool,\n description: PropTypes.bool,\n standards: PropTypes.bool,\n animationsDisabled: PropTypes.bool,\n }),\n animationsDisabled: PropTypes.bool,\n};\n\nexport default Main;\n","// @ts-nocheck\n\nimport React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport { ModelSetEvent } from '@pie-element/shared-player-events';\nimport Main from './main.js';\nimport { renderMath } from '@pie-element/shared-math-rendering-mathjax';\n\nexport default class MultiTraitRubric extends HTMLElement {\n constructor() {\n super();\n this._model = {};\n this._session = null;\n this._root = null;\n this._mathObserver = null;\n this._mathRenderPending = false;\n }\n\n // React commits asynchronously, so a queueMicrotask(renderMath) can run before\n // the LaTeX spans are in the DOM and leave raw LaTeX on first render — this is\n // especially visible when this element is mounted inside complex-rubric, which\n // swaps its innerHTML and re-defines the inner element. Observing the DOM and\n // 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(s) {\n this._model = s;\n this.dispatchEvent(new ModelSetEvent(this.tagName.toLowerCase(), this._session, !!this._model));\n\n this._render();\n }\n\n set session(s) {\n this._session = s;\n }\n\n get session() {\n return this._session;\n }\n\n connectedCallback() {\n this._initMathObserver();\n this._render();\n }\n\n _render() {\n this._initMathObserver();\n\n const el = React.createElement(Main, { model: this._model, session: this._session });\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"],"x_google_ignoreList":[3,4,5],"mappings":";;;;;;AAqDA,IAAI,IAAI,MAAM,UAAU,YAAY;CACnC;EACC,KAAK,OAAO;CACb;CACA,YAAY,GAAG,GAAG,GAAG;EACpB,MAAM,EAAE,MAAM;GACb,SAAS,CAAC;GACV,UAAU,CAAC;GACX,QAAQ;IACP,UAAU;IACV,WAAW;IACX,UAAU;GACX;EACD,CAAC,GAAG,KAAK,YAAY,GAAG,KAAK,WAAW;CACzC;AACD;CAAO,MAAM,UAAU,YAAY;CAClC;EACC,KAAK,OAAO;CACb;CACA,YAAY,GAAG,GAAG;EACjB,MAAM,EAAE,MAAM;GACb,SAAS,CAAC;GACV,UAAU,CAAC;GACX,QAAQ;IACP,UAAU;IACV,WAAW;GACZ;EACD,CAAC,GAAG,KAAK,YAAY,GAAG,KAAK,WAAW;CACzC;AACD;;;mCC1EM,IAAiB,EAAO,IAAI,CAAC,CAAC;CAClC,OAAO,EAAM,YAAY;CACzB,eAAe;AACjB,CAAC,GAEK,IAAqB,EAAO,KAAK,CAAC,CAAC;CACvC,OAAO,EAAM,oBAAoB;CACjC,WAAW;AACb,CAAC,GAEK,KAAS,MAAU;CACvB,IAAM,EAAE,UAAO,eAAY,eAAY,kBAAe,oBAAiB,yBAAsB,GACvF,EAAE,SAAM,cAAW,2BAAwB,mBAAgB,KAAS,CAAC;CAE3E,OACE,kBAAC,MAAD,EAAA,UAAA;EACE,kBAAC,GAAD,EAAA,UACE,kBAAC,OAAD,EAAK,yBAAyB,EAAE,QAAQ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