@pie-qti/player-elements 0.1.17 → 0.1.18
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/{define-hT2mfxsi.js → define-CLdVOnMl.js} +4 -4
- package/dist/{define-hT2mfxsi.js.map → define-CLdVOnMl.js.map} +1 -1
- package/dist/{element-BHNcNdc9.js → element-Bekvepqe.js} +2 -2
- package/dist/{element-BHNcNdc9.js.map → element-Bekvepqe.js.map} +1 -1
- package/dist/{element-class-BLaOCHDu-CqAiNXSq.js → element-class-C8OTgYHE-DsvwOAOP.js} +288 -155
- package/dist/{element-class-BLaOCHDu-CqAiNXSq.js.map → element-class-C8OTgYHE-DsvwOAOP.js.map} +1 -1
- package/dist/elements.js +3 -3
- package/dist/index.js +2 -2
- package/dist/register-players.js +1 -1
- package/dist/register.js +1 -1
- package/dist/{resolveItems-I0_HsCib.js → resolveItems-Bp65Mj_Z.js} +2 -2
- package/dist/{resolveItems-I0_HsCib.js.map → resolveItems-Bp65Mj_Z.js.map} +1 -1
- package/package.json +6 -6
|
@@ -9634,7 +9634,7 @@ function Qo(e) {
|
|
|
9634
9634
|
});
|
|
9635
9635
|
}
|
|
9636
9636
|
//#endregion
|
|
9637
|
-
//#region ../item-player/dist/element-class-
|
|
9637
|
+
//#region ../item-player/dist/element-class-C8OTgYHE.js
|
|
9638
9638
|
var $o = Array.isArray, es = Array.prototype.indexOf, ts = Array.prototype.includes, ns = Array.from, rs = Object.defineProperty, is = Object.getOwnPropertyDescriptor, as = Object.getOwnPropertyDescriptors, os = Object.prototype, ss = Array.prototype, cs = Object.getPrototypeOf, ls = Object.isExtensible, us = () => {};
|
|
9639
9639
|
function ds(e) {
|
|
9640
9640
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
@@ -15662,85 +15662,218 @@ function Fg(e, t = "[data-qti-item-body-scope]") {
|
|
|
15662
15662
|
}
|
|
15663
15663
|
function Ig(e, t) {
|
|
15664
15664
|
let n = e.cssText?.trim();
|
|
15665
|
-
return !n || Xo(n) ? "" :
|
|
15665
|
+
return !n || Xo(n) ? "" : Bg(n, Ug(e, t)) || "";
|
|
15666
|
+
}
|
|
15667
|
+
var Lg = new Set([
|
|
15668
|
+
"media",
|
|
15669
|
+
"supports",
|
|
15670
|
+
"container",
|
|
15671
|
+
"layer",
|
|
15672
|
+
"scope"
|
|
15673
|
+
]), Rg = /^(?::root|html|body)(?![\w-])/, zg = /^@(?:-[a-z]+-)?([\w-]+)/i;
|
|
15674
|
+
function Bg(e, t = "[data-qti-item-body-scope]") {
|
|
15675
|
+
if (!e) return "";
|
|
15676
|
+
let n = t?.trim();
|
|
15677
|
+
return n ? Vg(Jg(e), n).trim() : e;
|
|
15666
15678
|
}
|
|
15667
|
-
function
|
|
15668
|
-
let n =
|
|
15669
|
-
for (
|
|
15670
|
-
let
|
|
15671
|
-
if (
|
|
15672
|
-
|
|
15673
|
-
a.length !== 0 && (r += `${a.join(", ")} { ${i} }\n`);
|
|
15679
|
+
function Vg(e, t) {
|
|
15680
|
+
let n = "", r = 0;
|
|
15681
|
+
for (; r < e.length;) {
|
|
15682
|
+
let i = Gg(e, r);
|
|
15683
|
+
if (i.end <= r) break;
|
|
15684
|
+
n += Hg(i, t), r = i.end;
|
|
15674
15685
|
}
|
|
15675
|
-
return
|
|
15686
|
+
return n;
|
|
15687
|
+
}
|
|
15688
|
+
function Hg(e, t) {
|
|
15689
|
+
if (e.kind === "statement") {
|
|
15690
|
+
let t = e.text.trim();
|
|
15691
|
+
return t === ";" ? "" : `${t}\n`;
|
|
15692
|
+
}
|
|
15693
|
+
if (e.kind === "trailing") return e.text.trim() ? `${e.text.trim()}\n` : "";
|
|
15694
|
+
let n = e.prelude.trim();
|
|
15695
|
+
if (!n) return "";
|
|
15696
|
+
if (n.startsWith("@")) {
|
|
15697
|
+
let r = zg.exec(n)?.[1]?.toLowerCase();
|
|
15698
|
+
if (r && Lg.has(r)) {
|
|
15699
|
+
let r = Vg(e.block, t);
|
|
15700
|
+
return r.trim() ? `${n} {\n${r}}\n` : "";
|
|
15701
|
+
}
|
|
15702
|
+
return `${n} {${e.block}}\n`;
|
|
15703
|
+
}
|
|
15704
|
+
let r = e.block.trim();
|
|
15705
|
+
if (!r) return "";
|
|
15706
|
+
let i = qg(n, ",").map((e) => Wg(e.trim(), t)).filter(Boolean);
|
|
15707
|
+
return i.length === 0 ? "" : `${i.join(", ")} { ${r} }\n`;
|
|
15708
|
+
}
|
|
15709
|
+
function Ug(e, t) {
|
|
15710
|
+
return e.source !== "stimulus" || !e.stimulusIdentifier ? t : `${t} [data-stimulus-idref="${Yg(e.stimulusIdentifier)}"]`;
|
|
15711
|
+
}
|
|
15712
|
+
function Wg(e, t) {
|
|
15713
|
+
if (!e) return "";
|
|
15714
|
+
if (e === t || e.startsWith(`${t} `)) return e;
|
|
15715
|
+
let n = Rg.exec(e);
|
|
15716
|
+
return n ? `${t}${e.slice(n[0].length)}` : `${t} ${e}`;
|
|
15676
15717
|
}
|
|
15677
|
-
function
|
|
15678
|
-
|
|
15718
|
+
function Gg(e, t) {
|
|
15719
|
+
let n = t, r = null, i = 0;
|
|
15720
|
+
for (; n < e.length;) {
|
|
15721
|
+
let a = e[n];
|
|
15722
|
+
if (r) a === "\\" ? n += 1 : a === r && (r = null);
|
|
15723
|
+
else if (a === "\"" || a === "'") r = a;
|
|
15724
|
+
else if (a === "(") i += 1;
|
|
15725
|
+
else if (a === ")") i > 0 && --i;
|
|
15726
|
+
else if (i === 0 && a === ";") return {
|
|
15727
|
+
kind: "statement",
|
|
15728
|
+
text: e.slice(t, n + 1),
|
|
15729
|
+
end: n + 1
|
|
15730
|
+
};
|
|
15731
|
+
else if (i === 0 && a === "{") {
|
|
15732
|
+
let r = Kg(e, n);
|
|
15733
|
+
return {
|
|
15734
|
+
kind: "rule",
|
|
15735
|
+
prelude: e.slice(t, n),
|
|
15736
|
+
block: e.slice(n + 1, r.contentEnd),
|
|
15737
|
+
end: r.end
|
|
15738
|
+
};
|
|
15739
|
+
}
|
|
15740
|
+
n += 1;
|
|
15741
|
+
}
|
|
15742
|
+
return {
|
|
15743
|
+
kind: "trailing",
|
|
15744
|
+
text: e.slice(t),
|
|
15745
|
+
end: e.length
|
|
15746
|
+
};
|
|
15747
|
+
}
|
|
15748
|
+
function Kg(e, t) {
|
|
15749
|
+
let n = 0, r = null;
|
|
15750
|
+
for (let i = t; i < e.length; i += 1) {
|
|
15751
|
+
let t = e[i];
|
|
15752
|
+
if (r) {
|
|
15753
|
+
t === "\\" ? i += 1 : t === r && (r = null);
|
|
15754
|
+
continue;
|
|
15755
|
+
}
|
|
15756
|
+
if (t === "\"" || t === "'") {
|
|
15757
|
+
r = t;
|
|
15758
|
+
continue;
|
|
15759
|
+
}
|
|
15760
|
+
if (t === "{") n += 1;
|
|
15761
|
+
else if (t === "}" && (--n, n === 0)) return {
|
|
15762
|
+
contentEnd: i,
|
|
15763
|
+
end: i + 1
|
|
15764
|
+
};
|
|
15765
|
+
}
|
|
15766
|
+
return {
|
|
15767
|
+
contentEnd: e.length,
|
|
15768
|
+
end: e.length
|
|
15769
|
+
};
|
|
15770
|
+
}
|
|
15771
|
+
function qg(e, t) {
|
|
15772
|
+
let n = [], r = "", i = null, a = 0;
|
|
15773
|
+
for (let o = 0; o < e.length; o += 1) {
|
|
15774
|
+
let s = e[o];
|
|
15775
|
+
if (i) {
|
|
15776
|
+
r += s, s === "\\" && o + 1 < e.length ? (r += e[o + 1], o += 1) : s === i && (i = null);
|
|
15777
|
+
continue;
|
|
15778
|
+
}
|
|
15779
|
+
if (s === "\"" || s === "'") {
|
|
15780
|
+
i = s, r += s;
|
|
15781
|
+
continue;
|
|
15782
|
+
}
|
|
15783
|
+
if (s === "(" ? a += 1 : s === ")" && a > 0 && --a, s === t && a === 0) {
|
|
15784
|
+
n.push(r), r = "";
|
|
15785
|
+
continue;
|
|
15786
|
+
}
|
|
15787
|
+
r += s;
|
|
15788
|
+
}
|
|
15789
|
+
return n.push(r), n;
|
|
15679
15790
|
}
|
|
15680
|
-
function
|
|
15681
|
-
|
|
15791
|
+
function Jg(e) {
|
|
15792
|
+
let t = "", n = null, r = 0;
|
|
15793
|
+
for (; r < e.length;) {
|
|
15794
|
+
let i = e[r];
|
|
15795
|
+
if (n) {
|
|
15796
|
+
if (t += i, i === "\\" && r + 1 < e.length) {
|
|
15797
|
+
t += e[r + 1], r += 2;
|
|
15798
|
+
continue;
|
|
15799
|
+
}
|
|
15800
|
+
i === n && (n = null), r += 1;
|
|
15801
|
+
continue;
|
|
15802
|
+
}
|
|
15803
|
+
if (i === "\"" || i === "'") {
|
|
15804
|
+
n = i, t += i, r += 1;
|
|
15805
|
+
continue;
|
|
15806
|
+
}
|
|
15807
|
+
if (i === "/" && e[r + 1] === "*") {
|
|
15808
|
+
let n = e.indexOf("*/", r + 2);
|
|
15809
|
+
r = n === -1 ? e.length : n + 2, t += " ";
|
|
15810
|
+
continue;
|
|
15811
|
+
}
|
|
15812
|
+
t += i, r += 1;
|
|
15813
|
+
}
|
|
15814
|
+
return t;
|
|
15682
15815
|
}
|
|
15683
|
-
function
|
|
15816
|
+
function Yg(e) {
|
|
15684
15817
|
return e.replace(/\\/g, "\\\\").replace(/"/g, "\\\"").replace(/\n|\r|\f/g, " ");
|
|
15685
15818
|
}
|
|
15686
|
-
function
|
|
15819
|
+
function Xg(e, t, n) {
|
|
15687
15820
|
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)]));
|
|
15688
15821
|
return {
|
|
15689
15822
|
...r,
|
|
15690
15823
|
...i
|
|
15691
15824
|
};
|
|
15692
15825
|
}
|
|
15693
|
-
function
|
|
15826
|
+
function Zg(e, t) {
|
|
15694
15827
|
if (Object.keys(t).length === 0) return e;
|
|
15695
15828
|
let n = /* @__PURE__ */ new Set(), r = e.replace(/<([a-z][\w:-]*)([^>]*\bdata-stimulus-idref=(["'])([^"']+)\3[^>]*)>\s*<\/\1>/gi, (e, r, i, a, o) => {
|
|
15696
15829
|
let s = t[o];
|
|
15697
|
-
return s ? (n.add(o), `<${r}${
|
|
15830
|
+
return s ? (n.add(o), `<${r}${$g(i, "qti-stimulus-dock")}>${s}</${r}>`) : e;
|
|
15698
15831
|
});
|
|
15699
15832
|
r = r.replace(/<qti-assessment-stimulus-ref\b([^>]*)\/?>\s*(?:<\/qti-assessment-stimulus-ref>)?/gi, (e, r) => {
|
|
15700
|
-
let i =
|
|
15833
|
+
let i = Qg(r, "identifier");
|
|
15701
15834
|
if (!i) return e;
|
|
15702
15835
|
if (n.has(i)) return "";
|
|
15703
15836
|
let a = t[i];
|
|
15704
|
-
return a ? (n.add(i), `<div data-stimulus-idref="${
|
|
15837
|
+
return a ? (n.add(i), `<div data-stimulus-idref="${e_(i)}" class="qti-stimulus-dock">${a}</div>`) : e;
|
|
15705
15838
|
});
|
|
15706
|
-
let i = Object.entries(t).filter(([e]) => !n.has(e)).map(([e, t]) => `<div data-stimulus-idref="${
|
|
15839
|
+
let i = Object.entries(t).filter(([e]) => !n.has(e)).map(([e, t]) => `<div data-stimulus-idref="${e_(e)}" class="qti-stimulus-block">${t}</div>`).join("");
|
|
15707
15840
|
return i ? i + r : r;
|
|
15708
15841
|
}
|
|
15709
|
-
function
|
|
15842
|
+
function Qg(e, t) {
|
|
15710
15843
|
return e.match(RegExp(`\\b${t}\\s*=\\s*["']([^"']+)["']`, "i"))?.[1] ?? null;
|
|
15711
15844
|
}
|
|
15712
|
-
function
|
|
15845
|
+
function $g(e, t) {
|
|
15713
15846
|
let n = e.match(/\bclass\s*=\s*(["'])([^"']*)\1/i);
|
|
15714
15847
|
if (!n) return `${e} class="${t}"`;
|
|
15715
15848
|
let r = n[1], i = n[2] ?? "", a = new Set(i.split(/\s+/).filter(Boolean));
|
|
15716
15849
|
return a.add(t), e.replace(n[0], `class=${r}${Array.from(a).join(" ")}${r}`);
|
|
15717
15850
|
}
|
|
15718
|
-
function
|
|
15851
|
+
function e_(e) {
|
|
15719
15852
|
return e.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
15720
15853
|
}
|
|
15721
|
-
function
|
|
15854
|
+
function t_(e) {
|
|
15722
15855
|
return th(e);
|
|
15723
15856
|
}
|
|
15724
|
-
function
|
|
15857
|
+
function n_(e) {
|
|
15725
15858
|
return nh(e);
|
|
15726
15859
|
}
|
|
15727
|
-
function
|
|
15728
|
-
return e.replace(/<textEntryInteraction[^>]*responseIdentifier="([^"]+)"[^>]*?(?:\/>|><\/textEntryInteraction>)/gi, (e, n) =>
|
|
15860
|
+
function r_(e, t) {
|
|
15861
|
+
return e.replace(/<textEntryInteraction[^>]*responseIdentifier="([^"]+)"[^>]*?(?:\/>|><\/textEntryInteraction>)/gi, (e, n) => o_(t, n, "textEntryInteraction") ? a_("textEntry", n) : e).replace(/<qti-text-entry-interaction[^>]*response-identifier="([^"]+)"[^>]*?(?:\/>|><\/qti-text-entry-interaction>)/gi, (e, n) => o_(t, n, "textEntryInteraction") ? a_("textEntry", n) : e).replace(/<inlineChoiceInteraction[^>]*responseIdentifier="([^"]+)"[^>]*>[\s\S]*?<\/inlineChoiceInteraction>/gi, (e, n) => o_(t, n, "inlineChoiceInteraction") ? a_("inlineChoice", n) : e).replace(/<qti-inline-choice-interaction[^>]*response-identifier="([^"]+)"[^>]*>[\s\S]*?<\/qti-inline-choice-interaction>/gi, (e, n) => o_(t, n, "inlineChoiceInteraction") ? a_("inlineChoice", n) : e);
|
|
15729
15862
|
}
|
|
15730
|
-
function
|
|
15731
|
-
let n =
|
|
15863
|
+
function i_(e, t) {
|
|
15864
|
+
let n = r_(e, t), r = [], i = /\[TEXTENTRY:([^\]]+)\]|\[INLINECHOICE:([^\]]+)\]/g, a = 0, o;
|
|
15732
15865
|
for (; (o = i.exec(n)) !== null;) {
|
|
15733
15866
|
if (o.index > a && r.push({
|
|
15734
15867
|
type: "html",
|
|
15735
15868
|
content: n.substring(a, o.index)
|
|
15736
15869
|
}), o[0].startsWith("[TEXTENTRY:")) {
|
|
15737
|
-
let e =
|
|
15870
|
+
let e = s_(t, o[1], "textEntryInteraction");
|
|
15738
15871
|
e && r.push({
|
|
15739
15872
|
type: "textEntry",
|
|
15740
15873
|
interaction: e
|
|
15741
15874
|
});
|
|
15742
15875
|
} else {
|
|
15743
|
-
let e =
|
|
15876
|
+
let e = s_(t, o[2], "inlineChoiceInteraction");
|
|
15744
15877
|
e && r.push({
|
|
15745
15878
|
type: "inlineChoice",
|
|
15746
15879
|
interaction: e
|
|
@@ -15756,17 +15889,17 @@ function Yg(e, t) {
|
|
|
15756
15889
|
content: n
|
|
15757
15890
|
}];
|
|
15758
15891
|
}
|
|
15759
|
-
function
|
|
15892
|
+
function a_(e, t) {
|
|
15760
15893
|
return e === "textEntry" ? `[TEXTENTRY:${t}]` : `[INLINECHOICE:${t}]`;
|
|
15761
15894
|
}
|
|
15762
|
-
function
|
|
15763
|
-
return !!
|
|
15895
|
+
function o_(e, t, n) {
|
|
15896
|
+
return !!s_(e, t, n);
|
|
15764
15897
|
}
|
|
15765
|
-
function
|
|
15898
|
+
function s_(e, t, n) {
|
|
15766
15899
|
return e.find((e) => e.responseId === t && e.type === n) ?? null;
|
|
15767
15900
|
}
|
|
15768
|
-
function
|
|
15769
|
-
let d = e.getInteractionData(), f = Ag(r), p = n || f.isReadOnly, m = f.canViewCorrectResponses ? e.getCorrectResponses() : {}, h =
|
|
15901
|
+
function c_({ 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 }) {
|
|
15902
|
+
let d = e.getInteractionData(), f = Ag(r), p = n || f.isReadOnly, m = f.canViewCorrectResponses ? e.getCorrectResponses() : {}, h = l_({
|
|
15770
15903
|
player: e,
|
|
15771
15904
|
role: r,
|
|
15772
15905
|
outcomeValues: i,
|
|
@@ -15781,8 +15914,8 @@ function $g({ player: e, responses: t = {}, disabled: n = !1, role: r = "candida
|
|
|
15781
15914
|
effectiveDisabled: p,
|
|
15782
15915
|
correctResponses: m,
|
|
15783
15916
|
itemBodyHtml: h,
|
|
15784
|
-
inlineSegments:
|
|
15785
|
-
blockInteractions:
|
|
15917
|
+
inlineSegments: i_(h, d),
|
|
15918
|
+
blockInteractions: y_({
|
|
15786
15919
|
interactions: d,
|
|
15787
15920
|
player: e,
|
|
15788
15921
|
responses: t,
|
|
@@ -15793,75 +15926,75 @@ function $g({ player: e, responses: t = {}, disabled: n = !1, role: r = "candida
|
|
|
15793
15926
|
})
|
|
15794
15927
|
};
|
|
15795
15928
|
}
|
|
15796
|
-
function
|
|
15797
|
-
let c = String(e.getItemBodyHtml()), l = a ?? e.getDeliveryContext(), u = Fg(l, o), d =
|
|
15798
|
-
c =
|
|
15929
|
+
function l_({ player: e, role: t, outcomeValues: n, heuristicsConfig: r, stimulusContent: i, deliveryContext: a, itemBodyScopeSelector: o, renderItemBodyRubrics: s }) {
|
|
15930
|
+
let c = String(e.getItemBodyHtml()), l = a ?? e.getDeliveryContext(), u = Fg(l, o), d = Xg(l, i, (t) => e.sanitizeHtmlContent(t));
|
|
15931
|
+
c = Zg(c, d), u && (c = `<style data-qti-stylesheets="resolved">${u}</style>${c}`), c = u_(c, t, { renderRubrics: s });
|
|
15799
15932
|
let f = qo(r);
|
|
15800
15933
|
return c = Ng(c, {
|
|
15801
15934
|
outcomeValues: n,
|
|
15802
15935
|
applyHeuristics: f.feedbackTextFormatting,
|
|
15803
15936
|
wrapWithSpan: !1
|
|
15804
|
-
}),
|
|
15937
|
+
}), v_(c);
|
|
15805
15938
|
}
|
|
15806
|
-
function
|
|
15939
|
+
function u_(e, t, { renderRubrics: n }) {
|
|
15807
15940
|
if (!e || !/rubric-?block/i.test(e)) return e;
|
|
15808
15941
|
try {
|
|
15809
15942
|
let r = Wo(e, {
|
|
15810
15943
|
lowerCaseTagName: !1,
|
|
15811
15944
|
comment: !1
|
|
15812
15945
|
});
|
|
15813
|
-
return
|
|
15946
|
+
return d_(r, t, { renderRubrics: n }), r.toString();
|
|
15814
15947
|
} catch {
|
|
15815
15948
|
return e;
|
|
15816
15949
|
}
|
|
15817
15950
|
}
|
|
15818
|
-
function
|
|
15951
|
+
function d_(e, t, { renderRubrics: n }) {
|
|
15819
15952
|
let r = [...e.childNodes];
|
|
15820
15953
|
for (let e of r) {
|
|
15821
15954
|
let r = e.rawTagName?.toLowerCase();
|
|
15822
|
-
if (r &&
|
|
15955
|
+
if (r && f_(r) && (!n || !p_(e, t))) {
|
|
15823
15956
|
e.remove();
|
|
15824
15957
|
continue;
|
|
15825
15958
|
}
|
|
15826
|
-
e.childNodes?.length &&
|
|
15959
|
+
e.childNodes?.length && d_(e, t, { renderRubrics: n }), r && f_(r) && e.replaceWith(m_(e));
|
|
15827
15960
|
}
|
|
15828
15961
|
}
|
|
15829
|
-
function
|
|
15962
|
+
function f_(e) {
|
|
15830
15963
|
return e === "rubricblock" || e === "qti-rubric-block";
|
|
15831
15964
|
}
|
|
15832
|
-
function
|
|
15965
|
+
function p_(e, t) {
|
|
15833
15966
|
let n = e.getAttribute("view")?.trim();
|
|
15834
|
-
return n ?
|
|
15967
|
+
return n ? h_(n).includes(t) : !0;
|
|
15835
15968
|
}
|
|
15836
|
-
function
|
|
15969
|
+
function m_(e) {
|
|
15837
15970
|
let t = e.getAttribute("view")?.trim(), n = e.getAttribute("use")?.trim();
|
|
15838
15971
|
return `<div ${[
|
|
15839
15972
|
"class=\"qti-rubric-block\"",
|
|
15840
|
-
t ? `data-qti-rubric-view="${
|
|
15841
|
-
n ? `data-qti-rubric-use="${
|
|
15842
|
-
].filter(Boolean).join(" ")}>${
|
|
15973
|
+
t ? `data-qti-rubric-view="${__(t)}"` : "",
|
|
15974
|
+
n ? `data-qti-rubric-use="${__(n)}"` : ""
|
|
15975
|
+
].filter(Boolean).join(" ")}>${g_(e)}</div>`;
|
|
15843
15976
|
}
|
|
15844
|
-
function
|
|
15977
|
+
function h_(e) {
|
|
15845
15978
|
return e.split(/[\s,]+/).filter(Boolean);
|
|
15846
15979
|
}
|
|
15847
|
-
function
|
|
15980
|
+
function g_(e) {
|
|
15848
15981
|
return [...e.childNodes].map((e) => e.toString()).join("");
|
|
15849
15982
|
}
|
|
15850
|
-
function
|
|
15983
|
+
function __(e) {
|
|
15851
15984
|
return e.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
15852
15985
|
}
|
|
15853
|
-
function
|
|
15854
|
-
return e.replace(/<(\w+Interaction|qti-[\w-]+-interaction)(\s[^>]*)?>[\s\S]*?<\/\1>/gi, (e, t) =>
|
|
15986
|
+
function v_(e) {
|
|
15987
|
+
return e.replace(/<(\w+Interaction|qti-[\w-]+-interaction)(\s[^>]*)?>[\s\S]*?<\/\1>/gi, (e, t) => n_(t.toLowerCase()) ? e : `<span class="qti-hidden-interaction">${e}</span>`);
|
|
15855
15988
|
}
|
|
15856
|
-
function
|
|
15989
|
+
function y_({ interactions: e, player: t, responses: n, correctResponses: r, roleCapabilities: i, effectiveDisabled: a, onComponentError: o }) {
|
|
15857
15990
|
let s = t.getComponentRegistry();
|
|
15858
|
-
return e.filter((e) => !
|
|
15991
|
+
return e.filter((e) => !t_(e.type)).map((e) => {
|
|
15859
15992
|
try {
|
|
15860
15993
|
let o = "stringIdentifier" in e && typeof e.stringIdentifier == "string" ? e.stringIdentifier : void 0;
|
|
15861
15994
|
return {
|
|
15862
15995
|
interaction: e,
|
|
15863
15996
|
tagName: s.getTagName(e),
|
|
15864
|
-
key:
|
|
15997
|
+
key: b_(e),
|
|
15865
15998
|
response: n[e.responseId] ?? null,
|
|
15866
15999
|
...o ? { stringResponse: n[o] ?? null } : {},
|
|
15867
16000
|
correctResponse: i.canViewCorrectResponses ? r[e.responseId] ?? null : null,
|
|
@@ -15875,17 +16008,17 @@ function u_({ interactions: e, player: t, responses: n, correctResponses: r, rol
|
|
|
15875
16008
|
}
|
|
15876
16009
|
}).filter((e) => e !== null);
|
|
15877
16010
|
}
|
|
15878
|
-
function
|
|
16011
|
+
function b_(e) {
|
|
15879
16012
|
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 : "";
|
|
15880
16013
|
return `${e.type}|${e.responseId}|${n}|${r}`;
|
|
15881
16014
|
}
|
|
15882
|
-
var
|
|
16015
|
+
var x_ = 0, S_ = /* @__PURE__ */ gf("<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>"), C_ = {
|
|
15883
16016
|
hash: "svelte-11qbngh",
|
|
15884
16017
|
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-portable-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;}"
|
|
15885
16018
|
};
|
|
15886
|
-
function
|
|
15887
|
-
xc(t, !0), Kf(e,
|
|
15888
|
-
let n = Dp(t, "responses", 19, () => ({})), r = Dp(t, "disabled", 3, !1), i = Dp(t, "role", 3, "candidate"), a = Dp(t, "onResponseChange", 3, () => {}), o = Dp(t, "outcomeValues", 19, () => ({})), s = Dp(t, "stimulusContent", 19, () => ({})), c = Dp(t, "renderItemBodyRubrics", 3, !0), l = `qti-item-body-${++
|
|
16019
|
+
function w_(e, t) {
|
|
16020
|
+
xc(t, !0), Kf(e, C_);
|
|
16021
|
+
let n = Dp(t, "responses", 19, () => ({})), r = Dp(t, "disabled", 3, !1), i = Dp(t, "role", 3, "candidate"), a = Dp(t, "onResponseChange", 3, () => {}), o = Dp(t, "outcomeValues", 19, () => ({})), s = Dp(t, "stimulusContent", 19, () => ({})), c = Dp(t, "renderItemBodyRubrics", 3, !0), l = `qti-item-body-${++x_}`, u = `[data-qti-item-body-scope="${l}"]`, d = /* @__PURE__ */ Tl(() => c_({
|
|
15889
16022
|
player: t.player,
|
|
15890
16023
|
responses: n(),
|
|
15891
16024
|
disabled: r(),
|
|
@@ -15928,7 +16061,7 @@ function h_(e, t) {
|
|
|
15928
16061
|
destroy() {}
|
|
15929
16062
|
};
|
|
15930
16063
|
}
|
|
15931
|
-
var v =
|
|
16064
|
+
var v = S_(), y = Gu(v), b = Gu(y);
|
|
15932
16065
|
Rf(b, 21, () => $(d).inlineSegments, Pf, (e, n) => {
|
|
15933
16066
|
var r = _f(), i = Ku(r), a = (e) => {
|
|
15934
16067
|
var t = _f();
|
|
@@ -16003,12 +16136,12 @@ function h_(e, t) {
|
|
|
16003
16136
|
}), vf(e, r);
|
|
16004
16137
|
}), uc(v), Ep(v, (e) => ku(g, e), () => $(g)), qf(v, (e, t) => $h?.(e, t), () => ({ typeset: t.typeset })), qf(v, (e, t) => yg?.(e, t), () => ({ player: t.player })), ld(() => mp(v, "data-qti-item-body-scope", l)), vf(e, v), Sc();
|
|
16005
16138
|
}
|
|
16006
|
-
var
|
|
16139
|
+
var T_ = /* @__PURE__ */ gf("<h3 class=\"qti-feedback-title svelte-i66ia0\"> </h3>"), E_ = /* @__PURE__ */ gf("<div class=\"qti-feedback-content svelte-i66ia0\"></div>"), D_ = /* @__PURE__ */ gf("<div><!> <!></div>"), O_ = /* @__PURE__ */ gf("<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>"), k_ = {
|
|
16007
16140
|
hash: "svelte-i66ia0",
|
|
16008
16141
|
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;}"
|
|
16009
16142
|
};
|
|
16010
|
-
function
|
|
16011
|
-
xc(t, !0), Kf(e,
|
|
16143
|
+
function A_(e, t) {
|
|
16144
|
+
xc(t, !0), Kf(e, k_);
|
|
16012
16145
|
let n = Dp(t, "feedback", 19, () => []), r = /* @__PURE__ */ Tl(() => n().length > 0), i = "item-player-modal-feedback-title", a = /* @__PURE__ */ Tl(() => n().find((e) => e.title)?.title);
|
|
16013
16146
|
function o() {
|
|
16014
16147
|
t.onClose?.();
|
|
@@ -16017,12 +16150,12 @@ function x_(e, t) {
|
|
|
16017
16150
|
e.target === e.currentTarget && o();
|
|
16018
16151
|
}
|
|
16019
16152
|
var c = _f(), l = Ku(c), u = (e) => {
|
|
16020
|
-
var r =
|
|
16153
|
+
var r = O_(), c = Gu(r), l = Gu(c), u = qu(l, 2);
|
|
16021
16154
|
Rf(u, 17, n, Pf, (e, r, a) => {
|
|
16022
|
-
var o =
|
|
16155
|
+
var o = D_();
|
|
16023
16156
|
let s;
|
|
16024
16157
|
var c = Gu(o), l = (e) => {
|
|
16025
|
-
var t =
|
|
16158
|
+
var t = T_();
|
|
16026
16159
|
mp(t, "id", a === 0 ? i : void 0);
|
|
16027
16160
|
var n = Gu(t, !0);
|
|
16028
16161
|
uc(t), ld(() => yf(n, $(r).title)), vf(e, t);
|
|
@@ -16031,10 +16164,10 @@ function x_(e, t) {
|
|
|
16031
16164
|
$(r).title && e(l);
|
|
16032
16165
|
});
|
|
16033
16166
|
var u = qu(c, 2), d = (e) => {
|
|
16034
|
-
var n =
|
|
16167
|
+
var n = E_();
|
|
16035
16168
|
Wf(n, () => $(r).content, !0), uc(n), qf(n, (e, t) => $h?.(e, t), () => ({ typeset: t.typeset })), vf(e, n);
|
|
16036
16169
|
}, f = (e) => {
|
|
16037
|
-
var t =
|
|
16170
|
+
var t = E_();
|
|
16038
16171
|
Wf(t, () => $(r).content, !0), uc(t), vf(e, t);
|
|
16039
16172
|
};
|
|
16040
16173
|
Nf(u, (e) => {
|
|
@@ -16058,12 +16191,12 @@ function x_(e, t) {
|
|
|
16058
16191
|
}), vf(e, c), Sc();
|
|
16059
16192
|
}
|
|
16060
16193
|
lf(["click"]);
|
|
16061
|
-
var
|
|
16194
|
+
var j_ = /* @__PURE__ */ gf("<div class=\"qti-player-alert qti-player-alert-error svelte-129urwy\"><span> </span></div>"), M_ = /* @__PURE__ */ gf("<span class=\"qti-player-badge qti-player-badge-success svelte-129urwy\"> </span>"), N_ = /* @__PURE__ */ gf("<span> </span>"), P_ = /* @__PURE__ */ gf("<div class=\"qti-player-attempt-status svelte-129urwy\"><!></div>"), F_ = /* @__PURE__ */ gf("<div class=\"qti-player-actions svelte-129urwy\"><button class=\"qti-player-button qti-player-button-primary svelte-129urwy\"> </button> <!></div>"), I_ = /* @__PURE__ */ gf("<!> <!> <!>", 1), L_ = /* @__PURE__ */ gf("<div class=\"qti-player-alert qti-player-alert-info svelte-129urwy\"><span> </span></div>"), R_ = /* @__PURE__ */ gf("<div class=\"qti-item-player svelte-129urwy\"><!></div>"), z_ = {
|
|
16062
16195
|
hash: "svelte-129urwy",
|
|
16063
16196
|
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);}"
|
|
16064
16197
|
};
|
|
16065
|
-
function
|
|
16066
|
-
xc(t, !0), Kf(e,
|
|
16198
|
+
function B_(e, t) {
|
|
16199
|
+
xc(t, !0), Kf(e, z_);
|
|
16067
16200
|
let n = Dp(t, "role", 3, "candidate"), r = Dp(t, "responses", 19, () => ({})), i = Dp(t, "disabled", 3, !1), a = Dp(t, "renderItemBodyRubrics", 3, !0), o = /* @__PURE__ */ Tl(() => t.showSubmit ?? !!t.onSubmit), s = /* @__PURE__ */ Du(null), c = /* @__PURE__ */ Du(Pu({})), l = /* @__PURE__ */ Du(null), u = /* @__PURE__ */ Du(Pu([])), d = /* @__PURE__ */ Du(Pu({})), f = /* @__PURE__ */ Du(!1), p = /* @__PURE__ */ Du(!1), m = /* @__PURE__ */ Du(0);
|
|
16068
16201
|
rd(() => {
|
|
16069
16202
|
try {
|
|
@@ -16109,12 +16242,12 @@ function j_(e, t) {
|
|
|
16109
16242
|
function _() {
|
|
16110
16243
|
ku(u, [], !0);
|
|
16111
16244
|
}
|
|
16112
|
-
var v = { submit: g }, y =
|
|
16113
|
-
var t =
|
|
16245
|
+
var v = { submit: g }, y = R_(), b = Gu(y), ee = (e) => {
|
|
16246
|
+
var t = j_(), n = Gu(t), r = Gu(n, !0);
|
|
16114
16247
|
uc(n), uc(t), ld(() => yf(r, $(l))), vf(e, t);
|
|
16115
16248
|
}, x = (e) => {
|
|
16116
|
-
var r =
|
|
16117
|
-
|
|
16249
|
+
var r = I_(), l = Ku(r);
|
|
16250
|
+
w_(l, {
|
|
16118
16251
|
get player() {
|
|
16119
16252
|
return $(s);
|
|
16120
16253
|
},
|
|
@@ -16146,14 +16279,14 @@ function j_(e, t) {
|
|
|
16146
16279
|
});
|
|
16147
16280
|
var v = qu(l, 2), y = (e) => {
|
|
16148
16281
|
let n = /* @__PURE__ */ Tl(() => $(s).canSubmitResponses($(c)));
|
|
16149
|
-
var r =
|
|
16282
|
+
var r = F_(), i = Gu(r), a = Gu(i, !0);
|
|
16150
16283
|
uc(i);
|
|
16151
16284
|
var o = qu(i, 2), l = (e) => {
|
|
16152
|
-
var n =
|
|
16153
|
-
var n =
|
|
16285
|
+
var n = P_(), r = Gu(n), i = (e) => {
|
|
16286
|
+
var n = M_(), r = Gu(n, !0);
|
|
16154
16287
|
uc(n), ld((e) => yf(r, e), [() => t.i18n?.t("item.complete") ?? "item.complete"]), vf(e, n);
|
|
16155
16288
|
}, a = (e) => {
|
|
16156
|
-
var n =
|
|
16289
|
+
var n = N_(), r = Gu(n, !0);
|
|
16157
16290
|
uc(n), ld((e) => yf(r, e), [() => t.i18n?.t("item.attempt", { numAttempts: $(m) + 1 }) ?? `item.attempt (${$(m) + 1})`]), vf(e, n);
|
|
16158
16291
|
};
|
|
16159
16292
|
Nf(r, (e) => {
|
|
@@ -16168,7 +16301,7 @@ function j_(e, t) {
|
|
|
16168
16301
|
};
|
|
16169
16302
|
Nf(v, (e) => {
|
|
16170
16303
|
n() === "candidate" && !i() && $(o) && e(y);
|
|
16171
|
-
}),
|
|
16304
|
+
}), A_(qu(v, 2), {
|
|
16172
16305
|
get feedback() {
|
|
16173
16306
|
return $(u);
|
|
16174
16307
|
},
|
|
@@ -16181,7 +16314,7 @@ function j_(e, t) {
|
|
|
16181
16314
|
}
|
|
16182
16315
|
}), vf(e, r);
|
|
16183
16316
|
}, S = (e) => {
|
|
16184
|
-
var n =
|
|
16317
|
+
var n = L_(), r = Gu(n), i = Gu(r, !0);
|
|
16185
16318
|
uc(r), uc(n), ld((e) => yf(i, e), [() => t.i18n?.t("item.loading") ?? "item.loading"]), vf(e, n);
|
|
16186
16319
|
};
|
|
16187
16320
|
return Nf(b, (e) => {
|
|
@@ -16189,16 +16322,16 @@ function j_(e, t) {
|
|
|
16189
16322
|
}), uc(y), vf(e, y), Sc(v);
|
|
16190
16323
|
}
|
|
16191
16324
|
lf(["click"]);
|
|
16192
|
-
var
|
|
16325
|
+
var V_ = globalThis.HTMLElement ?? class {}, H_ = /* @__PURE__ */ new WeakMap(), U_ = /* @__PURE__ */ new WeakMap(), W_ = /* @__PURE__ */ new WeakMap(), G_ = /* @__PURE__ */ new WeakMap(), K_ = /* @__PURE__ */ new WeakMap(), q_ = /* @__PURE__ */ new WeakMap(), J_ = /* @__PURE__ */ new WeakMap(), Y_ = /* @__PURE__ */ new WeakMap(), X_ = /* @__PURE__ */ new WeakMap(), Z_ = /* @__PURE__ */ new WeakMap(), Q_ = /* @__PURE__ */ new WeakMap(), $_ = /* @__PURE__ */ new WeakMap(), ev = /* @__PURE__ */ new WeakMap(), tv = /* @__PURE__ */ new WeakMap(), nv = /* @__PURE__ */ new WeakMap(), rv = /* @__PURE__ */ new WeakMap(), iv = /* @__PURE__ */ new WeakMap(), av = /* @__PURE__ */ new WeakSet(), ov = class extends V_ {
|
|
16193
16326
|
constructor(...e) {
|
|
16194
|
-
super(...e), Hc(this,
|
|
16327
|
+
super(...e), Hc(this, av), K(this, H_, w({
|
|
16195
16328
|
host: this,
|
|
16196
|
-
mount: (e, t) => bf(
|
|
16329
|
+
mount: (e, t) => bf(B_, {
|
|
16197
16330
|
target: e,
|
|
16198
16331
|
props: t
|
|
16199
16332
|
}),
|
|
16200
16333
|
unmount: wf
|
|
16201
|
-
})), K(this,
|
|
16334
|
+
})), K(this, U_, ""), K(this, W_, "candidate"), K(this, G_, !1), K(this, K_, !0), K(this, q_, void 0), K(this, J_, void 0), K(this, Y_, void 0), K(this, X_, void 0), K(this, Z_, void 0), K(this, Q_, void 0), K(this, $_, void 0), K(this, ev, void 0), K(this, tv, void 0), K(this, nv, void 0), K(this, rv, void 0), K(this, iv, void 0);
|
|
16202
16335
|
}
|
|
16203
16336
|
static get observedAttributes() {
|
|
16204
16337
|
return [
|
|
@@ -16208,103 +16341,103 @@ var M_ = globalThis.HTMLElement ?? class {}, N_ = /* @__PURE__ */ new WeakMap(),
|
|
|
16208
16341
|
];
|
|
16209
16342
|
}
|
|
16210
16343
|
get itemXml() {
|
|
16211
|
-
return Y(
|
|
16344
|
+
return Y(U_, this);
|
|
16212
16345
|
}
|
|
16213
16346
|
set itemXml(e) {
|
|
16214
|
-
J(
|
|
16347
|
+
J(U_, this, e ?? ""), q(av, this, cv).call(this);
|
|
16215
16348
|
}
|
|
16216
16349
|
get role() {
|
|
16217
|
-
return Y(
|
|
16350
|
+
return Y(W_, this);
|
|
16218
16351
|
}
|
|
16219
16352
|
set role(e) {
|
|
16220
|
-
J(
|
|
16353
|
+
J(W_, this, e ?? "candidate"), q(av, this, cv).call(this);
|
|
16221
16354
|
}
|
|
16222
16355
|
get disabled() {
|
|
16223
|
-
return Y(
|
|
16356
|
+
return Y(G_, this);
|
|
16224
16357
|
}
|
|
16225
16358
|
set disabled(e) {
|
|
16226
|
-
J(
|
|
16359
|
+
J(G_, this, !!e), q(av, this, cv).call(this);
|
|
16227
16360
|
}
|
|
16228
16361
|
get renderItemBodyRubrics() {
|
|
16229
|
-
return Y(
|
|
16362
|
+
return Y(K_, this);
|
|
16230
16363
|
}
|
|
16231
16364
|
set renderItemBodyRubrics(e) {
|
|
16232
|
-
J(
|
|
16365
|
+
J(K_, this, e !== !1), q(av, this, cv).call(this);
|
|
16233
16366
|
}
|
|
16234
16367
|
get typeset() {
|
|
16235
|
-
return Y(
|
|
16368
|
+
return Y(q_, this);
|
|
16236
16369
|
}
|
|
16237
16370
|
set typeset(e) {
|
|
16238
|
-
J(
|
|
16371
|
+
J(q_, this, e), q(av, this, cv).call(this);
|
|
16239
16372
|
}
|
|
16240
16373
|
get i18n() {
|
|
16241
|
-
return Y(
|
|
16374
|
+
return Y(J_, this);
|
|
16242
16375
|
}
|
|
16243
16376
|
set i18n(e) {
|
|
16244
|
-
J(
|
|
16377
|
+
J(J_, this, e), q(av, this, cv).call(this);
|
|
16245
16378
|
}
|
|
16246
16379
|
get security() {
|
|
16247
|
-
return Y(
|
|
16380
|
+
return Y(Y_, this);
|
|
16248
16381
|
}
|
|
16249
16382
|
set security(e) {
|
|
16250
|
-
J(
|
|
16383
|
+
J(Y_, this, e), q(av, this, cv).call(this);
|
|
16251
16384
|
}
|
|
16252
16385
|
get pnp() {
|
|
16253
|
-
return Y(
|
|
16386
|
+
return Y(X_, this);
|
|
16254
16387
|
}
|
|
16255
16388
|
set pnp(e) {
|
|
16256
|
-
J(
|
|
16389
|
+
J(X_, this, e), q(av, this, cv).call(this);
|
|
16257
16390
|
}
|
|
16258
16391
|
get deliveryContext() {
|
|
16259
|
-
return Y(
|
|
16392
|
+
return Y(Z_, this);
|
|
16260
16393
|
}
|
|
16261
16394
|
set deliveryContext(e) {
|
|
16262
|
-
J(
|
|
16395
|
+
J(Z_, this, e), q(av, this, cv).call(this);
|
|
16263
16396
|
}
|
|
16264
16397
|
get pci() {
|
|
16265
|
-
return Y(
|
|
16398
|
+
return Y(ev, this);
|
|
16266
16399
|
}
|
|
16267
16400
|
set pci(e) {
|
|
16268
|
-
J(
|
|
16401
|
+
J(ev, this, e), q(av, this, cv).call(this);
|
|
16269
16402
|
}
|
|
16270
16403
|
get resolveProcessingFragment() {
|
|
16271
|
-
return Y(
|
|
16404
|
+
return Y(Q_, this);
|
|
16272
16405
|
}
|
|
16273
16406
|
set resolveProcessingFragment(e) {
|
|
16274
|
-
J(
|
|
16407
|
+
J(Q_, this, e), q(av, this, cv).call(this);
|
|
16275
16408
|
}
|
|
16276
16409
|
get processingFragmentLimits() {
|
|
16277
|
-
return Y(
|
|
16410
|
+
return Y($_, this);
|
|
16278
16411
|
}
|
|
16279
16412
|
set processingFragmentLimits(e) {
|
|
16280
|
-
J(
|
|
16413
|
+
J($_, this, e), q(av, this, cv).call(this);
|
|
16281
16414
|
}
|
|
16282
16415
|
get responses() {
|
|
16283
|
-
return Y(
|
|
16416
|
+
return Y(tv, this);
|
|
16284
16417
|
}
|
|
16285
16418
|
set responses(e) {
|
|
16286
|
-
J(
|
|
16419
|
+
J(tv, this, e ? { ...e } : void 0), q(av, this, cv).call(this);
|
|
16287
16420
|
}
|
|
16288
16421
|
get onResponseChange() {
|
|
16289
|
-
return Y(
|
|
16422
|
+
return Y(nv, this);
|
|
16290
16423
|
}
|
|
16291
16424
|
set onResponseChange(e) {
|
|
16292
|
-
J(
|
|
16425
|
+
J(nv, this, e);
|
|
16293
16426
|
}
|
|
16294
16427
|
get onSubmit() {
|
|
16295
|
-
return Y(
|
|
16428
|
+
return Y(rv, this);
|
|
16296
16429
|
}
|
|
16297
16430
|
set onSubmit(e) {
|
|
16298
|
-
J(
|
|
16431
|
+
J(rv, this, e), q(av, this, cv).call(this);
|
|
16299
16432
|
}
|
|
16300
16433
|
get onComplete() {
|
|
16301
|
-
return Y(
|
|
16434
|
+
return Y(iv, this);
|
|
16302
16435
|
}
|
|
16303
16436
|
set onComplete(e) {
|
|
16304
|
-
J(
|
|
16437
|
+
J(iv, this, e);
|
|
16305
16438
|
}
|
|
16306
16439
|
connectedCallback() {
|
|
16307
|
-
Y(
|
|
16440
|
+
Y(H_, this).mountOrUpdate(q(av, this, sv).call(this)), queueMicrotask(() => {
|
|
16308
16441
|
this.isConnected && this.dispatchEvent(new CustomEvent("ready", {
|
|
16309
16442
|
bubbles: !0,
|
|
16310
16443
|
composed: !0
|
|
@@ -16312,45 +16445,45 @@ var M_ = globalThis.HTMLElement ?? class {}, N_ = /* @__PURE__ */ new WeakMap(),
|
|
|
16312
16445
|
});
|
|
16313
16446
|
}
|
|
16314
16447
|
disconnectedCallback() {
|
|
16315
|
-
Y(
|
|
16448
|
+
Y(H_, this).teardown({ removeContainer: !0 });
|
|
16316
16449
|
}
|
|
16317
16450
|
attributeChangedCallback(e, t, n) {
|
|
16318
|
-
e === "item-xml" ? J(
|
|
16451
|
+
e === "item-xml" ? J(U_, this, n ?? "") : e === "role" ? J(W_, this, n ?? "candidate") : e === "disabled" && J(G_, this, n !== null), q(av, this, cv).call(this);
|
|
16319
16452
|
}
|
|
16320
16453
|
submit(e = !0) {
|
|
16321
|
-
return Y(
|
|
16454
|
+
return Y(H_, this).instance?.submit(e);
|
|
16322
16455
|
}
|
|
16323
16456
|
addEventListener(e, t, n) {
|
|
16324
16457
|
super.addEventListener(e, t, n);
|
|
16325
16458
|
}
|
|
16326
16459
|
};
|
|
16327
|
-
function
|
|
16460
|
+
function sv() {
|
|
16328
16461
|
return {
|
|
16329
|
-
itemXml: Y(
|
|
16330
|
-
role: Y(
|
|
16331
|
-
disabled: Y(
|
|
16332
|
-
renderItemBodyRubrics: Y(
|
|
16333
|
-
typeset: Y(
|
|
16334
|
-
i18n: Y(
|
|
16462
|
+
itemXml: Y(U_, this),
|
|
16463
|
+
role: Y(W_, this),
|
|
16464
|
+
disabled: Y(G_, this),
|
|
16465
|
+
renderItemBodyRubrics: Y(K_, this),
|
|
16466
|
+
typeset: Y(q_, this),
|
|
16467
|
+
i18n: Y(J_, this),
|
|
16335
16468
|
security: {
|
|
16336
|
-
...Y(
|
|
16469
|
+
...Y(Y_, this) ?? {},
|
|
16337
16470
|
parsingLimits: {
|
|
16338
16471
|
enabled: !0,
|
|
16339
|
-
...Y(
|
|
16472
|
+
...Y(Y_, this)?.parsingLimits ?? {}
|
|
16340
16473
|
}
|
|
16341
16474
|
},
|
|
16342
|
-
pnp: Y(
|
|
16343
|
-
deliveryContext: Y(
|
|
16344
|
-
resolveProcessingFragment: Y(
|
|
16345
|
-
processingFragmentLimits: Y(
|
|
16346
|
-
pci: Y(
|
|
16347
|
-
responses: Y(
|
|
16475
|
+
pnp: Y(X_, this),
|
|
16476
|
+
deliveryContext: Y(Z_, this),
|
|
16477
|
+
resolveProcessingFragment: Y(Q_, this),
|
|
16478
|
+
processingFragmentLimits: Y($_, this),
|
|
16479
|
+
pci: Y(ev, this),
|
|
16480
|
+
responses: Y(tv, this),
|
|
16348
16481
|
onResponseChange: (e, t) => {
|
|
16349
16482
|
let n = {
|
|
16350
|
-
...Y(
|
|
16483
|
+
...Y(tv, this) ?? {},
|
|
16351
16484
|
[e]: t
|
|
16352
16485
|
};
|
|
16353
|
-
J(
|
|
16486
|
+
J(tv, this, n), Y(nv, this)?.call(this, e, t), this.dispatchEvent(new CustomEvent("response-change", {
|
|
16354
16487
|
detail: {
|
|
16355
16488
|
responseId: e,
|
|
16356
16489
|
value: t,
|
|
@@ -16362,7 +16495,7 @@ function Q_() {
|
|
|
16362
16495
|
},
|
|
16363
16496
|
onSubmit: (e, t) => {
|
|
16364
16497
|
let n = { ...e };
|
|
16365
|
-
J(
|
|
16498
|
+
J(tv, this, n), Y(rv, this)?.call(this, n, t), this.dispatchEvent(new CustomEvent("submit", {
|
|
16366
16499
|
detail: {
|
|
16367
16500
|
responses: n,
|
|
16368
16501
|
result: t
|
|
@@ -16371,9 +16504,9 @@ function Q_() {
|
|
|
16371
16504
|
composed: !0
|
|
16372
16505
|
}));
|
|
16373
16506
|
},
|
|
16374
|
-
showSubmit: !!Y(
|
|
16507
|
+
showSubmit: !!Y(rv, this),
|
|
16375
16508
|
onComplete: (e) => {
|
|
16376
|
-
Y(
|
|
16509
|
+
Y(iv, this)?.call(this, e), this.dispatchEvent(new CustomEvent("complete", {
|
|
16377
16510
|
detail: { result: e },
|
|
16378
16511
|
bubbles: !0,
|
|
16379
16512
|
composed: !0
|
|
@@ -16381,10 +16514,10 @@ function Q_() {
|
|
|
16381
16514
|
}
|
|
16382
16515
|
};
|
|
16383
16516
|
}
|
|
16384
|
-
function
|
|
16385
|
-
Y(
|
|
16517
|
+
function cv() {
|
|
16518
|
+
Y(H_, this).update(q(av, this, sv).call(this));
|
|
16386
16519
|
}
|
|
16387
16520
|
//#endregion
|
|
16388
|
-
export { w as A, de as C, ne as D, re as E, _ as F, t as I, ee as M, b as N, A as O, v as P, pe as S, D as T, B as _, Yo as a, he as b, Wo as c, pn as d, V as f, sn as g, z as h, Zo as i, C as j, k, bn as l, L as m, Jo as n, Go as o, un as p, Xo as r, qo as s,
|
|
16521
|
+
export { w as A, de as C, ne as D, re as E, _ as F, t as I, ee as M, b as N, A as O, v as P, pe as S, D as T, B as _, Yo as a, he as b, Wo as c, pn as d, V as f, sn as g, z as h, Zo as i, C as j, k, bn as l, L as m, Jo as n, Go as o, un as p, Xo as r, qo as s, ov as t, gn as u, cn as v, fe as w, me as x, M as y };
|
|
16389
16522
|
|
|
16390
|
-
//# sourceMappingURL=element-class-
|
|
16523
|
+
//# sourceMappingURL=element-class-C8OTgYHE-DsvwOAOP.js.map
|