@pie-qti/item-player 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/components/utils/stylesheetRender.d.ts +22 -0
- package/dist/components/utils/stylesheetRender.js +251 -21
- package/dist/components/utils/stylesheetRender.js.map +1 -1
- package/dist/{element-class-BLaOCHDu.js → element-class-C8OTgYHE.js} +286 -153
- package/dist/{element-class-BLaOCHDu.js.map → element-class-C8OTgYHE.js.map} +1 -1
- package/dist/element-class.js +1 -1
- package/dist/element.js +1 -1
- package/package.json +5 -5
|
@@ -6184,89 +6184,222 @@ function Ol(e, t = "[data-qti-item-body-scope]") {
|
|
|
6184
6184
|
}
|
|
6185
6185
|
function kl(e, t) {
|
|
6186
6186
|
let n = e.cssText?.trim();
|
|
6187
|
-
return !n || oe(n) ? "" :
|
|
6187
|
+
return !n || oe(n) ? "" : Nl(n, Il(e, t)) || "";
|
|
6188
|
+
}
|
|
6189
|
+
var Al = new Set([
|
|
6190
|
+
"media",
|
|
6191
|
+
"supports",
|
|
6192
|
+
"container",
|
|
6193
|
+
"layer",
|
|
6194
|
+
"scope"
|
|
6195
|
+
]), jl = /^(?::root|html|body)(?![\w-])/, Ml = /^@(?:-[a-z]+-)?([\w-]+)/i;
|
|
6196
|
+
function Nl(e, t = "[data-qti-item-body-scope]") {
|
|
6197
|
+
if (!e) return "";
|
|
6198
|
+
let n = t?.trim();
|
|
6199
|
+
return n ? Pl(Vl(e), n).trim() : e;
|
|
6188
6200
|
}
|
|
6189
|
-
function
|
|
6190
|
-
let n =
|
|
6191
|
-
for (
|
|
6192
|
-
let
|
|
6193
|
-
if (
|
|
6194
|
-
|
|
6195
|
-
a.length !== 0 && (r += `${a.join(", ")} { ${i} }\n`);
|
|
6201
|
+
function Pl(e, t) {
|
|
6202
|
+
let n = "", r = 0;
|
|
6203
|
+
for (; r < e.length;) {
|
|
6204
|
+
let i = Rl(e, r);
|
|
6205
|
+
if (i.end <= r) break;
|
|
6206
|
+
n += Fl(i, t), r = i.end;
|
|
6196
6207
|
}
|
|
6197
|
-
return
|
|
6208
|
+
return n;
|
|
6209
|
+
}
|
|
6210
|
+
function Fl(e, t) {
|
|
6211
|
+
if (e.kind === "statement") {
|
|
6212
|
+
let t = e.text.trim();
|
|
6213
|
+
return t === ";" ? "" : `${t}\n`;
|
|
6214
|
+
}
|
|
6215
|
+
if (e.kind === "trailing") return e.text.trim() ? `${e.text.trim()}\n` : "";
|
|
6216
|
+
let n = e.prelude.trim();
|
|
6217
|
+
if (!n) return "";
|
|
6218
|
+
if (n.startsWith("@")) {
|
|
6219
|
+
let r = Ml.exec(n)?.[1]?.toLowerCase();
|
|
6220
|
+
if (r && Al.has(r)) {
|
|
6221
|
+
let r = Pl(e.block, t);
|
|
6222
|
+
return r.trim() ? `${n} {\n${r}}\n` : "";
|
|
6223
|
+
}
|
|
6224
|
+
return `${n} {${e.block}}\n`;
|
|
6225
|
+
}
|
|
6226
|
+
let r = e.block.trim();
|
|
6227
|
+
if (!r) return "";
|
|
6228
|
+
let i = Bl(n, ",").map((e) => Ll(e.trim(), t)).filter(Boolean);
|
|
6229
|
+
return i.length === 0 ? "" : `${i.join(", ")} { ${r} }\n`;
|
|
6230
|
+
}
|
|
6231
|
+
function Il(e, t) {
|
|
6232
|
+
return e.source !== "stimulus" || !e.stimulusIdentifier ? t : `${t} [data-stimulus-idref="${Hl(e.stimulusIdentifier)}"]`;
|
|
6233
|
+
}
|
|
6234
|
+
function Ll(e, t) {
|
|
6235
|
+
if (!e) return "";
|
|
6236
|
+
if (e === t || e.startsWith(`${t} `)) return e;
|
|
6237
|
+
let n = jl.exec(e);
|
|
6238
|
+
return n ? `${t}${e.slice(n[0].length)}` : `${t} ${e}`;
|
|
6198
6239
|
}
|
|
6199
|
-
function
|
|
6200
|
-
|
|
6240
|
+
function Rl(e, t) {
|
|
6241
|
+
let n = t, r = null, i = 0;
|
|
6242
|
+
for (; n < e.length;) {
|
|
6243
|
+
let a = e[n];
|
|
6244
|
+
if (r) a === "\\" ? n += 1 : a === r && (r = null);
|
|
6245
|
+
else if (a === "\"" || a === "'") r = a;
|
|
6246
|
+
else if (a === "(") i += 1;
|
|
6247
|
+
else if (a === ")") i > 0 && --i;
|
|
6248
|
+
else if (i === 0 && a === ";") return {
|
|
6249
|
+
kind: "statement",
|
|
6250
|
+
text: e.slice(t, n + 1),
|
|
6251
|
+
end: n + 1
|
|
6252
|
+
};
|
|
6253
|
+
else if (i === 0 && a === "{") {
|
|
6254
|
+
let r = zl(e, n);
|
|
6255
|
+
return {
|
|
6256
|
+
kind: "rule",
|
|
6257
|
+
prelude: e.slice(t, n),
|
|
6258
|
+
block: e.slice(n + 1, r.contentEnd),
|
|
6259
|
+
end: r.end
|
|
6260
|
+
};
|
|
6261
|
+
}
|
|
6262
|
+
n += 1;
|
|
6263
|
+
}
|
|
6264
|
+
return {
|
|
6265
|
+
kind: "trailing",
|
|
6266
|
+
text: e.slice(t),
|
|
6267
|
+
end: e.length
|
|
6268
|
+
};
|
|
6269
|
+
}
|
|
6270
|
+
function zl(e, t) {
|
|
6271
|
+
let n = 0, r = null;
|
|
6272
|
+
for (let i = t; i < e.length; i += 1) {
|
|
6273
|
+
let t = e[i];
|
|
6274
|
+
if (r) {
|
|
6275
|
+
t === "\\" ? i += 1 : t === r && (r = null);
|
|
6276
|
+
continue;
|
|
6277
|
+
}
|
|
6278
|
+
if (t === "\"" || t === "'") {
|
|
6279
|
+
r = t;
|
|
6280
|
+
continue;
|
|
6281
|
+
}
|
|
6282
|
+
if (t === "{") n += 1;
|
|
6283
|
+
else if (t === "}" && (--n, n === 0)) return {
|
|
6284
|
+
contentEnd: i,
|
|
6285
|
+
end: i + 1
|
|
6286
|
+
};
|
|
6287
|
+
}
|
|
6288
|
+
return {
|
|
6289
|
+
contentEnd: e.length,
|
|
6290
|
+
end: e.length
|
|
6291
|
+
};
|
|
6292
|
+
}
|
|
6293
|
+
function Bl(e, t) {
|
|
6294
|
+
let n = [], r = "", i = null, a = 0;
|
|
6295
|
+
for (let o = 0; o < e.length; o += 1) {
|
|
6296
|
+
let s = e[o];
|
|
6297
|
+
if (i) {
|
|
6298
|
+
r += s, s === "\\" && o + 1 < e.length ? (r += e[o + 1], o += 1) : s === i && (i = null);
|
|
6299
|
+
continue;
|
|
6300
|
+
}
|
|
6301
|
+
if (s === "\"" || s === "'") {
|
|
6302
|
+
i = s, r += s;
|
|
6303
|
+
continue;
|
|
6304
|
+
}
|
|
6305
|
+
if (s === "(" ? a += 1 : s === ")" && a > 0 && --a, s === t && a === 0) {
|
|
6306
|
+
n.push(r), r = "";
|
|
6307
|
+
continue;
|
|
6308
|
+
}
|
|
6309
|
+
r += s;
|
|
6310
|
+
}
|
|
6311
|
+
return n.push(r), n;
|
|
6201
6312
|
}
|
|
6202
|
-
function
|
|
6203
|
-
|
|
6313
|
+
function Vl(e) {
|
|
6314
|
+
let t = "", n = null, r = 0;
|
|
6315
|
+
for (; r < e.length;) {
|
|
6316
|
+
let i = e[r];
|
|
6317
|
+
if (n) {
|
|
6318
|
+
if (t += i, i === "\\" && r + 1 < e.length) {
|
|
6319
|
+
t += e[r + 1], r += 2;
|
|
6320
|
+
continue;
|
|
6321
|
+
}
|
|
6322
|
+
i === n && (n = null), r += 1;
|
|
6323
|
+
continue;
|
|
6324
|
+
}
|
|
6325
|
+
if (i === "\"" || i === "'") {
|
|
6326
|
+
n = i, t += i, r += 1;
|
|
6327
|
+
continue;
|
|
6328
|
+
}
|
|
6329
|
+
if (i === "/" && e[r + 1] === "*") {
|
|
6330
|
+
let n = e.indexOf("*/", r + 2);
|
|
6331
|
+
r = n === -1 ? e.length : n + 2, t += " ";
|
|
6332
|
+
continue;
|
|
6333
|
+
}
|
|
6334
|
+
t += i, r += 1;
|
|
6335
|
+
}
|
|
6336
|
+
return t;
|
|
6204
6337
|
}
|
|
6205
|
-
function
|
|
6338
|
+
function Hl(e) {
|
|
6206
6339
|
return e.replace(/\\/g, "\\\\").replace(/"/g, "\\\"").replace(/\n|\r|\f/g, " ");
|
|
6207
6340
|
}
|
|
6208
6341
|
//#endregion
|
|
6209
6342
|
//#region src/components/utils/stimulusRender.ts
|
|
6210
|
-
function
|
|
6343
|
+
function Ul(e, t, n) {
|
|
6211
6344
|
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)]));
|
|
6212
6345
|
return {
|
|
6213
6346
|
...r,
|
|
6214
6347
|
...i
|
|
6215
6348
|
};
|
|
6216
6349
|
}
|
|
6217
|
-
function
|
|
6350
|
+
function Wl(e, t) {
|
|
6218
6351
|
if (Object.keys(t).length === 0) return e;
|
|
6219
6352
|
let n = /* @__PURE__ */ new Set(), r = e.replace(/<([a-z][\w:-]*)([^>]*\bdata-stimulus-idref=(["'])([^"']+)\3[^>]*)>\s*<\/\1>/gi, (e, r, i, a, o) => {
|
|
6220
6353
|
let s = t[o];
|
|
6221
|
-
return s ? (n.add(o), `<${r}${
|
|
6354
|
+
return s ? (n.add(o), `<${r}${Kl(i, "qti-stimulus-dock")}>${s}</${r}>`) : e;
|
|
6222
6355
|
});
|
|
6223
6356
|
r = r.replace(/<qti-assessment-stimulus-ref\b([^>]*)\/?>\s*(?:<\/qti-assessment-stimulus-ref>)?/gi, (e, r) => {
|
|
6224
|
-
let i =
|
|
6357
|
+
let i = Gl(r, "identifier");
|
|
6225
6358
|
if (!i) return e;
|
|
6226
6359
|
if (n.has(i)) return "";
|
|
6227
6360
|
let a = t[i];
|
|
6228
|
-
return a ? (n.add(i), `<div data-stimulus-idref="${
|
|
6361
|
+
return a ? (n.add(i), `<div data-stimulus-idref="${ql(i)}" class="qti-stimulus-dock">${a}</div>`) : e;
|
|
6229
6362
|
});
|
|
6230
|
-
let i = Object.entries(t).filter(([e]) => !n.has(e)).map(([e, t]) => `<div data-stimulus-idref="${
|
|
6363
|
+
let i = Object.entries(t).filter(([e]) => !n.has(e)).map(([e, t]) => `<div data-stimulus-idref="${ql(e)}" class="qti-stimulus-block">${t}</div>`).join("");
|
|
6231
6364
|
return i ? i + r : r;
|
|
6232
6365
|
}
|
|
6233
|
-
function
|
|
6366
|
+
function Gl(e, t) {
|
|
6234
6367
|
return e.match(RegExp(`\\b${t}\\s*=\\s*["']([^"']+)["']`, "i"))?.[1] ?? null;
|
|
6235
6368
|
}
|
|
6236
|
-
function
|
|
6369
|
+
function Kl(e, t) {
|
|
6237
6370
|
let n = e.match(/\bclass\s*=\s*(["'])([^"']*)\1/i);
|
|
6238
6371
|
if (!n) return `${e} class="${t}"`;
|
|
6239
6372
|
let r = n[1], i = n[2] ?? "", a = new Set(i.split(/\s+/).filter(Boolean));
|
|
6240
6373
|
return a.add(t), e.replace(n[0], `class=${r}${Array.from(a).join(" ")}${r}`);
|
|
6241
6374
|
}
|
|
6242
|
-
function
|
|
6375
|
+
function ql(e) {
|
|
6243
6376
|
return e.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
6244
6377
|
}
|
|
6245
6378
|
//#endregion
|
|
6246
6379
|
//#region src/interactions/inline/render-plan.ts
|
|
6247
|
-
function
|
|
6380
|
+
function Jl(e) {
|
|
6248
6381
|
return Js(e);
|
|
6249
6382
|
}
|
|
6250
|
-
function
|
|
6383
|
+
function Yl(e) {
|
|
6251
6384
|
return Ys(e);
|
|
6252
6385
|
}
|
|
6253
|
-
function
|
|
6254
|
-
return e.replace(/<textEntryInteraction[^>]*responseIdentifier="([^"]+)"[^>]*?(?:\/>|><\/textEntryInteraction>)/gi, (e, n) =>
|
|
6386
|
+
function Xl(e, t) {
|
|
6387
|
+
return e.replace(/<textEntryInteraction[^>]*responseIdentifier="([^"]+)"[^>]*?(?:\/>|><\/textEntryInteraction>)/gi, (e, n) => $l(t, n, "textEntryInteraction") ? Ql("textEntry", n) : e).replace(/<qti-text-entry-interaction[^>]*response-identifier="([^"]+)"[^>]*?(?:\/>|><\/qti-text-entry-interaction>)/gi, (e, n) => $l(t, n, "textEntryInteraction") ? Ql("textEntry", n) : e).replace(/<inlineChoiceInteraction[^>]*responseIdentifier="([^"]+)"[^>]*>[\s\S]*?<\/inlineChoiceInteraction>/gi, (e, n) => $l(t, n, "inlineChoiceInteraction") ? Ql("inlineChoice", n) : e).replace(/<qti-inline-choice-interaction[^>]*response-identifier="([^"]+)"[^>]*>[\s\S]*?<\/qti-inline-choice-interaction>/gi, (e, n) => $l(t, n, "inlineChoiceInteraction") ? Ql("inlineChoice", n) : e);
|
|
6255
6388
|
}
|
|
6256
|
-
function
|
|
6257
|
-
let n =
|
|
6389
|
+
function Zl(e, t) {
|
|
6390
|
+
let n = Xl(e, t), r = [], i = /\[TEXTENTRY:([^\]]+)\]|\[INLINECHOICE:([^\]]+)\]/g, a = 0, o;
|
|
6258
6391
|
for (; (o = i.exec(n)) !== null;) {
|
|
6259
6392
|
if (o.index > a && r.push({
|
|
6260
6393
|
type: "html",
|
|
6261
6394
|
content: n.substring(a, o.index)
|
|
6262
6395
|
}), o[0].startsWith("[TEXTENTRY:")) {
|
|
6263
|
-
let e =
|
|
6396
|
+
let e = eu(t, o[1], "textEntryInteraction");
|
|
6264
6397
|
e && r.push({
|
|
6265
6398
|
type: "textEntry",
|
|
6266
6399
|
interaction: e
|
|
6267
6400
|
});
|
|
6268
6401
|
} else {
|
|
6269
|
-
let e =
|
|
6402
|
+
let e = eu(t, o[2], "inlineChoiceInteraction");
|
|
6270
6403
|
e && r.push({
|
|
6271
6404
|
type: "inlineChoice",
|
|
6272
6405
|
interaction: e
|
|
@@ -6282,19 +6415,19 @@ function Hl(e, t) {
|
|
|
6282
6415
|
content: n
|
|
6283
6416
|
}];
|
|
6284
6417
|
}
|
|
6285
|
-
function
|
|
6418
|
+
function Ql(e, t) {
|
|
6286
6419
|
return e === "textEntry" ? `[TEXTENTRY:${t}]` : `[INLINECHOICE:${t}]`;
|
|
6287
6420
|
}
|
|
6288
|
-
function
|
|
6289
|
-
return !!
|
|
6421
|
+
function $l(e, t, n) {
|
|
6422
|
+
return !!eu(e, t, n);
|
|
6290
6423
|
}
|
|
6291
|
-
function
|
|
6424
|
+
function eu(e, t, n) {
|
|
6292
6425
|
return e.find((e) => e.responseId === t && e.type === n) ?? null;
|
|
6293
6426
|
}
|
|
6294
6427
|
//#endregion
|
|
6295
6428
|
//#region src/presentation/itemPresentationPlan.ts
|
|
6296
|
-
function
|
|
6297
|
-
let d = e.getInteractionData(), f = Cl(r), p = n || f.isReadOnly, m = f.canViewCorrectResponses ? e.getCorrectResponses() : {}, h =
|
|
6429
|
+
function tu({ 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 }) {
|
|
6430
|
+
let d = e.getInteractionData(), f = Cl(r), p = n || f.isReadOnly, m = f.canViewCorrectResponses ? e.getCorrectResponses() : {}, h = nu({
|
|
6298
6431
|
player: e,
|
|
6299
6432
|
role: r,
|
|
6300
6433
|
outcomeValues: i,
|
|
@@ -6309,8 +6442,8 @@ function Kl({ player: e, responses: t = {}, disabled: n = !1, role: r = "candida
|
|
|
6309
6442
|
effectiveDisabled: p,
|
|
6310
6443
|
correctResponses: m,
|
|
6311
6444
|
itemBodyHtml: h,
|
|
6312
|
-
inlineSegments:
|
|
6313
|
-
blockInteractions:
|
|
6445
|
+
inlineSegments: Zl(h, d),
|
|
6446
|
+
blockInteractions: fu({
|
|
6314
6447
|
interactions: d,
|
|
6315
6448
|
player: e,
|
|
6316
6449
|
responses: t,
|
|
@@ -6321,75 +6454,75 @@ function Kl({ player: e, responses: t = {}, disabled: n = !1, role: r = "candida
|
|
|
6321
6454
|
})
|
|
6322
6455
|
};
|
|
6323
6456
|
}
|
|
6324
|
-
function
|
|
6325
|
-
let c = String(e.getItemBodyHtml()), l = a ?? e.getDeliveryContext(), u = Ol(l, o), d =
|
|
6326
|
-
c =
|
|
6457
|
+
function nu({ player: e, role: t, outcomeValues: n, heuristicsConfig: r, stimulusContent: i, deliveryContext: a, itemBodyScopeSelector: o, renderItemBodyRubrics: s }) {
|
|
6458
|
+
let c = String(e.getItemBodyHtml()), l = a ?? e.getDeliveryContext(), u = Ol(l, o), d = Ul(l, i, (t) => e.sanitizeHtmlContent(t));
|
|
6459
|
+
c = Wl(c, d), u && (c = `<style data-qti-stylesheets="resolved">${u}</style>${c}`), c = ru(c, t, { renderRubrics: s });
|
|
6327
6460
|
let f = ce(r);
|
|
6328
6461
|
return c = El(c, {
|
|
6329
6462
|
outcomeValues: n,
|
|
6330
6463
|
applyHeuristics: f.feedbackTextFormatting,
|
|
6331
6464
|
wrapWithSpan: !1
|
|
6332
|
-
}),
|
|
6465
|
+
}), du(c);
|
|
6333
6466
|
}
|
|
6334
|
-
function
|
|
6467
|
+
function ru(e, t, { renderRubrics: n }) {
|
|
6335
6468
|
if (!e || !/rubric-?block/i.test(e)) return e;
|
|
6336
6469
|
try {
|
|
6337
6470
|
let r = ie(e, {
|
|
6338
6471
|
lowerCaseTagName: !1,
|
|
6339
6472
|
comment: !1
|
|
6340
6473
|
});
|
|
6341
|
-
return
|
|
6474
|
+
return iu(r, t, { renderRubrics: n }), r.toString();
|
|
6342
6475
|
} catch {
|
|
6343
6476
|
return e;
|
|
6344
6477
|
}
|
|
6345
6478
|
}
|
|
6346
|
-
function
|
|
6479
|
+
function iu(e, t, { renderRubrics: n }) {
|
|
6347
6480
|
let r = [...e.childNodes];
|
|
6348
6481
|
for (let e of r) {
|
|
6349
6482
|
let r = e.rawTagName?.toLowerCase();
|
|
6350
|
-
if (r &&
|
|
6483
|
+
if (r && au(r) && (!n || !ou(e, t))) {
|
|
6351
6484
|
e.remove();
|
|
6352
6485
|
continue;
|
|
6353
6486
|
}
|
|
6354
|
-
e.childNodes?.length &&
|
|
6487
|
+
e.childNodes?.length && iu(e, t, { renderRubrics: n }), r && au(r) && e.replaceWith(su(e));
|
|
6355
6488
|
}
|
|
6356
6489
|
}
|
|
6357
|
-
function
|
|
6490
|
+
function au(e) {
|
|
6358
6491
|
return e === "rubricblock" || e === "qti-rubric-block";
|
|
6359
6492
|
}
|
|
6360
|
-
function
|
|
6493
|
+
function ou(e, t) {
|
|
6361
6494
|
let n = e.getAttribute("view")?.trim();
|
|
6362
|
-
return n ?
|
|
6495
|
+
return n ? cu(n).includes(t) : !0;
|
|
6363
6496
|
}
|
|
6364
|
-
function
|
|
6497
|
+
function su(e) {
|
|
6365
6498
|
let t = e.getAttribute("view")?.trim(), n = e.getAttribute("use")?.trim();
|
|
6366
6499
|
return `<div ${[
|
|
6367
6500
|
"class=\"qti-rubric-block\"",
|
|
6368
|
-
t ? `data-qti-rubric-view="${
|
|
6369
|
-
n ? `data-qti-rubric-use="${
|
|
6370
|
-
].filter(Boolean).join(" ")}>${
|
|
6501
|
+
t ? `data-qti-rubric-view="${uu(t)}"` : "",
|
|
6502
|
+
n ? `data-qti-rubric-use="${uu(n)}"` : ""
|
|
6503
|
+
].filter(Boolean).join(" ")}>${lu(e)}</div>`;
|
|
6371
6504
|
}
|
|
6372
|
-
function
|
|
6505
|
+
function cu(e) {
|
|
6373
6506
|
return e.split(/[\s,]+/).filter(Boolean);
|
|
6374
6507
|
}
|
|
6375
|
-
function
|
|
6508
|
+
function lu(e) {
|
|
6376
6509
|
return [...e.childNodes].map((e) => e.toString()).join("");
|
|
6377
6510
|
}
|
|
6378
|
-
function
|
|
6511
|
+
function uu(e) {
|
|
6379
6512
|
return e.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
6380
6513
|
}
|
|
6381
|
-
function
|
|
6382
|
-
return e.replace(/<(\w+Interaction|qti-[\w-]+-interaction)(\s[^>]*)?>[\s\S]*?<\/\1>/gi, (e, t) =>
|
|
6514
|
+
function du(e) {
|
|
6515
|
+
return e.replace(/<(\w+Interaction|qti-[\w-]+-interaction)(\s[^>]*)?>[\s\S]*?<\/\1>/gi, (e, t) => Yl(t.toLowerCase()) ? e : `<span class="qti-hidden-interaction">${e}</span>`);
|
|
6383
6516
|
}
|
|
6384
|
-
function
|
|
6517
|
+
function fu({ interactions: e, player: t, responses: n, correctResponses: r, roleCapabilities: i, effectiveDisabled: a, onComponentError: o }) {
|
|
6385
6518
|
let s = t.getComponentRegistry();
|
|
6386
|
-
return e.filter((e) => !
|
|
6519
|
+
return e.filter((e) => !Jl(e.type)).map((e) => {
|
|
6387
6520
|
try {
|
|
6388
6521
|
let o = "stringIdentifier" in e && typeof e.stringIdentifier == "string" ? e.stringIdentifier : void 0;
|
|
6389
6522
|
return {
|
|
6390
6523
|
interaction: e,
|
|
6391
6524
|
tagName: s.getTagName(e),
|
|
6392
|
-
key:
|
|
6525
|
+
key: pu(e),
|
|
6393
6526
|
response: n[e.responseId] ?? null,
|
|
6394
6527
|
...o ? { stringResponse: n[o] ?? null } : {},
|
|
6395
6528
|
correctResponse: i.canViewCorrectResponses ? r[e.responseId] ?? null : null,
|
|
@@ -6403,19 +6536,19 @@ function ru({ interactions: e, player: t, responses: n, correctResponses: r, rol
|
|
|
6403
6536
|
}
|
|
6404
6537
|
}).filter((e) => e !== null);
|
|
6405
6538
|
}
|
|
6406
|
-
function
|
|
6539
|
+
function pu(e) {
|
|
6407
6540
|
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 : "";
|
|
6408
6541
|
return `${e.type}|${e.responseId}|${n}|${r}`;
|
|
6409
6542
|
}
|
|
6410
6543
|
//#endregion
|
|
6411
6544
|
//#region src/components/ItemBody.svelte
|
|
6412
|
-
var
|
|
6545
|
+
var mu = 0, hu = /* @__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>"), gu = {
|
|
6413
6546
|
hash: "svelte-11qbngh",
|
|
6414
6547
|
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;}"
|
|
6415
6548
|
};
|
|
6416
|
-
function
|
|
6417
|
-
Ot(t, !0), Ba(e,
|
|
6418
|
-
let n = Z(t, "responses", 19, () => ({})), r = Z(t, "disabled", 3, !1), a = Z(t, "role", 3, "candidate"), o = Z(t, "onResponseChange", 3, () => {}), s = Z(t, "outcomeValues", 19, () => ({})), c = Z(t, "stimulusContent", 19, () => ({})), l = Z(t, "renderItemBodyRubrics", 3, !0), u = `qti-item-body-${++
|
|
6549
|
+
function _u(e, t) {
|
|
6550
|
+
Ot(t, !0), Ba(e, gu);
|
|
6551
|
+
let n = Z(t, "responses", 19, () => ({})), r = Z(t, "disabled", 3, !1), a = Z(t, "role", 3, "candidate"), o = Z(t, "onResponseChange", 3, () => {}), s = Z(t, "outcomeValues", 19, () => ({})), c = Z(t, "stimulusContent", 19, () => ({})), l = Z(t, "renderItemBodyRubrics", 3, !0), u = `qti-item-body-${++mu}`, d = `[data-qti-item-body-scope="${u}"]`, f = /* @__PURE__ */ F(() => tu({
|
|
6419
6552
|
player: t.player,
|
|
6420
6553
|
responses: n(),
|
|
6421
6554
|
disabled: r(),
|
|
@@ -6458,7 +6591,7 @@ function cu(e, t) {
|
|
|
6458
6591
|
destroy() {}
|
|
6459
6592
|
};
|
|
6460
6593
|
}
|
|
6461
|
-
var y =
|
|
6594
|
+
var y = hu(), b = V(y), x = V(b);
|
|
6462
6595
|
Ma(x, 21, () => q(f).inlineSegments, Oa, (e, n) => {
|
|
6463
6596
|
var r = fa(), i = Kr(r), a = (e) => {
|
|
6464
6597
|
var t = fa();
|
|
@@ -6535,12 +6668,12 @@ function cu(e, t) {
|
|
|
6535
6668
|
}
|
|
6536
6669
|
//#endregion
|
|
6537
6670
|
//#region src/components/ModalFeedbackDisplay.svelte
|
|
6538
|
-
var
|
|
6671
|
+
var vu = /* @__PURE__ */ J("<h3 class=\"qti-feedback-title svelte-i66ia0\"> </h3>"), yu = /* @__PURE__ */ J("<div class=\"qti-feedback-content svelte-i66ia0\"></div>"), bu = /* @__PURE__ */ J("<div><!> <!></div>"), xu = /* @__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>"), Su = {
|
|
6539
6672
|
hash: "svelte-i66ia0",
|
|
6540
6673
|
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;}"
|
|
6541
6674
|
};
|
|
6542
|
-
function
|
|
6543
|
-
Ot(t, !0), Ba(e,
|
|
6675
|
+
function Cu(e, t) {
|
|
6676
|
+
Ot(t, !0), Ba(e, Su);
|
|
6544
6677
|
let n = Z(t, "feedback", 19, () => []), r = /* @__PURE__ */ F(() => n().length > 0), i = "item-player-modal-feedback-title", a = /* @__PURE__ */ F(() => n().find((e) => e.title)?.title);
|
|
6545
6678
|
function o() {
|
|
6546
6679
|
t.onClose?.();
|
|
@@ -6549,12 +6682,12 @@ function mu(e, t) {
|
|
|
6549
6682
|
e.target === e.currentTarget && o();
|
|
6550
6683
|
}
|
|
6551
6684
|
var c = fa(), l = Kr(c), u = (e) => {
|
|
6552
|
-
var r =
|
|
6685
|
+
var r = xu(), c = V(r), l = V(c), u = qr(l, 2);
|
|
6553
6686
|
Ma(u, 17, n, Oa, (e, r, a) => {
|
|
6554
|
-
var o =
|
|
6687
|
+
var o = bu();
|
|
6555
6688
|
let s;
|
|
6556
6689
|
var c = V(o), l = (e) => {
|
|
6557
|
-
var t =
|
|
6690
|
+
var t = vu();
|
|
6558
6691
|
X(t, "id", a === 0 ? i : void 0);
|
|
6559
6692
|
var n = V(t, !0);
|
|
6560
6693
|
D(t), H(() => pa(n, q(r).title)), Y(e, t);
|
|
@@ -6563,10 +6696,10 @@ function mu(e, t) {
|
|
|
6563
6696
|
q(r).title && e(l);
|
|
6564
6697
|
});
|
|
6565
6698
|
var u = qr(c, 2), d = (e) => {
|
|
6566
|
-
var n =
|
|
6699
|
+
var n = yu();
|
|
6567
6700
|
Ra(n, () => q(r).content, !0), D(n), Va(n, (e, t) => Kc?.(e, t), () => ({ typeset: t.typeset })), Y(e, n);
|
|
6568
6701
|
}, f = (e) => {
|
|
6569
|
-
var t =
|
|
6702
|
+
var t = yu();
|
|
6570
6703
|
Ra(t, () => q(r).content, !0), D(t), Y(e, t);
|
|
6571
6704
|
};
|
|
6572
6705
|
Da(u, (e) => {
|
|
@@ -6592,12 +6725,12 @@ function mu(e, t) {
|
|
|
6592
6725
|
aa(["click"]);
|
|
6593
6726
|
//#endregion
|
|
6594
6727
|
//#region src/components/ItemPlayer.svelte
|
|
6595
|
-
var
|
|
6728
|
+
var wu = /* @__PURE__ */ J("<div class=\"qti-player-alert qti-player-alert-error svelte-129urwy\"><span> </span></div>"), Tu = /* @__PURE__ */ J("<span class=\"qti-player-badge qti-player-badge-success svelte-129urwy\"> </span>"), Eu = /* @__PURE__ */ J("<span> </span>"), Du = /* @__PURE__ */ J("<div class=\"qti-player-attempt-status svelte-129urwy\"><!></div>"), Ou = /* @__PURE__ */ J("<div class=\"qti-player-actions svelte-129urwy\"><button class=\"qti-player-button qti-player-button-primary svelte-129urwy\"> </button> <!></div>"), ku = /* @__PURE__ */ J("<!> <!> <!>", 1), Au = /* @__PURE__ */ J("<div class=\"qti-player-alert qti-player-alert-info svelte-129urwy\"><span> </span></div>"), ju = /* @__PURE__ */ J("<div class=\"qti-item-player svelte-129urwy\"><!></div>"), Mu = {
|
|
6596
6729
|
hash: "svelte-129urwy",
|
|
6597
6730
|
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);}"
|
|
6598
6731
|
};
|
|
6599
|
-
function
|
|
6600
|
-
Ot(t, !0), Ba(e,
|
|
6732
|
+
function Nu(e, t) {
|
|
6733
|
+
Ot(t, !0), Ba(e, Mu);
|
|
6601
6734
|
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__ */ F(() => t.showSubmit ?? !!t.onSubmit), s = /* @__PURE__ */ z(null), c = /* @__PURE__ */ z(Fr({})), l = /* @__PURE__ */ z(null), u = /* @__PURE__ */ z(Fr([])), d = /* @__PURE__ */ z(Fr({})), f = /* @__PURE__ */ z(!1), p = /* @__PURE__ */ z(!1), m = /* @__PURE__ */ z(0);
|
|
6602
6735
|
ri(() => {
|
|
6603
6736
|
try {
|
|
@@ -6643,12 +6776,12 @@ function wu(e, t) {
|
|
|
6643
6776
|
function _() {
|
|
6644
6777
|
B(u, [], !0);
|
|
6645
6778
|
}
|
|
6646
|
-
var v = { submit: g }, y =
|
|
6647
|
-
var t =
|
|
6779
|
+
var v = { submit: g }, y = ju(), b = V(y), x = (e) => {
|
|
6780
|
+
var t = wu(), n = V(t), r = V(n, !0);
|
|
6648
6781
|
D(n), D(t), H(() => pa(r, q(l))), Y(e, t);
|
|
6649
6782
|
}, S = (e) => {
|
|
6650
|
-
var r =
|
|
6651
|
-
|
|
6783
|
+
var r = ku(), l = Kr(r);
|
|
6784
|
+
_u(l, {
|
|
6652
6785
|
get player() {
|
|
6653
6786
|
return q(s);
|
|
6654
6787
|
},
|
|
@@ -6680,14 +6813,14 @@ function wu(e, t) {
|
|
|
6680
6813
|
});
|
|
6681
6814
|
var v = qr(l, 2), y = (e) => {
|
|
6682
6815
|
let n = /* @__PURE__ */ F(() => q(s).canSubmitResponses(q(c)));
|
|
6683
|
-
var r =
|
|
6816
|
+
var r = Ou(), i = V(r), a = V(i, !0);
|
|
6684
6817
|
D(i);
|
|
6685
6818
|
var o = qr(i, 2), l = (e) => {
|
|
6686
|
-
var n =
|
|
6687
|
-
var n =
|
|
6819
|
+
var n = Du(), r = V(n), i = (e) => {
|
|
6820
|
+
var n = Tu(), r = V(n, !0);
|
|
6688
6821
|
D(n), H((e) => pa(r, e), [() => t.i18n?.t("item.complete") ?? "item.complete"]), Y(e, n);
|
|
6689
6822
|
}, a = (e) => {
|
|
6690
|
-
var n =
|
|
6823
|
+
var n = Eu(), r = V(n, !0);
|
|
6691
6824
|
D(n), H((e) => pa(r, e), [() => t.i18n?.t("item.attempt", { numAttempts: q(m) + 1 }) ?? `item.attempt (${q(m) + 1})`]), Y(e, n);
|
|
6692
6825
|
};
|
|
6693
6826
|
Da(r, (e) => {
|
|
@@ -6702,7 +6835,7 @@ function wu(e, t) {
|
|
|
6702
6835
|
};
|
|
6703
6836
|
Da(v, (e) => {
|
|
6704
6837
|
n() === "candidate" && !i() && q(o) && e(y);
|
|
6705
|
-
}),
|
|
6838
|
+
}), Cu(qr(v, 2), {
|
|
6706
6839
|
get feedback() {
|
|
6707
6840
|
return q(u);
|
|
6708
6841
|
},
|
|
@@ -6715,7 +6848,7 @@ function wu(e, t) {
|
|
|
6715
6848
|
}
|
|
6716
6849
|
}), Y(e, r);
|
|
6717
6850
|
}, ee = (e) => {
|
|
6718
|
-
var n =
|
|
6851
|
+
var n = Au(), r = V(n), i = V(r, !0);
|
|
6719
6852
|
D(r), D(n), H((e) => pa(i, e), [() => t.i18n?.t("item.loading") ?? "item.loading"]), Y(e, n);
|
|
6720
6853
|
};
|
|
6721
6854
|
return Da(b, (e) => {
|
|
@@ -6725,16 +6858,16 @@ function wu(e, t) {
|
|
|
6725
6858
|
aa(["click"]);
|
|
6726
6859
|
//#endregion
|
|
6727
6860
|
//#region src/element-class.ts
|
|
6728
|
-
var
|
|
6861
|
+
var Pu = globalThis.HTMLElement ?? class {}, Fu = /* @__PURE__ */ new WeakMap(), Iu = /* @__PURE__ */ new WeakMap(), Lu = /* @__PURE__ */ new WeakMap(), Ru = /* @__PURE__ */ new WeakMap(), zu = /* @__PURE__ */ new WeakMap(), Bu = /* @__PURE__ */ new WeakMap(), Vu = /* @__PURE__ */ new WeakMap(), Hu = /* @__PURE__ */ new WeakMap(), Uu = /* @__PURE__ */ new WeakMap(), Wu = /* @__PURE__ */ new WeakMap(), Gu = /* @__PURE__ */ new WeakMap(), Ku = /* @__PURE__ */ new WeakMap(), qu = /* @__PURE__ */ new WeakMap(), Ju = /* @__PURE__ */ new WeakMap(), Yu = /* @__PURE__ */ new WeakMap(), Xu = /* @__PURE__ */ new WeakMap(), Zu = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakSet(), Qu = class extends Pu {
|
|
6729
6862
|
constructor(...e) {
|
|
6730
|
-
super(...e), Jt(this, Q), A(this,
|
|
6863
|
+
super(...e), Jt(this, Q), A(this, Fu, a({
|
|
6731
6864
|
host: this,
|
|
6732
|
-
mount: (e, t) => ma(
|
|
6865
|
+
mount: (e, t) => ma(Nu, {
|
|
6733
6866
|
target: e,
|
|
6734
6867
|
props: t
|
|
6735
6868
|
}),
|
|
6736
6869
|
unmount: va
|
|
6737
|
-
})), A(this,
|
|
6870
|
+
})), A(this, Iu, ""), A(this, Lu, "candidate"), A(this, Ru, !1), A(this, zu, !0), A(this, Bu, void 0), A(this, Vu, void 0), A(this, Hu, void 0), A(this, Uu, void 0), A(this, Wu, void 0), A(this, Gu, void 0), A(this, Ku, void 0), A(this, qu, void 0), A(this, Ju, void 0), A(this, Yu, void 0), A(this, Xu, void 0), A(this, Zu, void 0);
|
|
6738
6871
|
}
|
|
6739
6872
|
static get observedAttributes() {
|
|
6740
6873
|
return [
|
|
@@ -6744,103 +6877,103 @@ var Tu = globalThis.HTMLElement ?? class {}, Eu = /* @__PURE__ */ new WeakMap(),
|
|
|
6744
6877
|
];
|
|
6745
6878
|
}
|
|
6746
6879
|
get itemXml() {
|
|
6747
|
-
return N(
|
|
6880
|
+
return N(Iu, this);
|
|
6748
6881
|
}
|
|
6749
6882
|
set itemXml(e) {
|
|
6750
|
-
M(
|
|
6883
|
+
M(Iu, this, e ?? ""), j(Q, this, $).call(this);
|
|
6751
6884
|
}
|
|
6752
6885
|
get role() {
|
|
6753
|
-
return N(
|
|
6886
|
+
return N(Lu, this);
|
|
6754
6887
|
}
|
|
6755
6888
|
set role(e) {
|
|
6756
|
-
M(
|
|
6889
|
+
M(Lu, this, e ?? "candidate"), j(Q, this, $).call(this);
|
|
6757
6890
|
}
|
|
6758
6891
|
get disabled() {
|
|
6759
|
-
return N(
|
|
6892
|
+
return N(Ru, this);
|
|
6760
6893
|
}
|
|
6761
6894
|
set disabled(e) {
|
|
6762
|
-
M(
|
|
6895
|
+
M(Ru, this, !!e), j(Q, this, $).call(this);
|
|
6763
6896
|
}
|
|
6764
6897
|
get renderItemBodyRubrics() {
|
|
6765
|
-
return N(
|
|
6898
|
+
return N(zu, this);
|
|
6766
6899
|
}
|
|
6767
6900
|
set renderItemBodyRubrics(e) {
|
|
6768
|
-
M(
|
|
6901
|
+
M(zu, this, e !== !1), j(Q, this, $).call(this);
|
|
6769
6902
|
}
|
|
6770
6903
|
get typeset() {
|
|
6771
|
-
return N(
|
|
6904
|
+
return N(Bu, this);
|
|
6772
6905
|
}
|
|
6773
6906
|
set typeset(e) {
|
|
6774
|
-
M(
|
|
6907
|
+
M(Bu, this, e), j(Q, this, $).call(this);
|
|
6775
6908
|
}
|
|
6776
6909
|
get i18n() {
|
|
6777
|
-
return N(
|
|
6910
|
+
return N(Vu, this);
|
|
6778
6911
|
}
|
|
6779
6912
|
set i18n(e) {
|
|
6780
|
-
M(
|
|
6913
|
+
M(Vu, this, e), j(Q, this, $).call(this);
|
|
6781
6914
|
}
|
|
6782
6915
|
get security() {
|
|
6783
|
-
return N(
|
|
6916
|
+
return N(Hu, this);
|
|
6784
6917
|
}
|
|
6785
6918
|
set security(e) {
|
|
6786
|
-
M(
|
|
6919
|
+
M(Hu, this, e), j(Q, this, $).call(this);
|
|
6787
6920
|
}
|
|
6788
6921
|
get pnp() {
|
|
6789
|
-
return N(
|
|
6922
|
+
return N(Uu, this);
|
|
6790
6923
|
}
|
|
6791
6924
|
set pnp(e) {
|
|
6792
|
-
M(
|
|
6925
|
+
M(Uu, this, e), j(Q, this, $).call(this);
|
|
6793
6926
|
}
|
|
6794
6927
|
get deliveryContext() {
|
|
6795
|
-
return N(
|
|
6928
|
+
return N(Wu, this);
|
|
6796
6929
|
}
|
|
6797
6930
|
set deliveryContext(e) {
|
|
6798
|
-
M(
|
|
6931
|
+
M(Wu, this, e), j(Q, this, $).call(this);
|
|
6799
6932
|
}
|
|
6800
6933
|
get pci() {
|
|
6801
|
-
return N(
|
|
6934
|
+
return N(qu, this);
|
|
6802
6935
|
}
|
|
6803
6936
|
set pci(e) {
|
|
6804
|
-
M(
|
|
6937
|
+
M(qu, this, e), j(Q, this, $).call(this);
|
|
6805
6938
|
}
|
|
6806
6939
|
get resolveProcessingFragment() {
|
|
6807
|
-
return N(
|
|
6940
|
+
return N(Gu, this);
|
|
6808
6941
|
}
|
|
6809
6942
|
set resolveProcessingFragment(e) {
|
|
6810
|
-
M(
|
|
6943
|
+
M(Gu, this, e), j(Q, this, $).call(this);
|
|
6811
6944
|
}
|
|
6812
6945
|
get processingFragmentLimits() {
|
|
6813
|
-
return N(
|
|
6946
|
+
return N(Ku, this);
|
|
6814
6947
|
}
|
|
6815
6948
|
set processingFragmentLimits(e) {
|
|
6816
|
-
M(
|
|
6949
|
+
M(Ku, this, e), j(Q, this, $).call(this);
|
|
6817
6950
|
}
|
|
6818
6951
|
get responses() {
|
|
6819
|
-
return N(
|
|
6952
|
+
return N(Ju, this);
|
|
6820
6953
|
}
|
|
6821
6954
|
set responses(e) {
|
|
6822
|
-
M(
|
|
6955
|
+
M(Ju, this, e ? { ...e } : void 0), j(Q, this, $).call(this);
|
|
6823
6956
|
}
|
|
6824
6957
|
get onResponseChange() {
|
|
6825
|
-
return N(
|
|
6958
|
+
return N(Yu, this);
|
|
6826
6959
|
}
|
|
6827
6960
|
set onResponseChange(e) {
|
|
6828
|
-
M(
|
|
6961
|
+
M(Yu, this, e);
|
|
6829
6962
|
}
|
|
6830
6963
|
get onSubmit() {
|
|
6831
|
-
return N(
|
|
6964
|
+
return N(Xu, this);
|
|
6832
6965
|
}
|
|
6833
6966
|
set onSubmit(e) {
|
|
6834
|
-
M(
|
|
6967
|
+
M(Xu, this, e), j(Q, this, $).call(this);
|
|
6835
6968
|
}
|
|
6836
6969
|
get onComplete() {
|
|
6837
|
-
return N(
|
|
6970
|
+
return N(Zu, this);
|
|
6838
6971
|
}
|
|
6839
6972
|
set onComplete(e) {
|
|
6840
|
-
M(
|
|
6973
|
+
M(Zu, this, e);
|
|
6841
6974
|
}
|
|
6842
6975
|
connectedCallback() {
|
|
6843
|
-
N(
|
|
6976
|
+
N(Fu, this).mountOrUpdate(j(Q, this, $u).call(this)), queueMicrotask(() => {
|
|
6844
6977
|
this.isConnected && this.dispatchEvent(new CustomEvent("ready", {
|
|
6845
6978
|
bubbles: !0,
|
|
6846
6979
|
composed: !0
|
|
@@ -6848,45 +6981,45 @@ var Tu = globalThis.HTMLElement ?? class {}, Eu = /* @__PURE__ */ new WeakMap(),
|
|
|
6848
6981
|
});
|
|
6849
6982
|
}
|
|
6850
6983
|
disconnectedCallback() {
|
|
6851
|
-
N(
|
|
6984
|
+
N(Fu, this).teardown({ removeContainer: !0 });
|
|
6852
6985
|
}
|
|
6853
6986
|
attributeChangedCallback(e, t, n) {
|
|
6854
|
-
e === "item-xml" ? M(
|
|
6987
|
+
e === "item-xml" ? M(Iu, this, n ?? "") : e === "role" ? M(Lu, this, n ?? "candidate") : e === "disabled" && M(Ru, this, n !== null), j(Q, this, $).call(this);
|
|
6855
6988
|
}
|
|
6856
6989
|
submit(e = !0) {
|
|
6857
|
-
return N(
|
|
6990
|
+
return N(Fu, this).instance?.submit(e);
|
|
6858
6991
|
}
|
|
6859
6992
|
addEventListener(e, t, n) {
|
|
6860
6993
|
super.addEventListener(e, t, n);
|
|
6861
6994
|
}
|
|
6862
6995
|
};
|
|
6863
|
-
function
|
|
6996
|
+
function $u() {
|
|
6864
6997
|
return {
|
|
6865
|
-
itemXml: N(
|
|
6866
|
-
role: N(
|
|
6867
|
-
disabled: N(
|
|
6868
|
-
renderItemBodyRubrics: N(
|
|
6869
|
-
typeset: N(
|
|
6870
|
-
i18n: N(
|
|
6998
|
+
itemXml: N(Iu, this),
|
|
6999
|
+
role: N(Lu, this),
|
|
7000
|
+
disabled: N(Ru, this),
|
|
7001
|
+
renderItemBodyRubrics: N(zu, this),
|
|
7002
|
+
typeset: N(Bu, this),
|
|
7003
|
+
i18n: N(Vu, this),
|
|
6871
7004
|
security: {
|
|
6872
|
-
...N(
|
|
7005
|
+
...N(Hu, this) ?? {},
|
|
6873
7006
|
parsingLimits: {
|
|
6874
7007
|
enabled: !0,
|
|
6875
|
-
...N(
|
|
7008
|
+
...N(Hu, this)?.parsingLimits ?? {}
|
|
6876
7009
|
}
|
|
6877
7010
|
},
|
|
6878
|
-
pnp: N(
|
|
6879
|
-
deliveryContext: N(
|
|
6880
|
-
resolveProcessingFragment: N(
|
|
6881
|
-
processingFragmentLimits: N(
|
|
6882
|
-
pci: N(
|
|
6883
|
-
responses: N(
|
|
7011
|
+
pnp: N(Uu, this),
|
|
7012
|
+
deliveryContext: N(Wu, this),
|
|
7013
|
+
resolveProcessingFragment: N(Gu, this),
|
|
7014
|
+
processingFragmentLimits: N(Ku, this),
|
|
7015
|
+
pci: N(qu, this),
|
|
7016
|
+
responses: N(Ju, this),
|
|
6884
7017
|
onResponseChange: (e, t) => {
|
|
6885
7018
|
let n = {
|
|
6886
|
-
...N(
|
|
7019
|
+
...N(Ju, this) ?? {},
|
|
6887
7020
|
[e]: t
|
|
6888
7021
|
};
|
|
6889
|
-
M(
|
|
7022
|
+
M(Ju, this, n), N(Yu, this)?.call(this, e, t), this.dispatchEvent(new CustomEvent("response-change", {
|
|
6890
7023
|
detail: {
|
|
6891
7024
|
responseId: e,
|
|
6892
7025
|
value: t,
|
|
@@ -6898,7 +7031,7 @@ function Wu() {
|
|
|
6898
7031
|
},
|
|
6899
7032
|
onSubmit: (e, t) => {
|
|
6900
7033
|
let n = { ...e };
|
|
6901
|
-
M(
|
|
7034
|
+
M(Ju, this, n), N(Xu, this)?.call(this, n, t), this.dispatchEvent(new CustomEvent("submit", {
|
|
6902
7035
|
detail: {
|
|
6903
7036
|
responses: n,
|
|
6904
7037
|
result: t
|
|
@@ -6907,9 +7040,9 @@ function Wu() {
|
|
|
6907
7040
|
composed: !0
|
|
6908
7041
|
}));
|
|
6909
7042
|
},
|
|
6910
|
-
showSubmit: !!N(
|
|
7043
|
+
showSubmit: !!N(Xu, this),
|
|
6911
7044
|
onComplete: (e) => {
|
|
6912
|
-
N(
|
|
7045
|
+
N(Zu, this)?.call(this, e), this.dispatchEvent(new CustomEvent("complete", {
|
|
6913
7046
|
detail: { result: e },
|
|
6914
7047
|
bubbles: !0,
|
|
6915
7048
|
composed: !0
|
|
@@ -6918,9 +7051,9 @@ function Wu() {
|
|
|
6918
7051
|
};
|
|
6919
7052
|
}
|
|
6920
7053
|
function $() {
|
|
6921
|
-
N(
|
|
7054
|
+
N(Fu, this).update(j(Q, this, $u).call(this));
|
|
6922
7055
|
}
|
|
6923
7056
|
//#endregion
|
|
6924
|
-
export {
|
|
7057
|
+
export { Qu as t };
|
|
6925
7058
|
|
|
6926
|
-
//# sourceMappingURL=element-class-
|
|
7059
|
+
//# sourceMappingURL=element-class-C8OTgYHE.js.map
|