@pie-qti/item-player 0.1.14 → 0.1.15
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/element.js
CHANGED
|
@@ -5623,103 +5623,106 @@ function jc(e, t = Ac) {
|
|
|
5623
5623
|
}
|
|
5624
5624
|
function Mc(e, t) {
|
|
5625
5625
|
let { outcomeValues: n, applyHeuristics: r = !1, wrapWithSpan: i = !1, transforms: a } = t;
|
|
5626
|
-
return e && e.replace(/<feedbackInline
|
|
5627
|
-
let c = n[
|
|
5628
|
-
if (
|
|
5629
|
-
let
|
|
5630
|
-
return r && (
|
|
5626
|
+
return e && e.replace(/<feedbackInline\b([^>]*)>([\s\S]*?)<\/feedbackInline>/gi, (e, t, o) => {
|
|
5627
|
+
let s = Nc(t, "outcomeIdentifier"), c = Nc(t, "identifier"), l = Nc(t, "showHide") ?? "show", u = s ? n[s] : void 0;
|
|
5628
|
+
if (s === null || c === null || u == null || u === "") return "";
|
|
5629
|
+
let d = Array.isArray(u) ? u.includes(c) : u === c;
|
|
5630
|
+
return (l.toLowerCase() === "show" ? d : !d) ? (r && (o = jc(o, a)), i ? ` <span class="qti-feedback-inline">${o}</span>` : o) : "";
|
|
5631
5631
|
});
|
|
5632
5632
|
}
|
|
5633
|
+
function Nc(e, t) {
|
|
5634
|
+
return (RegExp(`\\b${t}\\s*=\\s*"([^"]*)"`, "i").exec(e) ?? RegExp(`\\b${t}\\s*=\\s*'([^']*)'`, "i").exec(e))?.[1] ?? null;
|
|
5635
|
+
}
|
|
5633
5636
|
//#endregion
|
|
5634
5637
|
//#region src/components/utils/stylesheetRender.ts
|
|
5635
|
-
function
|
|
5636
|
-
return e ? e.stylesheets.map((e) =>
|
|
5638
|
+
function Pc(e, t = "[data-qti-item-body-scope]") {
|
|
5639
|
+
return e ? e.stylesheets.map((e) => Fc(e, t)).filter(Boolean).join("\n") : "";
|
|
5637
5640
|
}
|
|
5638
|
-
function
|
|
5641
|
+
function Fc(e, t) {
|
|
5639
5642
|
let n = e.cssText?.trim();
|
|
5640
|
-
return !n || se(n) ? "" :
|
|
5643
|
+
return !n || se(n) ? "" : Ic(n, Lc(e, t)) || "";
|
|
5641
5644
|
}
|
|
5642
|
-
function
|
|
5645
|
+
function Ic(e, t = "[data-qti-item-body-scope]") {
|
|
5643
5646
|
let n = e.replace(/\/\*[\s\S]*?\*\//g, ""), r = "";
|
|
5644
5647
|
for (let e of n.matchAll(/([^{}@]+)\{([^{}]*)\}/g)) {
|
|
5645
5648
|
let n = e[1]?.trim(), i = e[2]?.trim();
|
|
5646
5649
|
if (!n || !i) continue;
|
|
5647
|
-
let a = n.split(",").map((e) =>
|
|
5650
|
+
let a = n.split(",").map((e) => Rc(e.trim(), t)).filter(Boolean);
|
|
5648
5651
|
a.length !== 0 && (r += `${a.join(", ")} { ${i} }\n`);
|
|
5649
5652
|
}
|
|
5650
5653
|
return r.trim();
|
|
5651
5654
|
}
|
|
5652
|
-
function Ic(e, t) {
|
|
5653
|
-
return e.source !== "stimulus" || !e.stimulusIdentifier ? t : `${t} [data-stimulus-idref="${Rc(e.stimulusIdentifier)}"]`;
|
|
5654
|
-
}
|
|
5655
5655
|
function Lc(e, t) {
|
|
5656
|
+
return e.source !== "stimulus" || !e.stimulusIdentifier ? t : `${t} [data-stimulus-idref="${zc(e.stimulusIdentifier)}"]`;
|
|
5657
|
+
}
|
|
5658
|
+
function Rc(e, t) {
|
|
5656
5659
|
return e ? e.startsWith(t) ? e : e === ":root" || e === "html" || e === "body" ? t : e.startsWith(":") ? `${t}${e}` : `${t} ${e}` : "";
|
|
5657
5660
|
}
|
|
5658
|
-
function
|
|
5661
|
+
function zc(e) {
|
|
5659
5662
|
return e.replace(/\\/g, "\\\\").replace(/"/g, "\\\"").replace(/\n|\r|\f/g, " ");
|
|
5660
5663
|
}
|
|
5661
5664
|
//#endregion
|
|
5662
5665
|
//#region src/components/utils/stimulusRender.ts
|
|
5663
|
-
function
|
|
5666
|
+
function Bc(e, t, n) {
|
|
5664
5667
|
let r = Object.fromEntries(Object.entries(e?.stimuli ?? {}).map(([e, t]) => [e, n(t.bodyHtml)])), i = Object.fromEntries(Object.entries(t).map(([e, t]) => [e, n(t)]));
|
|
5665
5668
|
return {
|
|
5666
5669
|
...r,
|
|
5667
5670
|
...i
|
|
5668
5671
|
};
|
|
5669
5672
|
}
|
|
5670
|
-
function
|
|
5673
|
+
function Vc(e, t) {
|
|
5671
5674
|
if (Object.keys(t).length === 0) return e;
|
|
5672
5675
|
let n = /* @__PURE__ */ new Set(), r = e.replace(/<([a-z][\w:-]*)([^>]*\bdata-stimulus-idref=(["'])([^"']+)\3[^>]*)>\s*<\/\1>/gi, (e, r, i, a, o) => {
|
|
5673
5676
|
let s = t[o];
|
|
5674
|
-
return s ? (n.add(o), `<${r}${
|
|
5677
|
+
return s ? (n.add(o), `<${r}${Uc(i, "qti-stimulus-dock")}>${s}</${r}>`) : e;
|
|
5675
5678
|
});
|
|
5676
5679
|
r = r.replace(/<qti-assessment-stimulus-ref\b([^>]*)\/?>\s*(?:<\/qti-assessment-stimulus-ref>)?/gi, (e, r) => {
|
|
5677
|
-
let i =
|
|
5680
|
+
let i = Hc(r, "identifier");
|
|
5678
5681
|
if (!i) return e;
|
|
5679
5682
|
if (n.has(i)) return "";
|
|
5680
5683
|
let a = t[i];
|
|
5681
|
-
return a ? (n.add(i), `<div data-stimulus-idref="${
|
|
5684
|
+
return a ? (n.add(i), `<div data-stimulus-idref="${Wc(i)}" class="qti-stimulus-dock">${a}</div>`) : e;
|
|
5682
5685
|
});
|
|
5683
|
-
let i = Object.entries(t).filter(([e]) => !n.has(e)).map(([e, t]) => `<div data-stimulus-idref="${
|
|
5686
|
+
let i = Object.entries(t).filter(([e]) => !n.has(e)).map(([e, t]) => `<div data-stimulus-idref="${Wc(e)}" class="qti-stimulus-block">${t}</div>`).join("");
|
|
5684
5687
|
return i ? i + r : r;
|
|
5685
5688
|
}
|
|
5686
|
-
function
|
|
5689
|
+
function Hc(e, t) {
|
|
5687
5690
|
return e.match(RegExp(`\\b${t}\\s*=\\s*["']([^"']+)["']`, "i"))?.[1] ?? null;
|
|
5688
5691
|
}
|
|
5689
|
-
function
|
|
5692
|
+
function Uc(e, t) {
|
|
5690
5693
|
let n = e.match(/\bclass\s*=\s*(["'])([^"']*)\1/i);
|
|
5691
5694
|
if (!n) return `${e} class="${t}"`;
|
|
5692
5695
|
let r = n[1], i = n[2] ?? "", a = new Set(i.split(/\s+/).filter(Boolean));
|
|
5693
5696
|
return a.add(t), e.replace(n[0], `class=${r}${Array.from(a).join(" ")}${r}`);
|
|
5694
5697
|
}
|
|
5695
|
-
function
|
|
5698
|
+
function Wc(e) {
|
|
5696
5699
|
return e.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
5697
5700
|
}
|
|
5698
5701
|
//#endregion
|
|
5699
5702
|
//#region src/interactions/inline/render-plan.ts
|
|
5700
|
-
function
|
|
5703
|
+
function Gc(e) {
|
|
5701
5704
|
return es(e);
|
|
5702
5705
|
}
|
|
5703
|
-
function
|
|
5706
|
+
function Kc(e) {
|
|
5704
5707
|
return ts(e);
|
|
5705
5708
|
}
|
|
5706
|
-
function Kc(e, t) {
|
|
5707
|
-
return e.replace(/<textEntryInteraction[^>]*responseIdentifier="([^"]+)"[^>]*?(?:\/>|><\/textEntryInteraction>)/gi, (e, n) => Yc(t, n, "textEntryInteraction") ? Jc("textEntry", n) : e).replace(/<qti-text-entry-interaction[^>]*response-identifier="([^"]+)"[^>]*?(?:\/>|><\/qti-text-entry-interaction>)/gi, (e, n) => Yc(t, n, "textEntryInteraction") ? Jc("textEntry", n) : e).replace(/<inlineChoiceInteraction[^>]*responseIdentifier="([^"]+)"[^>]*>[\s\S]*?<\/inlineChoiceInteraction>/gi, (e, n) => Yc(t, n, "inlineChoiceInteraction") ? Jc("inlineChoice", n) : e).replace(/<qti-inline-choice-interaction[^>]*response-identifier="([^"]+)"[^>]*>[\s\S]*?<\/qti-inline-choice-interaction>/gi, (e, n) => Yc(t, n, "inlineChoiceInteraction") ? Jc("inlineChoice", n) : e);
|
|
5708
|
-
}
|
|
5709
5709
|
function qc(e, t) {
|
|
5710
|
-
|
|
5710
|
+
return e.replace(/<textEntryInteraction[^>]*responseIdentifier="([^"]+)"[^>]*?(?:\/>|><\/textEntryInteraction>)/gi, (e, n) => Xc(t, n, "textEntryInteraction") ? Yc("textEntry", n) : e).replace(/<qti-text-entry-interaction[^>]*response-identifier="([^"]+)"[^>]*?(?:\/>|><\/qti-text-entry-interaction>)/gi, (e, n) => Xc(t, n, "textEntryInteraction") ? Yc("textEntry", n) : e).replace(/<inlineChoiceInteraction[^>]*responseIdentifier="([^"]+)"[^>]*>[\s\S]*?<\/inlineChoiceInteraction>/gi, (e, n) => Xc(t, n, "inlineChoiceInteraction") ? Yc("inlineChoice", n) : e).replace(/<qti-inline-choice-interaction[^>]*response-identifier="([^"]+)"[^>]*>[\s\S]*?<\/qti-inline-choice-interaction>/gi, (e, n) => Xc(t, n, "inlineChoiceInteraction") ? Yc("inlineChoice", n) : e);
|
|
5711
|
+
}
|
|
5712
|
+
function Jc(e, t) {
|
|
5713
|
+
let n = qc(e, t), r = [], i = /\[TEXTENTRY:([^\]]+)\]|\[INLINECHOICE:([^\]]+)\]/g, a = 0, o;
|
|
5711
5714
|
for (; (o = i.exec(n)) !== null;) {
|
|
5712
5715
|
if (o.index > a && r.push({
|
|
5713
5716
|
type: "html",
|
|
5714
5717
|
content: n.substring(a, o.index)
|
|
5715
5718
|
}), o[0].startsWith("[TEXTENTRY:")) {
|
|
5716
|
-
let e =
|
|
5719
|
+
let e = Zc(t, o[1], "textEntryInteraction");
|
|
5717
5720
|
e && r.push({
|
|
5718
5721
|
type: "textEntry",
|
|
5719
5722
|
interaction: e
|
|
5720
5723
|
});
|
|
5721
5724
|
} else {
|
|
5722
|
-
let e =
|
|
5725
|
+
let e = Zc(t, o[2], "inlineChoiceInteraction");
|
|
5723
5726
|
e && r.push({
|
|
5724
5727
|
type: "inlineChoice",
|
|
5725
5728
|
interaction: e
|
|
@@ -5735,19 +5738,19 @@ function qc(e, t) {
|
|
|
5735
5738
|
content: n
|
|
5736
5739
|
}];
|
|
5737
5740
|
}
|
|
5738
|
-
function
|
|
5741
|
+
function Yc(e, t) {
|
|
5739
5742
|
return e === "textEntry" ? `[TEXTENTRY:${t}]` : `[INLINECHOICE:${t}]`;
|
|
5740
5743
|
}
|
|
5741
|
-
function Yc(e, t, n) {
|
|
5742
|
-
return !!Xc(e, t, n);
|
|
5743
|
-
}
|
|
5744
5744
|
function Xc(e, t, n) {
|
|
5745
|
+
return !!Zc(e, t, n);
|
|
5746
|
+
}
|
|
5747
|
+
function Zc(e, t, n) {
|
|
5745
5748
|
return e.find((e) => e.responseId === t && e.type === n) ?? null;
|
|
5746
5749
|
}
|
|
5747
5750
|
//#endregion
|
|
5748
5751
|
//#region src/presentation/itemPresentationPlan.ts
|
|
5749
|
-
function
|
|
5750
|
-
let d = e.getInteractionData(), f = kc(r), p = n || f.isReadOnly, m = f.canViewCorrectResponses ? e.getCorrectResponses() : {}, h =
|
|
5752
|
+
function Qc({ player: e, responses: t = {}, disabled: n = !1, role: r = "candidate", outcomeValues: i = {}, heuristicsConfig: a, stimulusContent: o = {}, deliveryContext: s, itemBodyScopeSelector: c = "[data-qti-item-body-scope]", renderItemBodyRubrics: l = !0, onComponentError: u }) {
|
|
5753
|
+
let d = e.getInteractionData(), f = kc(r), p = n || f.isReadOnly, m = f.canViewCorrectResponses ? e.getCorrectResponses() : {}, h = $c({
|
|
5751
5754
|
player: e,
|
|
5752
5755
|
role: r,
|
|
5753
5756
|
outcomeValues: i,
|
|
@@ -5762,8 +5765,8 @@ function Zc({ player: e, responses: t = {}, disabled: n = !1, role: r = "candida
|
|
|
5762
5765
|
effectiveDisabled: p,
|
|
5763
5766
|
correctResponses: m,
|
|
5764
5767
|
itemBodyHtml: h,
|
|
5765
|
-
inlineSegments:
|
|
5766
|
-
blockInteractions:
|
|
5768
|
+
inlineSegments: Jc(h, d),
|
|
5769
|
+
blockInteractions: ll({
|
|
5767
5770
|
interactions: d,
|
|
5768
5771
|
player: e,
|
|
5769
5772
|
responses: t,
|
|
@@ -5774,74 +5777,74 @@ function Zc({ player: e, responses: t = {}, disabled: n = !1, role: r = "candida
|
|
|
5774
5777
|
})
|
|
5775
5778
|
};
|
|
5776
5779
|
}
|
|
5777
|
-
function
|
|
5778
|
-
let c = String(e.getItemBodyHtml()), l = a ?? e.getDeliveryContext(), u =
|
|
5779
|
-
c =
|
|
5780
|
+
function $c({ player: e, role: t, outcomeValues: n, heuristicsConfig: r, stimulusContent: i, deliveryContext: a, itemBodyScopeSelector: o, renderItemBodyRubrics: s }) {
|
|
5781
|
+
let c = String(e.getItemBodyHtml()), l = a ?? e.getDeliveryContext(), u = Pc(l, o), d = Bc(l, i, (t) => e.sanitizeHtmlContent(t));
|
|
5782
|
+
c = Vc(c, d), u && (c = `<style data-qti-stylesheets="resolved">${u}</style>${c}`), c = el(c, t, { renderRubrics: s });
|
|
5780
5783
|
let f = ce(r);
|
|
5781
5784
|
return c = Mc(c, {
|
|
5782
5785
|
outcomeValues: n,
|
|
5783
5786
|
applyHeuristics: f.feedbackTextFormatting,
|
|
5784
5787
|
wrapWithSpan: !1
|
|
5785
|
-
}),
|
|
5788
|
+
}), cl(c);
|
|
5786
5789
|
}
|
|
5787
|
-
function
|
|
5790
|
+
function el(e, t, { renderRubrics: n }) {
|
|
5788
5791
|
if (!e || !/rubric-?block/i.test(e)) return e;
|
|
5789
5792
|
try {
|
|
5790
5793
|
let r = ae(e, {
|
|
5791
5794
|
lowerCaseTagName: !1,
|
|
5792
5795
|
comment: !1
|
|
5793
5796
|
});
|
|
5794
|
-
return
|
|
5797
|
+
return tl(r, t, { renderRubrics: n }), r.toString();
|
|
5795
5798
|
} catch {
|
|
5796
5799
|
return e;
|
|
5797
5800
|
}
|
|
5798
5801
|
}
|
|
5799
|
-
function
|
|
5802
|
+
function tl(e, t, { renderRubrics: n }) {
|
|
5800
5803
|
let r = [...e.childNodes];
|
|
5801
5804
|
for (let e of r) {
|
|
5802
5805
|
let r = e.rawTagName?.toLowerCase();
|
|
5803
|
-
if (r &&
|
|
5806
|
+
if (r && nl(r) && (!n || !rl(e, t))) {
|
|
5804
5807
|
e.remove();
|
|
5805
5808
|
continue;
|
|
5806
5809
|
}
|
|
5807
|
-
e.childNodes?.length &&
|
|
5810
|
+
e.childNodes?.length && tl(e, t, { renderRubrics: n }), r && nl(r) && e.replaceWith(il(e));
|
|
5808
5811
|
}
|
|
5809
5812
|
}
|
|
5810
|
-
function
|
|
5813
|
+
function nl(e) {
|
|
5811
5814
|
return e === "rubricblock" || e === "qti-rubric-block";
|
|
5812
5815
|
}
|
|
5813
|
-
function
|
|
5816
|
+
function rl(e, t) {
|
|
5814
5817
|
let n = e.getAttribute("view")?.trim();
|
|
5815
|
-
return n ?
|
|
5818
|
+
return n ? al(n).includes(t) : !0;
|
|
5816
5819
|
}
|
|
5817
|
-
function
|
|
5820
|
+
function il(e) {
|
|
5818
5821
|
let t = e.getAttribute("view")?.trim(), n = e.getAttribute("use")?.trim();
|
|
5819
5822
|
return `<div ${[
|
|
5820
5823
|
"class=\"qti-rubric-block\"",
|
|
5821
|
-
t ? `data-qti-rubric-view="${
|
|
5822
|
-
n ? `data-qti-rubric-use="${
|
|
5823
|
-
].filter(Boolean).join(" ")}>${
|
|
5824
|
+
t ? `data-qti-rubric-view="${sl(t)}"` : "",
|
|
5825
|
+
n ? `data-qti-rubric-use="${sl(n)}"` : ""
|
|
5826
|
+
].filter(Boolean).join(" ")}>${ol(e)}</div>`;
|
|
5824
5827
|
}
|
|
5825
|
-
function
|
|
5828
|
+
function al(e) {
|
|
5826
5829
|
return e.split(/[\s,]+/).filter(Boolean);
|
|
5827
5830
|
}
|
|
5828
|
-
function
|
|
5831
|
+
function ol(e) {
|
|
5829
5832
|
return [...e.childNodes].map((e) => e.toString()).join("");
|
|
5830
5833
|
}
|
|
5831
|
-
function
|
|
5834
|
+
function sl(e) {
|
|
5832
5835
|
return e.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
5833
5836
|
}
|
|
5834
|
-
function
|
|
5835
|
-
return e.replace(/<(\w+Interaction|qti-[\w-]+-interaction)(\s[^>]*)?>[\s\S]*?<\/\1>/gi, (e, t) =>
|
|
5837
|
+
function cl(e) {
|
|
5838
|
+
return e.replace(/<(\w+Interaction|qti-[\w-]+-interaction)(\s[^>]*)?>[\s\S]*?<\/\1>/gi, (e, t) => Kc(t.toLowerCase()) ? e : `<span class="qti-hidden-interaction">${e}</span>`);
|
|
5836
5839
|
}
|
|
5837
|
-
function
|
|
5840
|
+
function ll({ interactions: e, player: t, responses: n, correctResponses: r, roleCapabilities: i, effectiveDisabled: a, onComponentError: o }) {
|
|
5838
5841
|
let s = t.getComponentRegistry();
|
|
5839
|
-
return e.filter((e) => !
|
|
5842
|
+
return e.filter((e) => !Gc(e.type)).map((e) => {
|
|
5840
5843
|
try {
|
|
5841
5844
|
return {
|
|
5842
5845
|
interaction: e,
|
|
5843
5846
|
tagName: s.getTagName(e),
|
|
5844
|
-
key:
|
|
5847
|
+
key: ul(e),
|
|
5845
5848
|
response: n[e.responseId] ?? null,
|
|
5846
5849
|
correctResponse: i.canViewCorrectResponses ? r[e.responseId] ?? null : null,
|
|
5847
5850
|
pnp: t.getPnp(),
|
|
@@ -5854,19 +5857,19 @@ function cl({ interactions: e, player: t, responses: n, correctResponses: r, rol
|
|
|
5854
5857
|
}
|
|
5855
5858
|
}).filter((e) => e !== null);
|
|
5856
5859
|
}
|
|
5857
|
-
function
|
|
5860
|
+
function ul(e) {
|
|
5858
5861
|
let t = e, n = Array.isArray(t?.choices) && t.choices.length > 0 ? t.choices.map((e) => e?.identifier).filter(Boolean).join(",") : "", r = typeof t?.prompt == "string" ? t.prompt : "";
|
|
5859
5862
|
return `${e.type}|${e.responseId}|${n}|${r}`;
|
|
5860
5863
|
}
|
|
5861
5864
|
//#endregion
|
|
5862
5865
|
//#region src/components/ItemBody.svelte
|
|
5863
|
-
var
|
|
5866
|
+
var dl = 0, fl = /* @__PURE__ */ J("<div class=\"qti-item-body svelte-11qbngh\"><div class=\"qti-item-body-content svelte-11qbngh\"><div class=\"inline-interaction-container svelte-11qbngh\"></div></div> <!></div>"), pl = {
|
|
5864
5867
|
hash: "svelte-11qbngh",
|
|
5865
5868
|
code: "\n /* Allow the whole item body to shrink inside flex/grid layouts (prevents overflow). */.qti-item-body.svelte-11qbngh {max-width:100%;min-width:0;}.qti-item-body-content.svelte-11qbngh {max-width:none;margin-bottom:1rem;}\n\n /*\n * Custom elements default to inline; force them to be block-level and width-contained.\n * This prevents wide interactions (SVGs, tables, canvases) from spilling outside panels.\n */.qti-item-body :is(\n pie-qti-choice,\n pie-qti-slider,\n pie-qti-order,\n pie-qti-match,\n pie-qti-associate,\n pie-qti-gap-match,\n pie-qti-hotspot,\n pie-qti-hottext,\n pie-qti-media,\n pie-qti-custom,\n pie-qti-end-attempt,\n pie-qti-position-object,\n pie-qti-graphic-gap-match,\n pie-qti-graphic-order,\n pie-qti-graphic-associate,\n pie-qti-select-point,\n pie-qti-extended-text\n ) {display:block;max-width:100%;min-width:0;}\n\n /* Keep inline interactions from breaking paragraph flow */.inline-interaction-container.svelte-11qbngh p {display:inline;}\n\n /*\n * Hide all QTI interaction elements wrapped with qti-hidden-interaction.\n * These are rendered separately as web components above.\n * Keeping them in the HTML (but hidden) makes debugging easier and is fully extensible.\n * Any *Interaction element will be automatically wrapped and hidden - no hardcoded list needed!\n */.qti-item-body .qti-hidden-interaction {display:none !important;}\n\n /*\n * Style for inline feedback elements that appear within choice text or other content.\n * Provides visual distinction and spacing for feedback that appears inline with content.\n */.qti-feedback-inline {display:inline-block;margin-left:0.5rem;padding-left:0.5rem;border-left:2px solid var(--pie-qti-base-content, currentColor);opacity:0.8;}\n\n /* QTI 3.0 Shared Stimulus: stimulus blocks that were prepended before the item body */.qti-stimulus-block {margin-bottom:1rem;}\n\n /* QTI rubricBlock / qti-rubric-block content rendered in item-body source order. */.qti-item-body .qti-rubric-block {display:block;max-width:100%;min-width:0;margin:1rem 0;padding:1rem;overflow-x:auto;border:1px solid var(--pie-qti-base-300, #d1d5db);border-inline-start:4px solid var(--pie-qti-primary, #2563eb);border-radius:0.5rem;background:var(--pie-qti-base-200, #f8fafc);}.qti-item-body .qti-rubric-block > :first-child {margin-top:0;}.qti-item-body .qti-rubric-block > :last-child {margin-bottom:0;}.qti-item-body .qti-rubric-block table {max-width:100%;border-collapse:collapse;}.qti-item-body .qti-rubric-block th,\n .qti-item-body .qti-rubric-block td {padding:0.5rem;border:1px solid var(--pie-qti-base-300, #d1d5db);vertical-align:top;}\n\n /* QTI 3.0 Shared Vocabulary: qti-input-width-N sets minimum input width in character units. */.qti-input-width-1 {min-width:1ch;}.qti-input-width-2 {min-width:2ch;}.qti-input-width-3 {min-width:3ch;}.qti-input-width-4 {min-width:4ch;}.qti-input-width-5 {min-width:5ch;}.qti-input-width-6 {min-width:6ch;}.qti-input-width-10 {min-width:10ch;}.qti-input-width-15 {min-width:15ch;}.qti-input-width-20 {min-width:20ch;}.qti-input-width-25 {min-width:25ch;}.qti-input-width-30 {min-width:30ch;}.qti-input-width-35 {min-width:35ch;}.qti-input-width-40 {min-width:40ch;}.qti-input-width-45 {min-width:45ch;}.qti-input-width-50 {min-width:50ch;}.qti-input-width-72 {min-width:72ch;}"
|
|
5866
5869
|
};
|
|
5867
|
-
function
|
|
5868
|
-
St(t, !0), xa(e,
|
|
5869
|
-
let n = Z(t, "responses", 19, () => ({})), r = Z(t, "disabled", 3, !1), i = Z(t, "role", 3, "candidate"), a = Z(t, "onResponseChange", 3, () => {}), o = Z(t, "outcomeValues", 19, () => ({})), s = Z(t, "stimulusContent", 19, () => ({})), c = Z(t, "renderItemBodyRubrics", 3, !0), l = `qti-item-body-${++
|
|
5870
|
+
function ml(e, t) {
|
|
5871
|
+
St(t, !0), xa(e, pl);
|
|
5872
|
+
let n = Z(t, "responses", 19, () => ({})), r = Z(t, "disabled", 3, !1), i = Z(t, "role", 3, "candidate"), a = Z(t, "onResponseChange", 3, () => {}), o = Z(t, "outcomeValues", 19, () => ({})), s = Z(t, "stimulusContent", 19, () => ({})), c = Z(t, "renderItemBodyRubrics", 3, !0), l = `qti-item-body-${++dl}`, u = `[data-qti-item-body-scope="${l}"]`, d = /* @__PURE__ */ I(() => Qc({
|
|
5870
5873
|
player: t.player,
|
|
5871
5874
|
responses: n(),
|
|
5872
5875
|
disabled: r(),
|
|
@@ -5909,7 +5912,7 @@ function pl(e, t) {
|
|
|
5909
5912
|
destroy() {}
|
|
5910
5913
|
};
|
|
5911
5914
|
}
|
|
5912
|
-
var _ =
|
|
5915
|
+
var _ = fl(), v = B(_), y = B(v);
|
|
5913
5916
|
pa(y, 21, () => q(d).inlineSegments, la, (e, n) => {
|
|
5914
5917
|
var r = qi(), i = Tr(r), a = (e) => {
|
|
5915
5918
|
var t = qi();
|
|
@@ -5983,12 +5986,12 @@ function pl(e, t) {
|
|
|
5983
5986
|
}
|
|
5984
5987
|
//#endregion
|
|
5985
5988
|
//#region src/components/ModalFeedbackDisplay.svelte
|
|
5986
|
-
var
|
|
5989
|
+
var hl = /* @__PURE__ */ J("<h3 class=\"qti-feedback-title svelte-i66ia0\"> </h3>"), gl = /* @__PURE__ */ J("<div class=\"qti-feedback-content svelte-i66ia0\"></div>"), _l = /* @__PURE__ */ J("<div class=\"qti-feedback-content svelte-i66ia0\"></div>"), vl = /* @__PURE__ */ J("<div><!> <!></div>"), yl = /* @__PURE__ */ J("<dialog open=\"\" class=\"qti-feedback-modal svelte-i66ia0\" aria-modal=\"true\"><div class=\"qti-feedback-modal-box svelte-i66ia0\"><button class=\"qti-feedback-close-button svelte-i66ia0\" type=\"button\">✕</button> <!> <div class=\"qti-feedback-actions svelte-i66ia0\"><button class=\"qti-feedback-primary-button svelte-i66ia0\" type=\"button\"> </button></div></div></dialog>"), bl = {
|
|
5987
5990
|
hash: "svelte-i66ia0",
|
|
5988
5991
|
code: ".qti-feedback-modal.svelte-i66ia0 {box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background-color:rgba(0, 0, 0, 0.5);color:var(--pie-qti-base-content, oklch(21% 0 0));}.qti-feedback-modal[open].svelte-i66ia0 {display:grid;place-items:center;}.qti-feedback-modal-box.svelte-i66ia0 {position:relative;box-sizing:border-box;width:min(48rem, calc(100vw - 2rem));max-height:80vh;overflow-y:auto;padding:1.5rem;border:1px solid var(--pie-qti-base-300, oklch(95% 0 0));border-radius:1rem;background:var(--pie-qti-base-100, oklch(100% 0 0));box-shadow:0 20px 45px rgba(0, 0, 0, 0.2);}.qti-feedback-close-button.svelte-i66ia0,\n .qti-feedback-primary-button.svelte-i66ia0 {display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--pie-qti-base-300, oklch(95% 0 0));background:var(--pie-qti-base-100, oklch(100% 0 0));color:var(--pie-qti-base-content, oklch(21% 0 0));font:inherit;cursor:pointer;}.qti-feedback-close-button.svelte-i66ia0 {position:absolute;top:0.5rem;right:0.5rem;width:2rem;height:2rem;padding:0;border-radius:9999px;background:transparent;border-color:transparent;}.qti-feedback-close-button.svelte-i66ia0:hover {background:var(--pie-qti-base-200, oklch(98% 0 0));border-color:var(--pie-qti-base-300, oklch(95% 0 0));}.qti-feedback-primary-button.svelte-i66ia0 {gap:0.5rem;padding:0.5rem 0.75rem;border-radius:0.75rem;border-color:var(--pie-qti-primary, oklch(45% 0.24 277));background:color-mix(in oklch, var(--pie-qti-primary, oklch(45% 0.24 277)) 12%, transparent);}.qti-feedback-close-button.svelte-i66ia0:focus-visible,\n .qti-feedback-primary-button.svelte-i66ia0:focus-visible {outline:2px solid var(--pie-qti-focus, var(--pie-qti-primary, oklch(45% 0.24 277)));outline-offset:2px;}.qti-feedback-item.svelte-i66ia0 {margin-bottom:1rem;}.qti-feedback-item-bordered.svelte-i66ia0 {padding-bottom:1rem;border-bottom:1px solid var(--pie-qti-base-300, oklch(95% 0 0));}.qti-feedback-title.svelte-i66ia0 {margin:0 0 0.5rem;font-size:1.125rem;font-weight:700;}.qti-feedback-content.svelte-i66ia0 {max-width:none;}.qti-feedback-actions.svelte-i66ia0 {display:flex;justify-content:flex-end;margin-top:1rem;}"
|
|
5989
5992
|
};
|
|
5990
|
-
function
|
|
5991
|
-
St(t, !0), xa(e,
|
|
5993
|
+
function xl(e, t) {
|
|
5994
|
+
St(t, !0), xa(e, bl);
|
|
5992
5995
|
let n = Z(t, "feedback", 19, () => []), r = /* @__PURE__ */ I(() => n().length > 0), i = "item-player-modal-feedback-title", a = /* @__PURE__ */ I(() => n().find((e) => e.title)?.title);
|
|
5993
5996
|
function o() {
|
|
5994
5997
|
t.onClose?.();
|
|
@@ -5997,12 +6000,12 @@ function bl(e, t) {
|
|
|
5997
6000
|
e.target === e.currentTarget && o();
|
|
5998
6001
|
}
|
|
5999
6002
|
var c = qi(), l = Tr(c), u = (e) => {
|
|
6000
|
-
var r =
|
|
6003
|
+
var r = yl(), c = B(r), l = B(c), u = Er(l, 2);
|
|
6001
6004
|
pa(u, 17, n, la, (e, r, a) => {
|
|
6002
|
-
var o =
|
|
6005
|
+
var o = vl();
|
|
6003
6006
|
let s;
|
|
6004
6007
|
var c = B(o), l = (e) => {
|
|
6005
|
-
var t =
|
|
6008
|
+
var t = hl();
|
|
6006
6009
|
X(t, "id", a === 0 ? i : void 0);
|
|
6007
6010
|
var n = B(t, !0);
|
|
6008
6011
|
E(t), V(() => Ji(n, q(r).title)), Y(e, t);
|
|
@@ -6011,10 +6014,10 @@ function bl(e, t) {
|
|
|
6011
6014
|
q(r).title && e(l);
|
|
6012
6015
|
});
|
|
6013
6016
|
var u = Er(c, 2), d = (e) => {
|
|
6014
|
-
var n =
|
|
6017
|
+
var n = gl();
|
|
6015
6018
|
ya(n, () => q(r).content, !0), E(n), Sa(n, (e, t) => Qs?.(e, t), () => ({ typeset: t.typeset })), Y(e, n);
|
|
6016
6019
|
}, f = (e) => {
|
|
6017
|
-
var t =
|
|
6020
|
+
var t = _l();
|
|
6018
6021
|
ya(t, () => q(r).content, !0), E(t), Y(e, t);
|
|
6019
6022
|
};
|
|
6020
6023
|
ca(u, (e) => {
|
|
@@ -6040,12 +6043,12 @@ function bl(e, t) {
|
|
|
6040
6043
|
Bi(["click"]);
|
|
6041
6044
|
//#endregion
|
|
6042
6045
|
//#region src/components/ItemPlayer.svelte
|
|
6043
|
-
var
|
|
6046
|
+
var Sl = /* @__PURE__ */ J("<div class=\"qti-player-alert qti-player-alert-error svelte-129urwy\"><span> </span></div>"), Cl = /* @__PURE__ */ J("<span class=\"qti-player-badge qti-player-badge-success svelte-129urwy\"> </span>"), wl = /* @__PURE__ */ J("<span> </span>"), Tl = /* @__PURE__ */ J("<div class=\"qti-player-attempt-status svelte-129urwy\"><!></div>"), El = /* @__PURE__ */ J("<div class=\"qti-player-actions svelte-129urwy\"><button class=\"qti-player-button qti-player-button-primary svelte-129urwy\"> </button> <!></div>"), Dl = /* @__PURE__ */ J("<!> <!> <!>", 1), Ol = /* @__PURE__ */ J("<div class=\"qti-player-alert qti-player-alert-info svelte-129urwy\"><span> </span></div>"), kl = /* @__PURE__ */ J("<div class=\"qti-item-player svelte-129urwy\"><!></div>"), Al = {
|
|
6044
6047
|
hash: "svelte-129urwy",
|
|
6045
6048
|
code: ".qti-item-player.svelte-129urwy {color:var(--pie-qti-base-content, oklch(21% 0 0));}.qti-player-alert.svelte-129urwy {display:flex;align-items:center;gap:0.5rem;padding:0.75rem 1rem;border:1px solid var(--pie-qti-base-300, oklch(95% 0 0));border-radius:0.75rem;background:var(--pie-qti-base-200, oklch(98% 0 0));color:var(--pie-qti-base-content, oklch(21% 0 0));}.qti-player-alert-error.svelte-129urwy {border-color:var(--pie-qti-error, oklch(71% 0.194 13.428));background:color-mix(in oklch, var(--pie-qti-error, oklch(71% 0.194 13.428)) 8%, transparent);}.qti-player-alert-info.svelte-129urwy {border-color:var(--pie-qti-info, oklch(74% 0.16 232.661));background:color-mix(in oklch, var(--pie-qti-info, oklch(74% 0.16 232.661)) 8%, transparent);}.qti-player-actions.svelte-129urwy {display:flex;align-items:center;gap:1rem;margin-top:1.5rem;}.qti-player-button.svelte-129urwy {display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;padding:0.5rem 0.75rem;border:1px solid var(--pie-qti-base-300, oklch(95% 0 0));border-radius:0.75rem;background:var(--pie-qti-base-200, oklch(98% 0 0));color:var(--pie-qti-base-content, oklch(21% 0 0));font:inherit;line-height:1.1;cursor:pointer;}.qti-player-button-primary.svelte-129urwy {border-color:var(--pie-qti-primary, oklch(45% 0.24 277));background:color-mix(in oklch, var(--pie-qti-primary, oklch(45% 0.24 277)) 12%, transparent);}.qti-player-button.svelte-129urwy:disabled {opacity:0.55;cursor:not-allowed;}.qti-player-button.svelte-129urwy:focus-visible {outline:2px solid var(--pie-qti-focus, var(--pie-qti-primary, oklch(45% 0.24 277)));outline-offset:2px;}.qti-player-attempt-status.svelte-129urwy {color:color-mix(in oklch, var(--pie-qti-base-content, oklch(21% 0 0)) 70%, transparent);font-size:0.875rem;}.qti-player-badge.svelte-129urwy {display:inline-flex;align-items:center;justify-content:center;min-height:1.25rem;padding:0 0.5rem;border:1px solid var(--pie-qti-base-300, oklch(95% 0 0));border-radius:9999px;font-size:0.75rem;font-weight:600;}.qti-player-badge-success.svelte-129urwy {border-color:var(--pie-qti-success, oklch(76% 0.177 163.223));background:color-mix(in oklch, var(--pie-qti-success, oklch(76% 0.177 163.223)) 12%, transparent);}"
|
|
6046
6049
|
};
|
|
6047
|
-
function
|
|
6048
|
-
St(t, !0), xa(e,
|
|
6050
|
+
function jl(e, t) {
|
|
6051
|
+
St(t, !0), xa(e, Al);
|
|
6049
6052
|
let n = Z(t, "role", 3, "candidate"), r = Z(t, "responses", 19, () => ({})), i = Z(t, "disabled", 3, !1), a = Z(t, "renderItemBodyRubrics", 3, !0), o = /* @__PURE__ */ L(null), s = /* @__PURE__ */ L(hr({})), c = /* @__PURE__ */ L(null), l = /* @__PURE__ */ L(hr([])), u = /* @__PURE__ */ L(hr({})), d = /* @__PURE__ */ L(!1), f = /* @__PURE__ */ L(!1), p = /* @__PURE__ */ L(0);
|
|
6050
6053
|
zr(() => {
|
|
6051
6054
|
try {
|
|
@@ -6085,12 +6088,12 @@ function Al(e, t) {
|
|
|
6085
6088
|
function g() {
|
|
6086
6089
|
R(l, [], !0);
|
|
6087
6090
|
}
|
|
6088
|
-
var _ =
|
|
6089
|
-
var t =
|
|
6091
|
+
var _ = kl(), v = B(_), y = (e) => {
|
|
6092
|
+
var t = Sl(), n = B(t), r = B(n, !0);
|
|
6090
6093
|
E(n), E(t), V(() => Ji(r, q(c))), Y(e, t);
|
|
6091
6094
|
}, b = (e) => {
|
|
6092
|
-
var r =
|
|
6093
|
-
|
|
6095
|
+
var r = Dl(), c = Tr(r);
|
|
6096
|
+
ml(c, {
|
|
6094
6097
|
get player() {
|
|
6095
6098
|
return q(o);
|
|
6096
6099
|
},
|
|
@@ -6122,14 +6125,14 @@ function Al(e, t) {
|
|
|
6122
6125
|
});
|
|
6123
6126
|
var _ = Er(c, 2), v = (e) => {
|
|
6124
6127
|
let n = /* @__PURE__ */ I(() => q(o).canSubmitResponses(q(s)));
|
|
6125
|
-
var r =
|
|
6128
|
+
var r = El(), i = B(r), a = B(i, !0);
|
|
6126
6129
|
E(i);
|
|
6127
6130
|
var c = Er(i, 2), l = (e) => {
|
|
6128
|
-
var n =
|
|
6129
|
-
var n =
|
|
6131
|
+
var n = Tl(), r = B(n), i = (e) => {
|
|
6132
|
+
var n = Cl(), r = B(n, !0);
|
|
6130
6133
|
E(n), V((e) => Ji(r, e), [() => t.i18n?.t("item.complete") ?? "item.complete"]), Y(e, n);
|
|
6131
6134
|
}, a = (e) => {
|
|
6132
|
-
var n =
|
|
6135
|
+
var n = wl(), r = B(n, !0);
|
|
6133
6136
|
E(n), V((e) => Ji(r, e), [() => t.i18n?.t("item.attempt", { numAttempts: q(p) + 1 }) ?? `item.attempt (${q(p) + 1})`]), Y(e, n);
|
|
6134
6137
|
};
|
|
6135
6138
|
ca(r, (e) => {
|
|
@@ -6144,7 +6147,7 @@ function Al(e, t) {
|
|
|
6144
6147
|
};
|
|
6145
6148
|
ca(_, (e) => {
|
|
6146
6149
|
n() === "candidate" && !i() && t.onSubmit && e(v);
|
|
6147
|
-
}),
|
|
6150
|
+
}), xl(Er(_, 2), {
|
|
6148
6151
|
get feedback() {
|
|
6149
6152
|
return q(l);
|
|
6150
6153
|
},
|
|
@@ -6157,7 +6160,7 @@ function Al(e, t) {
|
|
|
6157
6160
|
}
|
|
6158
6161
|
}), Y(e, r);
|
|
6159
6162
|
}, ee = (e) => {
|
|
6160
|
-
var n =
|
|
6163
|
+
var n = Ol(), r = B(n), i = B(r, !0);
|
|
6161
6164
|
E(r), E(n), V((e) => Ji(i, e), [() => t.i18n?.t("item.loading") ?? "item.loading"]), Y(e, n);
|
|
6162
6165
|
};
|
|
6163
6166
|
ca(v, (e) => {
|
|
@@ -6167,16 +6170,16 @@ function Al(e, t) {
|
|
|
6167
6170
|
Bi(["click"]);
|
|
6168
6171
|
//#endregion
|
|
6169
6172
|
//#region src/element.ts
|
|
6170
|
-
var
|
|
6173
|
+
var Ml = "pie-qti-item-player", Nl = globalThis.HTMLElement ?? class {}, Pl = /* @__PURE__ */ new WeakMap(), Fl = /* @__PURE__ */ new WeakMap(), Il = /* @__PURE__ */ new WeakMap(), Ll = /* @__PURE__ */ new WeakMap(), Rl = /* @__PURE__ */ new WeakMap(), zl = /* @__PURE__ */ new WeakMap(), Bl = /* @__PURE__ */ new WeakMap(), Vl = /* @__PURE__ */ new WeakMap(), Hl = /* @__PURE__ */ new WeakMap(), Ul = /* @__PURE__ */ new WeakMap(), Wl = /* @__PURE__ */ new WeakMap(), Gl = /* @__PURE__ */ new WeakMap(), Kl = /* @__PURE__ */ new WeakMap(), ql = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakSet(), Jl = class extends Nl {
|
|
6171
6174
|
constructor(...e) {
|
|
6172
|
-
super(...e), Rt(this, Q), k(this,
|
|
6175
|
+
super(...e), Rt(this, Q), k(this, Pl, re({
|
|
6173
6176
|
host: this,
|
|
6174
|
-
mount: (e, t) => Yi(
|
|
6177
|
+
mount: (e, t) => Yi(jl, {
|
|
6175
6178
|
target: e,
|
|
6176
6179
|
props: t
|
|
6177
6180
|
}),
|
|
6178
6181
|
unmount: $i
|
|
6179
|
-
})), k(this,
|
|
6182
|
+
})), k(this, Fl, ""), k(this, Il, "candidate"), k(this, Ll, !1), k(this, Rl, !0), k(this, zl, void 0), k(this, Bl, void 0), k(this, Vl, void 0), k(this, Hl, void 0), k(this, Ul, void 0), k(this, Wl, void 0), k(this, Gl, void 0), k(this, Kl, void 0), k(this, ql, void 0);
|
|
6180
6183
|
}
|
|
6181
6184
|
static get observedAttributes() {
|
|
6182
6185
|
return [
|
|
@@ -6186,115 +6189,115 @@ var jl = "pie-qti-item-player", Ml = globalThis.HTMLElement ?? class {}, Nl = /*
|
|
|
6186
6189
|
];
|
|
6187
6190
|
}
|
|
6188
6191
|
get itemXml() {
|
|
6189
|
-
return j(
|
|
6192
|
+
return j(Fl, this);
|
|
6190
6193
|
}
|
|
6191
6194
|
set itemXml(e) {
|
|
6192
|
-
M(
|
|
6195
|
+
M(Fl, this, e ?? ""), A(Q, this, $).call(this);
|
|
6193
6196
|
}
|
|
6194
6197
|
get role() {
|
|
6195
|
-
return j(
|
|
6198
|
+
return j(Il, this);
|
|
6196
6199
|
}
|
|
6197
6200
|
set role(e) {
|
|
6198
|
-
M(
|
|
6201
|
+
M(Il, this, e ?? "candidate"), A(Q, this, $).call(this);
|
|
6199
6202
|
}
|
|
6200
6203
|
get disabled() {
|
|
6201
|
-
return j(
|
|
6204
|
+
return j(Ll, this);
|
|
6202
6205
|
}
|
|
6203
6206
|
set disabled(e) {
|
|
6204
|
-
M(
|
|
6207
|
+
M(Ll, this, !!e), A(Q, this, $).call(this);
|
|
6205
6208
|
}
|
|
6206
6209
|
get renderItemBodyRubrics() {
|
|
6207
|
-
return j(
|
|
6210
|
+
return j(Rl, this);
|
|
6208
6211
|
}
|
|
6209
6212
|
set renderItemBodyRubrics(e) {
|
|
6210
|
-
M(
|
|
6213
|
+
M(Rl, this, e !== !1), A(Q, this, $).call(this);
|
|
6211
6214
|
}
|
|
6212
6215
|
get typeset() {
|
|
6213
|
-
return j(
|
|
6216
|
+
return j(zl, this);
|
|
6214
6217
|
}
|
|
6215
6218
|
set typeset(e) {
|
|
6216
|
-
M(
|
|
6219
|
+
M(zl, this, e), A(Q, this, $).call(this);
|
|
6217
6220
|
}
|
|
6218
6221
|
get i18n() {
|
|
6219
|
-
return j(
|
|
6222
|
+
return j(Bl, this);
|
|
6220
6223
|
}
|
|
6221
6224
|
set i18n(e) {
|
|
6222
|
-
M(
|
|
6225
|
+
M(Bl, this, e), A(Q, this, $).call(this);
|
|
6223
6226
|
}
|
|
6224
6227
|
get security() {
|
|
6225
|
-
return j(
|
|
6228
|
+
return j(Vl, this);
|
|
6226
6229
|
}
|
|
6227
6230
|
set security(e) {
|
|
6228
|
-
M(
|
|
6231
|
+
M(Vl, this, e), A(Q, this, $).call(this);
|
|
6229
6232
|
}
|
|
6230
6233
|
get pnp() {
|
|
6231
|
-
return j(
|
|
6234
|
+
return j(Hl, this);
|
|
6232
6235
|
}
|
|
6233
6236
|
set pnp(e) {
|
|
6234
|
-
M(
|
|
6237
|
+
M(Hl, this, e), A(Q, this, $).call(this);
|
|
6235
6238
|
}
|
|
6236
6239
|
get deliveryContext() {
|
|
6237
|
-
return j(
|
|
6240
|
+
return j(Ul, this);
|
|
6238
6241
|
}
|
|
6239
6242
|
set deliveryContext(e) {
|
|
6240
|
-
M(
|
|
6243
|
+
M(Ul, this, e), A(Q, this, $).call(this);
|
|
6241
6244
|
}
|
|
6242
6245
|
get responses() {
|
|
6243
|
-
return j(
|
|
6246
|
+
return j(Wl, this);
|
|
6244
6247
|
}
|
|
6245
6248
|
set responses(e) {
|
|
6246
|
-
M(
|
|
6249
|
+
M(Wl, this, e), A(Q, this, $).call(this);
|
|
6247
6250
|
}
|
|
6248
6251
|
get onResponseChange() {
|
|
6249
|
-
return j(
|
|
6252
|
+
return j(Gl, this);
|
|
6250
6253
|
}
|
|
6251
6254
|
set onResponseChange(e) {
|
|
6252
|
-
M(
|
|
6255
|
+
M(Gl, this, e), A(Q, this, $).call(this);
|
|
6253
6256
|
}
|
|
6254
6257
|
get onSubmit() {
|
|
6255
|
-
return j(
|
|
6258
|
+
return j(Kl, this);
|
|
6256
6259
|
}
|
|
6257
6260
|
set onSubmit(e) {
|
|
6258
|
-
M(
|
|
6261
|
+
M(Kl, this, e), A(Q, this, $).call(this);
|
|
6259
6262
|
}
|
|
6260
6263
|
get onComplete() {
|
|
6261
|
-
return j(
|
|
6264
|
+
return j(ql, this);
|
|
6262
6265
|
}
|
|
6263
6266
|
set onComplete(e) {
|
|
6264
|
-
M(
|
|
6267
|
+
M(ql, this, e), A(Q, this, $).call(this);
|
|
6265
6268
|
}
|
|
6266
6269
|
connectedCallback() {
|
|
6267
|
-
j(
|
|
6270
|
+
j(Pl, this).mountOrUpdate(A(Q, this, Yl).call(this));
|
|
6268
6271
|
}
|
|
6269
6272
|
disconnectedCallback() {
|
|
6270
|
-
j(
|
|
6273
|
+
j(Pl, this).teardown({ removeContainer: !0 });
|
|
6271
6274
|
}
|
|
6272
6275
|
attributeChangedCallback(e, t, n) {
|
|
6273
|
-
e === "item-xml" ? M(
|
|
6276
|
+
e === "item-xml" ? M(Fl, this, n ?? "") : e === "role" ? M(Il, this, n ?? "candidate") : e === "disabled" && M(Ll, this, n !== null), A(Q, this, $).call(this);
|
|
6274
6277
|
}
|
|
6275
6278
|
};
|
|
6276
|
-
function
|
|
6279
|
+
function Yl() {
|
|
6277
6280
|
return {
|
|
6278
|
-
itemXml: j(
|
|
6279
|
-
role: j(
|
|
6280
|
-
disabled: j(
|
|
6281
|
-
renderItemBodyRubrics: j(
|
|
6282
|
-
typeset: j(
|
|
6283
|
-
i18n: j(
|
|
6284
|
-
security: j(
|
|
6285
|
-
pnp: j(
|
|
6286
|
-
deliveryContext: j(
|
|
6287
|
-
responses: j(
|
|
6288
|
-
onResponseChange: j(
|
|
6289
|
-
onSubmit: j(
|
|
6290
|
-
onComplete: j(
|
|
6281
|
+
itemXml: j(Fl, this),
|
|
6282
|
+
role: j(Il, this),
|
|
6283
|
+
disabled: j(Ll, this),
|
|
6284
|
+
renderItemBodyRubrics: j(Rl, this),
|
|
6285
|
+
typeset: j(zl, this),
|
|
6286
|
+
i18n: j(Bl, this),
|
|
6287
|
+
security: j(Vl, this),
|
|
6288
|
+
pnp: j(Hl, this),
|
|
6289
|
+
deliveryContext: j(Ul, this),
|
|
6290
|
+
responses: j(Wl, this),
|
|
6291
|
+
onResponseChange: j(Gl, this),
|
|
6292
|
+
onSubmit: j(Kl, this),
|
|
6293
|
+
onComplete: j(ql, this)
|
|
6291
6294
|
};
|
|
6292
6295
|
}
|
|
6293
6296
|
function $() {
|
|
6294
|
-
j(
|
|
6297
|
+
j(Pl, this).update(A(Q, this, Yl).call(this));
|
|
6295
6298
|
}
|
|
6296
|
-
globalThis.customElements && !customElements.get(
|
|
6299
|
+
globalThis.customElements && !customElements.get(Ml) && customElements.define(Ml, Jl);
|
|
6297
6300
|
//#endregion
|
|
6298
|
-
export {
|
|
6301
|
+
export { Jl as PieQtiItemPlayerElement };
|
|
6299
6302
|
|
|
6300
6303
|
//# sourceMappingURL=element.js.map
|