@pie-element/complex-rubric 8.0.2-next.20261007003844 → 8.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.
@@ -1,20 +1,20 @@
1
1
  import { p as e } from "./speech-worker-CP5P4gRS-G4rtBs8u.js";
2
- import { $ as t, A as n, B as r, Dt as i, E as a, Et as o, Mt as s, Ot as c, Q as l, T as u, V as d, at as f, b as p, c as m, dt as h, et as g, ht as _, j as v, kt as y, l as b, o as ee, s as te, ut as ne, vt as re, w as ie, wt as ae, xt as oe } from "./private-tags-DPRCZdAk.js";
3
- import * as x from "react";
4
- import S from "react";
5
- import { jsx as C, jsxs as w } from "react/jsx-runtime";
6
- import { createRoot as T } from "react-dom/client";
2
+ import { $ as t, A as n, At as r, B as i, Dt as a, E as o, H as s, Nt as c, Ot as l, St as u, T as d, Tt as f, V as p, b as m, c as h, dt as g, et as _, ft as v, gt as y, j as b, kt as ee, l as x, o as te, ot as S, s as ne, tt as re, w as ie, yt as ae } from "./private-tags-iKPqDOUd.js";
3
+ import * as C from "react";
4
+ import w from "react";
5
+ import { jsx as T, jsxs as E } from "react/jsx-runtime";
6
+ import { createRoot as D } from "react-dom/client";
7
7
  //#region ../rubric/dist/delivery/main.js
8
- var E = /* @__PURE__ */ e(s(), 1);
9
- function D(e) {
8
+ var O = /* @__PURE__ */ e(c(), 1);
9
+ function k(e) {
10
10
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
11
11
  }
12
- function O(e, t) {
13
- return !e || D(e) ? e : D(e.default) ? e.default : t && D(e[t]) ? e[t] : t && D(e[t]?.default) ? e[t].default : e;
12
+ function A(e, t) {
13
+ return !e || k(e) ? e : k(e.default) ? e.default : t && k(e[t]) ? e[t] : t && k(e[t]?.default) ? e[t].default : e;
14
14
  }
15
- var se = O(p, "UiLayout") || O(ce.UiLayout, "UiLayout"), k = b, A = k.default, ce = A && typeof A == "object" ? A : k, { translator: j } = u, le = _(se)({
16
- color: r.text(),
17
- backgroundColor: r.background(),
15
+ var oe = A(m, "UiLayout") || A(se.UiLayout, "UiLayout"), j = x, M = j.default, se = M && typeof M == "object" ? M : j, { translator: N } = d, ce = y(oe)({
16
+ color: p.text(),
17
+ backgroundColor: p.background(),
18
18
  "&:not(.MathJax) table": { borderCollapse: "collapse" },
19
19
  "&:not(.MathJax) table td, &:not(.MathJax) table th": {
20
20
  padding: "8px 12px",
@@ -25,24 +25,24 @@ var se = O(p, "UiLayout") || O(ce.UiLayout, "UiLayout"), k = b, A = k.default, c
25
25
  marginTop: 0,
26
26
  lineHeight: "normal"
27
27
  }
28
- }), M = _(g)({
28
+ }), P = y(re)({
29
29
  display: "flex",
30
30
  flexDirection: "column",
31
31
  alignItems: "flex-start",
32
32
  padding: "12px 0px"
33
- }), N = _("div")({ color: r.text() }), ue = _("h3")({
34
- color: r.text(),
33
+ }), F = y("div")({ color: p.text() }), le = y("h3")({
34
+ color: p.text(),
35
35
  fontSize: "16px",
36
36
  fontWeight: "700",
37
37
  margin: 0,
38
38
  paddingBottom: "6px"
39
- }), de = _("h4")({
40
- color: r.text(),
39
+ }), ue = y("h4")({
40
+ color: p.text(),
41
41
  fontSize: "16px",
42
42
  fontWeight: "normal",
43
43
  margin: 0,
44
44
  paddingBottom: "6px"
45
- }), P = _("button")(({ theme: e }) => ({
45
+ }), I = y("button")(({ theme: e }) => ({
46
46
  display: "flex",
47
47
  alignItems: "center",
48
48
  width: "100%",
@@ -55,15 +55,15 @@ var se = O(p, "UiLayout") || O(ce.UiLayout, "UiLayout"), k = b, A = k.default, c
55
55
  userSelect: "none",
56
56
  fontSize: e.typography.fontSize,
57
57
  fontWeight: "500",
58
- color: r.tertiary(),
58
+ color: p.tertiary(),
59
59
  margin: 0,
60
60
  minHeight: 24
61
- })), F = _("span")({
61
+ })), L = y("span")({
62
62
  display: "inline-flex",
63
63
  transition: "transform 0.2s",
64
64
  marginLeft: 2,
65
65
  alignSelf: "center"
66
- }), I = _("h2")({
66
+ }), R = y("h2")({
67
67
  position: "absolute",
68
68
  width: "1px",
69
69
  height: "1px",
@@ -73,45 +73,45 @@ var se = O(p, "UiLayout") || O(ce.UiLayout, "UiLayout"), k = b, A = k.default, c
73
73
  clip: "rect(0,0,0,0)",
74
74
  border: 0,
75
75
  whiteSpace: "nowrap"
76
- }), L = E.default.shape({
77
- excludeZero: E.default.bool,
78
- points: E.default.arrayOf(E.default.string),
79
- sampleAnswers: E.default.arrayOf(E.default.string),
80
- animationsDisabled: E.default.bool
81
- }), R = class extends S.Component {
76
+ }), z = O.default.shape({
77
+ excludeZero: O.default.bool,
78
+ points: O.default.arrayOf(O.default.string),
79
+ sampleAnswers: O.default.arrayOf(O.default.string),
80
+ animationsDisabled: O.default.bool
81
+ }), B = class extends w.Component {
82
82
  dudUrl = "javascript:;";
83
83
  idPrefix = n("rubric");
84
84
  constructor(e) {
85
85
  super(e), this.state = { rubricOpen: !1 }, this.toggleRubric = this.toggleRubric.bind(this);
86
86
  }
87
87
  static propTypes = {
88
- model: E.default.object.isRequired,
89
- animationsDisabled: E.default.bool,
90
- value: L
88
+ model: O.default.object.isRequired,
89
+ animationsDisabled: O.default.bool,
90
+ value: z
91
91
  };
92
92
  toggleRubric() {
93
93
  this.setState({ rubricOpen: !this.state.rubricOpen });
94
94
  }
95
95
  shouldRenderPoint = (e, t) => !t.excludeZero || e !== 0;
96
96
  render() {
97
- let { model: e, value: n } = this.props, { animationsDisabled: r } = this.props;
98
- if (r ||= n.animationsDisabled, n && n.points) {
99
- let { extraCSSRules: i } = e || {}, { points: a, sampleAnswers: o } = n, s = /* @__PURE__ */ C(t, { children: a.slice(0).reverse().map((e, t) => {
100
- t = a.length - t - 1;
101
- let r = n.excludeZero ? t + 1 : t;
102
- return /* @__PURE__ */ w(S.Fragment, { children: [/* @__PURE__ */ w(M, { children: [/* @__PURE__ */ C(ue, { children: r === 1 ? `${r} PT` : `${r} PTS` }), /* @__PURE__ */ C(N, { dangerouslySetInnerHTML: { __html: e } })] }, `P${t}`), o && o[t] && /* @__PURE__ */ w(M, { children: [/* @__PURE__ */ C(de, { children: "Sample Answer" }), /* @__PURE__ */ C(N, { dangerouslySetInnerHTML: { __html: o[t] } })] }, `S${t}`)] }, t);
97
+ let { model: e, value: t } = this.props, { animationsDisabled: n } = this.props;
98
+ if (n ||= t.animationsDisabled, t && t.points) {
99
+ let { extraCSSRules: r } = e || {}, { points: a, sampleAnswers: o } = t, c = /* @__PURE__ */ T(_, { children: a.slice(0).reverse().map((e, n) => {
100
+ n = a.length - n - 1;
101
+ let r = t.excludeZero ? n + 1 : n;
102
+ return /* @__PURE__ */ E(w.Fragment, { children: [/* @__PURE__ */ E(P, { children: [/* @__PURE__ */ T(le, { children: r === 1 ? `${r} PT` : `${r} PTS` }), /* @__PURE__ */ T(F, { dangerouslySetInnerHTML: { __html: i(e) } })] }, `P${n}`), o && o[n] && /* @__PURE__ */ E(P, { children: [/* @__PURE__ */ T(ue, { children: "Sample Answer" }), /* @__PURE__ */ T(F, { dangerouslySetInnerHTML: { __html: i(o[n]) } })] }, `S${n}`)] }, n);
103
103
  }) });
104
- return /* @__PURE__ */ w(le, {
105
- extraCSSRules: i,
106
- children: [/* @__PURE__ */ C(I, { children: j.t("rubric.rubric", { lng: n.language }) }), r ? s : /* @__PURE__ */ w(S.Fragment, { children: [/* @__PURE__ */ w(P, {
104
+ return /* @__PURE__ */ E(ce, {
105
+ extraCSSRules: r,
106
+ children: [/* @__PURE__ */ T(R, { children: N.t("rubric.rubric", { lng: t.language }) }), n ? c : /* @__PURE__ */ E(w.Fragment, { children: [/* @__PURE__ */ E(I, {
107
107
  type: "button",
108
108
  id: `${this.idPrefix}-toggle`,
109
109
  "aria-expanded": this.state.rubricOpen,
110
110
  "aria-controls": `${this.idPrefix}-content`,
111
111
  onClick: this.toggleRubric,
112
- children: [j.t(this.state.rubricOpen ? "rubric.hideRubric" : "rubric.showRubric", { lng: n.language }), /* @__PURE__ */ C(F, {
112
+ children: [N.t(this.state.rubricOpen ? "rubric.hideRubric" : "rubric.showRubric", { lng: t.language }), /* @__PURE__ */ T(L, {
113
113
  "aria-hidden": "true",
114
- children: this.state.rubricOpen ? /* @__PURE__ */ C("svg", {
114
+ children: this.state.rubricOpen ? /* @__PURE__ */ T("svg", {
115
115
  width: "20",
116
116
  height: "20",
117
117
  viewBox: "0 0 24 24",
@@ -120,8 +120,8 @@ var se = O(p, "UiLayout") || O(ce.UiLayout, "UiLayout"), k = b, A = k.default, c
120
120
  strokeWidth: "2",
121
121
  strokeLinecap: "round",
122
122
  strokeLinejoin: "round",
123
- children: /* @__PURE__ */ C("polyline", { points: "18 15 12 9 6 15" })
124
- }) : /* @__PURE__ */ C("svg", {
123
+ children: /* @__PURE__ */ T("polyline", { points: "18 15 12 9 6 15" })
124
+ }) : /* @__PURE__ */ T("svg", {
125
125
  width: "20",
126
126
  height: "20",
127
127
  viewBox: "0 0 24 24",
@@ -130,28 +130,28 @@ var se = O(p, "UiLayout") || O(ce.UiLayout, "UiLayout"), k = b, A = k.default, c
130
130
  strokeWidth: "2",
131
131
  strokeLinecap: "round",
132
132
  strokeLinejoin: "round",
133
- children: /* @__PURE__ */ C("polyline", { points: "6 9 12 15 18 9" })
133
+ children: /* @__PURE__ */ T("polyline", { points: "6 9 12 15 18 9" })
134
134
  })
135
135
  })]
136
- }), /* @__PURE__ */ C(d, {
136
+ }), /* @__PURE__ */ T(s, {
137
137
  id: `${this.idPrefix}-content`,
138
138
  in: this.state.rubricOpen,
139
139
  timeout: {
140
140
  enter: 225,
141
141
  exit: 195
142
142
  },
143
- children: s
143
+ children: c
144
144
  })] })]
145
145
  });
146
146
  } else return null;
147
147
  }
148
- }, z = /* @__PURE__ */ e(v(), 1), B = class extends HTMLElement {
148
+ }, V = /* @__PURE__ */ e(b(), 1), H = class extends HTMLElement {
149
149
  constructor() {
150
- super(), z.log("constructor called"), this.onModelChanged = this.onModelChanged.bind(this), this._root = null, this._mathObserver = null, this._mathRenderPending = !1;
150
+ super(), V.log("constructor called"), this.onModelChanged = this.onModelChanged.bind(this), this._root = null, this._mathObserver = null, this._mathRenderPending = !1;
151
151
  }
152
152
  _scheduleMathRender = () => {
153
153
  this._mathRenderPending || (this._mathRenderPending = !0, requestAnimationFrame(() => {
154
- this._mathObserver && this._mathObserver.disconnect(), a(this), this._mathRenderPending = !1, setTimeout(() => {
154
+ this._mathObserver && this._mathObserver.disconnect(), o(this), this._mathRenderPending = !1, setTimeout(() => {
155
155
  this._mathObserver && this._mathObserver.observe(this, {
156
156
  childList: !0,
157
157
  subtree: !0
@@ -180,62 +180,62 @@ var se = O(p, "UiLayout") || O(ce.UiLayout, "UiLayout"), k = b, A = k.default, c
180
180
  _render() {
181
181
  if (this._model) {
182
182
  this._initMathObserver();
183
- let e = S.createElement(R, { value: this._model });
184
- this._root ||= T(this), this._root.render(e);
183
+ let e = w.createElement(B, { value: this._model });
184
+ this._root ||= D(this), this._root.render(e);
185
185
  }
186
186
  }
187
187
  disconnectedCallback() {
188
188
  this._disconnectMathObserver(), this._root &&= (this._root.unmount(), null);
189
189
  }
190
- }, V = _("td")({
191
- color: r.primaryDark(),
190
+ }, U = y("td")({
191
+ color: p.primaryDark(),
192
192
  verticalAlign: "middle"
193
- }), H = _("div")({
194
- color: r.secondaryBackground(),
193
+ }), de = y("div")({
194
+ color: p.secondaryBackground(),
195
195
  textAlign: "center"
196
- }), U = (e) => {
197
- let { trait: t, traitIndex: n, scaleIndex: r, showStandards: i, showDescription: a, scorePointsValues: o } = e, { name: s, standards: c, scorePointsDescriptors: l, description: u } = t || {};
198
- return /* @__PURE__ */ w("tr", { children: [
199
- /* @__PURE__ */ C(V, { children: /* @__PURE__ */ C("div", { dangerouslySetInnerHTML: { __html: s } }) }),
200
- i ? /* @__PURE__ */ C("td", { children: /* @__PURE__ */ C("div", { dangerouslySetInnerHTML: { __html: c.join(",") } }) }) : null,
201
- a ? /* @__PURE__ */ C("td", { children: /* @__PURE__ */ C("div", { dangerouslySetInnerHTML: { __html: u } }) }) : null,
202
- o && o.map((e, t) => {
196
+ }), W = (e) => {
197
+ let { trait: t, traitIndex: n, scaleIndex: r, showStandards: a, showDescription: o, scorePointsValues: s } = e, { name: c, standards: l, scorePointsDescriptors: u, description: d } = t || {};
198
+ return /* @__PURE__ */ E("tr", { children: [
199
+ /* @__PURE__ */ T(U, { children: /* @__PURE__ */ T("div", { dangerouslySetInnerHTML: { __html: i(c) } }) }),
200
+ a ? /* @__PURE__ */ T("td", { children: /* @__PURE__ */ T("div", { dangerouslySetInnerHTML: { __html: i(l.join(",")) } }) }) : null,
201
+ o ? /* @__PURE__ */ T("td", { children: /* @__PURE__ */ T("div", { dangerouslySetInnerHTML: { __html: i(d) } }) }) : null,
202
+ s && s.map((e, t) => {
203
203
  let n;
204
204
  try {
205
- n = l[o.length - t - 1] || "";
205
+ n = u[s.length - t - 1] || "";
206
206
  } catch {
207
207
  n = "";
208
208
  }
209
- return /* @__PURE__ */ C("td", { children: n ? /* @__PURE__ */ C("div", { dangerouslySetInnerHTML: { __html: n } }) : /* @__PURE__ */ C(H, { dangerouslySetInnerHTML: { __html: "No Description" } }) }, `table-cell-${t}`);
209
+ return /* @__PURE__ */ T("td", { children: n ? /* @__PURE__ */ T("div", { dangerouslySetInnerHTML: { __html: i(n) } }) : /* @__PURE__ */ T(de, { dangerouslySetInnerHTML: { __html: "No Description" } }) }, `table-cell-${t}`);
210
210
  })
211
211
  ] }, `scale-${r}-trait-${n}`);
212
212
  };
213
- U.propTypes = {
214
- showStandards: E.default.bool,
215
- showDescription: E.default.bool,
216
- scorePointsValues: E.default.arrayOf(E.default.number),
217
- scaleIndex: E.default.number,
218
- traitIndex: E.default.number,
219
- trait: E.default.shape({
220
- name: E.default.string,
221
- standards: E.default.arrayOf(E.default.string),
222
- scorePointsDescriptors: E.default.arrayOf(E.default.string),
223
- description: E.default.string
213
+ W.propTypes = {
214
+ showStandards: O.default.bool,
215
+ showDescription: O.default.bool,
216
+ scorePointsValues: O.default.arrayOf(O.default.number),
217
+ scaleIndex: O.default.number,
218
+ traitIndex: O.default.number,
219
+ trait: O.default.shape({
220
+ name: O.default.string,
221
+ standards: O.default.arrayOf(O.default.string),
222
+ scorePointsDescriptors: O.default.arrayOf(O.default.string),
223
+ description: O.default.string
224
224
  })
225
225
  };
226
226
  //#endregion
227
227
  //#region ../multi-trait-rubric/dist/delivery/scale.js
228
- var fe = _("div")({
228
+ var fe = y("div")({
229
229
  display: "flex",
230
230
  position: "relative"
231
- }), pe = _("div")({
231
+ }), pe = y("div")({
232
232
  width: "100%",
233
233
  overflow: "auto"
234
- }), me = _("table")(({ theme: e }) => ({
234
+ }), me = y("table")(({ theme: e }) => ({
235
235
  borderSpacing: 0,
236
236
  marginBottom: e.spacing(2),
237
237
  borderRadius: "4px",
238
- color: r.text(),
238
+ color: p.text(),
239
239
  fontSize: e.typography.fontSize,
240
240
  lineHeight: "16px",
241
241
  overflow: "unset",
@@ -246,7 +246,7 @@ var fe = _("div")({
246
246
  "& th": {
247
247
  padding: e.spacing(2),
248
248
  textAlign: "left",
249
- backgroundColor: r.secondaryBackground(),
249
+ backgroundColor: p.secondaryBackground(),
250
250
  verticalAlign: "bottom"
251
251
  },
252
252
  "& th div": { width: "200px" },
@@ -255,12 +255,12 @@ var fe = _("div")({
255
255
  padding: `${e.spacing(2)} ${e.spacing(1)}`,
256
256
  verticalAlign: "top"
257
257
  }
258
- })), he = _("table")({ "& td": {
258
+ })), he = y("table")({ "& td": {
259
259
  border: 0,
260
260
  padding: 0,
261
261
  textAlign: "center",
262
262
  minWidth: "200px"
263
- } }), ge = _("div")({ marginBottom: "4px" }), _e = _("td")({ fontWeight: "normal" }), W = ({ show: e, onClick: t, extraStyles: n, children: r }) => /* @__PURE__ */ C("div", {
263
+ } }), ge = y("div")({ marginBottom: "4px" }), _e = y("td")({ fontWeight: "normal" }), G = ({ show: e, onClick: t, extraStyles: n, children: r }) => /* @__PURE__ */ T("div", {
264
264
  style: {
265
265
  height: "calc(100% - 1px)",
266
266
  top: "1px",
@@ -276,13 +276,13 @@ var fe = _("div")({
276
276
  onClick: t,
277
277
  children: r
278
278
  });
279
- W.propTypes = {
280
- show: E.default.bool,
281
- onClick: E.default.func,
282
- extraStyles: E.default.object,
283
- children: E.default.object
279
+ G.propTypes = {
280
+ show: O.default.bool,
281
+ onClick: O.default.func,
282
+ extraStyles: O.default.object,
283
+ children: O.default.object
284
284
  };
285
- var G = class extends S.Component {
285
+ var K = class extends w.Component {
286
286
  state = {};
287
287
  componentDidMount() {
288
288
  this.tableWrapper && this.tableWrapper.offsetWidth < this.tableWrapper.scrollWidth && this.setState({ showRight: !0 });
@@ -301,9 +301,9 @@ var G = class extends S.Component {
301
301
  });
302
302
  };
303
303
  render() {
304
- let { showRight: e, showLeft: t } = this.state, { scale: n, scaleIndex: i, showDescription: a, showPointsLabels: o, showStandards: s, arrowsDisabled: c } = this.props, { excludeZero: l, maxPoints: u, traitLabel: d, traits: f, scorePointsLabels: p } = n || {}, h = [], g, _, v;
304
+ let { showRight: e, showLeft: t } = this.state, { scale: n, scaleIndex: r, showDescription: a, showPointsLabels: o, showStandards: s, arrowsDisabled: c } = this.props, { excludeZero: l, maxPoints: u, traitLabel: d, traits: f, scorePointsLabels: m } = n || {}, g = [], _, v, y;
305
305
  try {
306
- for (let e = u; +(e >= l); --e) h.push(e);
306
+ for (let e = u; +(e >= l); --e) g.push(e);
307
307
  let { traitStandards: e, traitDescriptions: t } = f.reduce((e, t) => ({
308
308
  traitStandards: [...e.traitStandards, ...t.standards || []],
309
309
  traitDescriptions: [...e.traitDescriptions, ...t.description || []]
@@ -311,21 +311,21 @@ var G = class extends S.Component {
311
311
  traitStandards: [],
312
312
  traitDescriptions: []
313
313
  });
314
- g = a && t.length, _ = o && p.length, v = s && e.length;
314
+ _ = a && t.length, v = o && m.length, y = s && e.length;
315
315
  } catch {
316
- g = !1, _ = !1, v = !1;
316
+ _ = !1, v = !1, y = !1;
317
317
  }
318
- return /* @__PURE__ */ w(fe, { children: [
319
- /* @__PURE__ */ C(W, {
318
+ return /* @__PURE__ */ E(fe, { children: [
319
+ /* @__PURE__ */ T(G, {
320
320
  show: t && !c,
321
321
  onClick: this.scrollLeft,
322
322
  extraStyles: {
323
323
  left: 0,
324
- background: `linear-gradient(to right, white, ${r.background()})`
324
+ background: `linear-gradient(to right, white, ${p.background()})`
325
325
  },
326
- children: /* @__PURE__ */ C(m, {})
326
+ children: /* @__PURE__ */ T(h, {})
327
327
  }),
328
- /* @__PURE__ */ w(pe, {
328
+ /* @__PURE__ */ E(pe, {
329
329
  ref: (e) => {
330
330
  this.tableWrapper = e;
331
331
  },
@@ -335,66 +335,66 @@ var G = class extends S.Component {
335
335
  showLeft: this.tableWrapper.scrollLeft < this.tableWrapper.scrollWidth && this.tableWrapper.scrollLeft > 0
336
336
  });
337
337
  },
338
- children: [c && (e || t) ? /* @__PURE__ */ C("div", { children: "The item is too large to fit in print mode." }) : null, /* @__PURE__ */ w(me, { children: [/* @__PURE__ */ C("thead", { children: /* @__PURE__ */ w("tr", { children: [
339
- /* @__PURE__ */ C("th", { children: /* @__PURE__ */ C("div", { dangerouslySetInnerHTML: { __html: d } }) }),
340
- v ? /* @__PURE__ */ C("th", { children: /* @__PURE__ */ C("div", { children: "Standard(s)" }) }) : null,
341
- g ? /* @__PURE__ */ C("th", { children: /* @__PURE__ */ C("div", { children: "Description" }) }) : null,
342
- h && h.map((e, t) => {
338
+ children: [c && (e || t) ? /* @__PURE__ */ T("div", { children: "The item is too large to fit in print mode." }) : null, /* @__PURE__ */ E(me, { children: [/* @__PURE__ */ T("thead", { children: /* @__PURE__ */ E("tr", { children: [
339
+ /* @__PURE__ */ T("th", { children: /* @__PURE__ */ T("div", { dangerouslySetInnerHTML: { __html: i(d) } }) }),
340
+ y ? /* @__PURE__ */ T("th", { children: /* @__PURE__ */ T("div", { children: "Standard(s)" }) }) : null,
341
+ _ ? /* @__PURE__ */ T("th", { children: /* @__PURE__ */ T("div", { children: "Description" }) }) : null,
342
+ g && g.map((e, t) => {
343
343
  let n = "";
344
344
  try {
345
- n = p[h.length - t - 1] || "";
345
+ n = m[g.length - t - 1] || "";
346
346
  } catch {
347
347
  n = "";
348
348
  }
349
- return /* @__PURE__ */ C("th", { children: /* @__PURE__ */ C(he, { children: /* @__PURE__ */ w("thead", { children: [_ ? /* @__PURE__ */ C("tr", { children: /* @__PURE__ */ C("td", { children: /* @__PURE__ */ C(ge, { dangerouslySetInnerHTML: { __html: n } }) }) }) : null, /* @__PURE__ */ C("tr", { children: /* @__PURE__ */ C(_e, { children: e === 1 ? `${e} point` : `${e} points` }) })] }) }) }, `table-header-${t}`);
349
+ return /* @__PURE__ */ T("th", { children: /* @__PURE__ */ T(he, { children: /* @__PURE__ */ E("thead", { children: [v ? /* @__PURE__ */ T("tr", { children: /* @__PURE__ */ T("td", { children: /* @__PURE__ */ T(ge, { dangerouslySetInnerHTML: { __html: i(n) } }) }) }) : null, /* @__PURE__ */ T("tr", { children: /* @__PURE__ */ T(_e, { children: e === 1 ? `${e} point` : `${e} points` }) })] }) }) }, `table-header-${t}`);
350
350
  })
351
- ] }) }), /* @__PURE__ */ C("tbody", { children: f && f.map((e, t) => /* @__PURE__ */ C(U, {
351
+ ] }) }), /* @__PURE__ */ T("tbody", { children: f && f.map((e, t) => /* @__PURE__ */ T(W, {
352
352
  trait: e,
353
353
  traitIndex: t,
354
- showDescription: !!g,
355
- showStandards: !!v,
356
- scaleIndex: i,
357
- scorePointsValues: h,
354
+ showDescription: !!_,
355
+ showStandards: !!y,
356
+ scaleIndex: r,
357
+ scorePointsValues: g,
358
358
  excludeZero: l
359
- }, `trait_${i}_${t}`)) })] }, `scale-${i}`)]
359
+ }, `trait_${r}_${t}`)) })] }, `scale-${r}`)]
360
360
  }),
361
- /* @__PURE__ */ C(W, {
361
+ /* @__PURE__ */ T(G, {
362
362
  show: e && !c,
363
363
  onClick: this.scrollRight,
364
364
  extraStyles: {
365
365
  right: 0,
366
- background: `linear-gradient(to left, white, ${r.background()})`
366
+ background: `linear-gradient(to left, white, ${p.background()})`
367
367
  },
368
- children: /* @__PURE__ */ C(te, {})
368
+ children: /* @__PURE__ */ T(ne, {})
369
369
  })
370
370
  ] });
371
371
  }
372
372
  };
373
- G.propTypes = {
374
- scaleIndex: E.default.number,
375
- scale: E.default.shape({
376
- excludeZero: E.default.bool,
377
- maxPoints: E.default.number,
378
- scorePointsLabels: E.default.arrayOf(E.default.string),
379
- traitLabel: E.default.string,
380
- traits: E.default.arrayOf(E.default.shape({
381
- name: E.default.string,
382
- standards: E.default.arrayOf(E.default.string),
383
- scorePointsDescriptors: E.default.arrayOf(E.default.string),
384
- description: E.default.string
373
+ K.propTypes = {
374
+ scaleIndex: O.default.number,
375
+ scale: O.default.shape({
376
+ excludeZero: O.default.bool,
377
+ maxPoints: O.default.number,
378
+ scorePointsLabels: O.default.arrayOf(O.default.string),
379
+ traitLabel: O.default.string,
380
+ traits: O.default.arrayOf(O.default.shape({
381
+ name: O.default.string,
382
+ standards: O.default.arrayOf(O.default.string),
383
+ scorePointsDescriptors: O.default.arrayOf(O.default.string),
384
+ description: O.default.string
385
385
  }))
386
386
  }),
387
- showPointsLabels: E.default.bool,
388
- showDescription: E.default.bool,
389
- showStandards: E.default.bool,
390
- arrowsDisabled: E.default.bool
387
+ showPointsLabels: O.default.bool,
388
+ showDescription: O.default.bool,
389
+ showStandards: O.default.bool,
390
+ arrowsDisabled: O.default.bool
391
391
  };
392
392
  //#endregion
393
393
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Link/linkClasses.js
394
394
  function ve(e) {
395
- return i("MuiLink", e);
395
+ return l("MuiLink", e);
396
396
  }
397
- var ye = o("MuiLink", [
397
+ var ye = a("MuiLink", [
398
398
  "root",
399
399
  "underlineNone",
400
400
  "underlineHover",
@@ -404,12 +404,12 @@ var ye = o("MuiLink", [
404
404
  ]), be = ({ theme: e, ownerState: t }) => {
405
405
  let n = t.color;
406
406
  if ("colorSpace" in e && e.colorSpace) {
407
- let r = y(e, `palette.${n}.main`) || y(e, `palette.${n}`) || t.color;
408
- return e.alpha(r, .4);
407
+ let i = r(e, `palette.${n}.main`) || r(e, `palette.${n}`) || t.color;
408
+ return e.alpha(i, .4);
409
409
  }
410
- let r = y(e, `palette.${n}.main`, !1) || y(e, `palette.${n}`, !1) || t.color, i = y(e, `palette.${n}.mainChannel`) || y(e, `palette.${n}Channel`);
411
- return "vars" in e && i ? `rgba(${i} / 0.4)` : ae(r, .4);
412
- }, K = {
410
+ let i = r(e, `palette.${n}.main`, !1) || r(e, `palette.${n}`, !1) || t.color, a = r(e, `palette.${n}.mainChannel`) || r(e, `palette.${n}Channel`);
411
+ return "vars" in e && a ? `rgba(${a} / 0.4)` : f(i, .4);
412
+ }, q = {
413
413
  primary: !0,
414
414
  secondary: !0,
415
415
  error: !0,
@@ -420,25 +420,25 @@ var ye = o("MuiLink", [
420
420
  textSecondary: !0,
421
421
  textDisabled: !0
422
422
  }, xe = (e) => {
423
- let { classes: t, component: n, focusVisible: r, underline: i } = e;
424
- return oe({ root: [
423
+ let { classes: n, component: r, focusVisible: i, underline: a } = e;
424
+ return u({ root: [
425
425
  "root",
426
- `underline${l(i)}`,
427
- n === "button" && "button",
428
- r && "focusVisible"
429
- ] }, ve, t);
430
- }, Se = _(ee, {
426
+ `underline${t(a)}`,
427
+ r === "button" && "button",
428
+ i && "focusVisible"
429
+ ] }, ve, n);
430
+ }, Se = y(te, {
431
431
  name: "MuiLink",
432
432
  slot: "Root",
433
- overridesResolver: (e, t) => {
434
- let { ownerState: n } = e;
433
+ overridesResolver: (e, n) => {
434
+ let { ownerState: r } = e;
435
435
  return [
436
- t.root,
437
- t[`underline${l(n.underline)}`],
438
- n.component === "button" && t.button
436
+ n.root,
437
+ n[`underline${t(r.underline)}`],
438
+ r.component === "button" && n.button
439
439
  ];
440
440
  }
441
- })(h(({ theme: e }) => ({ variants: [
441
+ })(v(({ theme: e }) => ({ variants: [
442
442
  {
443
443
  props: { underline: "none" },
444
444
  style: { textDecoration: "none" }
@@ -513,50 +513,50 @@ var ye = o("MuiLink", [
513
513
  [`&.${ye.focusVisible}`]: { outline: "auto" }
514
514
  }
515
515
  }
516
- ] }))), Ce = /*#__PURE__*/ x.forwardRef(function(e, t) {
517
- let n = ne({
516
+ ] }))), Ce = /*#__PURE__*/ C.forwardRef(function(e, t) {
517
+ let n = g({
518
518
  props: e,
519
519
  name: "MuiLink"
520
- }), r = re(), { className: i, color: a = "primary", component: o = "a", onBlur: s, onFocus: l, TypographyClasses: u, underline: d = "always", variant: p = "inherit", sx: m, ...h } = n, [g, _] = x.useState(!1), v = (e) => {
521
- f(e.target) || _(!1), s && s(e);
522
- }, y = (e) => {
523
- f(e.target) && _(!0), l && l(e);
524
- }, b = {
520
+ }), r = ae(), { className: i, color: a = "primary", component: o = "a", onBlur: s, onFocus: c, TypographyClasses: l, underline: u = "always", variant: d = "inherit", sx: f, ...p } = n, [m, h] = C.useState(!1), _ = (e) => {
521
+ S(e.target) || h(!1), s && s(e);
522
+ }, v = (e) => {
523
+ S(e.target) && h(!0), c && c(e);
524
+ }, y = {
525
525
  ...n,
526
526
  color: a,
527
527
  component: o,
528
- focusVisible: g,
529
- underline: d,
530
- variant: p
528
+ focusVisible: m,
529
+ underline: u,
530
+ variant: d
531
531
  };
532
- return /*#__PURE__*/ C(Se, {
532
+ return /*#__PURE__*/ T(Se, {
533
533
  color: a,
534
- className: c(xe(b).root, i),
535
- classes: u,
534
+ className: ee(xe(y).root, i),
535
+ classes: l,
536
536
  component: o,
537
- onBlur: v,
538
- onFocus: y,
537
+ onBlur: _,
538
+ onFocus: v,
539
539
  ref: t,
540
- ownerState: b,
541
- variant: p,
542
- ...h,
543
- sx: [...K[a] === void 0 ? [{ color: a }] : [], ...Array.isArray(m) ? m : [m]],
540
+ ownerState: y,
541
+ variant: d,
542
+ ...p,
543
+ sx: [...q[a] === void 0 ? [{ color: a }] : [], ...Array.isArray(f) ? f : [f]],
544
544
  style: {
545
- ...h.style,
546
- ...d === "always" && a !== "inherit" && !K[a] && { "--Link-underlineColor": be({
545
+ ...p.style,
546
+ ...u === "always" && a !== "inherit" && !q[a] && { "--Link-underlineColor": be({
547
547
  theme: r,
548
- ownerState: b
548
+ ownerState: y
549
549
  }) }
550
550
  }
551
551
  });
552
- }), { translator: we } = u;
553
- function q(e) {
552
+ }), { translator: we } = d;
553
+ function J(e) {
554
554
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
555
555
  }
556
- function J(e, t) {
557
- return !e || q(e) ? e : q(e.default) ? e.default : t && q(e[t]) ? e[t] : t && q(e[t]?.default) ? e[t].default : e;
556
+ function Y(e, t) {
557
+ 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;
558
558
  }
559
- var Y = J(p, "UiLayout") || J(Q.UiLayout, "UiLayout"), X = b, Z = X.default, Q = Z && typeof Z == "object" ? Z : X, $ = class extends S.Component {
559
+ var X = Y(m, "UiLayout") || Y(Te.UiLayout, "UiLayout"), Z = x, Q = Z.default, Te = Q && typeof Q == "object" ? Q : Z, $ = class extends w.Component {
560
560
  constructor(e) {
561
561
  super(e), this.state = { rubricOpen: !1 }, this.toggleRubric = this.toggleRubric.bind(this);
562
562
  }
@@ -564,81 +564,81 @@ var Y = J(p, "UiLayout") || J(Q.UiLayout, "UiLayout"), X = b, Z = X.default, Q =
564
564
  this.setState({ rubricOpen: !this.state.rubricOpen });
565
565
  }
566
566
  render() {
567
- let { model: e } = this.props, { animationsDisabled: t } = this.props, { extraCSSRules: n, halfScoring: i, scales: a, visible: o, pointLabels: s, description: c, standards: l, arrowsDisabled: u } = e || {};
568
- if (t ||= e.animationsDisabled, !a || !o) return null;
569
- let f = /* @__PURE__ */ w(Y, {
567
+ let { model: e } = this.props, { animationsDisabled: t } = this.props, { extraCSSRules: n, halfScoring: r, scales: i, visible: a, pointLabels: o, description: c, standards: l, arrowsDisabled: u } = e || {};
568
+ if (t ||= e.animationsDisabled, !i || !a) return null;
569
+ let d = /* @__PURE__ */ E(X, {
570
570
  extraCSSRules: n,
571
571
  style: {
572
572
  fontFamily: "Cerebri Sans",
573
- color: r.text(),
574
- backgroundColor: r.background()
573
+ color: p.text(),
574
+ backgroundColor: p.background()
575
575
  },
576
- children: [i ? /* @__PURE__ */ C("div", {
576
+ children: [r ? /* @__PURE__ */ T("div", {
577
577
  style: { marginBottom: "16px" },
578
578
  children: "* Half-point or in-between scores are permitted under this rubric."
579
- }) : null, a.map((e, t) => /* @__PURE__ */ C(G, {
579
+ }) : null, i.map((e, t) => /* @__PURE__ */ T(K, {
580
580
  scale: e,
581
581
  scaleIndex: t,
582
- showPointsLabels: s,
582
+ showPointsLabels: o,
583
583
  showDescription: c,
584
584
  showStandards: l,
585
585
  arrowsDisabled: u
586
586
  }, `scale_${t}`))]
587
587
  });
588
- return t ? f : /* @__PURE__ */ w(Y, {
588
+ return t ? d : /* @__PURE__ */ E(X, {
589
589
  extraCSSRules: n,
590
590
  style: {
591
- color: r.text(),
592
- backgroundColor: r.background()
591
+ color: p.text(),
592
+ backgroundColor: p.background()
593
593
  },
594
- children: [/* @__PURE__ */ C(Ce, {
594
+ children: [/* @__PURE__ */ T(Ce, {
595
595
  component: "button",
596
596
  type: "button",
597
597
  "aria-expanded": this.state.rubricOpen,
598
598
  style: {
599
- backgroundColor: r.background(),
599
+ backgroundColor: p.background(),
600
600
  minHeight: "24px"
601
601
  },
602
602
  onClick: this.toggleRubric,
603
603
  children: we.t(this.state.rubricOpen ? "rubric.hideRubric" : "rubric.showRubric", { lng: e.language })
604
- }), /* @__PURE__ */ C(d, {
604
+ }), /* @__PURE__ */ T(s, {
605
605
  style: { marginTop: "16px" },
606
606
  in: this.state.rubricOpen,
607
607
  timeout: {
608
608
  enter: 225,
609
609
  exit: 195
610
610
  },
611
- children: f
611
+ children: d
612
612
  })]
613
613
  });
614
614
  }
615
615
  };
616
616
  $.propTypes = {
617
- model: E.default.shape({
618
- halfScoring: E.default.bool,
619
- scales: E.default.arrayOf(E.default.shape({
620
- excludeZero: E.default.bool,
621
- maxPoints: E.default.number,
622
- scorePointsLabels: E.default.arrayOf(E.default.string),
623
- traitLabel: E.default.string,
624
- traits: E.default.arrayOf(E.default.shape({
625
- name: E.default.string,
626
- description: E.default.string,
627
- scorePointsDescriptors: E.default.arrayOf(E.default.string),
628
- standards: E.default.arrayOf(E.default.string)
617
+ model: O.default.shape({
618
+ halfScoring: O.default.bool,
619
+ scales: O.default.arrayOf(O.default.shape({
620
+ excludeZero: O.default.bool,
621
+ maxPoints: O.default.number,
622
+ scorePointsLabels: O.default.arrayOf(O.default.string),
623
+ traitLabel: O.default.string,
624
+ traits: O.default.arrayOf(O.default.shape({
625
+ name: O.default.string,
626
+ description: O.default.string,
627
+ scorePointsDescriptors: O.default.arrayOf(O.default.string),
628
+ standards: O.default.arrayOf(O.default.string)
629
629
  }))
630
630
  })),
631
- visible: E.default.bool,
632
- pointLabels: E.default.bool,
633
- description: E.default.bool,
634
- standards: E.default.bool,
635
- animationsDisabled: E.default.bool
631
+ visible: O.default.bool,
632
+ pointLabels: O.default.bool,
633
+ description: O.default.bool,
634
+ standards: O.default.bool,
635
+ animationsDisabled: O.default.bool
636
636
  }),
637
- animationsDisabled: E.default.bool
637
+ animationsDisabled: O.default.bool
638
638
  };
639
639
  //#endregion
640
640
  //#region ../../shared/player-events/dist/index.js
641
- var Te = class e extends CustomEvent {
641
+ var Ee = class e extends CustomEvent {
642
642
  static {
643
643
  this.TYPE = "model-set";
644
644
  }
@@ -671,13 +671,13 @@ var Te = class e extends CustomEvent {
671
671
  });
672
672
  //#endregion
673
673
  //#region ../multi-trait-rubric/dist/delivery/index.js
674
- var Ee = class extends HTMLElement {
674
+ var De = class extends HTMLElement {
675
675
  constructor() {
676
676
  super(), this._model = {}, this._session = null, this._root = null, this._mathObserver = null, this._mathRenderPending = !1;
677
677
  }
678
678
  _scheduleMathRender = () => {
679
679
  this._mathRenderPending || (this._mathRenderPending = !0, requestAnimationFrame(() => {
680
- this._mathObserver && this._mathObserver.disconnect(), a(this), this._mathRenderPending = !1, setTimeout(() => {
680
+ this._mathObserver && this._mathObserver.disconnect(), o(this), this._mathRenderPending = !1, setTimeout(() => {
681
681
  this._mathObserver && this._mathObserver.observe(this, {
682
682
  childList: !0,
683
683
  subtree: !0
@@ -695,7 +695,7 @@ var Ee = class extends HTMLElement {
695
695
  this._mathObserver &&= (this._mathObserver.disconnect(), null);
696
696
  }
697
697
  set model(e) {
698
- this._model = e, this.dispatchEvent(new Te(this.tagName.toLowerCase(), this._session, !!this._model)), this._render();
698
+ this._model = e, this.dispatchEvent(new Ee(this.tagName.toLowerCase(), this._session, !!this._model)), this._render();
699
699
  }
700
700
  set session(e) {
701
701
  this._session = e;
@@ -708,17 +708,17 @@ var Ee = class extends HTMLElement {
708
708
  }
709
709
  _render() {
710
710
  this._initMathObserver();
711
- let e = S.createElement($, {
711
+ let e = w.createElement($, {
712
712
  model: this._model,
713
713
  session: this._session
714
714
  });
715
- this._root ||= T(this), this._root.render(e);
715
+ this._root ||= D(this), this._root.render(e);
716
716
  }
717
717
  disconnectedCallback() {
718
718
  this._disconnectMathObserver(), this._root &&= (this._root.unmount(), null);
719
719
  }
720
720
  };
721
721
  //#endregion
722
- export { B as n, Ee as t };
722
+ export { H as n, De as t };
723
723
 
724
- //# sourceMappingURL=delivery-ucuTcpxA.js.map
724
+ //# sourceMappingURL=delivery-C38tmLPB.js.map