qti3-item-player-vue3 0.2.12 → 0.2.14
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/assets/pci/css/styles.css +70 -3
- package/dist/assets/pci/pci.html +280 -211
- package/dist/qti3-item-player-vue3.js +241 -159
- package/dist/qti3-item-player-vue3.umd.cjs +2 -2
- package/dist/qti3Player.css +1 -1
- package/package.json +1 -1
@@ -132,6 +132,16 @@ class Kg {
|
|
132
132
|
getPnp() {
|
133
133
|
return this.pnp;
|
134
134
|
}
|
135
|
+
getAfaPnp() {
|
136
|
+
const t = {
|
137
|
+
"ext:sbac-illustrated-glossary": this.getExtSbacGlossaryIllustration() ? "on" : "off",
|
138
|
+
"keyword-translation": this.getKeywordTranslationLanguage(),
|
139
|
+
"text-appearance": {
|
140
|
+
"color-theme": this.convertColorStyleToTheme()
|
141
|
+
}
|
142
|
+
}, i = this.getProhibitSet();
|
143
|
+
return i !== null && (t["prohibit-set"] = i), { "access-for-all-pnp": t };
|
144
|
+
}
|
135
145
|
getColorStyle() {
|
136
146
|
return this.pnp.textAppearance.colorStyle;
|
137
147
|
}
|
@@ -162,6 +172,49 @@ class Kg {
|
|
162
172
|
setLayoutSingleColumn(t) {
|
163
173
|
this.pnp.layoutSingleColumn = t;
|
164
174
|
}
|
175
|
+
/**
|
176
|
+
* @description Convert Qti 3 Player PNP colorStyle to standard QTI color theme.
|
177
|
+
* @returns {String} QTI color theme
|
178
|
+
*/
|
179
|
+
convertColorStyleToTheme() {
|
180
|
+
const t = this.getColorStyle().split("-");
|
181
|
+
if (t.length !== 4) return "default";
|
182
|
+
switch (t[3]) {
|
183
|
+
case "default":
|
184
|
+
return "default";
|
185
|
+
case "defaultreverse":
|
186
|
+
return "default-reverse";
|
187
|
+
case "blackwhite":
|
188
|
+
return "high-contrast";
|
189
|
+
case "whiteblack":
|
190
|
+
return "high-contrast-reverse";
|
191
|
+
case "blackrose":
|
192
|
+
return "black-rose";
|
193
|
+
case "roseblack":
|
194
|
+
return "rose-black";
|
195
|
+
case "yellowblue":
|
196
|
+
return "yellow-blue";
|
197
|
+
case "blueyellow":
|
198
|
+
return "blue-yellow";
|
199
|
+
case "mgraydgray":
|
200
|
+
return "medgray-darkgray";
|
201
|
+
case "dgraymgray":
|
202
|
+
return "darkgray-medgray";
|
203
|
+
case "blackcyan":
|
204
|
+
return "black-cyan";
|
205
|
+
case "cyanblack":
|
206
|
+
return "cyan-black";
|
207
|
+
case "blackcream":
|
208
|
+
return "black-cream";
|
209
|
+
case "creamblack":
|
210
|
+
return "cream-black";
|
211
|
+
default:
|
212
|
+
return "default";
|
213
|
+
}
|
214
|
+
}
|
215
|
+
getProhibitSet() {
|
216
|
+
return this.getGlossaryOnScreen() ? null : { "glossary-on-screen": "active" };
|
217
|
+
}
|
165
218
|
evaluatePnpEvent(t) {
|
166
219
|
let i = !1;
|
167
220
|
switch (t) {
|
@@ -1607,12 +1660,12 @@ class re {
|
|
1607
1660
|
throw new k("Improper value encoding. Found Array. Must be an Object.");
|
1608
1661
|
if (t.base !== void 0) {
|
1609
1662
|
if (i.cardinality === "single")
|
1610
|
-
return this.baseValueFromPciJson(t.base, i.baseType);
|
1663
|
+
return this.baseValueFromPciJson(t.base, i.baseType, !0);
|
1611
1664
|
throw new k("Inconsistent value cardinality [base] for this variable. Variable must be single cardinality.");
|
1612
1665
|
}
|
1613
1666
|
if (t.list !== void 0) {
|
1614
1667
|
if (i.cardinality === "multiple" || i.cardinality === "ordered")
|
1615
|
-
return this.baseValueFromPciJson(t.list, i.baseType);
|
1668
|
+
return this.baseValueFromPciJson(t.list, i.baseType, !1);
|
1616
1669
|
throw new k("Inconsistent value cardinality [list] for this variable. Variable must be multiple or ordered cardinality.");
|
1617
1670
|
}
|
1618
1671
|
if (t.record !== void 0) {
|
@@ -1625,7 +1678,7 @@ class re {
|
|
1625
1678
|
return console.log("[PciDecodingException][ValueFromJson] ", n), this.nullValue();
|
1626
1679
|
}
|
1627
1680
|
}
|
1628
|
-
baseValueFromPciJson(t, i) {
|
1681
|
+
baseValueFromPciJson(t, i, s) {
|
1629
1682
|
if (t === null) return this.nullValue();
|
1630
1683
|
try {
|
1631
1684
|
if (typeof t != "object")
|
@@ -1636,15 +1689,23 @@ class re {
|
|
1636
1689
|
if (i === "point" || i === "directedPair" || i === "pair") {
|
1637
1690
|
if (!Array.isArray(t[i]))
|
1638
1691
|
throw new k(`Invalid value. For baseType "${i}", must be an Array`);
|
1639
|
-
if (
|
1640
|
-
|
1641
|
-
|
1692
|
+
if (s) {
|
1693
|
+
if (t[i].length !== 2)
|
1694
|
+
throw new k(`Invalid value. For baseType "${i}", Array must have 2 elements`);
|
1695
|
+
return `${t[i][0]} ${t[i][1]}`;
|
1696
|
+
}
|
1697
|
+
let n = [];
|
1698
|
+
return t[i].forEach((r) => {
|
1699
|
+
if (r.length !== 2)
|
1700
|
+
throw new k(`Invalid value. For baseType "${i}", Array must have 2 elements`);
|
1701
|
+
n.push(`${r[0]} ${r[1]}`);
|
1702
|
+
}), n;
|
1642
1703
|
}
|
1643
1704
|
return t[i];
|
1644
1705
|
}
|
1645
1706
|
throw new k(`Value does not have the required base-type. Expecting ${i}.`);
|
1646
|
-
} catch ({ name:
|
1647
|
-
return console.log("[PciDecodingException][BaseValueFromJson] ",
|
1707
|
+
} catch ({ name: n, message: r }) {
|
1708
|
+
return console.log("[PciDecodingException][BaseValueFromJson] ", r, t), this.nullValue();
|
1648
1709
|
}
|
1649
1710
|
}
|
1650
1711
|
recordValueFromPciJson(t, i) {
|
@@ -1660,7 +1721,7 @@ class re {
|
|
1660
1721
|
for (let [r, a] of s)
|
1661
1722
|
for (let o = 0; o < t.length; o++)
|
1662
1723
|
if (t[o].name !== void 0 && t[o].base !== void 0 && t[o].name === r) {
|
1663
|
-
const u = this.baseValueFromPciJson(t[o].base, a.getBaseType()), c = new vn(r, a.getBaseType(), u);
|
1724
|
+
const u = this.baseValueFromPciJson(t[o].base, a.getBaseType(), !0), c = new vn(r, a.getBaseType(), u);
|
1664
1725
|
n.set(r, c);
|
1665
1726
|
break;
|
1666
1727
|
}
|
@@ -2131,6 +2192,9 @@ const xv = new re(), S = {
|
|
2131
2192
|
case "PciGetState_Reply":
|
2132
2193
|
console.log("[PCI Parent] PCI GetState Reply: " + e.data.identifier + ", state:", e.data.state), this.pciSaveState(e.data.identifier, e.data.state);
|
2133
2194
|
break;
|
2195
|
+
case "PciInteractionChanged":
|
2196
|
+
console.log("[PCI Parent] PCI InteractionChanged: " + e.data.identifier + ", state: " + e.data.state), this.pciInteractionChanged(e.data.identifier, e.data.state);
|
2197
|
+
break;
|
2134
2198
|
}
|
2135
2199
|
},
|
2136
2200
|
WindowResize() {
|
@@ -2138,6 +2202,11 @@ const xv = new re(), S = {
|
|
2138
2202
|
e.interactionType === "PortableCustom" && e.node.pciResizeIframeWidthToContainer();
|
2139
2203
|
});
|
2140
2204
|
},
|
2205
|
+
pciSetRenderingProperties() {
|
2206
|
+
this.getInteractions().forEach((e) => {
|
2207
|
+
e.interactionType === "PortableCustom" && e.node.pciSetRenderingProperties();
|
2208
|
+
});
|
2209
|
+
},
|
2141
2210
|
pciInitialize(e) {
|
2142
2211
|
let t = S.getInteraction(e);
|
2143
2212
|
typeof t > "u" || t.interactionType !== "PortableCustom" || t.node.pciInitialize();
|
@@ -2154,6 +2223,12 @@ const xv = new re(), S = {
|
|
2154
2223
|
let i = S.getInteraction(e);
|
2155
2224
|
typeof i > "u" || i.interactionType !== "PortableCustom" || i.node.pciSaveState(t);
|
2156
2225
|
},
|
2226
|
+
pciInteractionChanged(e, t) {
|
2227
|
+
let i = S.getInteraction(e);
|
2228
|
+
if (typeof i > "u" || i.interactionType !== "PortableCustom") return;
|
2229
|
+
const s = JSON.parse(t);
|
2230
|
+
typeof s.valid < "u" && i.node.pciUpdateValidity(s.valid), typeof s.value < "u" && i.node.pciUpdateResponse(s.value);
|
2231
|
+
},
|
2157
2232
|
getAsyncStateMap() {
|
2158
2233
|
return this.state.asyncStateMap;
|
2159
2234
|
},
|
@@ -8660,10 +8735,10 @@ const Jx = async (e) => {
|
|
8660
8735
|
return e.byteLength;
|
8661
8736
|
if (U.isURLSearchParams(e) && (e = e + ""), U.isString(e))
|
8662
8737
|
return (await Xx(e)).byteLength;
|
8663
|
-
},
|
8738
|
+
}, eS = async (e, t) => {
|
8664
8739
|
const i = U.toFiniteNumber(e.getContentLength());
|
8665
8740
|
return i ?? Jx(t);
|
8666
|
-
},
|
8741
|
+
}, tS = Cu && (async (e) => {
|
8667
8742
|
let {
|
8668
8743
|
url: t,
|
8669
8744
|
method: i,
|
@@ -8685,7 +8760,7 @@ const Jx = async (e) => {
|
|
8685
8760
|
});
|
8686
8761
|
let T;
|
8687
8762
|
try {
|
8688
|
-
if (u && Zx && i !== "get" && i !== "head" && (T = await
|
8763
|
+
if (u && Zx && i !== "get" && i !== "head" && (T = await eS(d, s)) !== 0) {
|
8689
8764
|
let j = new Request(t, {
|
8690
8765
|
method: "POST",
|
8691
8766
|
body: s,
|
@@ -8751,7 +8826,7 @@ const Jx = async (e) => {
|
|
8751
8826
|
}), Wh = {
|
8752
8827
|
http: gx,
|
8753
8828
|
xhr: jx,
|
8754
|
-
fetch:
|
8829
|
+
fetch: tS
|
8755
8830
|
};
|
8756
8831
|
U.forEach(Wh, (e, t) => {
|
8757
8832
|
if (e) {
|
@@ -8762,7 +8837,7 @@ U.forEach(Wh, (e, t) => {
|
|
8762
8837
|
Object.defineProperty(e, "adapterName", { value: t });
|
8763
8838
|
}
|
8764
8839
|
});
|
8765
|
-
const lp = (e) => `- ${e}`,
|
8840
|
+
const lp = (e) => `- ${e}`, iS = (e) => U.isFunction(e) || e === null || e === !1, ow = {
|
8766
8841
|
getAdapter: (e) => {
|
8767
8842
|
e = U.isArray(e) ? e : [e];
|
8768
8843
|
const { length: t } = e;
|
@@ -8771,7 +8846,7 @@ const lp = (e) => `- ${e}`, i1 = (e) => U.isFunction(e) || e === null || e === !
|
|
8771
8846
|
for (let r = 0; r < t; r++) {
|
8772
8847
|
i = e[r];
|
8773
8848
|
let a;
|
8774
|
-
if (s = i, !
|
8849
|
+
if (s = i, !iS(i) && (s = Wh[(a = String(i)).toLowerCase()], s === void 0))
|
8775
8850
|
throw new Ce(`Unknown adapter '${a}'`);
|
8776
8851
|
if (s)
|
8777
8852
|
break;
|
@@ -8840,7 +8915,7 @@ zd.transitional = function(t, i, s) {
|
|
8840
8915
|
)), t ? t(r, a, o) : !0;
|
8841
8916
|
};
|
8842
8917
|
};
|
8843
|
-
function
|
8918
|
+
function sS(e, t, i) {
|
8844
8919
|
if (typeof e != "object")
|
8845
8920
|
throw new Ce("options must be an object", Ce.ERR_BAD_OPTION_VALUE);
|
8846
8921
|
const s = Object.keys(e);
|
@@ -8858,7 +8933,7 @@ function s1(e, t, i) {
|
|
8858
8933
|
}
|
8859
8934
|
}
|
8860
8935
|
const zh = {
|
8861
|
-
assertOptions:
|
8936
|
+
assertOptions: sS,
|
8862
8937
|
validators: zd
|
8863
8938
|
}, Ns = zh.validators;
|
8864
8939
|
class Cn {
|
@@ -9055,12 +9130,12 @@ class Kd {
|
|
9055
9130
|
};
|
9056
9131
|
}
|
9057
9132
|
}
|
9058
|
-
function
|
9133
|
+
function nS(e) {
|
9059
9134
|
return function(i) {
|
9060
9135
|
return e.apply(null, i);
|
9061
9136
|
};
|
9062
9137
|
}
|
9063
|
-
function
|
9138
|
+
function rS(e) {
|
9064
9139
|
return U.isObject(e) && e.isAxiosError === !0;
|
9065
9140
|
}
|
9066
9141
|
const Kh = {
|
@@ -9149,15 +9224,15 @@ it.Cancel = it.CanceledError;
|
|
9149
9224
|
it.all = function(t) {
|
9150
9225
|
return Promise.all(t);
|
9151
9226
|
};
|
9152
|
-
it.spread =
|
9153
|
-
it.isAxiosError =
|
9227
|
+
it.spread = nS;
|
9228
|
+
it.isAxiosError = rS;
|
9154
9229
|
it.mergeConfig = _n;
|
9155
9230
|
it.AxiosHeaders = kt;
|
9156
9231
|
it.formToJSON = (e) => ew(U.isHTMLForm(e) ? new FormData(e) : e);
|
9157
9232
|
it.getAdapter = ow.getAdapter;
|
9158
9233
|
it.HttpStatusCode = Kh;
|
9159
9234
|
it.default = it;
|
9160
|
-
const
|
9235
|
+
const aS = {
|
9161
9236
|
name: "QtiStylesheet",
|
9162
9237
|
props: {
|
9163
9238
|
/*
|
@@ -9218,15 +9293,15 @@ const a1 = {
|
|
9218
9293
|
throw this.isQtiValid = !1, new l(e.message);
|
9219
9294
|
}
|
9220
9295
|
}
|
9221
|
-
},
|
9222
|
-
function
|
9296
|
+
}, oS = ["innerHTML"];
|
9297
|
+
function lS(e, t, i, s, n, r) {
|
9223
9298
|
return M(), N("div", {
|
9224
9299
|
ref: "root",
|
9225
9300
|
class: "qti-stylesheet",
|
9226
9301
|
innerHTML: n.css
|
9227
|
-
}, null, 8,
|
9302
|
+
}, null, 8, oS);
|
9228
9303
|
}
|
9229
|
-
const
|
9304
|
+
const uS = /* @__PURE__ */ D(aS, [["render", lS]]), cS = {
|
9230
9305
|
name: "QtiCompanionMaterialsInfo",
|
9231
9306
|
data() {
|
9232
9307
|
return {
|
@@ -9245,11 +9320,11 @@ const u1 = /* @__PURE__ */ D(a1, [["render", l1]]), c1 = {
|
|
9245
9320
|
throw this.isQtiValid = !1, new l(e.message);
|
9246
9321
|
}
|
9247
9322
|
}
|
9248
|
-
},
|
9249
|
-
function
|
9250
|
-
return M(), N("div",
|
9323
|
+
}, hS = { class: "qti-companion-materials-info" };
|
9324
|
+
function dS(e, t, i, s, n, r) {
|
9325
|
+
return M(), N("div", hS);
|
9251
9326
|
}
|
9252
|
-
const
|
9327
|
+
const fS = /* @__PURE__ */ D(cS, [["render", dS]]), sa = new G(), pS = {
|
9253
9328
|
name: "QtiMapping",
|
9254
9329
|
props: {
|
9255
9330
|
/*
|
@@ -9384,13 +9459,13 @@ const f1 = /* @__PURE__ */ D(c1, [["render", d1]]), sa = new G(), p1 = {
|
|
9384
9459
|
throw this.isQtiValid = !1, new l(e.message);
|
9385
9460
|
}
|
9386
9461
|
}
|
9387
|
-
},
|
9388
|
-
function
|
9389
|
-
return M(), N("div",
|
9462
|
+
}, mS = { class: "qti-mapping" };
|
9463
|
+
function gS(e, t, i, s, n, r) {
|
9464
|
+
return M(), N("div", mS, [
|
9390
9465
|
K(e.$slots, "default")
|
9391
9466
|
]);
|
9392
9467
|
}
|
9393
|
-
const
|
9468
|
+
const yS = /* @__PURE__ */ D(pS, [["render", gS]]), Lc = new G(), wS = {
|
9394
9469
|
name: "QtiMapEntry",
|
9395
9470
|
props: {
|
9396
9471
|
/*
|
@@ -9490,15 +9565,15 @@ const y1 = /* @__PURE__ */ D(p1, [["render", g1]]), Lc = new G(), w1 = {
|
|
9490
9565
|
caseSensitive: this.getCaseSensitive()
|
9491
9566
|
}), console.log("[" + this.$options.name + "][Value]", this.getValue())), e.remove();
|
9492
9567
|
}
|
9493
|
-
},
|
9494
|
-
function
|
9495
|
-
return M(), N("div",
|
9496
|
-
ee("div",
|
9568
|
+
}, bS = { class: "qti-map-entry" }, vS = { class: "amp-mapentry__container" };
|
9569
|
+
function ES(e, t, i, s, n, r) {
|
9570
|
+
return M(), N("div", bS, [
|
9571
|
+
ee("div", vS, [
|
9497
9572
|
K(e.$slots, "default")
|
9498
9573
|
])
|
9499
9574
|
]);
|
9500
9575
|
}
|
9501
|
-
const
|
9576
|
+
const CS = /* @__PURE__ */ D(wS, [["render", ES]]), na = new G(), TS = {
|
9502
9577
|
name: "QtiAreaMapping",
|
9503
9578
|
props: {
|
9504
9579
|
/*
|
@@ -9637,13 +9712,13 @@ const C1 = /* @__PURE__ */ D(w1, [["render", E1]]), na = new G(), T1 = {
|
|
9637
9712
|
throw this.isQtiValid = !1, new l(e.message);
|
9638
9713
|
}
|
9639
9714
|
}
|
9640
|
-
},
|
9641
|
-
function
|
9642
|
-
return M(), N("div",
|
9715
|
+
}, xS = { class: "qti-area-mapping" };
|
9716
|
+
function SS(e, t, i, s, n, r) {
|
9717
|
+
return M(), N("div", xS, [
|
9643
9718
|
K(e.$slots, "default")
|
9644
9719
|
]);
|
9645
9720
|
}
|
9646
|
-
const
|
9721
|
+
const IS = /* @__PURE__ */ D(TS, [["render", SS]]), Mc = new G(), _S = {
|
9647
9722
|
name: "QtiAreaMapEntry",
|
9648
9723
|
props: {
|
9649
9724
|
/*
|
@@ -9783,15 +9858,15 @@ const I1 = /* @__PURE__ */ D(T1, [["render", S1]]), Mc = new G(), _1 = {
|
|
9783
9858
|
mappedValue: this.getMappedValue()
|
9784
9859
|
}), console.log("[" + this.$options.name + "][Value]", this.getValue())), e.remove();
|
9785
9860
|
}
|
9786
|
-
},
|
9787
|
-
function $
|
9788
|
-
return M(), N("div",
|
9789
|
-
ee("div",
|
9861
|
+
}, VS = { class: "qti-area-map-entry" }, AS = { class: "amp-areamapentry__container" };
|
9862
|
+
function $S(e, t, i, s, n, r) {
|
9863
|
+
return M(), N("div", VS, [
|
9864
|
+
ee("div", AS, [
|
9790
9865
|
K(e.$slots, "default")
|
9791
9866
|
])
|
9792
9867
|
]);
|
9793
9868
|
}
|
9794
|
-
const
|
9869
|
+
const LS = /* @__PURE__ */ D(_S, [["render", $S]]), Rc = new G(), MS = {
|
9795
9870
|
name: "QtiInterpolationTable",
|
9796
9871
|
props: {
|
9797
9872
|
/*
|
@@ -9886,13 +9961,13 @@ const L1 = /* @__PURE__ */ D(_1, [["render", $1]]), Rc = new G(), M1 = {
|
|
9886
9961
|
throw this.isQtiValid = !1, new l(e.message);
|
9887
9962
|
}
|
9888
9963
|
}
|
9889
|
-
},
|
9890
|
-
function
|
9891
|
-
return M(), N("div",
|
9964
|
+
}, RS = { class: "qti-interpolation-table" };
|
9965
|
+
function NS(e, t, i, s, n, r) {
|
9966
|
+
return M(), N("div", RS, [
|
9892
9967
|
K(e.$slots, "default")
|
9893
9968
|
]);
|
9894
9969
|
}
|
9895
|
-
const
|
9970
|
+
const qS = /* @__PURE__ */ D(MS, [["render", NS]]), il = new G(), OS = {
|
9896
9971
|
name: "QtiInterpolationTableEntry",
|
9897
9972
|
props: {
|
9898
9973
|
/*
|
@@ -10006,15 +10081,15 @@ const q1 = /* @__PURE__ */ D(M1, [["render", N1]]), il = new G(), O1 = {
|
|
10006
10081
|
includeBoundary: this.getIncludeBoundary()
|
10007
10082
|
}), console.log("[" + this.$options.name + "][Value]", this.getValue())), e.remove();
|
10008
10083
|
}
|
10009
|
-
},
|
10010
|
-
function
|
10011
|
-
return M(), N("div",
|
10012
|
-
ee("div",
|
10084
|
+
}, PS = { class: "qti-interpolation-table-entry" }, kS = { class: "amp-interpolationentry__container" };
|
10085
|
+
function DS(e, t, i, s, n, r) {
|
10086
|
+
return M(), N("div", PS, [
|
10087
|
+
ee("div", kS, [
|
10013
10088
|
K(e.$slots, "default")
|
10014
10089
|
])
|
10015
10090
|
]);
|
10016
10091
|
}
|
10017
|
-
const
|
10092
|
+
const BS = /* @__PURE__ */ D(OS, [["render", DS]]), Nc = new G(), QS = {
|
10018
10093
|
name: "QtiMatchTable",
|
10019
10094
|
props: {
|
10020
10095
|
/*
|
@@ -10109,13 +10184,13 @@ const B1 = /* @__PURE__ */ D(O1, [["render", D1]]), Nc = new G(), Q1 = {
|
|
10109
10184
|
throw this.isQtiValid = !1, new l(e.message);
|
10110
10185
|
}
|
10111
10186
|
}
|
10112
|
-
},
|
10113
|
-
function
|
10114
|
-
return M(), N("div",
|
10187
|
+
}, HS = { class: "qti-match-table" };
|
10188
|
+
function FS(e, t, i, s, n, r) {
|
10189
|
+
return M(), N("div", HS, [
|
10115
10190
|
K(e.$slots, "default")
|
10116
10191
|
]);
|
10117
10192
|
}
|
10118
|
-
const
|
10193
|
+
const US = /* @__PURE__ */ D(QS, [["render", FS]]), qc = new G(), GS = {
|
10119
10194
|
name: "QtiMatchTableEntry",
|
10120
10195
|
props: {
|
10121
10196
|
/*
|
@@ -10209,15 +10284,15 @@ const U1 = /* @__PURE__ */ D(Q1, [["render", F1]]), qc = new G(), G1 = {
|
|
10209
10284
|
targetValue: this.getTargetValue()
|
10210
10285
|
}), console.log("[" + this.$options.name + "][Value]", this.getValue())), e.remove();
|
10211
10286
|
}
|
10212
|
-
},
|
10213
|
-
function
|
10214
|
-
return M(), N("div",
|
10215
|
-
ee("div",
|
10287
|
+
}, jS = { class: "qti-match-table-entry" }, WS = { class: "amp-matchtableentry__container" };
|
10288
|
+
function zS(e, t, i, s, n, r) {
|
10289
|
+
return M(), N("div", jS, [
|
10290
|
+
ee("div", WS, [
|
10216
10291
|
K(e.$slots, "default")
|
10217
10292
|
])
|
10218
10293
|
]);
|
10219
10294
|
}
|
10220
|
-
const
|
10295
|
+
const KS = /* @__PURE__ */ D(GS, [["render", zS]]), YS = {
|
10221
10296
|
name: "QtiDefaultValue",
|
10222
10297
|
props: {
|
10223
10298
|
/* A human readable interpretation of the default value. */
|
@@ -10303,16 +10378,16 @@ const K1 = /* @__PURE__ */ D(G1, [["render", z1]]), Y1 = {
|
|
10303
10378
|
throw this.isQtiValid = !1, new l(e.message);
|
10304
10379
|
}
|
10305
10380
|
}
|
10306
|
-
},
|
10381
|
+
}, XS = {
|
10307
10382
|
ref: "root",
|
10308
10383
|
class: "qti-default-value"
|
10309
10384
|
};
|
10310
|
-
function
|
10311
|
-
return M(), N("div",
|
10385
|
+
function ZS(e, t, i, s, n, r) {
|
10386
|
+
return M(), N("div", XS, [
|
10312
10387
|
K(e.$slots, "default")
|
10313
10388
|
], 512);
|
10314
10389
|
}
|
10315
|
-
const
|
10390
|
+
const JS = /* @__PURE__ */ D(YS, [["render", ZS]]), e1 = {
|
10316
10391
|
name: "QtiCorrectResponse",
|
10317
10392
|
props: {
|
10318
10393
|
/* A human readable interpretation of the correct value. */
|
@@ -10398,13 +10473,13 @@ const J1 = /* @__PURE__ */ D(Y1, [["render", Z1]]), eS = {
|
|
10398
10473
|
throw this.isQtiValid = !1, new l(e.message);
|
10399
10474
|
}
|
10400
10475
|
}
|
10401
|
-
},
|
10402
|
-
function
|
10403
|
-
return M(), N("div",
|
10476
|
+
}, t1 = { class: "qti-correct-response" };
|
10477
|
+
function i1(e, t, i, s, n, r) {
|
10478
|
+
return M(), N("div", t1, [
|
10404
10479
|
K(e.$slots, "default")
|
10405
10480
|
]);
|
10406
10481
|
}
|
10407
|
-
const
|
10482
|
+
const s1 = /* @__PURE__ */ D(e1, [["render", i1]]);
|
10408
10483
|
class cw {
|
10409
10484
|
/**
|
10410
10485
|
* @constructor QtiValueValidation
|
@@ -10475,7 +10550,7 @@ class cw {
|
|
10475
10550
|
return this.isCharacterALetter(t) || this.isCharacterADigit(t);
|
10476
10551
|
}
|
10477
10552
|
}
|
10478
|
-
const Oc = new G(), Wn = new cw(),
|
10553
|
+
const Oc = new G(), Wn = new cw(), n1 = {
|
10479
10554
|
name: "QtiValue",
|
10480
10555
|
props: {
|
10481
10556
|
// This characteristic is only used for specifying the base-type of a value that forms part of a record.
|
@@ -10617,19 +10692,19 @@ const Oc = new G(), Wn = new cw(), nS = {
|
|
10617
10692
|
}
|
10618
10693
|
e.remove();
|
10619
10694
|
}
|
10620
|
-
},
|
10621
|
-
function
|
10695
|
+
}, r1 = ["variable-basetype", "variable-cardinality"], a1 = { class: "amp-value__container" };
|
10696
|
+
function o1(e, t, i, s, n, r) {
|
10622
10697
|
return M(), N("div", {
|
10623
10698
|
class: "qti-value",
|
10624
10699
|
"variable-basetype": n.variableBaseType,
|
10625
10700
|
"variable-cardinality": n.variableCardinality
|
10626
10701
|
}, [
|
10627
|
-
ee("div",
|
10702
|
+
ee("div", a1, [
|
10628
10703
|
K(e.$slots, "default")
|
10629
10704
|
])
|
10630
|
-
], 8,
|
10705
|
+
], 8, r1);
|
10631
10706
|
}
|
10632
|
-
const
|
10707
|
+
const l1 = /* @__PURE__ */ D(n1, [["render", o1]]), u1 = new G(), c1 = {
|
10633
10708
|
name: "QtiItemBody",
|
10634
10709
|
emits: [
|
10635
10710
|
"itemBodyReady"
|
@@ -10677,7 +10752,7 @@ const lS = /* @__PURE__ */ D(nS, [["render", oS]]), uS = new G(), cS = {
|
|
10677
10752
|
return this.$el.querySelectorAll('script[type="math/mml"]');
|
10678
10753
|
},
|
10679
10754
|
archiveMathElement(e) {
|
10680
|
-
e.hasAttribute("id") || (e.id =
|
10755
|
+
e.hasAttribute("id") || (e.id = u1.randomString(5, "a")), this.mathElementMap.set(e.id, e.outerHTML);
|
10681
10756
|
},
|
10682
10757
|
applyTemplateValuesToMathml(e, t) {
|
10683
10758
|
let i = e;
|
@@ -10699,16 +10774,16 @@ const lS = /* @__PURE__ */ D(nS, [["render", oS]]), uS = new G(), cS = {
|
|
10699
10774
|
mounted() {
|
10700
10775
|
this.initializeTemplateMathVariables(), this.$parent.$emit("itemBodyReady", { itemBody: this });
|
10701
10776
|
}
|
10702
|
-
},
|
10777
|
+
}, h1 = {
|
10703
10778
|
ref: "root",
|
10704
10779
|
class: "qti-item-body"
|
10705
10780
|
};
|
10706
|
-
function
|
10707
|
-
return M(), N("div",
|
10781
|
+
function d1(e, t, i, s, n, r) {
|
10782
|
+
return M(), N("div", h1, [
|
10708
10783
|
K(e.$slots, "default")
|
10709
10784
|
], 512);
|
10710
10785
|
}
|
10711
|
-
const
|
10786
|
+
const f1 = /* @__PURE__ */ D(c1, [["render", d1]]), p1 = {
|
10712
10787
|
name: "ModalDialog",
|
10713
10788
|
data() {
|
10714
10789
|
return {
|
@@ -10723,19 +10798,19 @@ const fS = /* @__PURE__ */ D(cS, [["render", dS]]), pS = {
|
|
10723
10798
|
this.$refs.mymodal.classList.add("fade", "show"), document.querySelector("body").classList.add("modal-open");
|
10724
10799
|
}
|
10725
10800
|
}
|
10726
|
-
},
|
10801
|
+
}, m1 = {
|
10727
10802
|
key: 0,
|
10728
10803
|
ref: "mymodal",
|
10729
10804
|
class: "qti3-player-modal"
|
10730
|
-
},
|
10731
|
-
function
|
10805
|
+
}, g1 = { class: "qti3-player-modal-dialog qti3-player-modal-md qti3-player-modal-dialog-centered" }, y1 = { class: "qti3-player-modal-content" }, w1 = { class: "qti3-player-modal-header" }, b1 = { class: "qti3-player-modal-body" }, v1 = { class: "qti3-player-modal-footer" };
|
10806
|
+
function E1(e, t, i, s, n, r) {
|
10732
10807
|
return M(), Ti(pv, { name: "fade" }, {
|
10733
10808
|
default: Xt(() => [
|
10734
|
-
n.visible ? (M(), N("div",
|
10735
|
-
ee("div",
|
10809
|
+
n.visible ? (M(), N("div", m1, [
|
10810
|
+
ee("div", g1, [
|
10736
10811
|
t[2] || (t[2] = ee("span", { tabindex: "0" }, null, -1)),
|
10737
|
-
ee("div",
|
10738
|
-
ee("header",
|
10812
|
+
ee("div", y1, [
|
10813
|
+
ee("header", w1, [
|
10739
10814
|
K(e.$slots, "header", {}, void 0, !0),
|
10740
10815
|
ee("button", {
|
10741
10816
|
type: "button",
|
@@ -10744,10 +10819,10 @@ function ES(e, t, i, s, n, r) {
|
|
10744
10819
|
onClick: t[0] || (t[0] = (a) => r.hide())
|
10745
10820
|
}, "×")
|
10746
10821
|
]),
|
10747
|
-
ee("div",
|
10822
|
+
ee("div", b1, [
|
10748
10823
|
K(e.$slots, "body", {}, void 0, !0)
|
10749
10824
|
]),
|
10750
|
-
ee("footer",
|
10825
|
+
ee("footer", v1, [
|
10751
10826
|
K(e.$slots, "footer", {}, void 0, !0)
|
10752
10827
|
])
|
10753
10828
|
]),
|
@@ -10762,10 +10837,10 @@ function ES(e, t, i, s, n, r) {
|
|
10762
10837
|
_: 3
|
10763
10838
|
});
|
10764
10839
|
}
|
10765
|
-
const
|
10840
|
+
const C1 = /* @__PURE__ */ D(p1, [["render", E1], ["__scopeId", "data-v-2611a8eb"]]), ra = new G(), T1 = {
|
10766
10841
|
name: "QtiModalFeedback",
|
10767
10842
|
components: {
|
10768
|
-
ModalDialog:
|
10843
|
+
ModalDialog: C1
|
10769
10844
|
},
|
10770
10845
|
props: {
|
10771
10846
|
/*
|
@@ -10928,13 +11003,13 @@ const CS = /* @__PURE__ */ D(pS, [["render", ES], ["__scopeId", "data-v-2611a8eb
|
|
10928
11003
|
throw this.isQtiValid = !1, new l(e.message);
|
10929
11004
|
}
|
10930
11005
|
}
|
10931
|
-
},
|
11006
|
+
}, x1 = {
|
10932
11007
|
ref: "root",
|
10933
11008
|
class: "qti-modal-feedback"
|
10934
11009
|
};
|
10935
|
-
function
|
11010
|
+
function S1(e, t, i, s, n, r) {
|
10936
11011
|
const a = ft("ModalDialog");
|
10937
|
-
return M(), N("div",
|
11012
|
+
return M(), N("div", x1, [
|
10938
11013
|
ii(a, { ref: "modal" }, {
|
10939
11014
|
header: Xt(() => [
|
10940
11015
|
ee("h5", null, He(r.modalTitle), 1)
|
@@ -10952,7 +11027,7 @@ function SS(e, t, i, s, n, r) {
|
|
10952
11027
|
}, 512)
|
10953
11028
|
], 512);
|
10954
11029
|
}
|
10955
|
-
const
|
11030
|
+
const I1 = /* @__PURE__ */ D(T1, [["render", S1]]), _1 = {
|
10956
11031
|
name: "QtiContentBody",
|
10957
11032
|
data() {
|
10958
11033
|
return {
|
@@ -10961,16 +11036,16 @@ const IS = /* @__PURE__ */ D(TS, [["render", SS]]), _S = {
|
|
10961
11036
|
},
|
10962
11037
|
mounted() {
|
10963
11038
|
}
|
10964
|
-
},
|
11039
|
+
}, V1 = {
|
10965
11040
|
ref: "root",
|
10966
11041
|
class: "qti-content-body"
|
10967
11042
|
};
|
10968
|
-
function
|
10969
|
-
return M(), N("div",
|
11043
|
+
function A1(e, t, i, s, n, r) {
|
11044
|
+
return M(), N("div", V1, [
|
10970
11045
|
K(e.$slots, "default")
|
10971
11046
|
], 512);
|
10972
11047
|
}
|
10973
|
-
const $
|
11048
|
+
const $1 = /* @__PURE__ */ D(_1, [["render", A1]]), sl = new G(), L1 = {
|
10974
11049
|
name: "QtiTemplateInline",
|
10975
11050
|
props: {
|
10976
11051
|
/*
|
@@ -11066,16 +11141,16 @@ const $S = /* @__PURE__ */ D(_S, [["render", AS]]), sl = new G(), LS = {
|
|
11066
11141
|
throw this.isQtiValid = !1, e.name === "QtiValidationException" ? new l(e.message) : e.name === "QtiEvaluationException" ? new k(e.message) : new Error(e.message);
|
11067
11142
|
}
|
11068
11143
|
}
|
11069
|
-
},
|
11144
|
+
}, M1 = {
|
11070
11145
|
ref: "root",
|
11071
11146
|
class: "qti-template-inline hidden"
|
11072
11147
|
};
|
11073
|
-
function
|
11074
|
-
return M(), N("div",
|
11148
|
+
function R1(e, t, i, s, n, r) {
|
11149
|
+
return M(), N("div", M1, [
|
11075
11150
|
K(e.$slots, "default")
|
11076
11151
|
], 512);
|
11077
11152
|
}
|
11078
|
-
const
|
11153
|
+
const N1 = /* @__PURE__ */ D(L1, [["render", R1]]), nl = new G(), q1 = {
|
11079
11154
|
name: "QtiTemplateBlock",
|
11080
11155
|
props: {
|
11081
11156
|
/*
|
@@ -11171,16 +11246,16 @@ const NS = /* @__PURE__ */ D(LS, [["render", RS]]), nl = new G(), qS = {
|
|
11171
11246
|
throw this.isQtiValid = !1, e.name === "QtiValidationException" ? new l(e.message) : e.name === "QtiEvaluationException" ? new k(e.message) : new Error(e.message);
|
11172
11247
|
}
|
11173
11248
|
}
|
11174
|
-
},
|
11249
|
+
}, O1 = {
|
11175
11250
|
ref: "root",
|
11176
11251
|
class: "qti-template-block hidden"
|
11177
11252
|
};
|
11178
|
-
function
|
11179
|
-
return M(), N("div",
|
11253
|
+
function P1(e, t, i, s, n, r) {
|
11254
|
+
return M(), N("div", O1, [
|
11180
11255
|
K(e.$slots, "default")
|
11181
11256
|
], 512);
|
11182
11257
|
}
|
11183
|
-
const
|
11258
|
+
const k1 = /* @__PURE__ */ D(q1, [["render", P1]]), rl = new G(), D1 = {
|
11184
11259
|
name: "QtiFeedbackInline",
|
11185
11260
|
props: {
|
11186
11261
|
/*
|
@@ -11288,16 +11363,16 @@ const kS = /* @__PURE__ */ D(qS, [["render", PS]]), rl = new G(), DS = {
|
|
11288
11363
|
throw this.isQtiValid = !1, new l(e.message);
|
11289
11364
|
}
|
11290
11365
|
}
|
11291
|
-
},
|
11366
|
+
}, B1 = {
|
11292
11367
|
ref: "root",
|
11293
11368
|
class: "qti-feedback-inline hidden"
|
11294
11369
|
};
|
11295
|
-
function
|
11296
|
-
return M(), N("div",
|
11370
|
+
function Q1(e, t, i, s, n, r) {
|
11371
|
+
return M(), N("div", B1, [
|
11297
11372
|
K(e.$slots, "default")
|
11298
11373
|
], 512);
|
11299
11374
|
}
|
11300
|
-
const
|
11375
|
+
const H1 = /* @__PURE__ */ D(D1, [["render", Q1]]), al = new G(), F1 = {
|
11301
11376
|
name: "QtiFeedbackBlock",
|
11302
11377
|
props: {
|
11303
11378
|
/*
|
@@ -11405,16 +11480,16 @@ const HS = /* @__PURE__ */ D(DS, [["render", QS]]), al = new G(), FS = {
|
|
11405
11480
|
throw this.isQtiValid = !1, new l(e.message);
|
11406
11481
|
}
|
11407
11482
|
}
|
11408
|
-
},
|
11483
|
+
}, U1 = {
|
11409
11484
|
ref: "root",
|
11410
11485
|
class: "qti-feedback-block hidden"
|
11411
11486
|
};
|
11412
|
-
function
|
11413
|
-
return M(), N("div",
|
11487
|
+
function G1(e, t, i, s, n, r) {
|
11488
|
+
return M(), N("div", U1, [
|
11414
11489
|
K(e.$slots, "default")
|
11415
11490
|
], 512);
|
11416
11491
|
}
|
11417
|
-
const
|
11492
|
+
const j1 = /* @__PURE__ */ D(F1, [["render", G1]]), W1 = new G(), z1 = new re(), K1 = {
|
11418
11493
|
name: "QtiRubricBlock",
|
11419
11494
|
props: {
|
11420
11495
|
/*
|
@@ -11485,7 +11560,7 @@ const jS = /* @__PURE__ */ D(FS, [["render", GS]]), WS = new G(), zS = new re(),
|
|
11485
11560
|
},
|
11486
11561
|
created() {
|
11487
11562
|
try {
|
11488
|
-
this.rubricBlockContext =
|
11563
|
+
this.rubricBlockContext = z1.computeNodeContext(this), W1.validateRubricBlockViewAttribute(this.view), this.validateChildren();
|
11489
11564
|
} catch (e) {
|
11490
11565
|
throw this.isQtiValid = !1, e.name === "QtiValidationException" ? new l(e.message) : new Error(e.message);
|
11491
11566
|
}
|
@@ -11502,16 +11577,16 @@ const jS = /* @__PURE__ */ D(FS, [["render", GS]]), WS = new G(), zS = new re(),
|
|
11502
11577
|
throw this.isQtiValid = !1, new l(e.message);
|
11503
11578
|
}
|
11504
11579
|
}
|
11505
|
-
},
|
11580
|
+
}, Y1 = {
|
11506
11581
|
ref: "root",
|
11507
11582
|
class: "qti-rubric-block hidden"
|
11508
11583
|
};
|
11509
|
-
function
|
11510
|
-
return M(), N("div",
|
11584
|
+
function X1(e, t, i, s, n, r) {
|
11585
|
+
return M(), N("div", Y1, [
|
11511
11586
|
K(e.$slots, "default")
|
11512
11587
|
], 512);
|
11513
11588
|
}
|
11514
|
-
const
|
11589
|
+
const Z1 = /* @__PURE__ */ D(K1, [["render", X1]]);
|
11515
11590
|
var Hs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
11516
11591
|
function hw(e) {
|
11517
11592
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
@@ -11519,7 +11594,7 @@ function hw(e) {
|
|
11519
11594
|
var dw = {}, Tu = {}, fw = {}, xu = {};
|
11520
11595
|
Object.defineProperty(xu, "__esModule", { value: !0 });
|
11521
11596
|
xu.boolean = void 0;
|
11522
|
-
const
|
11597
|
+
const J1 = function(e) {
|
11523
11598
|
switch (Object.prototype.toString.call(e)) {
|
11524
11599
|
case "[object String]":
|
11525
11600
|
return ["true", "t", "yes", "y", "on", "1"].includes(e.trim().toLowerCase());
|
@@ -11531,7 +11606,7 @@ const JS = function(e) {
|
|
11531
11606
|
return !1;
|
11532
11607
|
}
|
11533
11608
|
};
|
11534
|
-
xu.boolean =
|
11609
|
+
xu.boolean = J1;
|
11535
11610
|
var Su = {};
|
11536
11611
|
Object.defineProperty(Su, "__esModule", { value: !0 });
|
11537
11612
|
Su.isBooleanable = void 0;
|
@@ -29273,6 +29348,7 @@ const uh = new G(), gl = new re(), jO = {
|
|
29273
29348
|
baseType: null,
|
29274
29349
|
cardinality: null,
|
29275
29350
|
isValidResponse: !0,
|
29351
|
+
invalidResponseMessage: "Input Required",
|
29276
29352
|
isQtiValid: !0,
|
29277
29353
|
hasPrompts: !1,
|
29278
29354
|
pciModuleResolver: null,
|
@@ -29353,7 +29429,7 @@ const uh = new G(), gl = new re(), jO = {
|
|
29353
29429
|
* @return {String} custom message
|
29354
29430
|
*/
|
29355
29431
|
getInvalidResponseMessage() {
|
29356
|
-
return
|
29432
|
+
return this.invalidResponseMessage;
|
29357
29433
|
},
|
29358
29434
|
/**
|
29359
29435
|
* @description Reset this interaction's response and UI.
|
@@ -29415,31 +29491,6 @@ const uh = new G(), gl = new re(), jO = {
|
|
29415
29491
|
computeState() {
|
29416
29492
|
return {};
|
29417
29493
|
},
|
29418
|
-
/**
|
29419
|
-
* @description The determines an interaction's validity status.
|
29420
|
-
* @return {Boolean} (true if valid, false if invalid)
|
29421
|
-
*/
|
29422
|
-
computeIsValid() {
|
29423
|
-
return !0;
|
29424
|
-
},
|
29425
|
-
/**
|
29426
|
-
* @description Evaluate the interaction's response validity.
|
29427
|
-
* Update the interaction's validity if there is a change.
|
29428
|
-
*/
|
29429
|
-
evaluateValidity() {
|
29430
|
-
const e = this.getIsValid(), t = this.computeIsValid();
|
29431
|
-
e !== t && this.updateValidity(t);
|
29432
|
-
},
|
29433
|
-
/**
|
29434
|
-
* @description Update the interaction's validity.
|
29435
|
-
* @param {Boolean} isValid
|
29436
|
-
*/
|
29437
|
-
updateValidity(e) {
|
29438
|
-
this.setIsValid(e), S.setInteractionIsValidResponse({
|
29439
|
-
identifier: this.responseIdentifier,
|
29440
|
-
isValidResponse: e
|
29441
|
-
});
|
29442
|
-
},
|
29443
29494
|
/**
|
29444
29495
|
* @description Basic validation of the children.
|
29445
29496
|
*/
|
@@ -29622,6 +29673,9 @@ const uh = new G(), gl = new re(), jO = {
|
|
29622
29673
|
let e = gl.valueToPciJson(this.getResponse(), this.baseType, this.cardinality), t = {};
|
29623
29674
|
return t[this.responseIdentifier] = e, t;
|
29624
29675
|
},
|
29676
|
+
getAfaPnp() {
|
29677
|
+
return S.getItemContextPnp().getAfaPnp();
|
29678
|
+
},
|
29625
29679
|
/**
|
29626
29680
|
* @description Build a PciLoadInteraction message payload and send the
|
29627
29681
|
* message to the pciIframe. Optionally, include a priorState in the
|
@@ -29638,6 +29692,7 @@ const uh = new G(), gl = new re(), jO = {
|
|
29638
29692
|
contextVariables: this.getContextVariables(),
|
29639
29693
|
stylesheets: this.getStylesheets(),
|
29640
29694
|
catalogInfo: this.getCatalogInfo(),
|
29695
|
+
pnp: this.getAfaPnp(),
|
29641
29696
|
module: this.module,
|
29642
29697
|
modules: this.getModules(),
|
29643
29698
|
moduleResolution: this.getConfiguration(),
|
@@ -29676,12 +29731,39 @@ const uh = new G(), gl = new re(), jO = {
|
|
29676
29731
|
const t = JSON.parse(e);
|
29677
29732
|
typeof t.response < "u" ? this.setResponse(t.response) : this.setResponse(null), typeof t.state < "u" ? this.setState(t.state) : this.setState(null), this.notifyInteractionStateReady();
|
29678
29733
|
},
|
29734
|
+
/**
|
29735
|
+
* @description Proxy to update this interaction's validity.
|
29736
|
+
* @param {Boolean} isValid
|
29737
|
+
*/
|
29738
|
+
pciUpdateValidity(e) {
|
29739
|
+
this.setIsValid(e), S.setInteractionIsValidResponse({
|
29740
|
+
identifier: this.responseIdentifier,
|
29741
|
+
isValidResponse: e
|
29742
|
+
});
|
29743
|
+
},
|
29744
|
+
/**
|
29745
|
+
* @description Proxy to update this interaction's response value.
|
29746
|
+
* @param {Object} response
|
29747
|
+
*/
|
29748
|
+
pciUpdateResponse(e) {
|
29749
|
+
this.setResponse(e);
|
29750
|
+
},
|
29679
29751
|
pciSetReady() {
|
29680
29752
|
this.isReady = !0;
|
29681
29753
|
},
|
29682
29754
|
pciIsReady() {
|
29683
29755
|
return this.pciIframe !== null && this.isReady;
|
29684
29756
|
},
|
29757
|
+
pciSetRenderingProperties() {
|
29758
|
+
const e = {
|
29759
|
+
message: "PciSetRenderingProperties",
|
29760
|
+
properties: {
|
29761
|
+
pnp: this.getAfaPnp(),
|
29762
|
+
status: S.getItemLifecycleStatus()
|
29763
|
+
}
|
29764
|
+
};
|
29765
|
+
this.pciIframe.contentWindow.postMessage(e, "*");
|
29766
|
+
},
|
29685
29767
|
/**
|
29686
29768
|
* @description Notify the item that this PCI's state has been retrieved
|
29687
29769
|
* and persisted. Prior to calling this method, be sure to save the
|
@@ -29840,17 +29922,17 @@ const ZO = /* @__PURE__ */ D(jO, [["render", XO]]), ch = new G(), JO = {
|
|
29840
29922
|
this.isValidResponse = e;
|
29841
29923
|
},
|
29842
29924
|
disable() {
|
29843
|
-
this.
|
29925
|
+
this.toggleDisable(!0);
|
29844
29926
|
},
|
29845
29927
|
enable() {
|
29846
|
-
this.
|
29928
|
+
this.toggleDisable(!1);
|
29847
29929
|
},
|
29848
29930
|
/**
|
29849
29931
|
* @description Utility method to disable/enable this interaction's points.
|
29850
29932
|
* @param {Boolean} isDisabled
|
29851
29933
|
*/
|
29852
|
-
|
29853
|
-
this.isDisabled = e;
|
29934
|
+
toggleDisable(e) {
|
29935
|
+
this.isDisabled = e, e ? this.$refs.overlay.classList.add("disabled") : this.$refs.overlay.classList.remove("disabled");
|
29854
29936
|
},
|
29855
29937
|
/**
|
29856
29938
|
* @description Get this interaction's invalid response message.
|
@@ -30069,7 +30151,7 @@ const ZO = /* @__PURE__ */ D(jO, [["render", XO]]), ch = new G(), JO = {
|
|
30069
30151
|
return r.setAttribute("cx", t.x), r.setAttribute("cy", t.y), r.setAttribute("r", this.pointRadius), s === "default-light" ? (r.setAttribute("fill", "orange"), r.setAttribute("fill-opacity", ".5"), r.setAttribute("stroke", "orange")) : (r.setAttribute("fill", "#0088CC"), r.setAttribute("fill-opacity", ".5"), r.setAttribute("stroke", "blue")), r.setAttribute("opacity", "1"), r.setAttribute("stroke-width", "1"), r.setAttribute("data-marker-type", s), r.setAttribute("id", `${e}`), r.setAttribute("class", `qti3-player-select-point ${n ? "static" : ""}`), r.setAttribute("tabindex", "0"), r.setAttribute("data-point", `${i.x} ${i.y}`), r;
|
30070
30152
|
},
|
30071
30153
|
handleOverlayClick(e) {
|
30072
|
-
e.preventDefault(), this.checkMaxChoicesLimit() || this.addPointFromClick(this.getMousePosition(e));
|
30154
|
+
e.preventDefault(), !this.isDisabled && (this.checkMaxChoicesLimit() || this.addPointFromClick(this.getMousePosition(e)));
|
30073
30155
|
},
|
30074
30156
|
/**
|
30075
30157
|
* @description Handler for a click/touch on a point. This removes the point.
|
@@ -44900,7 +44982,7 @@ const MH = /* @__PURE__ */ D(AH, [["render", LH]]), RH = new G(), Rl = new Sv(),
|
|
44900
44982
|
function we(Q) {
|
44901
44983
|
if (typeof Q.components["qti-assessment-item"] < "u") return;
|
44902
44984
|
const Y = Q.app;
|
44903
|
-
Y.component("qti-assessment-item", h0).component("qti-context-declaration", g0).component("qti-response-declaration", E0).component("qti-outcome-declaration", S0).component("qti-template-declaration", $0).component("qti-template-processing", GD).component("qti-companion-materials-info",
|
44985
|
+
Y.component("qti-assessment-item", h0).component("qti-context-declaration", g0).component("qti-response-declaration", E0).component("qti-outcome-declaration", S0).component("qti-template-declaration", $0).component("qti-template-processing", GD).component("qti-companion-materials-info", fS).component("qti-stylesheet", uS).component("qti-item-body", f1).component("qti-catalog-info", KD).component("qti-response-processing", BD).component("qti-modal-feedback", I1), Y.component("qti-default-value", JS).component("qti-value", l1).component("qti-correct-response", s1).component("qti-mapping", yS).component("qti-map-entry", CS).component("qti-interpolation-table", qS).component("qti-interpolation-table-entry", BS).component("qti-match-table", US).component("qti-match-table-entry", KS).component("qti-area-mapping", IS).component("qti-area-map-entry", LS), Y.component("qti-content-body", $1).component("qti-template-inline", N1).component("qti-template-block", k1).component("qti-feedback-inline", H1).component("qti-feedback-block", j1).component("qti-rubric-block", Z1).component("qti-printed-variable", lI).component("amp-style", TT).component("amp-audio", QT).component("amp-video", n0).component("qti-choice-interaction", bI).component("qti-end-attempt-interaction", WI).component("qti-extended-text-interaction", Mq).component("qti-text-entry-interaction", Zq).component("qti-inline-choice-interaction", VI).component("qti-match-interaction", nO).component("qti-gap-match-interaction", cO).component("qti-graphic-gap-match-interaction", gO).component("qti-order-interaction", AO).component("qti-hottext-interaction", PO).component("qti-hotspot-interaction", UO).component("qti-media-interaction", xO).component("qti-portable-custom-interaction", ZO).component("qti-select-point-interaction", rP).component("qti-prompt", uP).component("qti-simple-choice", EP).component("ChoiceGroup", pw).component("qti-inline-choice", pP).component("MatchGroup", lk).component("qti-simple-match-set", kP).component("qti-simple-associable-choice", _P).component("qti-associable-hotspot", MP).component("GapMatchGroup", jP).component("GraphicGapMatchGroup", ek).component("MediaGroup", Kb).component("OrderGroup", Hk).component("qti-gap-text", Wk).component("qti-gap-img", Zk).component("qti-gap", iD).component("qti-hottext", oD).component("qti-hotspot-choice", dD).component("qti-interaction-modules", yD).component("qti-interaction-module", ED).component("qti-interaction-markup", SD).component("qti-template-variable", AD).component("qti-context-variable", RD), Y.component("qti-catalog", JD).component("qti-card", sB).component("qti-card-entry", oB).component("qti-html-content", hB).component("qti-file-href", mB), Y.component("qti-response-condition", vB), Y.component("qti-response-processing-fragment", xB), Y.component("qti-set-outcome-value", VB), Y.component("qti-exit-response", MB), Y.component("qti-lookup-outcome-value", OB), Y.component("qti-response-if", BB), Y.component("qti-response-else", UB), Y.component("qti-response-else-if", zB), Y.component("qti-set-template-value", JB), Y.component("qti-template-condition", nQ), Y.component("qti-template-if", lQ), Y.component("qti-template-else", dQ), Y.component("qti-template-else-if", gQ), Y.component("qti-template-constraint", vQ), Y.component("qti-exit-template", xQ), Y.component("qti-set-correct-response", AQ), Y.component("qti-set-default-value", NQ), Y.component("qti-base-value", QQ), Y.component("qti-correct", GQ), Y.component("qti-default", KQ), Y.component("qti-variable", JQ), Y.component("qti-match", s5), Y.component("qti-map-response", o5), Y.component("qti-map-response-point", h5), Y.component("qti-is-null", m5), Y.component("qti-and", b5), Y.component("qti-or", T5), Y.component("qti-not", _5), Y.component("qti-subtract", L5), Y.component("qti-sum", q5), Y.component("qti-random", D5), Y.component("qti-multiple", F5), Y.component("qti-ordered", W5), Y.component("qti-equal", X5), Y.component("qti-equal-rounded", t3), Y.component("qti-field-value", r3), Y.component("qti-random-float", u3), Y.component("qti-random-integer", f3), Y.component("qti-inside", y3), Y.component("qti-integer-divide", E3), Y.component("qti-integer-modulus", S3), Y.component("qti-integer-to-float", A3), Y.component("qti-product", R3), Y.component("qti-index", P3), Y.component("qti-member", Q3), Y.component("qti-delete", G3), Y.component("qti-substring", K3), Y.component("qti-string-match", J3), Y.component("qti-pattern-match", s4), Y.component("qti-round", o4), Y.component("qti-round-to", h4), Y.component("qti-truncate", m4), Y.component("qti-divide", b4), Y.component("qti-gt", T4), Y.component("qti-gte", _4), Y.component("qti-lt", L4), Y.component("qti-lte", q4), Y.component("qti-max", D4), Y.component("qti-min", F4), Y.component("qti-custom-operator", Z4), Y.component("qti-math-operator", iH), Y.component("qti-math-constant", lH), Y.component("qti-repeat", dH), Y.component("qti-stats-operator", gH), Y.component("qti-gcd", vH), Y.component("qti-lcm", xH), Y.component("qti-power", VH), Y.component("qti-any-n", MH);
|
44904
44986
|
}
|
44905
44987
|
function xe() {
|
44906
44988
|
vv(() => {
|